ifcvt.c (noce_try_addcc): Do not call emit_conditional_add with weird operands.
[official-gcc.git] / libjava / configure
blob0721b6ae196922d818e28ac1e306bb476a7b1ead
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 *.$ac_ext | *.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 case $host_cpu in
2002 hppa*)
2003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2004 lt_cv_file_magic_cmd=/usr/bin/file
2005 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2007 ia64*)
2008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2009 lt_cv_file_magic_cmd=/usr/bin/file
2010 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2012 esac
2015 irix5* | irix6*)
2016 case $host_os in
2017 irix5*)
2018 # this will be overridden with pass_all, but let us keep it just in case
2019 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2022 case $LD in
2023 *-32|*"-32 ") libmagic=32-bit;;
2024 *-n32|*"-n32 ") libmagic=N32;;
2025 *-64|*"-64 ") libmagic=64-bit;;
2026 *) libmagic=never-match;;
2027 esac
2028 # this will be overridden with pass_all, but let us keep it just in case
2029 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2031 esac
2032 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2033 lt_cv_deplibs_check_method=pass_all
2036 # This must be Linux ELF.
2037 linux-gnu*)
2038 case $host_cpu in
2039 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2040 lt_cv_deplibs_check_method=pass_all ;;
2042 # glibc up to 2.1.1 does not perform some relocations on ARM
2043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2044 esac
2045 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2048 netbsd*)
2049 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2050 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2051 else
2052 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2056 newsos6)
2057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2058 lt_cv_file_magic_cmd=/usr/bin/file
2059 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2062 osf3* | osf4* | osf5*)
2063 # this will be overridden with pass_all, but let us keep it just in case
2064 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2065 lt_cv_file_magic_test_file=/shlib/libc.so
2066 lt_cv_deplibs_check_method=pass_all
2069 sco3.2v5*)
2070 lt_cv_deplibs_check_method=pass_all
2073 solaris*)
2074 lt_cv_deplibs_check_method=pass_all
2075 lt_cv_file_magic_test_file=/lib/libc.so
2078 sysv5uw[78]* | sysv4*uw2*)
2079 lt_cv_deplibs_check_method=pass_all
2082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2083 case $host_vendor in
2084 ncr)
2085 lt_cv_deplibs_check_method=pass_all
2087 motorola)
2088 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]'
2089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2091 esac
2093 esac
2097 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2098 file_magic_cmd=$lt_cv_file_magic_cmd
2099 deplibs_check_method=$lt_cv_deplibs_check_method
2101 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2102 echo "configure:2103: checking for object suffix" >&5
2103 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2105 else
2106 rm -f conftest*
2107 echo 'int i = 1;' > conftest.$ac_ext
2108 if { (eval echo configure:2109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2109 for ac_file in conftest.*; do
2110 case $ac_file in
2111 *.c) ;;
2112 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2113 esac
2114 done
2115 else
2116 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2118 rm -f conftest*
2121 echo "$ac_t""$ac_cv_objext" 1>&6
2122 OBJEXT=$ac_cv_objext
2123 ac_objext=$ac_cv_objext
2125 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2127 # Only perform the check for file, if the check method requires it
2128 case $deplibs_check_method in
2129 file_magic*)
2130 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2131 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2132 echo "configure:2133: checking for ${ac_tool_prefix}file" >&5
2133 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2135 else
2136 case $MAGIC_CMD in
2138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2140 ?:/*)
2141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2144 ac_save_MAGIC_CMD="$MAGIC_CMD"
2145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2146 ac_dummy="/usr/bin:$PATH"
2147 for ac_dir in $ac_dummy; do
2148 test -z "$ac_dir" && ac_dir=.
2149 if test -f $ac_dir/${ac_tool_prefix}file; then
2150 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2151 if test -n "$file_magic_test_file"; then
2152 case $deplibs_check_method in
2153 "file_magic "*)
2154 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2156 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2157 egrep "$file_magic_regex" > /dev/null; then
2159 else
2160 cat <<EOF 1>&2
2162 *** Warning: the command libtool uses to detect shared libraries,
2163 *** $file_magic_cmd, produces output that libtool cannot recognize.
2164 *** The result is that libtool may fail to recognize shared libraries
2165 *** as such. This will affect the creation of libtool libraries that
2166 *** depend on shared libraries, but programs linked with such libtool
2167 *** libraries will work regardless of this problem. Nevertheless, you
2168 *** may want to report the problem to your system manager and/or to
2169 *** bug-libtool@gnu.org
2172 fi ;;
2173 esac
2175 break
2177 done
2178 IFS="$ac_save_ifs"
2179 MAGIC_CMD="$ac_save_MAGIC_CMD"
2181 esac
2184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2185 if test -n "$MAGIC_CMD"; then
2186 echo "$ac_t""$MAGIC_CMD" 1>&6
2187 else
2188 echo "$ac_t""no" 1>&6
2191 if test -z "$lt_cv_path_MAGIC_CMD"; then
2192 if test -n "$ac_tool_prefix"; then
2193 echo $ac_n "checking for file""... $ac_c" 1>&6
2194 echo "configure:2195: checking for file" >&5
2195 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2197 else
2198 case $MAGIC_CMD in
2200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2202 ?:/*)
2203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2206 ac_save_MAGIC_CMD="$MAGIC_CMD"
2207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2208 ac_dummy="/usr/bin:$PATH"
2209 for ac_dir in $ac_dummy; do
2210 test -z "$ac_dir" && ac_dir=.
2211 if test -f $ac_dir/file; then
2212 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2213 if test -n "$file_magic_test_file"; then
2214 case $deplibs_check_method in
2215 "file_magic "*)
2216 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2218 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2219 egrep "$file_magic_regex" > /dev/null; then
2221 else
2222 cat <<EOF 1>&2
2224 *** Warning: the command libtool uses to detect shared libraries,
2225 *** $file_magic_cmd, produces output that libtool cannot recognize.
2226 *** The result is that libtool may fail to recognize shared libraries
2227 *** as such. This will affect the creation of libtool libraries that
2228 *** depend on shared libraries, but programs linked with such libtool
2229 *** libraries will work regardless of this problem. Nevertheless, you
2230 *** may want to report the problem to your system manager and/or to
2231 *** bug-libtool@gnu.org
2234 fi ;;
2235 esac
2237 break
2239 done
2240 IFS="$ac_save_ifs"
2241 MAGIC_CMD="$ac_save_MAGIC_CMD"
2243 esac
2246 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2247 if test -n "$MAGIC_CMD"; then
2248 echo "$ac_t""$MAGIC_CMD" 1>&6
2249 else
2250 echo "$ac_t""no" 1>&6
2253 else
2254 MAGIC_CMD=:
2260 esac
2262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2263 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2265 echo "configure:2266: checking for $ac_word" >&5
2266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2268 else
2269 if test -n "$RANLIB"; then
2270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2271 else
2272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2273 ac_dummy="$PATH"
2274 for ac_dir in $ac_dummy; do
2275 test -z "$ac_dir" && ac_dir=.
2276 if test -f $ac_dir/$ac_word; then
2277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2278 break
2280 done
2281 IFS="$ac_save_ifs"
2284 RANLIB="$ac_cv_prog_RANLIB"
2285 if test -n "$RANLIB"; then
2286 echo "$ac_t""$RANLIB" 1>&6
2287 else
2288 echo "$ac_t""no" 1>&6
2292 if test -z "$ac_cv_prog_RANLIB"; then
2293 if test -n "$ac_tool_prefix"; then
2294 # Extract the first word of "ranlib", so it can be a program name with args.
2295 set dummy ranlib; ac_word=$2
2296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_word" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301 if test -n "$RANLIB"; then
2302 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2303 else
2304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2305 ac_dummy="$PATH"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/$ac_word; then
2309 ac_cv_prog_RANLIB="ranlib"
2310 break
2312 done
2313 IFS="$ac_save_ifs"
2314 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2317 RANLIB="$ac_cv_prog_RANLIB"
2318 if test -n "$RANLIB"; then
2319 echo "$ac_t""$RANLIB" 1>&6
2320 else
2321 echo "$ac_t""no" 1>&6
2324 else
2325 RANLIB=":"
2329 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2330 set dummy ${ac_tool_prefix}strip; ac_word=$2
2331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_word" >&5
2333 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2335 else
2336 if test -n "$STRIP"; then
2337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2338 else
2339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2340 ac_dummy="$PATH"
2341 for ac_dir in $ac_dummy; do
2342 test -z "$ac_dir" && ac_dir=.
2343 if test -f $ac_dir/$ac_word; then
2344 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2345 break
2347 done
2348 IFS="$ac_save_ifs"
2351 STRIP="$ac_cv_prog_STRIP"
2352 if test -n "$STRIP"; then
2353 echo "$ac_t""$STRIP" 1>&6
2354 else
2355 echo "$ac_t""no" 1>&6
2359 if test -z "$ac_cv_prog_STRIP"; then
2360 if test -n "$ac_tool_prefix"; then
2361 # Extract the first word of "strip", so it can be a program name with args.
2362 set dummy strip; ac_word=$2
2363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2364 echo "configure:2365: checking for $ac_word" >&5
2365 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2367 else
2368 if test -n "$STRIP"; then
2369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2370 else
2371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2372 ac_dummy="$PATH"
2373 for ac_dir in $ac_dummy; do
2374 test -z "$ac_dir" && ac_dir=.
2375 if test -f $ac_dir/$ac_word; then
2376 ac_cv_prog_STRIP="strip"
2377 break
2379 done
2380 IFS="$ac_save_ifs"
2381 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2384 STRIP="$ac_cv_prog_STRIP"
2385 if test -n "$STRIP"; then
2386 echo "$ac_t""$STRIP" 1>&6
2387 else
2388 echo "$ac_t""no" 1>&6
2391 else
2392 STRIP=":"
2397 # Check for any special flags to pass to ltconfig.
2398 libtool_flags="--cache-file=$cache_file"
2399 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2400 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2401 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2402 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2403 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2404 libtool_flags="$libtool_flags --enable-dlopen"
2406 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2407 if test "${enable_libtool_lock+set}" = set; then
2408 enableval="$enable_libtool_lock"
2412 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2413 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2415 # Check whether --with-pic or --without-pic was given.
2416 if test "${with_pic+set}" = set; then
2417 withval="$with_pic"
2418 pic_mode="$withval"
2419 else
2420 pic_mode=default
2423 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2424 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2426 # Some flags need to be propagated to the compiler or linker for good
2427 # libtool support.
2428 case $host in
2429 *-*-irix6*)
2430 # Find out which ABI we are using.
2431 echo '#line 2432 "configure"' > conftest.$ac_ext
2432 if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433 case `/usr/bin/file conftest.$ac_objext` in
2434 *32-bit*)
2435 LD="${LD-ld} -32"
2437 *N32*)
2438 LD="${LD-ld} -n32"
2440 *64-bit*)
2441 LD="${LD-ld} -64"
2443 esac
2445 rm -rf conftest*
2448 ia64-*-hpux*)
2449 # Find out which ABI we are using.
2450 echo 'int i;' > conftest.$ac_ext
2451 if { (eval echo configure:2452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2452 case "`/usr/bin/file conftest.o`" in
2453 *ELF-32*)
2454 HPUX_IA64_MODE="32"
2456 *ELF-64*)
2457 HPUX_IA64_MODE="64"
2459 esac
2461 rm -rf conftest*
2464 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2465 # Find out which ABI we are using.
2466 echo 'int i;' > conftest.$ac_ext
2467 if { (eval echo configure:2468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2468 case "`/usr/bin/file conftest.o`" in
2469 *32-bit*)
2470 case $host in
2471 x86_64-*linux*)
2472 LD="${LD-ld} -m elf_i386"
2474 ppc64-*linux*)
2475 LD="${LD-ld} -m elf32ppclinux"
2477 s390x-*linux*)
2478 LD="${LD-ld} -m elf_s390"
2480 sparc64-*linux*)
2481 LD="${LD-ld} -m elf32_sparc"
2483 esac
2485 *64-bit*)
2486 case $host in
2487 x86_64-*linux*)
2488 LD="${LD-ld} -m elf_x86_64"
2490 ppc*-*linux*|powerpc*-*linux*)
2491 LD="${LD-ld} -m elf64ppc"
2493 s390*-*linux*)
2494 LD="${LD-ld} -m elf64_s390"
2496 sparc*-*linux*)
2497 LD="${LD-ld} -m elf64_sparc"
2499 esac
2501 esac
2503 rm -rf conftest*
2506 *-*-sco3.2v5*)
2507 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2508 SAVE_CFLAGS="$CFLAGS"
2509 CFLAGS="$CFLAGS -belf"
2510 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2511 echo "configure:2512: checking whether the C compiler needs -belf" >&5
2512 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2514 else
2516 ac_ext=c
2517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2521 cross_compiling=$ac_cv_prog_cc_cross
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2527 int main() {
2529 ; return 0; }
2531 if { (eval echo configure:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2532 rm -rf conftest*
2533 lt_cv_cc_needs_belf=yes
2534 else
2535 echo "configure: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2537 rm -rf conftest*
2538 lt_cv_cc_needs_belf=no
2540 rm -f conftest*
2541 ac_ext=c
2542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2543 ac_cpp='$CPP $CPPFLAGS'
2544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2546 cross_compiling=$ac_cv_prog_cc_cross
2550 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2551 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2552 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2553 CFLAGS="$SAVE_CFLAGS"
2558 esac
2560 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2561 echo "configure:2562: checking how to run the C++ preprocessor" >&5
2562 if test -z "$CXXCPP"; then
2563 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2565 else
2566 ac_ext=C
2567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2568 ac_cpp='$CXXCPP $CPPFLAGS'
2569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2571 cross_compiling=$ac_cv_prog_cxx_cross
2572 CXXCPP="${CXX-g++} -E"
2573 cat > conftest.$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2576 #include <stdlib.h>
2578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2579 { (eval echo configure:2580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2581 if test -z "$ac_err"; then
2583 else
2584 echo "$ac_err" >&5
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2587 rm -rf conftest*
2588 CXXCPP=/lib/cpp
2590 rm -f conftest*
2591 ac_cv_prog_CXXCPP="$CXXCPP"
2592 ac_ext=c
2593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2597 cross_compiling=$ac_cv_prog_cc_cross
2600 CXXCPP="$ac_cv_prog_CXXCPP"
2601 echo "$ac_t""$CXXCPP" 1>&6
2604 # Save cache, so that ltconfig can load it
2605 cat > confcache <<\EOF
2606 # This file is a shell script that caches the results of configure
2607 # tests run on this system so they can be shared between configure
2608 # scripts and configure runs. It is not useful on other systems.
2609 # If it contains results you don't want to keep, you may remove or edit it.
2611 # By default, configure uses ./config.cache as the cache file,
2612 # creating it if it does not exist already. You can give configure
2613 # the --cache-file=FILE option to use a different cache file; that is
2614 # what configure does when it calls configure scripts in
2615 # subdirectories, so they share the cache.
2616 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2617 # config.status only pays attention to the cache file if you give it the
2618 # --recheck option to rerun configure.
2621 # The following way of writing the cache mishandles newlines in values,
2622 # but we know of no workaround that is simple, portable, and efficient.
2623 # So, don't put newlines in cache variables' values.
2624 # Ultrix sh set writes to stderr and can't be redirected directly,
2625 # and sets the high bit in the cache file unless we assign to the vars.
2626 (set) 2>&1 |
2627 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2628 *ac_space=\ *)
2629 # `set' does not quote correctly, so add quotes (double-quote substitution
2630 # turns \\\\ into \\, and sed turns \\ into \).
2631 sed -n \
2632 -e "s/'/'\\\\''/g" \
2633 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2636 # `set' quotes correctly as required by POSIX, so do not add quotes.
2637 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2639 esac >> confcache
2640 if cmp -s $cache_file confcache; then
2642 else
2643 if test -w $cache_file; then
2644 echo "updating cache $cache_file"
2645 cat confcache > $cache_file
2646 else
2647 echo "not updating unwritable cache $cache_file"
2650 rm -f confcache
2653 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2654 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2655 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2656 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2657 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2658 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2659 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2660 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2661 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2662 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2664 # Reload cache, that may have been modified by ltconfig
2665 if test -r "$cache_file"; then
2666 echo "loading cache $cache_file"
2667 . $cache_file
2668 else
2669 echo "creating cache $cache_file"
2670 > $cache_file
2674 # This can be used to rebuild libtool when needed
2675 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2677 # Always use our own libtool.
2678 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2680 # Redirect the config.log output again, so that the ltconfig log is not
2681 # clobbered by the next message.
2682 exec 5>>./config.log
2686 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2687 lt_save_CC="$CC"
2688 lt_save_CFLAGS="$CFLAGS"
2689 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2690 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2691 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2692 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2693 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2694 deplibs_check_method="$deplibs_check_method" \
2695 file_magic_cmd="$file_magic_cmd" \
2696 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2697 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2698 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2699 CC="$lt_save_CC"
2700 CFLAGS="$lt_save_CFLAGS"
2702 # Redirect the config.log output again, so that the ltconfig log is not
2703 # clobbered by the next message.
2704 exec 5>>./config.log
2711 subdirs="$DIRLTDL"
2714 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2715 COMPPATH=.
2716 else
2717 COMPPATH=..
2723 if test -d $srcdir/testsuite; then
2724 TESTSUBDIR_TRUE=
2725 TESTSUBDIR_FALSE='#'
2726 else
2727 TESTSUBDIR_TRUE='#'
2728 TESTSUBDIR_FALSE=
2731 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2732 if test "${enable_getenv_properties+set}" = set; then
2733 enableval="$enable_getenv_properties"
2738 if test -z "$enable_getenv_properties"; then
2739 enable_getenv_properties=${enable_getenv_properties_default-yes}
2741 if test "$enable_getenv_properties" = no; then
2742 cat >> confdefs.h <<\EOF
2743 #define DISABLE_GETENV_PROPERTIES 1
2748 if test -z "$enable_main_args"; then
2749 enable_main_args=${enable_main_args_default-yes}
2751 if test "$enable_main_args" = no; then
2752 cat >> confdefs.h <<\EOF
2753 #define DISABLE_MAIN_ARGS 1
2759 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2760 if test "${enable_hash_synchronization+set}" = set; then
2761 enableval="$enable_hash_synchronization"
2766 if test -z "$enable_hash_synchronization"; then
2767 enable_hash_synchronization=$enable_hash_synchronization_default
2770 if test "${slow_pthread_self}" = "yes"; then
2771 cat >> confdefs.h <<\EOF
2772 #define SLOW_PTHREAD_SELF 1
2778 LIBGCJDEBUG="false"
2780 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2781 if test "${enable_libgcj_debug+set}" = set; then
2782 enableval="$enable_libgcj_debug"
2783 if test "$enable_libgcj_debug" = yes; then
2784 cat >> confdefs.h <<\EOF
2785 #define DEBUG 1
2788 LIBGCJDEBUG="true"
2793 # Check whether --enable-interpreter or --disable-interpreter was given.
2794 if test "${enable_interpreter+set}" = set; then
2795 enableval="$enable_interpreter"
2796 if test "$enable_interpreter" = yes; then
2797 # This can also be set in configure.host.
2798 libgcj_interpreter=yes
2799 elif test "$enable_interpreter" = no; then
2800 libgcj_interpreter=no
2805 if test "$libgcj_interpreter" = yes; then
2806 cat >> confdefs.h <<\EOF
2807 #define INTERPRETER 1
2811 INTERPRETER="$libgcj_interpreter"
2814 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2815 echo "configure:2816: checking for exception model to use" >&5
2817 ac_ext=C
2818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2819 ac_cpp='$CXXCPP $CPPFLAGS'
2820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2822 cross_compiling=$ac_cv_prog_cxx_cross
2824 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2825 if test "${enable_sjlj_exceptions+set}" = set; then
2826 enableval="$enable_sjlj_exceptions"
2828 else
2829 cat > conftest.$ac_ext << EOF
2830 #line 2831 "configure"
2831 struct S { ~S(); };
2832 void bar();
2833 void foo()
2835 S s;
2836 bar();
2839 old_CXXFLAGS="$CXXFLAGS"
2840 CXXFLAGS=-S
2841 if { (eval echo configure:2842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2842 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2843 enable_sjlj_exceptions=yes
2844 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2845 enable_sjlj_exceptions=no
2848 CXXFLAGS="$old_CXXFLAGS"
2849 rm -f conftest*
2852 if test x$enable_sjlj_exceptions = xyes; then
2853 cat >> confdefs.h <<\EOF
2854 #define SJLJ_EXCEPTIONS 1
2857 ac_exception_model_name=sjlj
2858 elif test x$enable_sjlj_exceptions = xno; then
2859 ac_exception_model_name="call frame"
2860 else
2861 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2863 ac_ext=c
2864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2868 cross_compiling=$ac_cv_prog_cc_cross
2870 echo "$ac_t""$ac_exception_model_name" 1>&6
2872 # If we are non using SJLJ exceptions, and this host does not have support
2873 # for unwinding from a signal handler, enable checked dereferences and divides.
2874 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2875 CHECKREFSPEC=-fcheck-references
2876 DIVIDESPEC=-fuse-divide-subroutine
2877 EXCEPTIONSPEC=
2880 # Check whether --enable-java-net or --disable-java-net was given.
2881 if test "${enable_java_net+set}" = set; then
2882 enableval="$enable_java_net"
2887 if test -z "$enable_java_net"; then
2888 enable_java_net=${enable_java_net_default-yes}
2890 if test "$enable_java_net" = no; then
2891 cat >> confdefs.h <<\EOF
2892 #define DISABLE_JAVA_NET 1
2897 # Check whether --with-libffi or --without-libffi was given.
2898 if test "${with_libffi+set}" = set; then
2899 withval="$with_libffi"
2901 else
2902 with_libffi=${with_libffi_default-yes}
2906 LIBFFI=
2907 LIBFFIINCS=
2908 if test "$with_libffi" != no; then
2909 cat >> confdefs.h <<\EOF
2910 #define USE_LIBFFI 1
2913 LIBFFI=../libffi/libffi_convenience.la
2914 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2919 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2920 if test "${enable_jvmpi+set}" = set; then
2921 enableval="$enable_jvmpi"
2926 if test "$enable_jvmpi" != no; then
2927 cat >> confdefs.h <<\EOF
2928 #define ENABLE_JVMPI 1
2933 TARGET_ECOS=${PROCESS-"no"}
2934 # Check whether --with-ecos or --without-ecos was given.
2935 if test "${with_ecos+set}" = set; then
2936 withval="$with_ecos"
2937 TARGET_ECOS="$with_ecos"
2942 PLATFORMOBJS=
2943 case "$TARGET_ECOS" in
2944 no) case "$host" in
2945 *mingw*)
2946 PLATFORM=Win32
2947 PLATFORMOBJS=win32.lo
2948 PLATFORMH=win32.h
2949 CHECK_FOR_BROKEN_MINGW_LD
2952 PLATFORM=Posix
2953 PLATFORMOBJS=posix.lo
2954 PLATFORMH=posix.h
2956 esac
2959 PLATFORM=Ecos
2960 cat >> confdefs.h <<\EOF
2961 #define ECOS 1
2964 PLATFORMOBJS=posix.lo
2965 PLATFORMH=posix.h
2967 esac
2971 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2972 echo "configure:2973: checking how to run the C preprocessor" >&5
2973 # On Suns, sometimes $CPP names a directory.
2974 if test -n "$CPP" && test -d "$CPP"; then
2975 CPP=
2977 if test -z "$CPP"; then
2978 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2980 else
2981 # This must be in double quotes, not single quotes, because CPP may get
2982 # substituted into the Makefile and "${CC-cc}" will confuse make.
2983 CPP="${CC-cc} -E"
2984 # On the NeXT, cc -E runs the code through the compiler's parser,
2985 # not just through cpp.
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 #include <assert.h>
2990 Syntax Error
2992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2993 { (eval echo configure:2994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2995 if test -z "$ac_err"; then
2997 else
2998 echo "$ac_err" >&5
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3001 rm -rf conftest*
3002 CPP="${CC-cc} -E -traditional-cpp"
3003 cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006 #include <assert.h>
3007 Syntax Error
3009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3010 { (eval echo configure:3011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3012 if test -z "$ac_err"; then
3014 else
3015 echo "$ac_err" >&5
3016 echo "configure: failed program was:" >&5
3017 cat conftest.$ac_ext >&5
3018 rm -rf conftest*
3019 CPP="${CC-cc} -nologo -E"
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 #include <assert.h>
3024 Syntax Error
3026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3027 { (eval echo configure:3028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3029 if test -z "$ac_err"; then
3031 else
3032 echo "$ac_err" >&5
3033 echo "configure: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3035 rm -rf conftest*
3036 CPP=/lib/cpp
3038 rm -f conftest*
3040 rm -f conftest*
3042 rm -f conftest*
3043 ac_cv_prog_CPP="$CPP"
3045 CPP="$ac_cv_prog_CPP"
3046 else
3047 ac_cv_prog_CPP="$CPP"
3049 echo "$ac_t""$CPP" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #include <stdint.h>
3056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3057 egrep "uint32_t" >/dev/null 2>&1; then
3058 rm -rf conftest*
3059 cat >> confdefs.h <<\EOF
3060 #define HAVE_INT32_DEFINED 1
3064 rm -f conftest*
3066 cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 #include <inttypes.h>
3071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3072 egrep "uint32_t" >/dev/null 2>&1; then
3073 rm -rf conftest*
3074 cat >> confdefs.h <<\EOF
3075 #define HAVE_INT32_DEFINED 1
3079 rm -f conftest*
3081 cat > conftest.$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 #include <sys/types.h>
3086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3087 egrep "u_int32_t" >/dev/null 2>&1; then
3088 rm -rf conftest*
3089 cat >> confdefs.h <<\EOF
3090 #define HAVE_BSD_INT32_DEFINED 1
3094 rm -f conftest*
3096 cat > conftest.$ac_ext <<EOF
3097 #line 3098 "configure"
3098 #include "confdefs.h"
3099 #include <sys/config.h>
3101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3102 egrep "u_int32_t" >/dev/null 2>&1; then
3103 rm -rf conftest*
3104 cat >> confdefs.h <<\EOF
3105 #define HAVE_BSD_INT32_DEFINED 1
3109 rm -f conftest*
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 #include <time.h>
3118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3119 egrep "mktime" >/dev/null 2>&1; then
3120 rm -rf conftest*
3121 cat >> confdefs.h <<\EOF
3122 #define HAVE_MKTIME 1
3126 rm -f conftest*
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <time.h>
3133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3134 egrep "localtime" >/dev/null 2>&1; then
3135 rm -rf conftest*
3136 cat >> confdefs.h <<\EOF
3137 #define HAVE_LOCALTIME 1
3141 rm -f conftest*
3144 test -d java || mkdir java
3145 test -d java/io || mkdir java/io
3146 test -d gnu || mkdir gnu
3150 test -d java/lang || mkdir java/lang
3154 case "${host}" in
3155 *mingw*)
3156 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3159 SYSTEMSPEC=
3161 esac
3164 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3167 # Check whether --with-system-zlib or --without-system-zlib was given.
3168 if test "${with_system_zlib+set}" = set; then
3169 withval="$with_system_zlib"
3173 ZLIBSPEC=
3175 ZLIBTESTSPEC=
3178 libsubdir=.libs
3180 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3181 echo "configure:3182: checking for garbage collector to use" >&5
3182 # Check whether --enable-java-gc or --disable-java-gc was given.
3183 if test "${enable_java_gc+set}" = set; then
3184 enableval="$enable_java_gc"
3186 GC=$enableval
3187 else
3188 GC=boehm
3191 GCLIBS=
3192 GCINCS=
3193 GCDEPS=
3194 GCOBJS=
3195 GCSPEC=
3196 JC1GCSPEC=
3197 GCTESTSPEC=
3198 case "$GC" in
3199 boehm)
3200 echo "$ac_t""boehm" 1>&6
3201 GCLIBS=../boehm-gc/libgcjgc_convenience.la
3202 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3203 JC1GCSPEC='-fuse-boehm-gc'
3204 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
3206 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3207 GCOBJS=boehm.lo
3208 GCHDR=boehm-gc.h
3209 cat >> confdefs.h <<\EOF
3210 #define HAVE_BOEHM_GC 1
3215 echo "$ac_t""none" 1>&6
3216 GCOBJS=nogc.lo
3217 GCHDR=no-gc.h
3220 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3222 esac
3233 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3234 echo "configure:3235: checking for thread model used by GCC" >&5
3235 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3236 echo "$ac_t""$THREADS" 1>&6
3238 case "$THREADS" in
3239 no | none | single)
3240 THREADS=none
3242 posix | pthreads)
3243 THREADS=posix
3244 case "$host" in
3245 *-*-linux*)
3246 cat >> confdefs.h <<\EOF
3247 #define LINUX_THREADS 1
3251 esac
3253 win32)
3255 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3256 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3259 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3261 esac
3263 THREADLDFLAGS=
3264 THREADLIBS=
3265 THREADINCS=
3266 THREADDEPS=
3267 THREADOBJS=
3268 THREADH=
3269 THREADSPEC=
3270 case "$THREADS" in
3271 posix)
3272 case "$host" in
3273 *-*-cygwin*)
3274 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3277 *-*-freebsd[1234]*)
3279 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3280 # merely adds pthread_* functions) but it does have a -pthread switch
3281 # which is required at link-time to select -lc_r *instead* of -lc.
3282 THREADLDFLAGS=-pthread
3283 # Don't set THREADSPEC here as might be expected since -pthread is
3284 # not processed when found within a spec file, it must come from
3285 # the command line. For now, the user must provide the -pthread
3286 # switch to link code compiled with gcj. In future, consider adding
3287 # support for weak references to pthread_* functions ala gthr.h API.
3288 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3290 *-*-freebsd*)
3291 # FreeBSD 5 implements a model much closer to other modern UNIX
3292 # which support threads. However, it still does not support
3293 # -lpthread.
3294 THREADLDFLAGS=-pthread
3295 THREADSPEC=-lc_r
3298 THREADLIBS=-lpthread
3299 THREADSPEC=-lpthread
3301 esac
3302 THREADOBJS=posix-threads.lo
3303 THREADH=posix-threads.h
3304 # MIT pthreads doesn't seem to have the mutexattr functions.
3305 # But for now we don't check for it. We just assume you aren't
3306 # using MIT pthreads.
3307 cat >> confdefs.h <<\EOF
3308 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3312 # If we're using the Boehm GC, then we happen to know that it
3313 # defines _REENTRANT, so we don't bother. Eww.
3314 if test "$GC" != boehm; then
3315 cat >> confdefs.h <<\EOF
3316 #define _REENTRANT 1
3320 cat >> confdefs.h <<\EOF
3321 #define _POSIX_PTHREAD_SEMANTICS 1
3326 win32)
3327 THREADOBJS=win32-threads.lo
3328 THREADH=win32-threads.h
3331 none)
3332 THREADOBJS=no-threads.lo
3333 THREADH=no-threads.h
3335 esac
3344 if test -d sysdep; then true; else mkdir sysdep; fi
3347 HASH_SYNC_SPEC=
3348 # Hash synchronization is only useful with posix threads right now.
3349 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
3350 HASH_SYNC_SPEC=-fhash-synchronization
3351 cat >> confdefs.h <<\EOF
3352 #define JV_HASH_SYNCHRONIZATION 1
3361 if test "$GCC" = yes; then
3362 USING_GCC_TRUE=
3363 USING_GCC_FALSE='#'
3364 else
3365 USING_GCC_TRUE='#'
3366 USING_GCC_FALSE=
3369 CANADIAN=no
3370 NULL_TARGET=no
3371 NATIVE=yes
3373 # We're in the tree with gcc, and need to include some of its headers.
3374 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3376 # Figure out where generated headers like libgcj-config.h get installed.
3377 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
3378 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3379 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3380 tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
3384 if test "x${with_newlib}" = "xyes"; then
3385 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3386 # may not work correctly, because the compiler may not be able to
3387 # link executables.
3389 # We assume newlib. This lets us hard-code the functions we know
3390 # we'll have.
3391 cat >> confdefs.h <<\EOF
3392 #define HAVE_MEMMOVE 1
3395 cat >> confdefs.h <<\EOF
3396 #define HAVE_MEMCPY 1
3399 cat >> confdefs.h <<\EOF
3400 #define HAVE_STRERROR 1
3403 cat >> confdefs.h <<\EOF
3404 #define HAVE_TIME 1
3407 cat >> confdefs.h <<\EOF
3408 #define HAVE_GMTIME_R 1
3411 cat >> confdefs.h <<\EOF
3412 #define HAVE_LOCALTIME_R 1
3415 cat >> confdefs.h <<\EOF
3416 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3419 cat >> confdefs.h <<\EOF
3420 #define HAVE_ALLOCA 1
3424 cat >> confdefs.h <<\EOF
3425 #define NO_GETUID 1
3429 # If Canadian cross, then don't pick up tools from the build
3430 # directory.
3431 if test x"$build" != x"$with_cross_host" \
3432 && test x"$build" != x"$target"; then
3433 CANADIAN=yes
3434 GCC_UNWIND_INCLUDE=
3435 GCJ="${target_alias}-gcj"
3437 NATIVE=no
3438 else
3439 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3442 echo "configure:3443: checking for $ac_func" >&5
3443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3445 else
3446 cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3449 /* System header to define __stub macros and hopefully few prototypes,
3450 which can conflict with char $ac_func(); below. */
3451 #include <assert.h>
3452 /* Override any gcc2 internal prototype to avoid an error. */
3453 /* We use char because int might match the return type of a gcc2
3454 builtin and then its argument prototype would still apply. */
3455 char $ac_func();
3457 int main() {
3459 /* The GNU C library defines this for functions which it implements
3460 to always fail with ENOSYS. Some functions are actually named
3461 something starting with __ and the normal name is an alias. */
3462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3463 choke me
3464 #else
3465 $ac_func();
3466 #endif
3468 ; return 0; }
3470 if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3471 rm -rf conftest*
3472 eval "ac_cv_func_$ac_func=yes"
3473 else
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 rm -rf conftest*
3477 eval "ac_cv_func_$ac_func=no"
3479 rm -f conftest*
3482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3483 echo "$ac_t""yes" 1>&6
3484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3485 cat >> confdefs.h <<EOF
3486 #define $ac_tr_func 1
3489 else
3490 echo "$ac_t""no" 1>&6
3492 done
3494 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3497 echo "configure:3498: checking for $ac_func" >&5
3498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3500 else
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 /* System header to define __stub macros and hopefully few prototypes,
3505 which can conflict with char $ac_func(); below. */
3506 #include <assert.h>
3507 /* Override any gcc2 internal prototype to avoid an error. */
3508 /* We use char because int might match the return type of a gcc2
3509 builtin and then its argument prototype would still apply. */
3510 char $ac_func();
3512 int main() {
3514 /* The GNU C library defines this for functions which it implements
3515 to always fail with ENOSYS. Some functions are actually named
3516 something starting with __ and the normal name is an alias. */
3517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3518 choke me
3519 #else
3520 $ac_func();
3521 #endif
3523 ; return 0; }
3525 if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3526 rm -rf conftest*
3527 eval "ac_cv_func_$ac_func=yes"
3528 else
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3531 rm -rf conftest*
3532 eval "ac_cv_func_$ac_func=no"
3534 rm -f conftest*
3537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3538 echo "$ac_t""yes" 1>&6
3539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3540 cat >> confdefs.h <<EOF
3541 #define $ac_tr_func 1
3544 else
3545 echo "$ac_t""no" 1>&6
3547 done
3549 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3552 echo "configure:3553: checking for $ac_func" >&5
3553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3555 else
3556 cat > conftest.$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3559 /* System header to define __stub macros and hopefully few prototypes,
3560 which can conflict with char $ac_func(); below. */
3561 #include <assert.h>
3562 /* Override any gcc2 internal prototype to avoid an error. */
3563 /* We use char because int might match the return type of a gcc2
3564 builtin and then its argument prototype would still apply. */
3565 char $ac_func();
3567 int main() {
3569 /* The GNU C library defines this for functions which it implements
3570 to always fail with ENOSYS. Some functions are actually named
3571 something starting with __ and the normal name is an alias. */
3572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3573 choke me
3574 #else
3575 $ac_func();
3576 #endif
3578 ; return 0; }
3580 if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3581 rm -rf conftest*
3582 eval "ac_cv_func_$ac_func=yes"
3583 else
3584 echo "configure: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3586 rm -rf conftest*
3587 eval "ac_cv_func_$ac_func=no"
3589 rm -f conftest*
3592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3593 echo "$ac_t""yes" 1>&6
3594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3595 cat >> confdefs.h <<EOF
3596 #define $ac_tr_func 1
3599 else
3600 echo "$ac_t""no" 1>&6
3602 done
3604 for ac_func in nl_langinfo setlocale
3606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3607 echo "configure:3608: checking for $ac_func" >&5
3608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3610 else
3611 cat > conftest.$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3614 /* System header to define __stub macros and hopefully few prototypes,
3615 which can conflict with char $ac_func(); below. */
3616 #include <assert.h>
3617 /* Override any gcc2 internal prototype to avoid an error. */
3618 /* We use char because int might match the return type of a gcc2
3619 builtin and then its argument prototype would still apply. */
3620 char $ac_func();
3622 int main() {
3624 /* The GNU C library defines this for functions which it implements
3625 to always fail with ENOSYS. Some functions are actually named
3626 something starting with __ and the normal name is an alias. */
3627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3628 choke me
3629 #else
3630 $ac_func();
3631 #endif
3633 ; return 0; }
3635 if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3636 rm -rf conftest*
3637 eval "ac_cv_func_$ac_func=yes"
3638 else
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3641 rm -rf conftest*
3642 eval "ac_cv_func_$ac_func=no"
3644 rm -f conftest*
3647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3648 echo "$ac_t""yes" 1>&6
3649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3650 cat >> confdefs.h <<EOF
3651 #define $ac_tr_func 1
3654 else
3655 echo "$ac_t""no" 1>&6
3657 done
3659 for ac_func in inet_aton inet_addr
3661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3662 echo "configure:3663: checking for $ac_func" >&5
3663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3665 else
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 /* System header to define __stub macros and hopefully few prototypes,
3670 which can conflict with char $ac_func(); below. */
3671 #include <assert.h>
3672 /* Override any gcc2 internal prototype to avoid an error. */
3673 /* We use char because int might match the return type of a gcc2
3674 builtin and then its argument prototype would still apply. */
3675 char $ac_func();
3677 int main() {
3679 /* The GNU C library defines this for functions which it implements
3680 to always fail with ENOSYS. Some functions are actually named
3681 something starting with __ and the normal name is an alias. */
3682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3683 choke me
3684 #else
3685 $ac_func();
3686 #endif
3688 ; return 0; }
3690 if { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3691 rm -rf conftest*
3692 eval "ac_cv_func_$ac_func=yes"
3693 else
3694 echo "configure: failed program was:" >&5
3695 cat conftest.$ac_ext >&5
3696 rm -rf conftest*
3697 eval "ac_cv_func_$ac_func=no"
3699 rm -f conftest*
3702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3703 echo "$ac_t""yes" 1>&6
3704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3705 cat >> confdefs.h <<EOF
3706 #define $ac_tr_func 1
3708 break
3709 else
3710 echo "$ac_t""no" 1>&6
3712 done
3714 for ac_func in inet_pton uname inet_ntoa
3716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3717 echo "configure:3718: checking for $ac_func" >&5
3718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3720 else
3721 cat > conftest.$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3724 /* System header to define __stub macros and hopefully few prototypes,
3725 which can conflict with char $ac_func(); below. */
3726 #include <assert.h>
3727 /* Override any gcc2 internal prototype to avoid an error. */
3728 /* We use char because int might match the return type of a gcc2
3729 builtin and then its argument prototype would still apply. */
3730 char $ac_func();
3732 int main() {
3734 /* The GNU C library defines this for functions which it implements
3735 to always fail with ENOSYS. Some functions are actually named
3736 something starting with __ and the normal name is an alias. */
3737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3738 choke me
3739 #else
3740 $ac_func();
3741 #endif
3743 ; return 0; }
3745 if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3746 rm -rf conftest*
3747 eval "ac_cv_func_$ac_func=yes"
3748 else
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3751 rm -rf conftest*
3752 eval "ac_cv_func_$ac_func=no"
3754 rm -f conftest*
3757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3760 cat >> confdefs.h <<EOF
3761 #define $ac_tr_func 1
3764 else
3765 echo "$ac_t""no" 1>&6
3767 done
3769 for ac_func in fork execvp pipe sigaction ftruncate
3771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3772 echo "configure:3773: checking for $ac_func" >&5
3773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3775 else
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 /* System header to define __stub macros and hopefully few prototypes,
3780 which can conflict with char $ac_func(); below. */
3781 #include <assert.h>
3782 /* Override any gcc2 internal prototype to avoid an error. */
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3785 char $ac_func();
3787 int main() {
3789 /* The GNU C library defines this for functions which it implements
3790 to always fail with ENOSYS. Some functions are actually named
3791 something starting with __ and the normal name is an alias. */
3792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3793 choke me
3794 #else
3795 $ac_func();
3796 #endif
3798 ; return 0; }
3800 if { (eval echo configure:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3801 rm -rf conftest*
3802 eval "ac_cv_func_$ac_func=yes"
3803 else
3804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3806 rm -rf conftest*
3807 eval "ac_cv_func_$ac_func=no"
3809 rm -f conftest*
3812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3813 echo "$ac_t""yes" 1>&6
3814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3815 cat >> confdefs.h <<EOF
3816 #define $ac_tr_func 1
3819 else
3820 echo "$ac_t""no" 1>&6
3822 done
3824 for ac_hdr in execinfo.h unistd.h dlfcn.h
3826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3828 echo "configure:3829: checking for $ac_hdr" >&5
3829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3831 else
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 #include <$ac_hdr>
3837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3838 { (eval echo configure:3839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3840 if test -z "$ac_err"; then
3841 rm -rf conftest*
3842 eval "ac_cv_header_$ac_safe=yes"
3843 else
3844 echo "$ac_err" >&5
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3847 rm -rf conftest*
3848 eval "ac_cv_header_$ac_safe=no"
3850 rm -f conftest*
3852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3853 echo "$ac_t""yes" 1>&6
3854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3855 cat >> confdefs.h <<EOF
3856 #define $ac_tr_hdr 1
3859 else
3860 echo "$ac_t""no" 1>&6
3862 done
3864 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
3865 echo "configure:3866: checking for backtrace" >&5
3866 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3868 else
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 /* System header to define __stub macros and hopefully few prototypes,
3873 which can conflict with char backtrace(); below. */
3874 #include <assert.h>
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3878 char backtrace();
3880 int main() {
3882 /* The GNU C library defines this for functions which it implements
3883 to always fail with ENOSYS. Some functions are actually named
3884 something starting with __ and the normal name is an alias. */
3885 #if defined (__stub_backtrace) || defined (__stub___backtrace)
3886 choke me
3887 #else
3888 backtrace();
3889 #endif
3891 ; return 0; }
3893 if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3894 rm -rf conftest*
3895 eval "ac_cv_func_backtrace=yes"
3896 else
3897 echo "configure: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3899 rm -rf conftest*
3900 eval "ac_cv_func_backtrace=no"
3902 rm -f conftest*
3905 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
3906 echo "$ac_t""yes" 1>&6
3908 case "$host" in
3909 ia64-*-linux*)
3910 # Has broken backtrace()
3912 s390*-*-linux*)
3913 # Has broken backtrace()
3916 cat >> confdefs.h <<\EOF
3917 #define HAVE_BACKTRACE 1
3921 esac
3923 else
3924 echo "$ac_t""no" 1>&6
3928 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3929 echo "configure:3930: checking for dladdr in -ldl" >&5
3930 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3933 else
3934 ac_save_LIBS="$LIBS"
3935 LIBS="-ldl $LIBS"
3936 cat > conftest.$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3939 /* Override any gcc2 internal prototype to avoid an error. */
3940 /* We use char because int might match the return type of a gcc2
3941 builtin and then its argument prototype would still apply. */
3942 char dladdr();
3944 int main() {
3945 dladdr()
3946 ; return 0; }
3948 if { (eval echo configure:3949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3949 rm -rf conftest*
3950 eval "ac_cv_lib_$ac_lib_var=yes"
3951 else
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3954 rm -rf conftest*
3955 eval "ac_cv_lib_$ac_lib_var=no"
3957 rm -f conftest*
3958 LIBS="$ac_save_LIBS"
3961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
3964 cat >> confdefs.h <<\EOF
3965 #define HAVE_DLADDR 1
3968 else
3969 echo "$ac_t""no" 1>&6
3972 if test x"$build" = x"$host"; then
3973 for ac_file in /proc/self/exe
3976 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3977 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3978 echo "configure:3979: checking for $ac_file" >&5
3979 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3981 else
3982 if test "$cross_compiling" = yes; then
3983 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3984 else
3985 if test -r $ac_file; then
3986 eval "ac_cv_file_$ac_safe=yes"
3987 else
3988 eval "ac_cv_file_$ac_safe=no"
3992 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3994 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3995 cat >> confdefs.h <<EOF
3996 #define $ac_tr_file 1
3999 cat >> confdefs.h <<\EOF
4000 #define HAVE_PROC_SELF_EXE 1
4003 else
4004 echo "$ac_t""no" 1>&6
4007 done
4009 else
4010 case $host in
4011 *-linux*)
4012 cat >> confdefs.h <<\EOF
4013 #define HAVE_PROC_SELF_EXE 1
4017 esac
4022 am_cv_lib_iconv_ldpath=
4023 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4024 if test "${with_libiconv_prefix+set}" = set; then
4025 withval="$with_libiconv_prefix"
4027 for dir in `echo "$withval" | tr : ' '`; do
4028 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
4029 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
4030 done
4035 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4036 echo "configure:4037: checking for iconv" >&5
4037 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4039 else
4041 am_cv_func_iconv="no, consider installing GNU libiconv"
4042 am_cv_lib_iconv=no
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4046 #include <stdlib.h>
4047 #include <iconv.h>
4048 int main() {
4049 iconv_t cd = iconv_open("","");
4050 iconv(cd,NULL,NULL,NULL,NULL);
4051 iconv_close(cd);
4052 ; return 0; }
4054 if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4055 rm -rf conftest*
4056 am_cv_func_iconv=yes
4057 else
4058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4061 rm -f conftest*
4062 if test "$am_cv_func_iconv" != yes; then
4063 am_save_LIBS="$LIBS"
4064 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 #include <stdlib.h>
4069 #include <iconv.h>
4070 int main() {
4071 iconv_t cd = iconv_open("","");
4072 iconv(cd,NULL,NULL,NULL,NULL);
4073 iconv_close(cd);
4074 ; return 0; }
4076 if { (eval echo configure:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4077 rm -rf conftest*
4078 am_cv_lib_iconv=yes
4079 am_cv_func_iconv=yes
4080 else
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 rm -f conftest*
4085 LIBS="$am_save_LIBS"
4090 echo "$ac_t""$am_cv_func_iconv" 1>&6
4091 if test "$am_cv_func_iconv" = yes; then
4092 cat >> confdefs.h <<\EOF
4093 #define HAVE_ICONV 1
4096 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4097 echo "configure:4098: checking for iconv declaration" >&5
4098 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4100 else
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4106 #include <stdlib.h>
4107 #include <iconv.h>
4108 extern
4109 #ifdef __cplusplus
4111 #endif
4112 #if defined(__STDC__) || defined(__cplusplus)
4113 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4114 #else
4115 size_t iconv();
4116 #endif
4118 int main() {
4120 ; return 0; }
4122 if { (eval echo configure:4123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4123 rm -rf conftest*
4124 am_cv_proto_iconv_arg1=""
4125 else
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 rm -rf conftest*
4129 am_cv_proto_iconv_arg1="const"
4131 rm -f conftest*
4132 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);"
4135 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4136 echo "$ac_t""${ac_t:-
4137 }$am_cv_proto_iconv" 1>&6
4138 cat >> confdefs.h <<EOF
4139 #define ICONV_CONST $am_cv_proto_iconv_arg1
4143 LIBICONV=
4144 if test "$am_cv_lib_iconv" = yes; then
4145 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
4149 if test $ac_cv_header_locale_h = yes; then
4150 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4151 echo "configure:4152: checking for LC_MESSAGES" >&5
4152 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4154 else
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4158 #include <locale.h>
4159 int main() {
4160 return LC_MESSAGES
4161 ; return 0; }
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4164 rm -rf conftest*
4165 am_cv_val_LC_MESSAGES=yes
4166 else
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 rm -rf conftest*
4170 am_cv_val_LC_MESSAGES=no
4172 rm -f conftest*
4175 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4176 if test $am_cv_val_LC_MESSAGES = yes; then
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_LC_MESSAGES 1
4183 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4184 echo "configure:4185: checking whether struct tm is in sys/time.h or time.h" >&5
4185 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4187 else
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 #include <sys/types.h>
4192 #include <time.h>
4193 int main() {
4194 struct tm *tp; tp->tm_sec;
4195 ; return 0; }
4197 if { (eval echo configure:4198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4198 rm -rf conftest*
4199 ac_cv_struct_tm=time.h
4200 else
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4203 rm -rf conftest*
4204 ac_cv_struct_tm=sys/time.h
4206 rm -f conftest*
4209 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4210 if test $ac_cv_struct_tm = sys/time.h; then
4211 cat >> confdefs.h <<\EOF
4212 #define TM_IN_SYS_TIME 1
4217 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4218 echo "configure:4219: checking for tm_zone in struct tm" >&5
4219 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4221 else
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 #include <sys/types.h>
4226 #include <$ac_cv_struct_tm>
4227 int main() {
4228 struct tm tm; tm.tm_zone;
4229 ; return 0; }
4231 if { (eval echo configure:4232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4232 rm -rf conftest*
4233 ac_cv_struct_tm_zone=yes
4234 else
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4237 rm -rf conftest*
4238 ac_cv_struct_tm_zone=no
4240 rm -f conftest*
4243 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4244 if test "$ac_cv_struct_tm_zone" = yes; then
4245 cat >> confdefs.h <<\EOF
4246 #define HAVE_TM_ZONE 1
4249 else
4250 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4251 echo "configure:4252: checking for tzname" >&5
4252 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4254 else
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 #include <time.h>
4259 #ifndef tzname /* For SGI. */
4260 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4261 #endif
4262 int main() {
4263 atoi(*tzname);
4264 ; return 0; }
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4267 rm -rf conftest*
4268 ac_cv_var_tzname=yes
4269 else
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4272 rm -rf conftest*
4273 ac_cv_var_tzname=no
4275 rm -f conftest*
4278 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4279 if test $ac_cv_var_tzname = yes; then
4280 cat >> confdefs.h <<\EOF
4281 #define HAVE_TZNAME 1
4288 for ac_func in gethostbyname_r
4290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4291 echo "configure:4292: checking for $ac_func" >&5
4292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4294 else
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 /* System header to define __stub macros and hopefully few prototypes,
4299 which can conflict with char $ac_func(); below. */
4300 #include <assert.h>
4301 /* Override any gcc2 internal prototype to avoid an error. */
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4304 char $ac_func();
4306 int main() {
4308 /* The GNU C library defines this for functions which it implements
4309 to always fail with ENOSYS. Some functions are actually named
4310 something starting with __ and the normal name is an alias. */
4311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4312 choke me
4313 #else
4314 $ac_func();
4315 #endif
4317 ; return 0; }
4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4320 rm -rf conftest*
4321 eval "ac_cv_func_$ac_func=yes"
4322 else
4323 echo "configure: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4325 rm -rf conftest*
4326 eval "ac_cv_func_$ac_func=no"
4328 rm -f conftest*
4331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4332 echo "$ac_t""yes" 1>&6
4333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4334 cat >> confdefs.h <<EOF
4335 #define $ac_tr_func 1
4338 cat >> confdefs.h <<\EOF
4339 #define HAVE_GETHOSTBYNAME_R 1
4342 # There are two different kinds of gethostbyname_r.
4343 # We look for the one that returns `int'.
4344 # Hopefully this check is robust enough.
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 #include <netdb.h>
4350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4351 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
4352 rm -rf conftest*
4354 cat >> confdefs.h <<\EOF
4355 #define GETHOSTBYNAME_R_RETURNS_INT 1
4359 rm -f conftest*
4362 case " $GCINCS " in
4363 *" -D_REENTRANT "*) ;;
4365 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4366 echo "configure:4367: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4367 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4369 else
4371 ac_ext=C
4372 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4373 ac_cpp='$CXXCPP $CPPFLAGS'
4374 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4375 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4376 cross_compiling=$ac_cv_prog_cxx_cross
4378 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4381 #include <netdb.h>
4382 int main() {
4383 gethostbyname_r("", 0, 0);
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_gethostbyname_r_needs_reentrant=no
4389 else
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4392 rm -rf conftest*
4393 CPPFLAGS_SAVE="$CPPFLAGS"
4394 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 #include <netdb.h>
4399 int main() {
4400 gethostbyname_r("", 0, 0);
4401 ; return 0; }
4403 if { (eval echo configure:4404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4404 rm -rf conftest*
4405 libjava_cv_gethostbyname_r_needs_reentrant=yes
4406 else
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4409 rm -rf conftest*
4410 libjava_cv_gethostbyname_r_needs_reentrant=fail
4412 rm -f conftest*
4413 CPPFLAGS="$CPPFLAGS_SAVE"
4416 rm -f conftest*
4417 ac_ext=c
4418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4419 ac_cpp='$CPP $CPPFLAGS'
4420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4422 cross_compiling=$ac_cv_prog_cc_cross
4427 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4428 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4429 cat >> confdefs.h <<\EOF
4430 #define _REENTRANT 1
4435 esac
4437 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4438 echo "configure:4439: checking for struct hostent_data" >&5
4439 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4441 else
4442 cat > conftest.$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4446 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4447 # define _REENTRANT 1
4448 #endif
4449 #include <netdb.h>
4450 int main() {
4451 struct hostent_data data;
4452 ; return 0; }
4454 if { (eval echo configure:4455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4455 rm -rf conftest*
4456 libjava_cv_struct_hostent_data=yes
4457 else
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4460 rm -rf conftest*
4461 libjava_cv_struct_hostent_data=no
4463 rm -f conftest*
4466 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4467 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4468 cat >> confdefs.h <<\EOF
4469 #define HAVE_STRUCT_HOSTENT_DATA 1
4474 else
4475 echo "$ac_t""no" 1>&6
4477 done
4480 # FIXME: libjava source code expects to find a prototype for
4481 # gethostbyaddr_r in netdb.h. The outer check ensures that
4482 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4483 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4484 # linkage check is enough, yet C++ code requires proper prototypes.)
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 #include <netdb.h>
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
4492 rm -rf conftest*
4494 for ac_func in gethostbyaddr_r
4496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4497 echo "configure:4498: checking for $ac_func" >&5
4498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4500 else
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 /* System header to define __stub macros and hopefully few prototypes,
4505 which can conflict with char $ac_func(); below. */
4506 #include <assert.h>
4507 /* Override any gcc2 internal prototype to avoid an error. */
4508 /* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4510 char $ac_func();
4512 int main() {
4514 /* The GNU C library defines this for functions which it implements
4515 to always fail with ENOSYS. Some functions are actually named
4516 something starting with __ and the normal name is an alias. */
4517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4518 choke me
4519 #else
4520 $ac_func();
4521 #endif
4523 ; return 0; }
4525 if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4526 rm -rf conftest*
4527 eval "ac_cv_func_$ac_func=yes"
4528 else
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4531 rm -rf conftest*
4532 eval "ac_cv_func_$ac_func=no"
4534 rm -f conftest*
4537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4538 echo "$ac_t""yes" 1>&6
4539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4540 cat >> confdefs.h <<EOF
4541 #define $ac_tr_func 1
4544 cat >> confdefs.h <<\EOF
4545 #define HAVE_GETHOSTBYADDR_R 1
4548 # There are two different kinds of gethostbyaddr_r.
4549 # We look for the one that returns `int'.
4550 # Hopefully this check is robust enough.
4551 cat > conftest.$ac_ext <<EOF
4552 #line 4553 "configure"
4553 #include "confdefs.h"
4554 #include <netdb.h>
4556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4557 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4558 rm -rf conftest*
4560 cat >> confdefs.h <<\EOF
4561 #define GETHOSTBYADDR_R_RETURNS_INT 1
4565 rm -f conftest*
4567 else
4568 echo "$ac_t""no" 1>&6
4570 done
4573 rm -f conftest*
4576 for ac_func in gethostname
4578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4579 echo "configure:4580: checking for $ac_func" >&5
4580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4582 else
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4586 /* System header to define __stub macros and hopefully few prototypes,
4587 which can conflict with char $ac_func(); below. */
4588 #include <assert.h>
4589 /* Override any gcc2 internal prototype to avoid an error. */
4590 /* We use char because int might match the return type of a gcc2
4591 builtin and then its argument prototype would still apply. */
4592 char $ac_func();
4594 int main() {
4596 /* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600 choke me
4601 #else
4602 $ac_func();
4603 #endif
4605 ; return 0; }
4607 if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4608 rm -rf conftest*
4609 eval "ac_cv_func_$ac_func=yes"
4610 else
4611 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4613 rm -rf conftest*
4614 eval "ac_cv_func_$ac_func=no"
4616 rm -f conftest*
4619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4620 echo "$ac_t""yes" 1>&6
4621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4622 cat >> confdefs.h <<EOF
4623 #define $ac_tr_func 1
4626 cat >> confdefs.h <<\EOF
4627 #define HAVE_GETHOSTNAME 1
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 #include <unistd.h>
4635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636 egrep "gethostname" >/dev/null 2>&1; then
4637 rm -rf conftest*
4639 cat >> confdefs.h <<\EOF
4640 #define HAVE_GETHOSTNAME_DECL 1
4644 rm -f conftest*
4646 else
4647 echo "$ac_t""no" 1>&6
4649 done
4652 # Look for these functions in the thread library, but only bother
4653 # if using POSIX threads.
4654 if test "$THREADS" = posix; then
4655 save_LIBS="$LIBS"
4656 LIBS="$LIBS $THREADLIBS"
4657 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4658 # E.g., Solaris.
4659 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4662 echo "configure:4663: checking for $ac_func" >&5
4663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4665 else
4666 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure"
4668 #include "confdefs.h"
4669 /* System header to define __stub macros and hopefully few prototypes,
4670 which can conflict with char $ac_func(); below. */
4671 #include <assert.h>
4672 /* Override any gcc2 internal prototype to avoid an error. */
4673 /* We use char because int might match the return type of a gcc2
4674 builtin and then its argument prototype would still apply. */
4675 char $ac_func();
4677 int main() {
4679 /* The GNU C library defines this for functions which it implements
4680 to always fail with ENOSYS. Some functions are actually named
4681 something starting with __ and the normal name is an alias. */
4682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4683 choke me
4684 #else
4685 $ac_func();
4686 #endif
4688 ; return 0; }
4690 if { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4691 rm -rf conftest*
4692 eval "ac_cv_func_$ac_func=yes"
4693 else
4694 echo "configure: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4696 rm -rf conftest*
4697 eval "ac_cv_func_$ac_func=no"
4699 rm -f conftest*
4702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4703 echo "$ac_t""yes" 1>&6
4704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4705 cat >> confdefs.h <<EOF
4706 #define $ac_tr_func 1
4709 else
4710 echo "$ac_t""no" 1>&6
4712 done
4715 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4716 # Solaris 7 the name librt is preferred.
4717 for ac_func in sched_yield
4719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4720 echo "configure:4721: checking for $ac_func" >&5
4721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4723 else
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4727 /* System header to define __stub macros and hopefully few prototypes,
4728 which can conflict with char $ac_func(); below. */
4729 #include <assert.h>
4730 /* Override any gcc2 internal prototype to avoid an error. */
4731 /* We use char because int might match the return type of a gcc2
4732 builtin and then its argument prototype would still apply. */
4733 char $ac_func();
4735 int main() {
4737 /* The GNU C library defines this for functions which it implements
4738 to always fail with ENOSYS. Some functions are actually named
4739 something starting with __ and the normal name is an alias. */
4740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4741 choke me
4742 #else
4743 $ac_func();
4744 #endif
4746 ; return 0; }
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4749 rm -rf conftest*
4750 eval "ac_cv_func_$ac_func=yes"
4751 else
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4754 rm -rf conftest*
4755 eval "ac_cv_func_$ac_func=no"
4757 rm -f conftest*
4760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4761 echo "$ac_t""yes" 1>&6
4762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4763 cat >> confdefs.h <<EOF
4764 #define $ac_tr_func 1
4767 else
4768 echo "$ac_t""no" 1>&6
4769 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4770 echo "configure:4771: checking for sched_yield in -lrt" >&5
4771 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4774 else
4775 ac_save_LIBS="$LIBS"
4776 LIBS="-lrt $LIBS"
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4783 char sched_yield();
4785 int main() {
4786 sched_yield()
4787 ; return 0; }
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4790 rm -rf conftest*
4791 eval "ac_cv_lib_$ac_lib_var=yes"
4792 else
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4795 rm -rf conftest*
4796 eval "ac_cv_lib_$ac_lib_var=no"
4798 rm -f conftest*
4799 LIBS="$ac_save_LIBS"
4802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4805 cat >> confdefs.h <<\EOF
4806 #define HAVE_SCHED_YIELD 1
4809 THREADLIBS="$THREADLIBS -lrt"
4810 THREADSPEC="$THREADSPEC -lrt"
4811 else
4812 echo "$ac_t""no" 1>&6
4814 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4815 echo "configure:4816: checking for sched_yield in -lposix4" >&5
4816 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4819 else
4820 ac_save_LIBS="$LIBS"
4821 LIBS="-lposix4 $LIBS"
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4825 /* Override any gcc2 internal prototype to avoid an error. */
4826 /* We use char because int might match the return type of a gcc2
4827 builtin and then its argument prototype would still apply. */
4828 char sched_yield();
4830 int main() {
4831 sched_yield()
4832 ; return 0; }
4834 if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4835 rm -rf conftest*
4836 eval "ac_cv_lib_$ac_lib_var=yes"
4837 else
4838 echo "configure: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4840 rm -rf conftest*
4841 eval "ac_cv_lib_$ac_lib_var=no"
4843 rm -f conftest*
4844 LIBS="$ac_save_LIBS"
4847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4848 echo "$ac_t""yes" 1>&6
4850 cat >> confdefs.h <<\EOF
4851 #define HAVE_SCHED_YIELD 1
4854 THREADLIBS="$THREADLIBS -lposix4"
4855 THREADSPEC="$THREADSPEC -lposix4"
4856 else
4857 echo "$ac_t""no" 1>&6
4863 done
4865 LIBS="$save_LIBS"
4867 # We can save a little space at runtime if the mutex has m_count
4868 # or __m_count. This is a nice hack for Linux.
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 #include <pthread.h>
4873 int main() {
4875 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4877 ; return 0; }
4879 if { (eval echo configure:4880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4880 rm -rf conftest*
4881 cat >> confdefs.h <<\EOF
4882 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4885 else
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4888 rm -rf conftest*
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 #include <pthread.h>
4894 int main() {
4896 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4898 ; return 0; }
4900 if { (eval echo configure:4901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4901 rm -rf conftest*
4902 cat >> confdefs.h <<\EOF
4903 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4906 else
4907 echo "configure: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 rm -f conftest*
4912 rm -f conftest*
4915 # We require a way to get the time.
4916 time_found=no
4917 for ac_func in gettimeofday time ftime
4919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4920 echo "configure:4921: checking for $ac_func" >&5
4921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4923 else
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4927 /* System header to define __stub macros and hopefully few prototypes,
4928 which can conflict with char $ac_func(); below. */
4929 #include <assert.h>
4930 /* Override any gcc2 internal prototype to avoid an error. */
4931 /* We use char because int might match the return type of a gcc2
4932 builtin and then its argument prototype would still apply. */
4933 char $ac_func();
4935 int main() {
4937 /* The GNU C library defines this for functions which it implements
4938 to always fail with ENOSYS. Some functions are actually named
4939 something starting with __ and the normal name is an alias. */
4940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4941 choke me
4942 #else
4943 $ac_func();
4944 #endif
4946 ; return 0; }
4948 if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4949 rm -rf conftest*
4950 eval "ac_cv_func_$ac_func=yes"
4951 else
4952 echo "configure: failed program was:" >&5
4953 cat conftest.$ac_ext >&5
4954 rm -rf conftest*
4955 eval "ac_cv_func_$ac_func=no"
4957 rm -f conftest*
4960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4963 cat >> confdefs.h <<EOF
4964 #define $ac_tr_func 1
4966 time_found=yes
4967 else
4968 echo "$ac_t""no" 1>&6
4970 done
4972 if test "$time_found" = no; then
4973 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4976 for ac_func in memmove
4978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4979 echo "configure:4980: checking for $ac_func" >&5
4980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4982 else
4983 cat > conftest.$ac_ext <<EOF
4984 #line 4985 "configure"
4985 #include "confdefs.h"
4986 /* System header to define __stub macros and hopefully few prototypes,
4987 which can conflict with char $ac_func(); below. */
4988 #include <assert.h>
4989 /* Override any gcc2 internal prototype to avoid an error. */
4990 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */
4992 char $ac_func();
4994 int main() {
4996 /* The GNU C library defines this for functions which it implements
4997 to always fail with ENOSYS. Some functions are actually named
4998 something starting with __ and the normal name is an alias. */
4999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5000 choke me
5001 #else
5002 $ac_func();
5003 #endif
5005 ; return 0; }
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5008 rm -rf conftest*
5009 eval "ac_cv_func_$ac_func=yes"
5010 else
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5013 rm -rf conftest*
5014 eval "ac_cv_func_$ac_func=no"
5016 rm -f conftest*
5019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5020 echo "$ac_t""yes" 1>&6
5021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5022 cat >> confdefs.h <<EOF
5023 #define $ac_tr_func 1
5026 else
5027 echo "$ac_t""no" 1>&6
5029 done
5032 # We require memcpy.
5033 memcpy_found=no
5034 for ac_func in memcpy
5036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5037 echo "configure:5038: checking for $ac_func" >&5
5038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5040 else
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 /* System header to define __stub macros and hopefully few prototypes,
5045 which can conflict with char $ac_func(); below. */
5046 #include <assert.h>
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5050 char $ac_func();
5052 int main() {
5054 /* The GNU C library defines this for functions which it implements
5055 to always fail with ENOSYS. Some functions are actually named
5056 something starting with __ and the normal name is an alias. */
5057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5058 choke me
5059 #else
5060 $ac_func();
5061 #endif
5063 ; return 0; }
5065 if { (eval echo configure:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5066 rm -rf conftest*
5067 eval "ac_cv_func_$ac_func=yes"
5068 else
5069 echo "configure: failed program was:" >&5
5070 cat conftest.$ac_ext >&5
5071 rm -rf conftest*
5072 eval "ac_cv_func_$ac_func=no"
5074 rm -f conftest*
5077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5080 cat >> confdefs.h <<EOF
5081 #define $ac_tr_func 1
5083 memcpy_found=yes
5084 else
5085 echo "$ac_t""no" 1>&6
5087 done
5089 if test "$memcpy_found" = no; then
5090 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
5093 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5094 echo "configure:5095: checking for dlopen in -ldl" >&5
5095 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5098 else
5099 ac_save_LIBS="$LIBS"
5100 LIBS="-ldl $LIBS"
5101 cat > conftest.$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5104 /* Override any gcc2 internal prototype to avoid an error. */
5105 /* We use char because int might match the return type of a gcc2
5106 builtin and then its argument prototype would still apply. */
5107 char dlopen();
5109 int main() {
5110 dlopen()
5111 ; return 0; }
5113 if { (eval echo configure:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5114 rm -rf conftest*
5115 eval "ac_cv_lib_$ac_lib_var=yes"
5116 else
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5119 rm -rf conftest*
5120 eval "ac_cv_lib_$ac_lib_var=no"
5122 rm -f conftest*
5123 LIBS="$ac_save_LIBS"
5126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5127 echo "$ac_t""yes" 1>&6
5129 cat >> confdefs.h <<\EOF
5130 #define HAVE_DLOPEN 1
5133 else
5134 echo "$ac_t""no" 1>&6
5138 # Some library-finding code we stole from Tcl.
5139 #--------------------------------------------------------------------
5140 # Check for the existence of the -lsocket and -lnsl libraries.
5141 # The order here is important, so that they end up in the right
5142 # order in the command line generated by make. Here are some
5143 # special considerations:
5144 # 1. Use "connect" and "accept" to check for -lsocket, and
5145 # "gethostbyname" to check for -lnsl.
5146 # 2. Use each function name only once: can't redo a check because
5147 # autoconf caches the results of the last check and won't redo it.
5148 # 3. Use -lnsl and -lsocket only if they supply procedures that
5149 # aren't already present in the normal libraries. This is because
5150 # IRIX 5.2 has libraries, but they aren't needed and they're
5151 # bogus: they goof up name resolution if used.
5152 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
5153 # To get around this problem, check for both libraries together
5154 # if -lsocket doesn't work by itself.
5155 #--------------------------------------------------------------------
5157 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
5158 echo "configure:5159: checking for socket libraries" >&5
5159 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
5160 echo $ac_n "(cached) $ac_c" 1>&6
5161 else
5162 gcj_cv_lib_sockets=
5163 gcj_checkBoth=0
5164 unset ac_cv_func_connect
5165 echo $ac_n "checking for connect""... $ac_c" 1>&6
5166 echo "configure:5167: checking for connect" >&5
5167 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5168 echo $ac_n "(cached) $ac_c" 1>&6
5169 else
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5173 /* System header to define __stub macros and hopefully few prototypes,
5174 which can conflict with char connect(); below. */
5175 #include <assert.h>
5176 /* Override any gcc2 internal prototype to avoid an error. */
5177 /* We use char because int might match the return type of a gcc2
5178 builtin and then its argument prototype would still apply. */
5179 char connect();
5181 int main() {
5183 /* The GNU C library defines this for functions which it implements
5184 to always fail with ENOSYS. Some functions are actually named
5185 something starting with __ and the normal name is an alias. */
5186 #if defined (__stub_connect) || defined (__stub___connect)
5187 choke me
5188 #else
5189 connect();
5190 #endif
5192 ; return 0; }
5194 if { (eval echo configure:5195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5195 rm -rf conftest*
5196 eval "ac_cv_func_connect=yes"
5197 else
5198 echo "configure: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5200 rm -rf conftest*
5201 eval "ac_cv_func_connect=no"
5203 rm -f conftest*
5206 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5207 echo "$ac_t""yes" 1>&6
5208 gcj_checkSocket=0
5209 else
5210 echo "$ac_t""no" 1>&6
5211 gcj_checkSocket=1
5214 if test "$gcj_checkSocket" = 1; then
5215 unset ac_cv_func_connect
5216 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5217 echo "configure:5218: checking for main in -lsocket" >&5
5218 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5220 echo $ac_n "(cached) $ac_c" 1>&6
5221 else
5222 ac_save_LIBS="$LIBS"
5223 LIBS="-lsocket $LIBS"
5224 cat > conftest.$ac_ext <<EOF
5225 #line 5226 "configure"
5226 #include "confdefs.h"
5228 int main() {
5229 main()
5230 ; return 0; }
5232 if { (eval echo configure:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 rm -rf conftest*
5234 eval "ac_cv_lib_$ac_lib_var=yes"
5235 else
5236 echo "configure: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5238 rm -rf conftest*
5239 eval "ac_cv_lib_$ac_lib_var=no"
5241 rm -f conftest*
5242 LIBS="$ac_save_LIBS"
5245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5246 echo "$ac_t""yes" 1>&6
5247 gcj_cv_lib_sockets="-lsocket"
5248 else
5249 echo "$ac_t""no" 1>&6
5250 gcj_checkBoth=1
5254 if test "$gcj_checkBoth" = 1; then
5255 gcj_oldLibs=$LIBS
5256 LIBS="$LIBS -lsocket -lnsl"
5257 unset ac_cv_func_accept
5258 echo $ac_n "checking for accept""... $ac_c" 1>&6
5259 echo "configure:5260: checking for accept" >&5
5260 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5262 else
5263 cat > conftest.$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 /* System header to define __stub macros and hopefully few prototypes,
5267 which can conflict with char accept(); below. */
5268 #include <assert.h>
5269 /* Override any gcc2 internal prototype to avoid an error. */
5270 /* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */
5272 char accept();
5274 int main() {
5276 /* The GNU C library defines this for functions which it implements
5277 to always fail with ENOSYS. Some functions are actually named
5278 something starting with __ and the normal name is an alias. */
5279 #if defined (__stub_accept) || defined (__stub___accept)
5280 choke me
5281 #else
5282 accept();
5283 #endif
5285 ; return 0; }
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5288 rm -rf conftest*
5289 eval "ac_cv_func_accept=yes"
5290 else
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 rm -rf conftest*
5294 eval "ac_cv_func_accept=no"
5296 rm -f conftest*
5299 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5300 echo "$ac_t""yes" 1>&6
5301 gcj_checkNsl=0
5302 gcj_cv_lib_sockets="-lsocket -lnsl"
5303 else
5304 echo "$ac_t""no" 1>&6
5307 unset ac_cv_func_accept
5308 LIBS=$gcj_oldLibs
5310 unset ac_cv_func_gethostbyname
5311 gcj_oldLibs=$LIBS
5312 LIBS="$LIBS $gcj_cv_lib_sockets"
5313 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5314 echo "configure:5315: checking for gethostbyname" >&5
5315 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5317 else
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5321 /* System header to define __stub macros and hopefully few prototypes,
5322 which can conflict with char gethostbyname(); below. */
5323 #include <assert.h>
5324 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5327 char gethostbyname();
5329 int main() {
5331 /* The GNU C library defines this for functions which it implements
5332 to always fail with ENOSYS. Some functions are actually named
5333 something starting with __ and the normal name is an alias. */
5334 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5335 choke me
5336 #else
5337 gethostbyname();
5338 #endif
5340 ; return 0; }
5342 if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5343 rm -rf conftest*
5344 eval "ac_cv_func_gethostbyname=yes"
5345 else
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5348 rm -rf conftest*
5349 eval "ac_cv_func_gethostbyname=no"
5351 rm -f conftest*
5354 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5355 echo "$ac_t""yes" 1>&6
5357 else
5358 echo "$ac_t""no" 1>&6
5359 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5360 echo "configure:5361: checking for main in -lnsl" >&5
5361 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5363 echo $ac_n "(cached) $ac_c" 1>&6
5364 else
5365 ac_save_LIBS="$LIBS"
5366 LIBS="-lnsl $LIBS"
5367 cat > conftest.$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5371 int main() {
5372 main()
5373 ; return 0; }
5375 if { (eval echo configure:5376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5376 rm -rf conftest*
5377 eval "ac_cv_lib_$ac_lib_var=yes"
5378 else
5379 echo "configure: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 rm -rf conftest*
5382 eval "ac_cv_lib_$ac_lib_var=no"
5384 rm -f conftest*
5385 LIBS="$ac_save_LIBS"
5388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5389 echo "$ac_t""yes" 1>&6
5390 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5391 else
5392 echo "$ac_t""no" 1>&6
5397 unset ac_cv_func_gethostbyname
5398 LIBS=$gcj_oldLIBS
5402 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5403 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5405 if test "$with_system_zlib" = yes; then
5406 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5407 echo "configure:5408: checking for deflate in -lz" >&5
5408 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5410 echo $ac_n "(cached) $ac_c" 1>&6
5411 else
5412 ac_save_LIBS="$LIBS"
5413 LIBS="-lz $LIBS"
5414 cat > conftest.$ac_ext <<EOF
5415 #line 5416 "configure"
5416 #include "confdefs.h"
5417 /* Override any gcc2 internal prototype to avoid an error. */
5418 /* We use char because int might match the return type of a gcc2
5419 builtin and then its argument prototype would still apply. */
5420 char deflate();
5422 int main() {
5423 deflate()
5424 ; return 0; }
5426 if { (eval echo configure:5427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5427 rm -rf conftest*
5428 eval "ac_cv_lib_$ac_lib_var=yes"
5429 else
5430 echo "configure: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5432 rm -rf conftest*
5433 eval "ac_cv_lib_$ac_lib_var=no"
5435 rm -f conftest*
5436 LIBS="$ac_save_LIBS"
5439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5440 echo "$ac_t""yes" 1>&6
5441 ZLIBSPEC=-lz
5442 else
5443 echo "$ac_t""no" 1>&6
5444 ZLIBSPEC=
5449 # On Solaris, and maybe other architectures, the Boehm collector
5450 # requires -ldl.
5451 if test "$GC" = boehm; then
5452 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5453 echo "configure:5454: checking for main in -ldl" >&5
5454 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5457 else
5458 ac_save_LIBS="$LIBS"
5459 LIBS="-ldl $LIBS"
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5464 int main() {
5465 main()
5466 ; return 0; }
5468 if { (eval echo configure:5469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5469 rm -rf conftest*
5470 eval "ac_cv_lib_$ac_lib_var=yes"
5471 else
5472 echo "configure: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5474 rm -rf conftest*
5475 eval "ac_cv_lib_$ac_lib_var=no"
5477 rm -f conftest*
5478 LIBS="$ac_save_LIBS"
5481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5482 echo "$ac_t""yes" 1>&6
5483 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5484 else
5485 echo "$ac_t""no" 1>&6
5490 if test -z "${with_multisubdir}"; then
5491 builddotdot=.
5492 else
5494 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5497 if test -x "${builddotdot}/../../gcc/gcj"; then
5498 dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
5499 GCJ="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/"
5500 else
5501 CANADIAN=yes
5502 NULL_TARGET=yes
5503 GCJ="gcj -B`${PWDCMD-pwd}`/"
5507 # Create it, so that compile/link tests don't fail
5508 test -f libgcj.spec || touch libgcj.spec
5510 # We must search the source tree for java.lang, since we still don't
5511 # have libgcj.jar nor java/lang/*.class
5512 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5513 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
5515 # Since some classes depend on this one, we need its source available
5516 # before we can do any GCJ compilation test :-(
5517 if test ! -f gnu/classpath/Configuration.java; then
5518 test -d gnu || mkdir gnu
5519 test -d gnu/classpath || mkdir gnu/classpath
5520 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5521 < $srcdir/gnu/classpath/Configuration.java.in \
5522 > gnu/classpath/Configuration.java
5523 # We do not want to redirect the output of the grep below to /dev/null,
5524 # but we add /dev/null to the input list so that grep will print the
5525 # filename of Configuration.java in case it finds any matches.
5526 if grep @ gnu/classpath/Configuration.java /dev/null; then
5527 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5531 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5532 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5534 echo "configure:5535: checking for $ac_word" >&5
5535 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5537 else
5538 if test -n "$GCJ"; then
5539 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5540 else
5541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5542 ac_dummy="$PATH"
5543 for ac_dir in $ac_dummy; do
5544 test -z "$ac_dir" && ac_dir=.
5545 if test -f $ac_dir/$ac_word; then
5546 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5547 break
5549 done
5550 IFS="$ac_save_ifs"
5553 GCJ="$ac_cv_prog_GCJ"
5554 if test -n "$GCJ"; then
5555 echo "$ac_t""$GCJ" 1>&6
5556 else
5557 echo "$ac_t""no" 1>&6
5561 if test -z "$ac_cv_prog_GCJ"; then
5562 if test -n "$ac_tool_prefix"; then
5563 # Extract the first word of "gcj", so it can be a program name with args.
5564 set dummy gcj; ac_word=$2
5565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5566 echo "configure:5567: checking for $ac_word" >&5
5567 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5569 else
5570 if test -n "$GCJ"; then
5571 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5572 else
5573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5574 ac_dummy="$PATH"
5575 for ac_dir in $ac_dummy; do
5576 test -z "$ac_dir" && ac_dir=.
5577 if test -f $ac_dir/$ac_word; then
5578 ac_cv_prog_GCJ="gcj"
5579 break
5581 done
5582 IFS="$ac_save_ifs"
5583 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5586 GCJ="$ac_cv_prog_GCJ"
5587 if test -n "$GCJ"; then
5588 echo "$ac_t""$GCJ" 1>&6
5589 else
5590 echo "$ac_t""no" 1>&6
5593 else
5594 GCJ="no"
5598 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5602 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5603 lt_save_CC="$CC"
5604 lt_save_CFLAGS="$CFLAGS"
5605 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5606 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5607 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5608 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5609 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5610 deplibs_check_method="$deplibs_check_method" \
5611 file_magic_cmd="$file_magic_cmd" \
5612 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5613 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5614 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5615 CC="$lt_save_CC"
5616 CFLAGS="$lt_save_CFLAGS"
5618 # Redirect the config.log output again, so that the ltconfig log is not
5619 # clobbered by the next message.
5620 exec 5>>./config.log
5625 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5627 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5628 echo "configure:5629: checking size of void *" >&5
5629 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5631 else
5632 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5633 cat > conftest.$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5636 #include "confdefs.h"
5637 #include <sys/types.h>
5640 int main() {
5641 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5642 ; return 0; }
5644 if { (eval echo configure:5645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5645 rm -rf conftest*
5646 ac_cv_sizeof_void_p=$ac_size
5647 else
5648 echo "configure: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5651 rm -f conftest*
5652 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5653 done
5657 if test x$ac_cv_sizeof_void_p = x ; then
5658 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
5660 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5661 cat >> confdefs.h <<EOF
5662 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5667 ZLIBS=
5668 SYS_ZLIBS=
5669 ZINCS=
5671 if test -z "$ZLIBSPEC"; then
5672 # Use zlib from the GCC tree.
5673 ZINCS='-I$(top_srcdir)/../zlib'
5674 ZLIBS=../zlib/libzgcj_convenience.la
5675 else
5676 # System's zlib.
5677 SYS_ZLIBS="$ZLIBSPEC"
5688 if test "$CANADIAN" = yes; then
5689 CANADIAN_TRUE=
5690 CANADIAN_FALSE='#'
5691 else
5692 CANADIAN_TRUE='#'
5693 CANADIAN_FALSE=
5697 if test "$NULL_TARGET" = yes; then
5698 NULL_TARGET_TRUE=
5699 NULL_TARGET_FALSE='#'
5700 else
5701 NULL_TARGET_TRUE='#'
5702 NULL_TARGET_FALSE=
5706 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5707 NATIVE_TRUE=
5708 NATIVE_FALSE='#'
5709 else
5710 NATIVE_TRUE='#'
5711 NATIVE_FALSE=
5715 if test -z "$with_cross_host"; then
5716 USE_LIBDIR_TRUE=
5717 USE_LIBDIR_FALSE='#'
5718 else
5719 USE_LIBDIR_TRUE='#'
5720 USE_LIBDIR_FALSE=
5724 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5725 NEEDS_DATA_START_TRUE=
5726 NEEDS_DATA_START_FALSE='#'
5727 else
5728 NEEDS_DATA_START_TRUE='#'
5729 NEEDS_DATA_START_FALSE=
5733 # Determine gcj version number.
5735 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
5737 GCJVERSION=$gcjversion
5739 cat >> confdefs.h <<EOF
5740 #define GCJVERSION "$GCJVERSION"
5744 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5745 echo "configure:5746: checking for g++ -ffloat-store bug" >&5
5746 save_CFLAGS="$CFLAGS"
5747 CFLAGS="-x c++ -O2 -ffloat-store"
5748 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5751 #include <math.h>
5752 int main() {
5754 ; return 0; }
5756 if { (eval echo configure:5757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5757 rm -rf conftest*
5758 echo "$ac_t""no" 1>&6
5759 else
5760 echo "configure: failed program was:" >&5
5761 cat conftest.$ac_ext >&5
5762 rm -rf conftest*
5763 cat >> confdefs.h <<\EOF
5764 #define __NO_MATH_INLINES 1
5767 echo "$ac_t""yes" 1>&6
5769 rm -f conftest*
5770 CFLAGS="$save_CFLAGS"
5772 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 net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
5774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5776 echo "configure:5777: checking for $ac_hdr" >&5
5777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5779 else
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5783 #include <$ac_hdr>
5785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5786 { (eval echo configure:5787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5788 if test -z "$ac_err"; then
5789 rm -rf conftest*
5790 eval "ac_cv_header_$ac_safe=yes"
5791 else
5792 echo "$ac_err" >&5
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 rm -rf conftest*
5796 eval "ac_cv_header_$ac_safe=no"
5798 rm -f conftest*
5800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5801 echo "$ac_t""yes" 1>&6
5802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5803 cat >> confdefs.h <<EOF
5804 #define $ac_tr_hdr 1
5807 else
5808 echo "$ac_t""no" 1>&6
5810 done
5812 for ac_hdr in dirent.h
5814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5816 echo "configure:5817: checking for $ac_hdr" >&5
5817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5819 else
5820 cat > conftest.$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5823 #include <$ac_hdr>
5825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5826 { (eval echo configure:5827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5828 if test -z "$ac_err"; then
5829 rm -rf conftest*
5830 eval "ac_cv_header_$ac_safe=yes"
5831 else
5832 echo "$ac_err" >&5
5833 echo "configure: failed program was:" >&5
5834 cat conftest.$ac_ext >&5
5835 rm -rf conftest*
5836 eval "ac_cv_header_$ac_safe=no"
5838 rm -f conftest*
5840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5841 echo "$ac_t""yes" 1>&6
5842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5843 cat >> confdefs.h <<EOF
5844 #define $ac_tr_hdr 1
5847 else
5848 echo "$ac_t""no" 1>&6
5850 done
5852 for ac_hdr in inttypes.h
5854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5856 echo "configure:5857: checking for $ac_hdr" >&5
5857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5858 echo $ac_n "(cached) $ac_c" 1>&6
5859 else
5860 cat > conftest.$ac_ext <<EOF
5861 #line 5862 "configure"
5862 #include "confdefs.h"
5863 #include <$ac_hdr>
5865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5866 { (eval echo configure:5867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5868 if test -z "$ac_err"; then
5869 rm -rf conftest*
5870 eval "ac_cv_header_$ac_safe=yes"
5871 else
5872 echo "$ac_err" >&5
5873 echo "configure: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5875 rm -rf conftest*
5876 eval "ac_cv_header_$ac_safe=no"
5878 rm -f conftest*
5880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5881 echo "$ac_t""yes" 1>&6
5882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5883 cat >> confdefs.h <<EOF
5884 #define $ac_tr_hdr 1
5887 cat >> confdefs.h <<\EOF
5888 #define HAVE_INTTYPES_H 1
5891 cat >> confdefs.h <<\EOF
5892 #define JV_HAVE_INTTYPES_H 1
5896 else
5897 echo "$ac_t""no" 1>&6
5899 done
5901 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5902 echo "configure:5903: checking for sys/wait.h that is POSIX.1 compatible" >&5
5903 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5904 echo $ac_n "(cached) $ac_c" 1>&6
5905 else
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5909 #include <sys/types.h>
5910 #include <sys/wait.h>
5911 #ifndef WEXITSTATUS
5912 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5913 #endif
5914 #ifndef WIFEXITED
5915 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5916 #endif
5917 int main() {
5918 int s;
5919 wait (&s);
5920 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5921 ; return 0; }
5923 if { (eval echo configure:5924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5924 rm -rf conftest*
5925 ac_cv_header_sys_wait_h=yes
5926 else
5927 echo "configure: failed program was:" >&5
5928 cat conftest.$ac_ext >&5
5929 rm -rf conftest*
5930 ac_cv_header_sys_wait_h=no
5932 rm -f conftest*
5935 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5936 if test $ac_cv_header_sys_wait_h = yes; then
5937 cat >> confdefs.h <<\EOF
5938 #define HAVE_SYS_WAIT_H 1
5944 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5945 echo "configure:5946: checking for ANSI C header files" >&5
5946 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5947 echo $ac_n "(cached) $ac_c" 1>&6
5948 else
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 #include <stdlib.h>
5953 #include <stdarg.h>
5954 #include <string.h>
5955 #include <float.h>
5957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5958 { (eval echo configure:5959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5960 if test -z "$ac_err"; then
5961 rm -rf conftest*
5962 ac_cv_header_stdc=yes
5963 else
5964 echo "$ac_err" >&5
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5967 rm -rf conftest*
5968 ac_cv_header_stdc=no
5970 rm -f conftest*
5972 if test $ac_cv_header_stdc = yes; then
5973 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5974 cat > conftest.$ac_ext <<EOF
5975 #line 5976 "configure"
5976 #include "confdefs.h"
5977 #include <string.h>
5979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5980 egrep "memchr" >/dev/null 2>&1; then
5982 else
5983 rm -rf conftest*
5984 ac_cv_header_stdc=no
5986 rm -f conftest*
5990 if test $ac_cv_header_stdc = yes; then
5991 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5995 #include <stdlib.h>
5997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5998 egrep "free" >/dev/null 2>&1; then
6000 else
6001 rm -rf conftest*
6002 ac_cv_header_stdc=no
6004 rm -f conftest*
6008 if test $ac_cv_header_stdc = yes; then
6009 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6010 if test "$cross_compiling" = yes; then
6012 else
6013 cat > conftest.$ac_ext <<EOF
6014 #line 6015 "configure"
6015 #include "confdefs.h"
6016 #include <ctype.h>
6017 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6018 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6020 int main () { int i; for (i = 0; i < 256; i++)
6021 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6022 exit (0); }
6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6026 then
6028 else
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 rm -fr conftest*
6032 ac_cv_header_stdc=no
6034 rm -fr conftest*
6040 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6041 if test $ac_cv_header_stdc = yes; then
6042 cat >> confdefs.h <<\EOF
6043 #define STDC_HEADERS 1
6048 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6049 echo "configure:6050: checking for ssize_t" >&5
6050 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6051 echo $ac_n "(cached) $ac_c" 1>&6
6052 else
6053 cat > conftest.$ac_ext <<EOF
6054 #line 6055 "configure"
6055 #include "confdefs.h"
6056 #include <sys/types.h>
6057 #if STDC_HEADERS
6058 #include <stdlib.h>
6059 #include <stddef.h>
6060 #endif
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6064 rm -rf conftest*
6065 ac_cv_type_ssize_t=yes
6066 else
6067 rm -rf conftest*
6068 ac_cv_type_ssize_t=no
6070 rm -f conftest*
6073 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6074 if test $ac_cv_type_ssize_t = no; then
6075 cat >> confdefs.h <<\EOF
6076 #define ssize_t int
6082 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
6083 echo "configure:6084: checking for in_addr_t" >&5
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087 #include <sys/types.h>
6088 #if STDC_HEADERS
6089 #include <stdlib.h>
6090 #include <stddef.h>
6091 #endif
6092 #if HAVE_NETINET_IN_H
6093 #include <netinet/in.h>
6094 #endif
6095 int main() {
6096 in_addr_t foo;
6097 ; return 0; }
6099 if { (eval echo configure:6100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6100 rm -rf conftest*
6101 cat >> confdefs.h <<\EOF
6102 #define HAVE_IN_ADDR_T 1
6105 echo "$ac_t""yes" 1>&6
6106 else
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 rm -rf conftest*
6110 echo "$ac_t""no" 1>&6
6112 rm -f conftest*
6114 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
6115 echo "configure:6116: checking whether struct ip_mreq is in netinet/in.h" >&5
6116 cat > conftest.$ac_ext <<EOF
6117 #line 6118 "configure"
6118 #include "confdefs.h"
6119 #include <netinet/in.h>
6120 int main() {
6121 struct ip_mreq mreq;
6122 ; return 0; }
6124 if { (eval echo configure:6125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6125 rm -rf conftest*
6126 cat >> confdefs.h <<\EOF
6127 #define HAVE_STRUCT_IP_MREQ 1
6130 echo "$ac_t""yes" 1>&6
6131 else
6132 echo "configure: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6134 rm -rf conftest*
6135 echo "$ac_t""no" 1>&6
6137 rm -f conftest*
6139 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
6140 echo "configure:6141: checking whether struct ipv6_mreq is in netinet/in.h" >&5
6141 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6144 #include <netinet/in.h>
6145 int main() {
6146 struct ipv6_mreq mreq6;
6147 ; return 0; }
6149 if { (eval echo configure:6150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6150 rm -rf conftest*
6151 cat >> confdefs.h <<\EOF
6152 #define HAVE_STRUCT_IPV6_MREQ 1
6155 echo "$ac_t""yes" 1>&6
6156 else
6157 echo "configure: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6159 rm -rf conftest*
6160 echo "$ac_t""no" 1>&6
6162 rm -f conftest*
6164 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
6165 echo "configure:6166: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
6166 cat > conftest.$ac_ext <<EOF
6167 #line 6168 "configure"
6168 #include "confdefs.h"
6169 #include <netinet/in.h>
6170 int main() {
6171 struct sockaddr_in6 addr6;
6172 ; return 0; }
6174 if { (eval echo configure:6175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6175 rm -rf conftest*
6176 cat >> confdefs.h <<\EOF
6177 #define HAVE_INET6 1
6180 echo "$ac_t""yes" 1>&6
6181 else
6182 echo "configure: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6184 rm -rf conftest*
6185 echo "$ac_t""no" 1>&6
6187 rm -f conftest*
6189 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
6190 echo "configure:6191: checking for socklen_t in sys/socket.h" >&5
6191 cat > conftest.$ac_ext <<EOF
6192 #line 6193 "configure"
6193 #include "confdefs.h"
6194 #define _POSIX_PII_SOCKET
6195 #include <sys/types.h>
6196 #include <sys/socket.h>
6197 int main() {
6198 socklen_t x = 5;
6199 ; return 0; }
6201 if { (eval echo configure:6202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6202 rm -rf conftest*
6203 cat >> confdefs.h <<\EOF
6204 #define HAVE_SOCKLEN_T 1
6207 echo "$ac_t""yes" 1>&6
6208 else
6209 echo "configure: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6211 rm -rf conftest*
6212 echo "$ac_t""no" 1>&6
6214 rm -f conftest*
6216 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6217 echo "configure:6218: checking for tm_gmtoff in struct tm" >&5
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6221 #include <time.h>
6222 int main() {
6223 struct tm tim; tim.tm_gmtoff = 0;
6224 ; return 0; }
6226 if { (eval echo configure:6227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6227 rm -rf conftest*
6228 cat >> confdefs.h <<\EOF
6229 #define STRUCT_TM_HAS_GMTOFF 1
6232 echo "$ac_t""yes" 1>&6
6233 else
6234 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6236 rm -rf conftest*
6237 echo "$ac_t""no" 1>&6
6238 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
6239 echo "configure:6240: checking for global timezone variable" >&5
6240 cat > conftest.$ac_ext <<EOF
6241 #line 6242 "configure"
6242 #include "confdefs.h"
6243 #include <time.h>
6244 int main() {
6245 void i(){long z2 = 2*timezone;}
6246 ; return 0; }
6248 if { (eval echo configure:6249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6249 rm -rf conftest*
6250 cat >> confdefs.h <<\EOF
6251 #define HAVE_TIMEZONE 1
6254 echo "$ac_t""yes" 1>&6
6255 else
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6258 rm -rf conftest*
6259 echo "$ac_t""no" 1>&6
6260 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
6261 echo "configure:6262: checking for global _timezone variable" >&5
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 #include <time.h>
6266 int main() {
6267 long z2 = _timezone;
6268 ; return 0; }
6270 if { (eval echo configure:6271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6271 rm -rf conftest*
6272 cat >> confdefs.h <<\EOF
6273 #define HAVE_UNDERSCORE_TIMEZONE 1
6276 echo "$ac_t""yes" 1>&6
6277 else
6278 echo "configure: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6280 rm -rf conftest*
6281 echo "$ac_t""no" 1>&6
6283 rm -f conftest*
6285 rm -f conftest*
6287 rm -f conftest*
6289 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6290 # for constant arguments. Useless!
6291 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6292 echo "configure:6293: checking for working alloca.h" >&5
6293 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6294 echo $ac_n "(cached) $ac_c" 1>&6
6295 else
6296 cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6299 #include <alloca.h>
6300 int main() {
6301 char *p = alloca(2 * sizeof(int));
6302 ; return 0; }
6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6305 rm -rf conftest*
6306 ac_cv_header_alloca_h=yes
6307 else
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6310 rm -rf conftest*
6311 ac_cv_header_alloca_h=no
6313 rm -f conftest*
6316 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6317 if test $ac_cv_header_alloca_h = yes; then
6318 cat >> confdefs.h <<\EOF
6319 #define HAVE_ALLOCA_H 1
6324 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6325 echo "configure:6326: checking for alloca" >&5
6326 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6327 echo $ac_n "(cached) $ac_c" 1>&6
6328 else
6329 cat > conftest.$ac_ext <<EOF
6330 #line 6331 "configure"
6331 #include "confdefs.h"
6333 #ifdef __GNUC__
6334 # define alloca __builtin_alloca
6335 #else
6336 # ifdef _MSC_VER
6337 # include <malloc.h>
6338 # define alloca _alloca
6339 # else
6340 # if HAVE_ALLOCA_H
6341 # include <alloca.h>
6342 # else
6343 # ifdef _AIX
6344 #pragma alloca
6345 # else
6346 # ifndef alloca /* predefined by HP cc +Olibcalls */
6347 char *alloca ();
6348 # endif
6349 # endif
6350 # endif
6351 # endif
6352 #endif
6354 int main() {
6355 char *p = (char *) alloca(1);
6356 ; return 0; }
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6359 rm -rf conftest*
6360 ac_cv_func_alloca_works=yes
6361 else
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6364 rm -rf conftest*
6365 ac_cv_func_alloca_works=no
6367 rm -f conftest*
6370 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6371 if test $ac_cv_func_alloca_works = yes; then
6372 cat >> confdefs.h <<\EOF
6373 #define HAVE_ALLOCA 1
6378 if test $ac_cv_func_alloca_works = no; then
6379 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6380 # that cause trouble. Some versions do not even contain alloca or
6381 # contain a buggy version. If you still want to use their alloca,
6382 # use ar to extract alloca.o from them instead of compiling alloca.c.
6383 ALLOCA=alloca.${ac_objext}
6384 cat >> confdefs.h <<\EOF
6385 #define C_ALLOCA 1
6389 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6390 echo "configure:6391: checking whether alloca needs Cray hooks" >&5
6391 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6392 echo $ac_n "(cached) $ac_c" 1>&6
6393 else
6394 cat > conftest.$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6397 #if defined(CRAY) && ! defined(CRAY2)
6398 webecray
6399 #else
6400 wenotbecray
6401 #endif
6404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6405 egrep "webecray" >/dev/null 2>&1; then
6406 rm -rf conftest*
6407 ac_cv_os_cray=yes
6408 else
6409 rm -rf conftest*
6410 ac_cv_os_cray=no
6412 rm -f conftest*
6416 echo "$ac_t""$ac_cv_os_cray" 1>&6
6417 if test $ac_cv_os_cray = yes; then
6418 for ac_func in _getb67 GETB67 getb67; do
6419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6420 echo "configure:6421: checking for $ac_func" >&5
6421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6422 echo $ac_n "(cached) $ac_c" 1>&6
6423 else
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 /* System header to define __stub macros and hopefully few prototypes,
6428 which can conflict with char $ac_func(); below. */
6429 #include <assert.h>
6430 /* Override any gcc2 internal prototype to avoid an error. */
6431 /* We use char because int might match the return type of a gcc2
6432 builtin and then its argument prototype would still apply. */
6433 char $ac_func();
6435 int main() {
6437 /* The GNU C library defines this for functions which it implements
6438 to always fail with ENOSYS. Some functions are actually named
6439 something starting with __ and the normal name is an alias. */
6440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6441 choke me
6442 #else
6443 $ac_func();
6444 #endif
6446 ; return 0; }
6448 if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6449 rm -rf conftest*
6450 eval "ac_cv_func_$ac_func=yes"
6451 else
6452 echo "configure: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6454 rm -rf conftest*
6455 eval "ac_cv_func_$ac_func=no"
6457 rm -f conftest*
6460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6461 echo "$ac_t""yes" 1>&6
6462 cat >> confdefs.h <<EOF
6463 #define CRAY_STACKSEG_END $ac_func
6466 break
6467 else
6468 echo "$ac_t""no" 1>&6
6471 done
6474 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6475 echo "configure:6476: checking stack direction for C alloca" >&5
6476 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6478 else
6479 if test "$cross_compiling" = yes; then
6480 ac_cv_c_stack_direction=0
6481 else
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 find_stack_direction ()
6487 static char *addr = 0;
6488 auto char dummy;
6489 if (addr == 0)
6491 addr = &dummy;
6492 return find_stack_direction ();
6494 else
6495 return (&dummy > addr) ? 1 : -1;
6497 main ()
6499 exit (find_stack_direction() < 0);
6502 if { (eval echo configure:6503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6503 then
6504 ac_cv_c_stack_direction=1
6505 else
6506 echo "configure: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6508 rm -fr conftest*
6509 ac_cv_c_stack_direction=-1
6511 rm -fr conftest*
6516 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6517 cat >> confdefs.h <<EOF
6518 #define STACK_DIRECTION $ac_cv_c_stack_direction
6524 for ac_prog in perl
6526 # Extract the first word of "$ac_prog", so it can be a program name with args.
6527 set dummy $ac_prog; ac_word=$2
6528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6529 echo "configure:6530: checking for $ac_word" >&5
6530 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6532 else
6533 if test -n "$PERL"; then
6534 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6535 else
6536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6537 ac_dummy="$PATH"
6538 for ac_dir in $ac_dummy; do
6539 test -z "$ac_dir" && ac_dir=.
6540 if test -f $ac_dir/$ac_word; then
6541 ac_cv_prog_PERL="$ac_prog"
6542 break
6544 done
6545 IFS="$ac_save_ifs"
6548 PERL="$ac_cv_prog_PERL"
6549 if test -n "$PERL"; then
6550 echo "$ac_t""$PERL" 1>&6
6551 else
6552 echo "$ac_t""no" 1>&6
6555 test -n "$PERL" && break
6556 done
6557 test -n "$PERL" || PERL="false"
6560 SYSDEP_SOURCES=
6562 case "${host}" in
6563 i?86-*-linux*)
6564 SIGNAL_HANDLER=include/i386-signal.h
6566 sparc*-sun-solaris*)
6567 SIGNAL_HANDLER=include/sparc-signal.h
6569 # ia64-*)
6570 # SYSDEP_SOURCES=sysdep/ia64.c
6571 # test -d sysdep || mkdir sysdep
6572 # ;;
6573 ia64-*-linux*)
6574 SIGNAL_HANDLER=include/dwarf2-signal.h
6576 powerpc-*-linux*)
6577 SIGNAL_HANDLER=include/dwarf2-signal.h
6579 alpha*-*-linux*)
6580 SIGNAL_HANDLER=include/dwarf2-signal.h
6582 s390*-*-linux*)
6583 SIGNAL_HANDLER=include/s390-signal.h
6585 x86_64*-*-linux*)
6586 SIGNAL_HANDLER=include/dwarf2-signal.h
6588 sparc*-*-linux*)
6589 SIGNAL_HANDLER=include/dwarf2-signal.h
6591 sh-*-linux* | sh[34]*-*-linux*)
6592 SIGNAL_HANDLER=include/dwarf2-signal.h
6594 *mingw*)
6595 SIGNAL_HANDLER=include/win32-signal.h
6598 SIGNAL_HANDLER=include/default-signal.h
6600 esac
6602 # If we're using sjlj exceptions, forget what we just learned.
6603 if test "$enable_sjlj_exceptions" = yes; then
6604 SIGNAL_HANDLER=include/default-signal.h
6611 if test "${multilib}" = "yes"; then
6612 multilib_arg="--enable-multilib"
6613 else
6614 multilib_arg=
6617 # If we find X, set shell vars x_includes and x_libraries to the
6618 # paths, otherwise set no_x=yes.
6619 # Uses ac_ vars as temps to allow command line to override cache and checks.
6620 # --without-x overrides everything else, but does not touch the cache.
6621 echo $ac_n "checking for X""... $ac_c" 1>&6
6622 echo "configure:6623: checking for X" >&5
6624 # Check whether --with-x or --without-x was given.
6625 if test "${with_x+set}" = set; then
6626 withval="$with_x"
6630 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6631 if test "x$with_x" = xno; then
6632 # The user explicitly disabled X.
6633 have_x=disabled
6634 else
6635 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6636 # Both variables are already set.
6637 have_x=yes
6638 else
6639 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6641 else
6642 # One or both of the vars are not set, and there is no cached value.
6643 ac_x_includes=NO ac_x_libraries=NO
6644 rm -fr conftestdir
6645 if mkdir conftestdir; then
6646 cd conftestdir
6647 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6648 cat > Imakefile <<'EOF'
6649 acfindx:
6650 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6652 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6653 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6654 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6655 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6656 for ac_extension in a so sl; do
6657 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6658 test -f $ac_im_libdir/libX11.$ac_extension; then
6659 ac_im_usrlibdir=$ac_im_libdir; break
6661 done
6662 # Screen out bogus values from the imake configuration. They are
6663 # bogus both because they are the default anyway, and because
6664 # using them would break gcc on systems where it needs fixed includes.
6665 case "$ac_im_incroot" in
6666 /usr/include) ;;
6667 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6668 esac
6669 case "$ac_im_usrlibdir" in
6670 /usr/lib | /lib) ;;
6671 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6672 esac
6674 cd ..
6675 rm -fr conftestdir
6678 if test "$ac_x_includes" = NO; then
6679 # Guess where to find include files, by looking for this one X11 .h file.
6680 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6682 # First, try using that file with no special directory specified.
6683 cat > conftest.$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6686 #include <$x_direct_test_include>
6688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6689 { (eval echo configure:6690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6691 if test -z "$ac_err"; then
6692 rm -rf conftest*
6693 # We can compile using X headers with no special include directory.
6694 ac_x_includes=
6695 else
6696 echo "$ac_err" >&5
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6699 rm -rf conftest*
6700 # Look for the header file in a standard set of common directories.
6701 # Check X11 before X11Rn because it is often a symlink to the current release.
6702 for ac_dir in \
6703 /usr/X11/include \
6704 /usr/X11R6/include \
6705 /usr/X11R5/include \
6706 /usr/X11R4/include \
6708 /usr/include/X11 \
6709 /usr/include/X11R6 \
6710 /usr/include/X11R5 \
6711 /usr/include/X11R4 \
6713 /usr/local/X11/include \
6714 /usr/local/X11R6/include \
6715 /usr/local/X11R5/include \
6716 /usr/local/X11R4/include \
6718 /usr/local/include/X11 \
6719 /usr/local/include/X11R6 \
6720 /usr/local/include/X11R5 \
6721 /usr/local/include/X11R4 \
6723 /usr/X386/include \
6724 /usr/x386/include \
6725 /usr/XFree86/include/X11 \
6727 /usr/include \
6728 /usr/local/include \
6729 /usr/unsupported/include \
6730 /usr/athena/include \
6731 /usr/local/x11r5/include \
6732 /usr/lpp/Xamples/include \
6734 /usr/openwin/include \
6735 /usr/openwin/share/include \
6738 if test -r "$ac_dir/$x_direct_test_include"; then
6739 ac_x_includes=$ac_dir
6740 break
6742 done
6744 rm -f conftest*
6745 fi # $ac_x_includes = NO
6747 if test "$ac_x_libraries" = NO; then
6748 # Check for the libraries.
6750 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6751 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6753 # See if we find them without any special options.
6754 # Don't add to $LIBS permanently.
6755 ac_save_LIBS="$LIBS"
6756 LIBS="-l$x_direct_test_library $LIBS"
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6761 int main() {
6762 ${x_direct_test_function}()
6763 ; return 0; }
6765 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6766 rm -rf conftest*
6767 LIBS="$ac_save_LIBS"
6768 # We can link X programs with no special library path.
6769 ac_x_libraries=
6770 else
6771 echo "configure: failed program was:" >&5
6772 cat conftest.$ac_ext >&5
6773 rm -rf conftest*
6774 LIBS="$ac_save_LIBS"
6775 # First see if replacing the include by lib works.
6776 # Check X11 before X11Rn because it is often a symlink to the current release.
6777 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6778 /usr/X11/lib \
6779 /usr/X11R6/lib \
6780 /usr/X11R5/lib \
6781 /usr/X11R4/lib \
6783 /usr/lib/X11 \
6784 /usr/lib/X11R6 \
6785 /usr/lib/X11R5 \
6786 /usr/lib/X11R4 \
6788 /usr/local/X11/lib \
6789 /usr/local/X11R6/lib \
6790 /usr/local/X11R5/lib \
6791 /usr/local/X11R4/lib \
6793 /usr/local/lib/X11 \
6794 /usr/local/lib/X11R6 \
6795 /usr/local/lib/X11R5 \
6796 /usr/local/lib/X11R4 \
6798 /usr/X386/lib \
6799 /usr/x386/lib \
6800 /usr/XFree86/lib/X11 \
6802 /usr/lib \
6803 /usr/local/lib \
6804 /usr/unsupported/lib \
6805 /usr/athena/lib \
6806 /usr/local/x11r5/lib \
6807 /usr/lpp/Xamples/lib \
6808 /lib/usr/lib/X11 \
6810 /usr/openwin/lib \
6811 /usr/openwin/share/lib \
6814 for ac_extension in a so sl; do
6815 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6816 ac_x_libraries=$ac_dir
6817 break 2
6819 done
6820 done
6822 rm -f conftest*
6823 fi # $ac_x_libraries = NO
6825 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6826 # Didn't find X anywhere. Cache the known absence of X.
6827 ac_cv_have_x="have_x=no"
6828 else
6829 # Record where we found X for the cache.
6830 ac_cv_have_x="have_x=yes \
6831 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6835 eval "$ac_cv_have_x"
6836 fi # $with_x != no
6838 if test "$have_x" != yes; then
6839 echo "$ac_t""$have_x" 1>&6
6840 no_x=yes
6841 else
6842 # If each of the values was on the command line, it overrides each guess.
6843 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6844 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6845 # Update the cache value to reflect the command line values.
6846 ac_cv_have_x="have_x=yes \
6847 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6848 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6851 if test "$no_x" = yes; then
6852 # Not all programs may use this symbol, but it does not hurt to define it.
6853 cat >> confdefs.h <<\EOF
6854 #define X_DISPLAY_MISSING 1
6857 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6858 else
6859 if test -n "$x_includes"; then
6860 X_CFLAGS="$X_CFLAGS -I$x_includes"
6863 # It would also be nice to do this for all -L options, not just this one.
6864 if test -n "$x_libraries"; then
6865 X_LIBS="$X_LIBS -L$x_libraries"
6866 # For Solaris; some versions of Sun CC require a space after -R and
6867 # others require no space. Words are not sufficient . . . .
6868 case "`(uname -sr) 2>/dev/null`" in
6869 "SunOS 5"*)
6870 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6871 echo "configure:6872: checking whether -R must be followed by a space" >&5
6872 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6873 cat > conftest.$ac_ext <<EOF
6874 #line 6875 "configure"
6875 #include "confdefs.h"
6877 int main() {
6879 ; return 0; }
6881 if { (eval echo configure:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6882 rm -rf conftest*
6883 ac_R_nospace=yes
6884 else
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6887 rm -rf conftest*
6888 ac_R_nospace=no
6890 rm -f conftest*
6891 if test $ac_R_nospace = yes; then
6892 echo "$ac_t""no" 1>&6
6893 X_LIBS="$X_LIBS -R$x_libraries"
6894 else
6895 LIBS="$ac_xsave_LIBS -R $x_libraries"
6896 cat > conftest.$ac_ext <<EOF
6897 #line 6898 "configure"
6898 #include "confdefs.h"
6900 int main() {
6902 ; return 0; }
6904 if { (eval echo configure:6905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6905 rm -rf conftest*
6906 ac_R_space=yes
6907 else
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6910 rm -rf conftest*
6911 ac_R_space=no
6913 rm -f conftest*
6914 if test $ac_R_space = yes; then
6915 echo "$ac_t""yes" 1>&6
6916 X_LIBS="$X_LIBS -R $x_libraries"
6917 else
6918 echo "$ac_t""neither works" 1>&6
6921 LIBS="$ac_xsave_LIBS"
6922 esac
6925 # Check for system-dependent libraries X programs must link with.
6926 # Do this before checking for the system-independent R6 libraries
6927 # (-lICE), since we may need -lsocket or whatever for X linking.
6929 if test "$ISC" = yes; then
6930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6931 else
6932 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6933 # libraries were built with DECnet support. And karl@cs.umb.edu says
6934 # the Alpha needs dnet_stub (dnet does not exist).
6935 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6936 echo "configure:6937: checking for dnet_ntoa in -ldnet" >&5
6937 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6939 echo $ac_n "(cached) $ac_c" 1>&6
6940 else
6941 ac_save_LIBS="$LIBS"
6942 LIBS="-ldnet $LIBS"
6943 cat > conftest.$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6946 /* Override any gcc2 internal prototype to avoid an error. */
6947 /* We use char because int might match the return type of a gcc2
6948 builtin and then its argument prototype would still apply. */
6949 char dnet_ntoa();
6951 int main() {
6952 dnet_ntoa()
6953 ; return 0; }
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6956 rm -rf conftest*
6957 eval "ac_cv_lib_$ac_lib_var=yes"
6958 else
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6961 rm -rf conftest*
6962 eval "ac_cv_lib_$ac_lib_var=no"
6964 rm -f conftest*
6965 LIBS="$ac_save_LIBS"
6968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6969 echo "$ac_t""yes" 1>&6
6970 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6971 else
6972 echo "$ac_t""no" 1>&6
6975 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6976 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6977 echo "configure:6978: checking for dnet_ntoa in -ldnet_stub" >&5
6978 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6980 echo $ac_n "(cached) $ac_c" 1>&6
6981 else
6982 ac_save_LIBS="$LIBS"
6983 LIBS="-ldnet_stub $LIBS"
6984 cat > conftest.$ac_ext <<EOF
6985 #line 6986 "configure"
6986 #include "confdefs.h"
6987 /* Override any gcc2 internal prototype to avoid an error. */
6988 /* We use char because int might match the return type of a gcc2
6989 builtin and then its argument prototype would still apply. */
6990 char dnet_ntoa();
6992 int main() {
6993 dnet_ntoa()
6994 ; return 0; }
6996 if { (eval echo configure:6997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6997 rm -rf conftest*
6998 eval "ac_cv_lib_$ac_lib_var=yes"
6999 else
7000 echo "configure: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7002 rm -rf conftest*
7003 eval "ac_cv_lib_$ac_lib_var=no"
7005 rm -f conftest*
7006 LIBS="$ac_save_LIBS"
7009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7010 echo "$ac_t""yes" 1>&6
7011 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7012 else
7013 echo "$ac_t""no" 1>&6
7018 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7019 # to get the SysV transport functions.
7020 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7021 # needs -lnsl.
7022 # The nsl library prevents programs from opening the X display
7023 # on Irix 5.2, according to dickey@clark.net.
7024 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7025 echo "configure:7026: checking for gethostbyname" >&5
7026 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7028 else
7029 cat > conftest.$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 /* System header to define __stub macros and hopefully few prototypes,
7033 which can conflict with char gethostbyname(); below. */
7034 #include <assert.h>
7035 /* Override any gcc2 internal prototype to avoid an error. */
7036 /* We use char because int might match the return type of a gcc2
7037 builtin and then its argument prototype would still apply. */
7038 char gethostbyname();
7040 int main() {
7042 /* The GNU C library defines this for functions which it implements
7043 to always fail with ENOSYS. Some functions are actually named
7044 something starting with __ and the normal name is an alias. */
7045 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7046 choke me
7047 #else
7048 gethostbyname();
7049 #endif
7051 ; return 0; }
7053 if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7054 rm -rf conftest*
7055 eval "ac_cv_func_gethostbyname=yes"
7056 else
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7059 rm -rf conftest*
7060 eval "ac_cv_func_gethostbyname=no"
7062 rm -f conftest*
7065 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7066 echo "$ac_t""yes" 1>&6
7068 else
7069 echo "$ac_t""no" 1>&6
7072 if test $ac_cv_func_gethostbyname = no; then
7073 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7074 echo "configure:7075: checking for gethostbyname in -lnsl" >&5
7075 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7078 else
7079 ac_save_LIBS="$LIBS"
7080 LIBS="-lnsl $LIBS"
7081 cat > conftest.$ac_ext <<EOF
7082 #line 7083 "configure"
7083 #include "confdefs.h"
7084 /* Override any gcc2 internal prototype to avoid an error. */
7085 /* We use char because int might match the return type of a gcc2
7086 builtin and then its argument prototype would still apply. */
7087 char gethostbyname();
7089 int main() {
7090 gethostbyname()
7091 ; return 0; }
7093 if { (eval echo configure:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7094 rm -rf conftest*
7095 eval "ac_cv_lib_$ac_lib_var=yes"
7096 else
7097 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7099 rm -rf conftest*
7100 eval "ac_cv_lib_$ac_lib_var=no"
7102 rm -f conftest*
7103 LIBS="$ac_save_LIBS"
7106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7107 echo "$ac_t""yes" 1>&6
7108 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7109 else
7110 echo "$ac_t""no" 1>&6
7115 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7116 # socket/setsockopt and other routines are undefined under SCO ODT
7117 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7118 # on later versions), says simon@lia.di.epfl.ch: it contains
7119 # gethostby* variants that don't use the nameserver (or something).
7120 # -lsocket must be given before -lnsl if both are needed.
7121 # We assume that if connect needs -lnsl, so does gethostbyname.
7122 echo $ac_n "checking for connect""... $ac_c" 1>&6
7123 echo "configure:7124: checking for connect" >&5
7124 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7125 echo $ac_n "(cached) $ac_c" 1>&6
7126 else
7127 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7130 /* System header to define __stub macros and hopefully few prototypes,
7131 which can conflict with char connect(); below. */
7132 #include <assert.h>
7133 /* Override any gcc2 internal prototype to avoid an error. */
7134 /* We use char because int might match the return type of a gcc2
7135 builtin and then its argument prototype would still apply. */
7136 char connect();
7138 int main() {
7140 /* The GNU C library defines this for functions which it implements
7141 to always fail with ENOSYS. Some functions are actually named
7142 something starting with __ and the normal name is an alias. */
7143 #if defined (__stub_connect) || defined (__stub___connect)
7144 choke me
7145 #else
7146 connect();
7147 #endif
7149 ; return 0; }
7151 if { (eval echo configure:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7152 rm -rf conftest*
7153 eval "ac_cv_func_connect=yes"
7154 else
7155 echo "configure: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7157 rm -rf conftest*
7158 eval "ac_cv_func_connect=no"
7160 rm -f conftest*
7163 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7164 echo "$ac_t""yes" 1>&6
7166 else
7167 echo "$ac_t""no" 1>&6
7170 if test $ac_cv_func_connect = no; then
7171 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7172 echo "configure:7173: checking for connect in -lsocket" >&5
7173 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7175 echo $ac_n "(cached) $ac_c" 1>&6
7176 else
7177 ac_save_LIBS="$LIBS"
7178 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7179 cat > conftest.$ac_ext <<EOF
7180 #line 7181 "configure"
7181 #include "confdefs.h"
7182 /* Override any gcc2 internal prototype to avoid an error. */
7183 /* We use char because int might match the return type of a gcc2
7184 builtin and then its argument prototype would still apply. */
7185 char connect();
7187 int main() {
7188 connect()
7189 ; return 0; }
7191 if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7192 rm -rf conftest*
7193 eval "ac_cv_lib_$ac_lib_var=yes"
7194 else
7195 echo "configure: failed program was:" >&5
7196 cat conftest.$ac_ext >&5
7197 rm -rf conftest*
7198 eval "ac_cv_lib_$ac_lib_var=no"
7200 rm -f conftest*
7201 LIBS="$ac_save_LIBS"
7204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7205 echo "$ac_t""yes" 1>&6
7206 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7207 else
7208 echo "$ac_t""no" 1>&6
7213 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7214 echo $ac_n "checking for remove""... $ac_c" 1>&6
7215 echo "configure:7216: checking for remove" >&5
7216 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7217 echo $ac_n "(cached) $ac_c" 1>&6
7218 else
7219 cat > conftest.$ac_ext <<EOF
7220 #line 7221 "configure"
7221 #include "confdefs.h"
7222 /* System header to define __stub macros and hopefully few prototypes,
7223 which can conflict with char remove(); below. */
7224 #include <assert.h>
7225 /* Override any gcc2 internal prototype to avoid an error. */
7226 /* We use char because int might match the return type of a gcc2
7227 builtin and then its argument prototype would still apply. */
7228 char remove();
7230 int main() {
7232 /* The GNU C library defines this for functions which it implements
7233 to always fail with ENOSYS. Some functions are actually named
7234 something starting with __ and the normal name is an alias. */
7235 #if defined (__stub_remove) || defined (__stub___remove)
7236 choke me
7237 #else
7238 remove();
7239 #endif
7241 ; return 0; }
7243 if { (eval echo configure:7244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7244 rm -rf conftest*
7245 eval "ac_cv_func_remove=yes"
7246 else
7247 echo "configure: failed program was:" >&5
7248 cat conftest.$ac_ext >&5
7249 rm -rf conftest*
7250 eval "ac_cv_func_remove=no"
7252 rm -f conftest*
7255 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7256 echo "$ac_t""yes" 1>&6
7258 else
7259 echo "$ac_t""no" 1>&6
7262 if test $ac_cv_func_remove = no; then
7263 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7264 echo "configure:7265: checking for remove in -lposix" >&5
7265 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7267 echo $ac_n "(cached) $ac_c" 1>&6
7268 else
7269 ac_save_LIBS="$LIBS"
7270 LIBS="-lposix $LIBS"
7271 cat > conftest.$ac_ext <<EOF
7272 #line 7273 "configure"
7273 #include "confdefs.h"
7274 /* Override any gcc2 internal prototype to avoid an error. */
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7277 char remove();
7279 int main() {
7280 remove()
7281 ; return 0; }
7283 if { (eval echo configure:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7284 rm -rf conftest*
7285 eval "ac_cv_lib_$ac_lib_var=yes"
7286 else
7287 echo "configure: failed program was:" >&5
7288 cat conftest.$ac_ext >&5
7289 rm -rf conftest*
7290 eval "ac_cv_lib_$ac_lib_var=no"
7292 rm -f conftest*
7293 LIBS="$ac_save_LIBS"
7296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7297 echo "$ac_t""yes" 1>&6
7298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7299 else
7300 echo "$ac_t""no" 1>&6
7305 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7306 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7307 echo "configure:7308: checking for shmat" >&5
7308 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7310 else
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 /* System header to define __stub macros and hopefully few prototypes,
7315 which can conflict with char shmat(); below. */
7316 #include <assert.h>
7317 /* Override any gcc2 internal prototype to avoid an error. */
7318 /* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7320 char shmat();
7322 int main() {
7324 /* The GNU C library defines this for functions which it implements
7325 to always fail with ENOSYS. Some functions are actually named
7326 something starting with __ and the normal name is an alias. */
7327 #if defined (__stub_shmat) || defined (__stub___shmat)
7328 choke me
7329 #else
7330 shmat();
7331 #endif
7333 ; return 0; }
7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7336 rm -rf conftest*
7337 eval "ac_cv_func_shmat=yes"
7338 else
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7341 rm -rf conftest*
7342 eval "ac_cv_func_shmat=no"
7344 rm -f conftest*
7347 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7348 echo "$ac_t""yes" 1>&6
7350 else
7351 echo "$ac_t""no" 1>&6
7354 if test $ac_cv_func_shmat = no; then
7355 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7356 echo "configure:7357: checking for shmat in -lipc" >&5
7357 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7359 echo $ac_n "(cached) $ac_c" 1>&6
7360 else
7361 ac_save_LIBS="$LIBS"
7362 LIBS="-lipc $LIBS"
7363 cat > conftest.$ac_ext <<EOF
7364 #line 7365 "configure"
7365 #include "confdefs.h"
7366 /* Override any gcc2 internal prototype to avoid an error. */
7367 /* We use char because int might match the return type of a gcc2
7368 builtin and then its argument prototype would still apply. */
7369 char shmat();
7371 int main() {
7372 shmat()
7373 ; return 0; }
7375 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7376 rm -rf conftest*
7377 eval "ac_cv_lib_$ac_lib_var=yes"
7378 else
7379 echo "configure: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7381 rm -rf conftest*
7382 eval "ac_cv_lib_$ac_lib_var=no"
7384 rm -f conftest*
7385 LIBS="$ac_save_LIBS"
7388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7389 echo "$ac_t""yes" 1>&6
7390 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7391 else
7392 echo "$ac_t""no" 1>&6
7398 # Check for libraries that X11R6 Xt/Xaw programs need.
7399 ac_save_LDFLAGS="$LDFLAGS"
7400 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7401 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7402 # check for ICE first), but we must link in the order -lSM -lICE or
7403 # we get undefined symbols. So assume we have SM if we have ICE.
7404 # These have to be linked with before -lX11, unlike the other
7405 # libraries we check for below, so use a different variable.
7406 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7407 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7408 echo "configure:7409: checking for IceConnectionNumber in -lICE" >&5
7409 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7411 echo $ac_n "(cached) $ac_c" 1>&6
7412 else
7413 ac_save_LIBS="$LIBS"
7414 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7415 cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 /* Override any gcc2 internal prototype to avoid an error. */
7419 /* We use char because int might match the return type of a gcc2
7420 builtin and then its argument prototype would still apply. */
7421 char IceConnectionNumber();
7423 int main() {
7424 IceConnectionNumber()
7425 ; return 0; }
7427 if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7428 rm -rf conftest*
7429 eval "ac_cv_lib_$ac_lib_var=yes"
7430 else
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7433 rm -rf conftest*
7434 eval "ac_cv_lib_$ac_lib_var=no"
7436 rm -f conftest*
7437 LIBS="$ac_save_LIBS"
7440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7442 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7443 else
7444 echo "$ac_t""no" 1>&6
7447 LDFLAGS="$ac_save_LDFLAGS"
7452 # Check whether --enable-java-awt or --disable-java-awt was given.
7453 if test "${enable_java_awt+set}" = set; then
7454 enableval="$enable_java_awt"
7459 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7460 use_xlib_awt=""
7461 use_gtk_awt=""
7463 for peer in $peerlibs ; do
7464 case $peer in
7465 xlib)
7466 if test "$no_x" = yes; then
7467 echo "*** xlib peers requested but no X library available" 1>&2
7468 exit 1
7469 else
7470 use_xlib_awt="yes"
7473 gtk)
7474 # Nothing, yet...
7477 use_xlib_awt=
7478 use_gtk_awt=
7479 break
7482 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7483 exit 1
7484 esac
7485 done
7489 if test "$use_xlib_awt" = yes; then
7490 XLIB_AWT_TRUE=
7491 XLIB_AWT_FALSE='#'
7492 else
7493 XLIB_AWT_TRUE='#'
7494 XLIB_AWT_FALSE=
7498 if test "$use_gtk_awt" = yes; then
7499 GTK_AWT_TRUE=
7500 GTK_AWT_FALSE='#'
7501 else
7502 GTK_AWT_TRUE='#'
7503 GTK_AWT_FALSE=
7507 here=`${PWDCMD-pwd}`
7510 # We get this from the environment.
7513 trap '' 1 2 15
7514 cat > confcache <<\EOF
7515 # This file is a shell script that caches the results of configure
7516 # tests run on this system so they can be shared between configure
7517 # scripts and configure runs. It is not useful on other systems.
7518 # If it contains results you don't want to keep, you may remove or edit it.
7520 # By default, configure uses ./config.cache as the cache file,
7521 # creating it if it does not exist already. You can give configure
7522 # the --cache-file=FILE option to use a different cache file; that is
7523 # what configure does when it calls configure scripts in
7524 # subdirectories, so they share the cache.
7525 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7526 # config.status only pays attention to the cache file if you give it the
7527 # --recheck option to rerun configure.
7530 # The following way of writing the cache mishandles newlines in values,
7531 # but we know of no workaround that is simple, portable, and efficient.
7532 # So, don't put newlines in cache variables' values.
7533 # Ultrix sh set writes to stderr and can't be redirected directly,
7534 # and sets the high bit in the cache file unless we assign to the vars.
7535 (set) 2>&1 |
7536 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7537 *ac_space=\ *)
7538 # `set' does not quote correctly, so add quotes (double-quote substitution
7539 # turns \\\\ into \\, and sed turns \\ into \).
7540 sed -n \
7541 -e "s/'/'\\\\''/g" \
7542 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7545 # `set' quotes correctly as required by POSIX, so do not add quotes.
7546 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7548 esac >> confcache
7549 if cmp -s $cache_file confcache; then
7551 else
7552 if test -w $cache_file; then
7553 echo "updating cache $cache_file"
7554 cat confcache > $cache_file
7555 else
7556 echo "not updating unwritable cache $cache_file"
7559 rm -f confcache
7561 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7564 # Let make expand exec_prefix.
7565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7567 # Any assignment to VPATH causes Sun make to only execute
7568 # the first set of double-colon rules, so remove it if not needed.
7569 # If there is a colon in the path, we need to keep it.
7570 if test "x$srcdir" = x.; then
7571 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7574 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7576 DEFS=-DHAVE_CONFIG_H
7578 # Without the "./", some shells look in PATH for config.status.
7579 : ${CONFIG_STATUS=./config.status}
7581 echo creating $CONFIG_STATUS
7582 rm -f $CONFIG_STATUS
7583 cat > $CONFIG_STATUS <<EOF
7584 #! /bin/sh
7585 # Generated automatically by configure.
7586 # Run this file to recreate the current configuration.
7587 # This directory was configured as follows,
7588 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7590 # $0 $ac_configure_args
7592 # Compiler output produced by configure, useful for debugging
7593 # configure, is in ./config.log if it exists.
7595 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7596 for ac_option
7598 case "\$ac_option" in
7599 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7600 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7601 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7602 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7603 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7604 exit 0 ;;
7605 -help | --help | --hel | --he | --h)
7606 echo "\$ac_cs_usage"; exit 0 ;;
7607 *) echo "\$ac_cs_usage"; exit 1 ;;
7608 esac
7609 done
7611 ac_given_srcdir=$srcdir
7612 ac_given_INSTALL="$INSTALL"
7614 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
7616 cat >> $CONFIG_STATUS <<EOF
7618 # Protect against being on the right side of a sed subst in config.status.
7619 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7620 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7621 $ac_vpsub
7622 $extrasub
7623 s%@SHELL@%$SHELL%g
7624 s%@CFLAGS@%$CFLAGS%g
7625 s%@CPPFLAGS@%$CPPFLAGS%g
7626 s%@CXXFLAGS@%$CXXFLAGS%g
7627 s%@FFLAGS@%$FFLAGS%g
7628 s%@DEFS@%$DEFS%g
7629 s%@LDFLAGS@%$LDFLAGS%g
7630 s%@LIBS@%$LIBS%g
7631 s%@exec_prefix@%$exec_prefix%g
7632 s%@prefix@%$prefix%g
7633 s%@program_transform_name@%$program_transform_name%g
7634 s%@bindir@%$bindir%g
7635 s%@sbindir@%$sbindir%g
7636 s%@libexecdir@%$libexecdir%g
7637 s%@datadir@%$datadir%g
7638 s%@sysconfdir@%$sysconfdir%g
7639 s%@sharedstatedir@%$sharedstatedir%g
7640 s%@localstatedir@%$localstatedir%g
7641 s%@libdir@%$libdir%g
7642 s%@includedir@%$includedir%g
7643 s%@oldincludedir@%$oldincludedir%g
7644 s%@infodir@%$infodir%g
7645 s%@mandir@%$mandir%g
7646 s%@LN_S@%$LN_S%g
7647 s%@libgcj_basedir@%$libgcj_basedir%g
7648 s%@mkinstalldirs@%$mkinstalldirs%g
7649 s%@host@%$host%g
7650 s%@host_alias@%$host_alias%g
7651 s%@host_cpu@%$host_cpu%g
7652 s%@host_vendor@%$host_vendor%g
7653 s%@host_os@%$host_os%g
7654 s%@target@%$target%g
7655 s%@target_alias@%$target_alias%g
7656 s%@target_cpu@%$target_cpu%g
7657 s%@target_vendor@%$target_vendor%g
7658 s%@target_os@%$target_os%g
7659 s%@build@%$build%g
7660 s%@build_alias@%$build_alias%g
7661 s%@build_cpu@%$build_cpu%g
7662 s%@build_vendor@%$build_vendor%g
7663 s%@build_os@%$build_os%g
7664 s%@CC@%$CC%g
7665 s%@glibjava_CXX@%$glibjava_CXX%g
7666 s%@CXX@%$CXX%g
7667 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7668 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7669 s%@INSTALL_DATA@%$INSTALL_DATA%g
7670 s%@PACKAGE@%$PACKAGE%g
7671 s%@VERSION@%$VERSION%g
7672 s%@ACLOCAL@%$ACLOCAL%g
7673 s%@AUTOCONF@%$AUTOCONF%g
7674 s%@AUTOMAKE@%$AUTOMAKE%g
7675 s%@AUTOHEADER@%$AUTOHEADER%g
7676 s%@MAKEINFO@%$MAKEINFO%g
7677 s%@SET_MAKE@%$SET_MAKE%g
7678 s%@AS@%$AS%g
7679 s%@AR@%$AR%g
7680 s%@RANLIB@%$RANLIB%g
7681 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7682 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7683 s%@MAINT@%$MAINT%g
7684 s%@EXEEXT@%$EXEEXT%g
7685 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7686 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7687 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7688 s%@INCLTDL@%$INCLTDL%g
7689 s%@LIBLTDL@%$LIBLTDL%g
7690 s%@DIRLTDL@%$DIRLTDL%g
7691 s%@OBJEXT@%$OBJEXT%g
7692 s%@STRIP@%$STRIP%g
7693 s%@LIBTOOL@%$LIBTOOL%g
7694 s%@CXXCPP@%$CXXCPP%g
7695 s%@subdirs@%$subdirs%g
7696 s%@COMPPATH@%$COMPPATH%g
7697 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7698 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7699 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7700 s%@INTERPRETER@%$INTERPRETER%g
7701 s%@LIBFFI@%$LIBFFI%g
7702 s%@LIBFFIINCS@%$LIBFFIINCS%g
7703 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7704 s%@CPP@%$CPP%g
7705 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7706 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7707 s%@ZLIBSPEC@%$ZLIBSPEC%g
7708 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7709 s%@GCLIBS@%$GCLIBS%g
7710 s%@GCINCS@%$GCINCS%g
7711 s%@GCDEPS@%$GCDEPS%g
7712 s%@GCOBJS@%$GCOBJS%g
7713 s%@GCSPEC@%$GCSPEC%g
7714 s%@JC1GCSPEC@%$JC1GCSPEC%g
7715 s%@GCTESTSPEC@%$GCTESTSPEC%g
7716 s%@THREADLIBS@%$THREADLIBS%g
7717 s%@THREADINCS@%$THREADINCS%g
7718 s%@THREADDEPS@%$THREADDEPS%g
7719 s%@THREADOBJS@%$THREADOBJS%g
7720 s%@THREADSPEC@%$THREADSPEC%g
7721 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
7722 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7723 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7724 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7725 s%@tool_include_dir@%$tool_include_dir%g
7726 s%@gcc_version@%$gcc_version%g
7727 s%@LIBICONV@%$LIBICONV%g
7728 s%@GCJ@%$GCJ%g
7729 s%@GCJFLAGS@%$GCJFLAGS%g
7730 s%@ZLIBS@%$ZLIBS%g
7731 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
7732 s%@ZINCS@%$ZINCS%g
7733 s%@DIVIDESPEC@%$DIVIDESPEC%g
7734 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
7735 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7736 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7737 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7738 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7739 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7740 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7741 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7742 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7743 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7744 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7745 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7746 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7747 s%@GCJVERSION@%$GCJVERSION%g
7748 s%@ALLOCA@%$ALLOCA%g
7749 s%@PERL@%$PERL%g
7750 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7751 s%@X_CFLAGS@%$X_CFLAGS%g
7752 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7753 s%@X_LIBS@%$X_LIBS%g
7754 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7755 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7756 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7757 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7758 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7759 s%@here@%$here%g
7761 CEOF
7764 cat >> $CONFIG_STATUS <<\EOF
7766 # Split the substitutions into bite-sized pieces for seds with
7767 # small command number limits, like on Digital OSF/1 and HP-UX.
7768 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7769 ac_file=1 # Number of current file.
7770 ac_beg=1 # First line for current file.
7771 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7772 ac_more_lines=:
7773 ac_sed_cmds=""
7774 while $ac_more_lines; do
7775 if test $ac_beg -gt 1; then
7776 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7777 else
7778 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7780 if test ! -s conftest.s$ac_file; then
7781 ac_more_lines=false
7782 rm -f conftest.s$ac_file
7783 else
7784 if test -z "$ac_sed_cmds"; then
7785 ac_sed_cmds="sed -f conftest.s$ac_file"
7786 else
7787 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7789 ac_file=`expr $ac_file + 1`
7790 ac_beg=$ac_end
7791 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7793 done
7794 if test -z "$ac_sed_cmds"; then
7795 ac_sed_cmds=cat
7799 cat >> $CONFIG_STATUS <<EOF
7801 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7803 cat >> $CONFIG_STATUS <<\EOF
7804 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7806 case "$ac_file" in
7807 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7808 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7809 *) ac_file_in="${ac_file}.in" ;;
7810 esac
7812 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7814 # Remove last slash and all that follows it. Not all systems have dirname.
7815 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7816 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7817 # The file is in a subdirectory.
7818 test ! -d "$ac_dir" && mkdir "$ac_dir"
7819 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7820 # A "../" for each directory in $ac_dir_suffix.
7821 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7822 else
7823 ac_dir_suffix= ac_dots=
7826 case "$ac_given_srcdir" in
7827 .) srcdir=.
7828 if test -z "$ac_dots"; then top_srcdir=.
7829 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7830 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7831 *) # Relative path.
7832 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7833 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7834 esac
7836 case "$ac_given_INSTALL" in
7837 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7838 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7839 esac
7841 echo creating "$ac_file"
7842 rm -f "$ac_file"
7843 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7844 case "$ac_file" in
7845 *Makefile*) ac_comsub="1i\\
7846 # $configure_input" ;;
7847 *) ac_comsub= ;;
7848 esac
7850 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7851 sed -e "$ac_comsub
7852 s%@configure_input@%$configure_input%g
7853 s%@srcdir@%$srcdir%g
7854 s%@top_srcdir@%$top_srcdir%g
7855 s%@INSTALL@%$INSTALL%g
7856 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7857 fi; done
7858 rm -f conftest.s*
7860 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7861 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7863 # ac_d sets the value in "#define NAME VALUE" lines.
7864 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7865 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7866 ac_dC='\3'
7867 ac_dD='%g'
7868 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7869 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7870 ac_uB='\([ ]\)%\1#\2define\3'
7871 ac_uC=' '
7872 ac_uD='\4%g'
7873 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7874 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7875 ac_eB='$%\1#\2define\3'
7876 ac_eC=' '
7877 ac_eD='%g'
7879 if test "${CONFIG_HEADERS+set}" != set; then
7881 cat >> $CONFIG_STATUS <<EOF
7882 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7884 cat >> $CONFIG_STATUS <<\EOF
7886 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7887 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7888 case "$ac_file" in
7889 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7890 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7891 *) ac_file_in="${ac_file}.in" ;;
7892 esac
7894 echo creating $ac_file
7896 rm -f conftest.frag conftest.in conftest.out
7897 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7898 cat $ac_file_inputs > conftest.in
7902 # Transform confdefs.h into a sed script conftest.vals that substitutes
7903 # the proper values into config.h.in to produce config.h. And first:
7904 # Protect against being on the right side of a sed subst in config.status.
7905 # Protect against being in an unquoted here document in config.status.
7906 rm -f conftest.vals
7907 cat > conftest.hdr <<\EOF
7908 s/[\\&%]/\\&/g
7909 s%[\\$`]%\\&%g
7910 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7911 s%ac_d%ac_u%gp
7912 s%ac_u%ac_e%gp
7914 sed -n -f conftest.hdr confdefs.h > conftest.vals
7915 rm -f conftest.hdr
7917 # This sed command replaces #undef with comments. This is necessary, for
7918 # example, in the case of _POSIX_SOURCE, which is predefined and required
7919 # on some systems where configure will not decide to define it.
7920 cat >> conftest.vals <<\EOF
7921 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7924 # Break up conftest.vals because some shells have a limit on
7925 # the size of here documents, and old seds have small limits too.
7927 rm -f conftest.tail
7928 while :
7930 ac_lines=`grep -c . conftest.vals`
7931 # grep -c gives empty output for an empty file on some AIX systems.
7932 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7933 # Write a limited-size here document to conftest.frag.
7934 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7935 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7936 echo 'CEOF
7937 sed -f conftest.frag conftest.in > conftest.out
7938 rm -f conftest.in
7939 mv conftest.out conftest.in
7940 ' >> $CONFIG_STATUS
7941 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7942 rm -f conftest.vals
7943 mv conftest.tail conftest.vals
7944 done
7945 rm -f conftest.vals
7947 cat >> $CONFIG_STATUS <<\EOF
7948 rm -f conftest.frag conftest.h
7949 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7950 cat conftest.in >> conftest.h
7951 rm -f conftest.in
7952 if cmp -s $ac_file conftest.h 2>/dev/null; then
7953 echo "$ac_file is unchanged"
7954 rm -f conftest.h
7955 else
7956 # Remove last slash and all that follows it. Not all systems have dirname.
7957 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7958 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7959 # The file is in a subdirectory.
7960 test ! -d "$ac_dir" && mkdir "$ac_dir"
7962 rm -f $ac_file
7963 mv conftest.h $ac_file
7965 fi; done
7969 cat >> $CONFIG_STATUS <<EOF
7970 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"
7971 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"
7974 cat >> $CONFIG_STATUS <<\EOF
7975 srcdir=$ac_given_srcdir
7976 while test -n "$ac_sources"; do
7977 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7978 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7980 echo "linking $srcdir/$ac_source to $ac_dest"
7982 if test ! -r $srcdir/$ac_source; then
7983 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7985 rm -f $ac_dest
7987 # Make relative symlinks.
7988 # Remove last slash and all that follows it. Not all systems have dirname.
7989 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7990 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7991 # The dest file is in a subdirectory.
7992 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7993 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7994 # A "../" for each directory in $ac_dest_dir_suffix.
7995 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7996 else
7997 ac_dest_dir_suffix= ac_dots=
8000 case "$srcdir" in
8001 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8002 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8003 esac
8005 # Make a symlink if possible; otherwise try a hard link.
8006 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8007 ln $srcdir/$ac_source $ac_dest; then :
8008 else
8009 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8011 done
8013 cat >> $CONFIG_STATUS <<EOF
8015 srcdir=${srcdir}
8016 host=${host}
8017 target=${target}
8018 with_multisubdir=${with_multisubdir}
8019 ac_configure_args="${multilib_arg} ${ac_configure_args}"
8020 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8021 libgcj_basedir=${libgcj_basedir}
8022 CC="${CC}"
8023 CXX="${CXX}"
8026 cat >> $CONFIG_STATUS <<\EOF
8027 am_indx=1
8028 for am_file in include/config.h gcj/libgcj-config.h; do
8029 case " $CONFIG_HEADERS " in
8030 *" $am_file "*)
8031 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
8033 esac
8034 am_indx=`expr "$am_indx" + 1`
8035 done
8036 # Only add multilib support code if we just rebuilt top-level Makefile.
8037 case " $CONFIG_FILES " in
8038 *" Makefile "*)
8039 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
8040 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
8042 esac
8044 # Make subdirectories and `.d' files. Look in both srcdir and
8045 # builddir for the .java files.
8046 h=`${PWDCMD-pwd}`
8047 : > deps.mk
8048 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
8049 find . \( -name '*.java' -o -name '*.cc' \) -print) | \
8050 fgrep -v testsuite | \
8051 sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
8052 while read f; do
8053 echo "include $f" >> deps.mk
8054 test -f $f || {
8056 d=`echo $f | sed -e 's,/[^/]*$,,'`
8058 if test ! -d $d; then
8059 $libgcj_basedir/../mkinstalldirs $d
8061 echo > $f
8063 done
8065 exit 0
8067 chmod +x $CONFIG_STATUS
8068 rm -fr confdefs* $ac_clean_files
8069 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8071 if test "$no_recursion" != yes; then
8073 # Remove --cache-file and --srcdir arguments so they do not pile up.
8074 ac_sub_configure_args=
8075 ac_prev=
8076 for ac_arg in $ac_configure_args; do
8077 if test -n "$ac_prev"; then
8078 ac_prev=
8079 continue
8081 case "$ac_arg" in
8082 -cache-file | --cache-file | --cache-fil | --cache-fi \
8083 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8084 ac_prev=cache_file ;;
8085 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8086 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8089 ac_prev=srcdir ;;
8090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8092 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8093 esac
8094 done
8096 for ac_config_dir in $DIRLTDL; do
8098 # Do not complain, so a configure script can configure whichever
8099 # parts of a large source tree are present.
8100 if test ! -d $srcdir/$ac_config_dir; then
8101 continue
8104 echo configuring in $ac_config_dir
8106 case "$srcdir" in
8107 .) ;;
8109 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8110 else
8111 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8114 esac
8116 ac_popdir=`pwd`
8117 cd $ac_config_dir
8119 # A "../" for each directory in /$ac_config_dir.
8120 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8122 case "$srcdir" in
8123 .) # No --srcdir option. We are building in place.
8124 ac_sub_srcdir=$srcdir ;;
8125 /*) # Absolute path.
8126 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8127 *) # Relative path.
8128 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8129 esac
8131 # Check for guested configure; otherwise get Cygnus style configure.
8132 if test -f $ac_sub_srcdir/configure; then
8133 ac_sub_configure=$ac_sub_srcdir/configure
8134 elif test -f $ac_sub_srcdir/configure.in; then
8135 ac_sub_configure=$ac_configure
8136 else
8137 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8138 ac_sub_configure=
8141 # The recursion is here.
8142 if test -n "$ac_sub_configure"; then
8144 # Make the cache file name correct relative to the subdirectory.
8145 case "$cache_file" in
8146 /*) ac_sub_cache_file=$cache_file ;;
8147 *) # Relative path.
8148 ac_sub_cache_file="$ac_dots$cache_file" ;;
8149 esac
8150 case "$ac_given_INSTALL" in
8151 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8152 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8153 esac
8155 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8156 # The eval makes quoting arguments work.
8157 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8158 then :
8159 else
8160 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
8164 cd $ac_popdir
8165 done