* tree.h (TYPE_IS_SIZETYPE): Add more documentation.
[official-gcc.git] / libjava / configure
bloba0effe75743b9271781e45b8aab8d97013faea3d
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build many library versions (default)"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-fast-character prefer speed over size for Character"
38 ac_help="$ac_help
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
41 ac_help="$ac_help
42 --enable-libgcj-debug enable runtime debugging code"
43 ac_help="$ac_help
44 --enable-interpreter enable interpreter"
45 ac_help="$ac_help
46 --enable-sjlj-exceptions use setjmp/longjmp exceptions"
47 ac_help="$ac_help
48 --disable-java-net disable java.net"
49 ac_help="$ac_help
50 --disable-jvmpi disable JVMPI support"
51 ac_help="$ac_help
52 --with-ecos enable runtime eCos target support"
53 ac_help="$ac_help
54 --with-system-zlib use installed libz"
55 ac_help="$ac_help
56 --enable-java-gc=TYPE choose garbage collector [boehm]"
57 ac_help="$ac_help
58 --enable-threads=TYPE choose threading package"
59 ac_help="$ac_help
60 --with-x use the X Window System"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
65 build=NONE
66 cache_file=./config.cache
67 exec_prefix=NONE
68 host=NONE
69 no_create=
70 nonopt=NONE
71 no_recursion=
72 prefix=NONE
73 program_prefix=NONE
74 program_suffix=NONE
75 program_transform_name=s,x,x,
76 silent=
77 site=
78 srcdir=
79 target=NONE
80 verbose=
81 x_includes=NONE
82 x_libraries=NONE
83 bindir='${exec_prefix}/bin'
84 sbindir='${exec_prefix}/sbin'
85 libexecdir='${exec_prefix}/libexec'
86 datadir='${prefix}/share'
87 sysconfdir='${prefix}/etc'
88 sharedstatedir='${prefix}/com'
89 localstatedir='${prefix}/var'
90 libdir='${exec_prefix}/lib'
91 includedir='${prefix}/include'
92 oldincludedir='/usr/include'
93 infodir='${prefix}/info'
94 mandir='${prefix}/man'
96 # Initialize some other variables.
97 subdirs=
98 MFLAGS= MAKEFLAGS=
99 SHELL=${CONFIG_SHELL-/bin/sh}
100 # Maximum number of lines to put in a shell here document.
101 ac_max_here_lines=12
103 ac_prev=
104 for ac_option
107 # If the previous option needs an argument, assign it.
108 if test -n "$ac_prev"; then
109 eval "$ac_prev=\$ac_option"
110 ac_prev=
111 continue
114 case "$ac_option" in
115 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
116 *) ac_optarg= ;;
117 esac
119 # Accept the important Cygnus configure options, so we can diagnose typos.
121 case "$ac_option" in
123 -bindir | --bindir | --bindi | --bind | --bin | --bi)
124 ac_prev=bindir ;;
125 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
126 bindir="$ac_optarg" ;;
128 -build | --build | --buil | --bui | --bu)
129 ac_prev=build ;;
130 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
131 build="$ac_optarg" ;;
133 -cache-file | --cache-file | --cache-fil | --cache-fi \
134 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
135 ac_prev=cache_file ;;
136 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
137 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
138 cache_file="$ac_optarg" ;;
140 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141 ac_prev=datadir ;;
142 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143 | --da=*)
144 datadir="$ac_optarg" ;;
146 -disable-* | --disable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}=no" ;;
155 -enable-* | --enable-*)
156 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
162 case "$ac_option" in
163 *=*) ;;
164 *) ac_optarg=yes ;;
165 esac
166 eval "enable_${ac_feature}='$ac_optarg'" ;;
168 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
169 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
170 | --exec | --exe | --ex)
171 ac_prev=exec_prefix ;;
172 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
173 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
174 | --exec=* | --exe=* | --ex=*)
175 exec_prefix="$ac_optarg" ;;
177 -gas | --gas | --ga | --g)
178 # Obsolete; use --with-gas.
179 with_gas=yes ;;
181 -help | --help | --hel | --he)
182 # Omit some internal or obsolete options to make the list less imposing.
183 # This message is too long to be a string in the A/UX 3.1 sh.
184 cat << EOF
185 Usage: configure [options] [host]
186 Options: [defaults in brackets after descriptions]
187 Configuration:
188 --cache-file=FILE cache test results in FILE
189 --help print this message
190 --no-create do not create output files
191 --quiet, --silent do not print \`checking...' messages
192 --version print the version of autoconf that created configure
193 Directory and file names:
194 --prefix=PREFIX install architecture-independent files in PREFIX
195 [$ac_default_prefix]
196 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
197 [same as prefix]
198 --bindir=DIR user executables in DIR [EPREFIX/bin]
199 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
200 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
201 --datadir=DIR read-only architecture-independent data in DIR
202 [PREFIX/share]
203 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
204 --sharedstatedir=DIR modifiable architecture-independent data in DIR
205 [PREFIX/com]
206 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
207 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
208 --includedir=DIR C header files in DIR [PREFIX/include]
209 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
210 --infodir=DIR info documentation in DIR [PREFIX/info]
211 --mandir=DIR man documentation in DIR [PREFIX/man]
212 --srcdir=DIR find the sources in DIR [configure dir or ..]
213 --program-prefix=PREFIX prepend PREFIX to installed program names
214 --program-suffix=SUFFIX append SUFFIX to installed program names
215 --program-transform-name=PROGRAM
216 run sed PROGRAM on installed program names
218 cat << EOF
219 Host type:
220 --build=BUILD configure for building on BUILD [BUILD=HOST]
221 --host=HOST configure for HOST [guessed]
222 --target=TARGET configure for TARGET [TARGET=HOST]
223 Features and packages:
224 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
225 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
226 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
227 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
228 --x-includes=DIR X include files are in DIR
229 --x-libraries=DIR X library files are in DIR
231 if test -n "$ac_help"; then
232 echo "--enable and --with options recognized:$ac_help"
234 exit 0 ;;
236 -host | --host | --hos | --ho)
237 ac_prev=host ;;
238 -host=* | --host=* | --hos=* | --ho=*)
239 host="$ac_optarg" ;;
241 -includedir | --includedir | --includedi | --included | --include \
242 | --includ | --inclu | --incl | --inc)
243 ac_prev=includedir ;;
244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
245 | --includ=* | --inclu=* | --incl=* | --inc=*)
246 includedir="$ac_optarg" ;;
248 -infodir | --infodir | --infodi | --infod | --info | --inf)
249 ac_prev=infodir ;;
250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
251 infodir="$ac_optarg" ;;
253 -libdir | --libdir | --libdi | --libd)
254 ac_prev=libdir ;;
255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
256 libdir="$ac_optarg" ;;
258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
259 | --libexe | --libex | --libe)
260 ac_prev=libexecdir ;;
261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
262 | --libexe=* | --libex=* | --libe=*)
263 libexecdir="$ac_optarg" ;;
265 -localstatedir | --localstatedir | --localstatedi | --localstated \
266 | --localstate | --localstat | --localsta | --localst \
267 | --locals | --local | --loca | --loc | --lo)
268 ac_prev=localstatedir ;;
269 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
270 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
271 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
272 localstatedir="$ac_optarg" ;;
274 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275 ac_prev=mandir ;;
276 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
277 mandir="$ac_optarg" ;;
279 -nfp | --nfp | --nf)
280 # Obsolete; use --without-fp.
281 with_fp=no ;;
283 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
284 | --no-cr | --no-c)
285 no_create=yes ;;
287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289 no_recursion=yes ;;
291 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
292 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
293 | --oldin | --oldi | --old | --ol | --o)
294 ac_prev=oldincludedir ;;
295 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
296 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
297 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
298 oldincludedir="$ac_optarg" ;;
300 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301 ac_prev=prefix ;;
302 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
303 prefix="$ac_optarg" ;;
305 -program-prefix | --program-prefix | --program-prefi | --program-pref \
306 | --program-pre | --program-pr | --program-p)
307 ac_prev=program_prefix ;;
308 -program-prefix=* | --program-prefix=* | --program-prefi=* \
309 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
310 program_prefix="$ac_optarg" ;;
312 -program-suffix | --program-suffix | --program-suffi | --program-suff \
313 | --program-suf | --program-su | --program-s)
314 ac_prev=program_suffix ;;
315 -program-suffix=* | --program-suffix=* | --program-suffi=* \
316 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
317 program_suffix="$ac_optarg" ;;
319 -program-transform-name | --program-transform-name \
320 | --program-transform-nam | --program-transform-na \
321 | --program-transform-n | --program-transform- \
322 | --program-transform | --program-transfor \
323 | --program-transfo | --program-transf \
324 | --program-trans | --program-tran \
325 | --progr-tra | --program-tr | --program-t)
326 ac_prev=program_transform_name ;;
327 -program-transform-name=* | --program-transform-name=* \
328 | --program-transform-nam=* | --program-transform-na=* \
329 | --program-transform-n=* | --program-transform-=* \
330 | --program-transform=* | --program-transfor=* \
331 | --program-transfo=* | --program-transf=* \
332 | --program-trans=* | --program-tran=* \
333 | --progr-tra=* | --program-tr=* | --program-t=*)
334 program_transform_name="$ac_optarg" ;;
336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
337 | -silent | --silent | --silen | --sile | --sil)
338 silent=yes ;;
340 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341 ac_prev=sbindir ;;
342 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343 | --sbi=* | --sb=*)
344 sbindir="$ac_optarg" ;;
346 -sharedstatedir | --sharedstatedir | --sharedstatedi \
347 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
348 | --sharedst | --shareds | --shared | --share | --shar \
349 | --sha | --sh)
350 ac_prev=sharedstatedir ;;
351 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
352 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
353 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354 | --sha=* | --sh=*)
355 sharedstatedir="$ac_optarg" ;;
357 -site | --site | --sit)
358 ac_prev=site ;;
359 -site=* | --site=* | --sit=*)
360 site="$ac_optarg" ;;
362 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
363 ac_prev=srcdir ;;
364 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
365 srcdir="$ac_optarg" ;;
367 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
368 | --syscon | --sysco | --sysc | --sys | --sy)
369 ac_prev=sysconfdir ;;
370 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
371 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
372 sysconfdir="$ac_optarg" ;;
374 -target | --target | --targe | --targ | --tar | --ta | --t)
375 ac_prev=target ;;
376 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
377 target="$ac_optarg" ;;
379 -v | -verbose | --verbose | --verbos | --verbo | --verb)
380 verbose=yes ;;
382 -version | --version | --versio | --versi | --vers)
383 echo "configure generated by autoconf version 2.13"
384 exit 0 ;;
386 -with-* | --with-*)
387 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 case "$ac_option" in
394 *=*) ;;
395 *) ac_optarg=yes ;;
396 esac
397 eval "with_${ac_package}='$ac_optarg'" ;;
399 -without-* | --without-*)
400 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}=no" ;;
408 --x)
409 # Obsolete; use --with-x.
410 with_x=yes ;;
412 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
413 | --x-incl | --x-inc | --x-in | --x-i)
414 ac_prev=x_includes ;;
415 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
416 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
417 x_includes="$ac_optarg" ;;
419 -x-libraries | --x-libraries | --x-librarie | --x-librari \
420 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
421 ac_prev=x_libraries ;;
422 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
423 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
424 x_libraries="$ac_optarg" ;;
426 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
431 echo "configure: warning: $ac_option: invalid host type" 1>&2
433 if test "x$nonopt" != xNONE; then
434 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
436 nonopt="$ac_option"
439 esac
440 done
442 if test -n "$ac_prev"; then
443 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
448 # File descriptor usage:
449 # 0 standard input
450 # 1 file creation
451 # 2 errors and warnings
452 # 3 some systems may open it to /dev/tty
453 # 4 used on the Kubota Titan
454 # 6 checking for... messages and results
455 # 5 compiler messages saved in config.log
456 if test "$silent" = yes; then
457 exec 6>/dev/null
458 else
459 exec 6>&1
461 exec 5>./config.log
463 echo "\
464 This file contains any messages produced by compilers while
465 running configure, to aid debugging if configure makes a mistake.
466 " 1>&5
468 # Strip out --no-create and --no-recursion so they do not pile up.
469 # Also quote any args containing shell metacharacters.
470 ac_configure_args=
471 for ac_arg
473 case "$ac_arg" in
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c) ;;
476 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
477 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
478 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
479 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
480 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
481 esac
482 done
484 # NLS nuisances.
485 # Only set these to C if already set. These must not be set unconditionally
486 # because not all systems understand e.g. LANG=C (notably SCO).
487 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
488 # Non-C LC_CTYPE values break the ctype check.
489 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
490 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
491 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
492 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
495 rm -rf conftest* confdefs.h
496 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
497 echo > confdefs.h
499 # A filename unique to this package, relative to the directory that
500 # configure is in, which we can look for to find out if srcdir is correct.
501 ac_unique_file=java/lang/System.java
503 # Find the source files, if location was not specified.
504 if test -z "$srcdir"; then
505 ac_srcdir_defaulted=yes
506 # Try the directory containing this script, then its parent.
507 ac_prog=$0
508 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
509 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
510 srcdir=$ac_confdir
511 if test ! -r $srcdir/$ac_unique_file; then
512 srcdir=..
514 else
515 ac_srcdir_defaulted=no
517 if test ! -r $srcdir/$ac_unique_file; then
518 if test "$ac_srcdir_defaulted" = yes; then
519 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520 else
521 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
524 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
526 # Prefer explicitly selected file to automatically selected ones.
527 if test -z "$CONFIG_SITE"; then
528 if test "x$prefix" != xNONE; then
529 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
530 else
531 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
534 for ac_site_file in $CONFIG_SITE; do
535 if test -r "$ac_site_file"; then
536 echo "loading site script $ac_site_file"
537 . "$ac_site_file"
539 done
541 if test -r "$cache_file"; then
542 echo "loading cache $cache_file"
543 . $cache_file
544 else
545 echo "creating cache $cache_file"
546 > $cache_file
549 ac_ext=c
550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
551 ac_cpp='$CPP $CPPFLAGS'
552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
554 cross_compiling=$ac_cv_prog_cc_cross
556 ac_exeext=
557 ac_objext=o
558 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
559 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561 ac_n= ac_c='
562 ' ac_t=' '
563 else
564 ac_n=-n ac_c= ac_t=
566 else
567 ac_n= ac_c='\c' ac_t=
572 ac_aux_dir=
573 for ac_dir in .. $srcdir/..; do
574 if test -f $ac_dir/install-sh; then
575 ac_aux_dir=$ac_dir
576 ac_install_sh="$ac_aux_dir/install-sh -c"
577 break
578 elif test -f $ac_dir/install.sh; then
579 ac_aux_dir=$ac_dir
580 ac_install_sh="$ac_aux_dir/install.sh -c"
581 break
583 done
584 if test -z "$ac_aux_dir"; then
585 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
587 ac_config_guess=$ac_aux_dir/config.guess
588 ac_config_sub=$ac_aux_dir/config.sub
589 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
593 # Do some error checking and defaulting for the host and target type.
594 # The inputs are:
595 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
597 # The rules are:
598 # 1. You are not allowed to specify --host, --target, and nonopt at the
599 # same time.
600 # 2. Host defaults to nonopt.
601 # 3. If nonopt is not specified, then host defaults to the current host,
602 # as determined by config.guess.
603 # 4. Target and build default to nonopt.
604 # 5. If nonopt is not specified, then target and build default to host.
606 # The aliases save the names the user supplied, while $host etc.
607 # will get canonicalized.
608 case $host---$target---$nonopt in
609 NONE---*---* | *---NONE---* | *---*---NONE) ;;
610 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
611 esac
614 # Make sure we can run config.sub.
615 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
616 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
619 echo $ac_n "checking host system type""... $ac_c" 1>&6
620 echo "configure:621: checking host system type" >&5
622 host_alias=$host
623 case "$host_alias" in
624 NONE)
625 case $nonopt in
626 NONE)
627 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
628 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
629 fi ;;
630 *) host_alias=$nonopt ;;
631 esac ;;
632 esac
634 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
635 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$host" 1>&6
640 echo $ac_n "checking target system type""... $ac_c" 1>&6
641 echo "configure:642: checking target system type" >&5
643 target_alias=$target
644 case "$target_alias" in
645 NONE)
646 case $nonopt in
647 NONE) target_alias=$host_alias ;;
648 *) target_alias=$nonopt ;;
649 esac ;;
650 esac
652 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
653 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
654 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
655 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
656 echo "$ac_t""$target" 1>&6
658 echo $ac_n "checking build system type""... $ac_c" 1>&6
659 echo "configure:660: checking build system type" >&5
661 build_alias=$build
662 case "$build_alias" in
663 NONE)
664 case $nonopt in
665 NONE) build_alias=$host_alias ;;
666 *) build_alias=$nonopt ;;
667 esac ;;
668 esac
670 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
671 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
672 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
673 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
674 echo "$ac_t""$build" 1>&6
676 test "$host_alias" != "$target_alias" &&
677 test "$program_prefix$program_suffix$program_transform_name" = \
678 NONENONEs,x,x, &&
679 program_prefix=${target_alias}-
682 # Check whether --with-target-subdir or --without-target-subdir was given.
683 if test "${with_target_subdir+set}" = set; then
684 withval="$with_target_subdir"
688 # Check whether --with-cross-host or --without-cross-host was given.
689 if test "${with_cross_host+set}" = set; then
690 withval="$with_cross_host"
695 # Find a good install program. We prefer a C program (faster),
696 # so one script is as good as another. But avoid the broken or
697 # incompatible versions:
698 # SysV /etc/install, /usr/sbin/install
699 # SunOS /usr/etc/install
700 # IRIX /sbin/install
701 # AIX /bin/install
702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
705 # ./install, which can be erroneously created by make from ./install.sh.
706 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
707 echo "configure:708: checking for a BSD compatible install" >&5
708 if test -z "$INSTALL"; then
709 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
711 else
712 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
713 for ac_dir in $PATH; do
714 # Account for people who put trailing slashes in PATH elements.
715 case "$ac_dir/" in
716 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
718 # OSF1 and SCO ODT 3.0 have their own names for install.
719 # Don't use installbsd from OSF since it installs stuff as root
720 # by default.
721 for ac_prog in ginstall scoinst install; do
722 if test -f $ac_dir/$ac_prog; then
723 if test $ac_prog = install &&
724 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
725 # AIX install. It has an incompatible calling convention.
727 else
728 ac_cv_path_install="$ac_dir/$ac_prog -c"
729 break 2
732 done
734 esac
735 done
736 IFS="$ac_save_IFS"
739 if test "${ac_cv_path_install+set}" = set; then
740 INSTALL="$ac_cv_path_install"
741 else
742 # As a last resort, use the slow shell script. We don't cache a
743 # path for INSTALL within a source directory, because that will
744 # break other packages using the cache if that directory is
745 # removed, or if the path is relative.
746 INSTALL="$ac_install_sh"
749 echo "$ac_t""$INSTALL" 1>&6
751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
752 # It thinks the first close brace ends the variable substitution.
753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
759 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
760 echo "configure:761: checking whether build environment is sane" >&5
761 # Just in case
762 sleep 1
763 echo timestamp > conftestfile
764 # Do `set' in a subshell so we don't clobber the current shell's
765 # arguments. Must try -L first in case configure is actually a
766 # symlink; some systems play weird games with the mod time of symlinks
767 # (eg FreeBSD returns the mod time of the symlink's containing
768 # directory).
769 if (
770 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
771 if test "$*" = "X"; then
772 # -L didn't work.
773 set X `ls -t $srcdir/configure conftestfile`
775 if test "$*" != "X $srcdir/configure conftestfile" \
776 && test "$*" != "X conftestfile $srcdir/configure"; then
778 # If neither matched, then we have a broken ls. This can happen
779 # if, for instance, CONFIG_SHELL is bash and it inherits a
780 # broken ls alias from the environment. This has actually
781 # happened. Such a system could not be considered "sane".
782 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
783 alias in your environment" 1>&2; exit 1; }
786 test "$2" = conftestfile
788 then
789 # Ok.
791 else
792 { echo "configure: error: newly created file is older than distributed files!
793 Check your system clock" 1>&2; exit 1; }
795 rm -f conftest*
796 echo "$ac_t""yes" 1>&6
797 if test "$program_transform_name" = s,x,x,; then
798 program_transform_name=
799 else
800 # Double any \ or $. echo might interpret backslashes.
801 cat <<\EOF_SED > conftestsed
802 s,\\,\\\\,g; s,\$,$$,g
803 EOF_SED
804 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
805 rm -f conftestsed
807 test "$program_prefix" != NONE &&
808 program_transform_name="s,^,${program_prefix},; $program_transform_name"
809 # Use a double $ so make ignores it.
810 test "$program_suffix" != NONE &&
811 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
813 # sed with no file args requires a program.
814 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
816 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
817 echo "configure:818: checking whether ${MAKE-make} sets \${MAKE}" >&5
818 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
819 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
821 else
822 cat > conftestmake <<\EOF
823 all:
824 @echo 'ac_maketemp="${MAKE}"'
826 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
827 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
828 if test -n "$ac_maketemp"; then
829 eval ac_cv_prog_make_${ac_make}_set=yes
830 else
831 eval ac_cv_prog_make_${ac_make}_set=no
833 rm -f conftestmake
835 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
836 echo "$ac_t""yes" 1>&6
837 SET_MAKE=
838 else
839 echo "$ac_t""no" 1>&6
840 SET_MAKE="MAKE=${MAKE-make}"
843 if test $host != $build; then
844 ac_tool_prefix=${host_alias}-
845 else
846 ac_tool_prefix=
849 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
850 echo "configure:851: checking for Cygwin environment" >&5
851 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853 else
854 cat > conftest.$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
858 int main() {
860 #ifndef __CYGWIN__
861 #define __CYGWIN__ __CYGWIN32__
862 #endif
863 return __CYGWIN__;
864 ; return 0; }
866 if { (eval echo configure:867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
867 rm -rf conftest*
868 ac_cv_cygwin=yes
869 else
870 echo "configure: failed program was:" >&5
871 cat conftest.$ac_ext >&5
872 rm -rf conftest*
873 ac_cv_cygwin=no
875 rm -f conftest*
876 rm -f conftest*
879 echo "$ac_t""$ac_cv_cygwin" 1>&6
880 CYGWIN=
881 test "$ac_cv_cygwin" = yes && CYGWIN=yes
882 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
883 echo "configure:884: checking for mingw32 environment" >&5
884 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886 else
887 cat > conftest.$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
891 int main() {
892 return __MINGW32__;
893 ; return 0; }
895 if { (eval echo configure:896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
896 rm -rf conftest*
897 ac_cv_mingw32=yes
898 else
899 echo "configure: failed program was:" >&5
900 cat conftest.$ac_ext >&5
901 rm -rf conftest*
902 ac_cv_mingw32=no
904 rm -f conftest*
905 rm -f conftest*
908 echo "$ac_t""$ac_cv_mingw32" 1>&6
909 MINGW32=
910 test "$ac_cv_mingw32" = yes && MINGW32=yes
912 # Check whether --enable-multilib or --disable-multilib was given.
913 if test "${enable_multilib+set}" = set; then
914 enableval="$enable_multilib"
915 case "${enableval}" in
916 yes) multilib=yes ;;
917 no) multilib=no ;;
918 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
919 esac
920 else
921 multilib=yes
925 if test "${srcdir}" = "."; then
926 if test "${with_target_subdir}" != "."; then
927 libgcj_basedir="${srcdir}/${with_multisrctop}../."
928 else
929 libgcj_basedir="${srcdir}/${with_multisrctop}."
931 else
932 libgcj_basedir="${srcdir}/."
937 # Make sure we can run config.sub.
938 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
939 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
942 echo $ac_n "checking host system type""... $ac_c" 1>&6
943 echo "configure:944: checking host system type" >&5
945 host_alias=$host
946 case "$host_alias" in
947 NONE)
948 case $nonopt in
949 NONE)
950 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
951 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
952 fi ;;
953 *) host_alias=$nonopt ;;
954 esac ;;
955 esac
957 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
958 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
959 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
960 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
961 echo "$ac_t""$host" 1>&6
967 # Extract the first word of "gcc", so it can be a program name with args.
968 set dummy gcc; ac_word=$2
969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
970 echo "configure:971: checking for $ac_word" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
973 else
974 if test -n "$CC"; then
975 ac_cv_prog_CC="$CC" # Let the user override the test.
976 else
977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
978 ac_dummy="$PATH"
979 for ac_dir in $ac_dummy; do
980 test -z "$ac_dir" && ac_dir=.
981 if test -f $ac_dir/$ac_word; then
982 ac_cv_prog_CC="gcc"
983 break
985 done
986 IFS="$ac_save_ifs"
989 CC="$ac_cv_prog_CC"
990 if test -n "$CC"; then
991 echo "$ac_t""$CC" 1>&6
992 else
993 echo "$ac_t""no" 1>&6
996 if test -z "$CC"; then
997 # Extract the first word of "cc", so it can be a program name with args.
998 set dummy cc; ac_word=$2
999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1000 echo "configure:1001: checking for $ac_word" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1003 else
1004 if test -n "$CC"; then
1005 ac_cv_prog_CC="$CC" # Let the user override the test.
1006 else
1007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1008 ac_prog_rejected=no
1009 ac_dummy="$PATH"
1010 for ac_dir in $ac_dummy; do
1011 test -z "$ac_dir" && ac_dir=.
1012 if test -f $ac_dir/$ac_word; then
1013 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1014 ac_prog_rejected=yes
1015 continue
1017 ac_cv_prog_CC="cc"
1018 break
1020 done
1021 IFS="$ac_save_ifs"
1022 if test $ac_prog_rejected = yes; then
1023 # We found a bogon in the path, so make sure we never use it.
1024 set dummy $ac_cv_prog_CC
1025 shift
1026 if test $# -gt 0; then
1027 # We chose a different compiler from the bogus one.
1028 # However, it has the same basename, so the bogon will be chosen
1029 # first if we set CC to just the basename; use the full file name.
1030 shift
1031 set dummy "$ac_dir/$ac_word" "$@"
1032 shift
1033 ac_cv_prog_CC="$@"
1038 CC="$ac_cv_prog_CC"
1039 if test -n "$CC"; then
1040 echo "$ac_t""$CC" 1>&6
1041 else
1042 echo "$ac_t""no" 1>&6
1045 if test -z "$CC"; then
1046 case "`uname -s`" in
1047 *win32* | *WIN32*)
1048 # Extract the first word of "cl", so it can be a program name with args.
1049 set dummy cl; ac_word=$2
1050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1051 echo "configure:1052: checking for $ac_word" >&5
1052 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1054 else
1055 if test -n "$CC"; then
1056 ac_cv_prog_CC="$CC" # Let the user override the test.
1057 else
1058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1059 ac_dummy="$PATH"
1060 for ac_dir in $ac_dummy; do
1061 test -z "$ac_dir" && ac_dir=.
1062 if test -f $ac_dir/$ac_word; then
1063 ac_cv_prog_CC="cl"
1064 break
1066 done
1067 IFS="$ac_save_ifs"
1070 CC="$ac_cv_prog_CC"
1071 if test -n "$CC"; then
1072 echo "$ac_t""$CC" 1>&6
1073 else
1074 echo "$ac_t""no" 1>&6
1077 esac
1079 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1083 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1084 echo "configure:1085: checking whether we are using GNU C" >&5
1085 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1087 else
1088 cat > conftest.c <<EOF
1089 #ifdef __GNUC__
1090 yes;
1091 #endif
1093 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1094 ac_cv_prog_gcc=yes
1095 else
1096 ac_cv_prog_gcc=no
1100 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1102 if test $ac_cv_prog_gcc = yes; then
1103 GCC=yes
1104 else
1105 GCC=
1108 ac_test_CFLAGS="${CFLAGS+set}"
1109 ac_save_CFLAGS="$CFLAGS"
1110 CFLAGS=
1111 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1112 echo "configure:1113: checking whether ${CC-cc} accepts -g" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 echo 'void f(){}' > conftest.c
1117 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1118 ac_cv_prog_cc_g=yes
1119 else
1120 ac_cv_prog_cc_g=no
1122 rm -f conftest*
1126 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1127 if test "$ac_test_CFLAGS" = set; then
1128 CFLAGS="$ac_save_CFLAGS"
1129 elif test $ac_cv_prog_cc_g = yes; then
1130 if test "$GCC" = yes; then
1131 CFLAGS="-g -O2"
1132 else
1133 CFLAGS="-g"
1135 else
1136 if test "$GCC" = yes; then
1137 CFLAGS="-O2"
1138 else
1139 CFLAGS=
1143 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1145 # Extract the first word of "$ac_prog", so it can be a program name with args.
1146 set dummy $ac_prog; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1152 if test -n "$CXX"; then
1153 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1154 else
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1156 ac_dummy="$PATH"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_CXX="$ac_prog"
1161 break
1163 done
1164 IFS="$ac_save_ifs"
1167 CXX="$ac_cv_prog_CXX"
1168 if test -n "$CXX"; then
1169 echo "$ac_t""$CXX" 1>&6
1170 else
1171 echo "$ac_t""no" 1>&6
1174 test -n "$CXX" && break
1175 done
1176 test -n "$CXX" || CXX="gcc"
1180 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether we are using GNU C++" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1184 else
1185 cat > conftest.C <<EOF
1186 #ifdef __GNUC__
1187 yes;
1188 #endif
1190 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1191 ac_cv_prog_gxx=yes
1192 else
1193 ac_cv_prog_gxx=no
1197 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1199 if test $ac_cv_prog_gxx = yes; then
1200 GXX=yes
1201 else
1202 GXX=
1205 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1206 ac_save_CXXFLAGS="$CXXFLAGS"
1207 CXXFLAGS=
1208 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether ${CXX-g++} accepts -g" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213 echo 'void f(){}' > conftest.cc
1214 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1215 ac_cv_prog_cxx_g=yes
1216 else
1217 ac_cv_prog_cxx_g=no
1219 rm -f conftest*
1223 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1224 if test "$ac_test_CXXFLAGS" = set; then
1225 CXXFLAGS="$ac_save_CXXFLAGS"
1226 elif test $ac_cv_prog_cxx_g = yes; then
1227 if test "$GXX" = yes; then
1228 CXXFLAGS="-g -O2"
1229 else
1230 CXXFLAGS="-g"
1232 else
1233 if test "$GXX" = yes; then
1234 CXXFLAGS="-O2"
1235 else
1236 CXXFLAGS=
1241 version=0.0.7
1243 PACKAGE=libjava
1245 VERSION=$version
1247 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1248 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1250 cat >> confdefs.h <<EOF
1251 #define PACKAGE "$PACKAGE"
1254 cat >> confdefs.h <<EOF
1255 #define VERSION "$VERSION"
1260 missing_dir=`cd $ac_aux_dir && pwd`
1261 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1262 echo "configure:1263: checking for working aclocal" >&5
1263 # Run test in a subshell; some versions of sh will print an error if
1264 # an executable is not found, even if stderr is redirected.
1265 # Redirect stdin to placate older versions of autoconf. Sigh.
1266 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1267 ACLOCAL=aclocal
1268 echo "$ac_t""found" 1>&6
1269 else
1270 ACLOCAL="$missing_dir/missing aclocal"
1271 echo "$ac_t""missing" 1>&6
1274 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1275 echo "configure:1276: checking for working autoconf" >&5
1276 # Run test in a subshell; some versions of sh will print an error if
1277 # an executable is not found, even if stderr is redirected.
1278 # Redirect stdin to placate older versions of autoconf. Sigh.
1279 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1280 AUTOCONF=autoconf
1281 echo "$ac_t""found" 1>&6
1282 else
1283 AUTOCONF="$missing_dir/missing autoconf"
1284 echo "$ac_t""missing" 1>&6
1287 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1288 echo "configure:1289: checking for working automake" >&5
1289 # Run test in a subshell; some versions of sh will print an error if
1290 # an executable is not found, even if stderr is redirected.
1291 # Redirect stdin to placate older versions of autoconf. Sigh.
1292 if (automake --version) < /dev/null > /dev/null 2>&1; then
1293 AUTOMAKE=automake
1294 echo "$ac_t""found" 1>&6
1295 else
1296 AUTOMAKE="$missing_dir/missing automake"
1297 echo "$ac_t""missing" 1>&6
1300 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1301 echo "configure:1302: checking for working autoheader" >&5
1302 # Run test in a subshell; some versions of sh will print an error if
1303 # an executable is not found, even if stderr is redirected.
1304 # Redirect stdin to placate older versions of autoconf. Sigh.
1305 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1306 AUTOHEADER=autoheader
1307 echo "$ac_t""found" 1>&6
1308 else
1309 AUTOHEADER="$missing_dir/missing autoheader"
1310 echo "$ac_t""missing" 1>&6
1313 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1314 echo "configure:1315: checking for working makeinfo" >&5
1315 # Run test in a subshell; some versions of sh will print an error if
1316 # an executable is not found, even if stderr is redirected.
1317 # Redirect stdin to placate older versions of autoconf. Sigh.
1318 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1319 MAKEINFO=makeinfo
1320 echo "$ac_t""found" 1>&6
1321 else
1322 MAKEINFO="$missing_dir/missing makeinfo"
1323 echo "$ac_t""missing" 1>&6
1328 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1329 # run it explicitly here, it will be run implicitly before
1330 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1331 # be run before AC_CANONICAL_HOST.
1332 echo $ac_n "checking build system type""... $ac_c" 1>&6
1333 echo "configure:1334: checking build system type" >&5
1335 build_alias=$build
1336 case "$build_alias" in
1337 NONE)
1338 case $nonopt in
1339 NONE) build_alias=$host_alias ;;
1340 *) build_alias=$nonopt ;;
1341 esac ;;
1342 esac
1344 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1345 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1346 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1347 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348 echo "$ac_t""$build" 1>&6
1351 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1352 set dummy ${ac_tool_prefix}as; ac_word=$2
1353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1354 echo "configure:1355: checking for $ac_word" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1357 else
1358 if test -n "$AS"; then
1359 ac_cv_prog_AS="$AS" # Let the user override the test.
1360 else
1361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1362 ac_dummy="$PATH"
1363 for ac_dir in $ac_dummy; do
1364 test -z "$ac_dir" && ac_dir=.
1365 if test -f $ac_dir/$ac_word; then
1366 ac_cv_prog_AS="${ac_tool_prefix}as"
1367 break
1369 done
1370 IFS="$ac_save_ifs"
1371 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1374 AS="$ac_cv_prog_AS"
1375 if test -n "$AS"; then
1376 echo "$ac_t""$AS" 1>&6
1377 else
1378 echo "$ac_t""no" 1>&6
1383 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1384 set dummy ${ac_tool_prefix}ar; ac_word=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1389 else
1390 if test -n "$AR"; then
1391 ac_cv_prog_AR="$AR" # Let the user override the test.
1392 else
1393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1394 ac_dummy="$PATH"
1395 for ac_dir in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir=.
1397 if test -f $ac_dir/$ac_word; then
1398 ac_cv_prog_AR="${ac_tool_prefix}ar"
1399 break
1401 done
1402 IFS="$ac_save_ifs"
1403 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1406 AR="$ac_cv_prog_AR"
1407 if test -n "$AR"; then
1408 echo "$ac_t""$AR" 1>&6
1409 else
1410 echo "$ac_t""no" 1>&6
1415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1416 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1418 echo "configure:1419: checking for $ac_word" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1421 else
1422 if test -n "$RANLIB"; then
1423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1424 else
1425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1426 ac_dummy="$PATH"
1427 for ac_dir in $ac_dummy; do
1428 test -z "$ac_dir" && ac_dir=.
1429 if test -f $ac_dir/$ac_word; then
1430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1431 break
1433 done
1434 IFS="$ac_save_ifs"
1437 RANLIB="$ac_cv_prog_RANLIB"
1438 if test -n "$RANLIB"; then
1439 echo "$ac_t""$RANLIB" 1>&6
1440 else
1441 echo "$ac_t""no" 1>&6
1445 if test -z "$ac_cv_prog_RANLIB"; then
1446 if test -n "$ac_tool_prefix"; then
1447 # Extract the first word of "ranlib", so it can be a program name with args.
1448 set dummy ranlib; ac_word=$2
1449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1450 echo "configure:1451: checking for $ac_word" >&5
1451 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1453 else
1454 if test -n "$RANLIB"; then
1455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1456 else
1457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1458 ac_dummy="$PATH"
1459 for ac_dir in $ac_dummy; do
1460 test -z "$ac_dir" && ac_dir=.
1461 if test -f $ac_dir/$ac_word; then
1462 ac_cv_prog_RANLIB="ranlib"
1463 break
1465 done
1466 IFS="$ac_save_ifs"
1467 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1470 RANLIB="$ac_cv_prog_RANLIB"
1471 if test -n "$RANLIB"; then
1472 echo "$ac_t""$RANLIB" 1>&6
1473 else
1474 echo "$ac_t""no" 1>&6
1477 else
1478 RANLIB=":"
1483 # Find a good install program. We prefer a C program (faster),
1484 # so one script is as good as another. But avoid the broken or
1485 # incompatible versions:
1486 # SysV /etc/install, /usr/sbin/install
1487 # SunOS /usr/etc/install
1488 # IRIX /sbin/install
1489 # AIX /bin/install
1490 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1493 # ./install, which can be erroneously created by make from ./install.sh.
1494 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1495 echo "configure:1496: checking for a BSD compatible install" >&5
1496 if test -z "$INSTALL"; then
1497 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1499 else
1500 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1501 for ac_dir in $PATH; do
1502 # Account for people who put trailing slashes in PATH elements.
1503 case "$ac_dir/" in
1504 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1506 # OSF1 and SCO ODT 3.0 have their own names for install.
1507 # Don't use installbsd from OSF since it installs stuff as root
1508 # by default.
1509 for ac_prog in ginstall scoinst install; do
1510 if test -f $ac_dir/$ac_prog; then
1511 if test $ac_prog = install &&
1512 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1513 # AIX install. It has an incompatible calling convention.
1515 else
1516 ac_cv_path_install="$ac_dir/$ac_prog -c"
1517 break 2
1520 done
1522 esac
1523 done
1524 IFS="$ac_save_IFS"
1527 if test "${ac_cv_path_install+set}" = set; then
1528 INSTALL="$ac_cv_path_install"
1529 else
1530 # As a last resort, use the slow shell script. We don't cache a
1531 # path for INSTALL within a source directory, because that will
1532 # break other packages using the cache if that directory is
1533 # removed, or if the path is relative.
1534 INSTALL="$ac_install_sh"
1537 echo "$ac_t""$INSTALL" 1>&6
1539 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1540 # It thinks the first close brace ends the variable substitution.
1541 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1543 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1545 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1548 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1549 echo "configure:1550: checking whether to enable maintainer-specific portions of Makefiles" >&5
1550 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1551 if test "${enable_maintainer_mode+set}" = set; then
1552 enableval="$enable_maintainer_mode"
1553 USE_MAINTAINER_MODE=$enableval
1554 else
1555 USE_MAINTAINER_MODE=no
1558 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1561 if test $USE_MAINTAINER_MODE = yes; then
1562 MAINTAINER_MODE_TRUE=
1563 MAINTAINER_MODE_FALSE='#'
1564 else
1565 MAINTAINER_MODE_TRUE='#'
1566 MAINTAINER_MODE_FALSE=
1568 MAINT=$MAINTAINER_MODE_TRUE
1572 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1573 # at least currently, we never actually build a program, so we never
1574 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1575 # fails, because we are probably configuring with a cross compiler
1576 # which cant create executables. So we include AC_EXEEXT to keep
1577 # automake happy, but we dont execute it, since we dont care about
1578 # the result.
1579 if false; then
1582 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1583 echo "configure:1584: checking for executable suffix" >&5
1584 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1586 else
1587 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1588 ac_cv_exeext=.exe
1589 else
1590 rm -f conftest*
1591 echo 'int main () { return 0; }' > conftest.$ac_ext
1592 ac_cv_exeext=
1593 if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1594 for file in conftest.*; do
1595 case $file in
1596 *.c | *.o | *.obj) ;;
1597 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1598 esac
1599 done
1600 else
1601 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1603 rm -f conftest*
1604 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1608 EXEEXT=""
1609 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1610 echo "$ac_t""${ac_cv_exeext}" 1>&6
1611 ac_exeext=$EXEEXT
1615 # configure.host sets the following important variables
1616 # libgcj_cflags - host specific C compiler flags
1617 # libgcj_cxxflags - host specific C++ compiler flags
1618 # libgcj_javaflags - host specific Java compiler flags
1620 libgcj_cflags=
1621 libgcj_cxxflags=
1622 libgcj_javaflags=
1624 . ${libgcj_basedir}/configure.host
1626 case ${libgcj_basedir} in
1627 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1628 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1629 esac
1631 LIBGCJ_CFLAGS="${libgcj_cflags}"
1632 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1633 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1643 # Only use libltdl for native builds.
1644 if test -z "${with_cross_host}"; then
1645 case "$enable_ltdl_convenience" in
1646 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1647 "") enable_ltdl_convenience=yes
1648 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1649 esac
1650 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1651 INCLTDL='-I${top_srcdir}/''libltdl'
1654 DIRLTDL=libltdl
1655 cat >> confdefs.h <<\EOF
1656 #define USE_LTDL 1
1659 # Sigh. Libtool's macro doesn't do the right thing.
1660 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1665 # Check whether --enable-shared or --disable-shared was given.
1666 if test "${enable_shared+set}" = set; then
1667 enableval="$enable_shared"
1668 p=${PACKAGE-default}
1669 case "$enableval" in
1670 yes) enable_shared=yes ;;
1671 no) enable_shared=no ;;
1673 enable_shared=no
1674 # Look at the argument we got. We use all the common list separators.
1675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1676 for pkg in $enableval; do
1677 if test "X$pkg" = "X$p"; then
1678 enable_shared=yes
1680 done
1681 IFS="$ac_save_ifs"
1683 esac
1684 else
1685 enable_shared=yes
1688 # Check whether --enable-static or --disable-static was given.
1689 if test "${enable_static+set}" = set; then
1690 enableval="$enable_static"
1691 p=${PACKAGE-default}
1692 case "$enableval" in
1693 yes) enable_static=yes ;;
1694 no) enable_static=no ;;
1696 enable_static=no
1697 # Look at the argument we got. We use all the common list separators.
1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1699 for pkg in $enableval; do
1700 if test "X$pkg" = "X$p"; then
1701 enable_static=yes
1703 done
1704 IFS="$ac_save_ifs"
1706 esac
1707 else
1708 enable_static=yes
1711 # Check whether --enable-fast-install or --disable-fast-install was given.
1712 if test "${enable_fast_install+set}" = set; then
1713 enableval="$enable_fast_install"
1714 p=${PACKAGE-default}
1715 case "$enableval" in
1716 yes) enable_fast_install=yes ;;
1717 no) enable_fast_install=no ;;
1719 enable_fast_install=no
1720 # Look at the argument we got. We use all the common list separators.
1721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1722 for pkg in $enableval; do
1723 if test "X$pkg" = "X$p"; then
1724 enable_fast_install=yes
1726 done
1727 IFS="$ac_save_ifs"
1729 esac
1730 else
1731 enable_fast_install=yes
1734 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1735 if test "${with_gnu_ld+set}" = set; then
1736 withval="$with_gnu_ld"
1737 test "$withval" = no || with_gnu_ld=yes
1738 else
1739 with_gnu_ld=no
1742 ac_prog=ld
1743 if test "$ac_cv_prog_gcc" = yes; then
1744 # Check if gcc -print-prog-name=ld gives a path.
1745 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1746 echo "configure:1747: checking for ld used by GCC" >&5
1747 case $host in
1748 *-*-mingw*)
1749 # gcc leaves a trailing carriage return which upsets mingw
1750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1753 esac
1754 case "$ac_prog" in
1755 # Accept absolute paths.
1756 [\\/]* | [A-Za-z]:[\\/]*)
1757 re_direlt='/[^/][^/]*/\.\./'
1758 # Canonicalize the path of ld
1759 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1760 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1761 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1762 done
1763 test -z "$LD" && LD="$ac_prog"
1766 # If it fails, then pretend we aren't using GCC.
1767 ac_prog=ld
1770 # If it is relative, then search for the first ld in PATH.
1771 with_gnu_ld=unknown
1773 esac
1774 elif test "$with_gnu_ld" = yes; then
1775 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1776 echo "configure:1777: checking for GNU ld" >&5
1777 else
1778 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1779 echo "configure:1780: checking for non-GNU ld" >&5
1781 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1783 else
1784 if test -z "$LD"; then
1785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1786 for ac_dir in $PATH; do
1787 test -z "$ac_dir" && ac_dir=.
1788 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1789 ac_cv_path_LD="$ac_dir/$ac_prog"
1790 # Check to see if the program is GNU ld. I'd rather use --version,
1791 # but apparently some GNU ld's only accept -v.
1792 # Break only if it was the GNU/non-GNU ld that we prefer.
1793 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1794 test "$with_gnu_ld" != no && break
1795 else
1796 test "$with_gnu_ld" != yes && break
1799 done
1800 IFS="$ac_save_ifs"
1801 else
1802 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1806 LD="$ac_cv_path_LD"
1807 if test -n "$LD"; then
1808 echo "$ac_t""$LD" 1>&6
1809 else
1810 echo "$ac_t""no" 1>&6
1812 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1813 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1814 echo "configure:1815: checking if the linker ($LD) is GNU ld" >&5
1815 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1817 else
1818 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1819 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1820 ac_cv_prog_gnu_ld=yes
1821 else
1822 ac_cv_prog_gnu_ld=no
1826 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1827 with_gnu_ld=$ac_cv_prog_gnu_ld
1830 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1831 echo "configure:1832: checking for $LD option to reload object files" >&5
1832 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1834 else
1835 lt_cv_ld_reload_flag='-r'
1838 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1839 reload_flag=$lt_cv_ld_reload_flag
1840 test -n "$reload_flag" && reload_flag=" $reload_flag"
1842 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1843 echo "configure:1844: checking for BSD-compatible nm" >&5
1844 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846 else
1847 if test -n "$NM"; then
1848 # Let the user override the test.
1849 ac_cv_path_NM="$NM"
1850 else
1851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1852 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1853 test -z "$ac_dir" && ac_dir=.
1854 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1855 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1856 # Check to see if the nm accepts a BSD-compat flag.
1857 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1858 # nm: unknown option "B" ignored
1859 # Tru64's nm complains that /dev/null is an invalid object file
1860 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1861 ac_cv_path_NM="$tmp_nm -B"
1862 break
1863 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1864 ac_cv_path_NM="$tmp_nm -p"
1865 break
1866 else
1867 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1868 continue # so that we can try to find one that supports BSD flags
1871 done
1872 IFS="$ac_save_ifs"
1873 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1877 NM="$ac_cv_path_NM"
1878 echo "$ac_t""$NM" 1>&6
1880 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1881 echo "configure:1882: checking whether ln -s works" >&5
1882 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885 rm -f conftestdata
1886 if ln -s X conftestdata 2>/dev/null
1887 then
1888 rm -f conftestdata
1889 ac_cv_prog_LN_S="ln -s"
1890 else
1891 ac_cv_prog_LN_S=ln
1894 LN_S="$ac_cv_prog_LN_S"
1895 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1896 echo "$ac_t""yes" 1>&6
1897 else
1898 echo "$ac_t""no" 1>&6
1901 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1902 echo "configure:1903: checking how to recognise dependant libraries" >&5
1903 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1905 else
1906 lt_cv_file_magic_cmd='$MAGIC_CMD'
1907 lt_cv_file_magic_test_file=
1908 lt_cv_deplibs_check_method='unknown'
1909 # Need to set the preceding variable on all platforms that support
1910 # interlibrary dependencies.
1911 # 'none' -- dependencies not supported.
1912 # `unknown' -- same as none, but documents that we really don't know.
1913 # 'pass_all' -- all dependencies passed with no checks.
1914 # 'test_compile' -- check by making test program.
1915 # 'file_magic [regex]' -- check by looking for files in library path
1916 # which responds to the $file_magic_cmd with a given egrep regex.
1917 # If you have `file' or equivalent on your system and you're not sure
1918 # whether `pass_all' will *always* work, you probably want this one.
1920 case "$host_os" in
1921 aix4*)
1922 lt_cv_deplibs_check_method=pass_all
1925 beos*)
1926 lt_cv_deplibs_check_method=pass_all
1929 bsdi4*)
1930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1931 lt_cv_file_magic_cmd='/usr/bin/file -L'
1932 lt_cv_file_magic_test_file=/shlib/libc.so
1935 cygwin* | mingw* |pw32*)
1936 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1937 lt_cv_file_magic_cmd='$OBJDUMP -f'
1940 freebsd* )
1941 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1942 case "$host_cpu" in
1943 i*86 )
1944 # Not sure whether the presence of OpenBSD here was a mistake.
1945 # Let's accept both of them until this is cleared up.
1946 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1947 lt_cv_file_magic_cmd=/usr/bin/file
1948 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1950 esac
1951 else
1952 lt_cv_deplibs_check_method=pass_all
1956 gnu*)
1957 lt_cv_deplibs_check_method=pass_all
1960 hpux10.20*)
1961 # TODO: Does this work for hpux-11 too?
1962 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1963 lt_cv_file_magic_cmd=/usr/bin/file
1964 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1967 irix5* | irix6*)
1968 case "$host_os" in
1969 irix5*)
1970 # this will be overridden with pass_all, but let us keep it just in case
1971 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1974 case "$LD" in
1975 *-32|*"-32 ") libmagic=32-bit;;
1976 *-n32|*"-n32 ") libmagic=N32;;
1977 *-64|*"-64 ") libmagic=64-bit;;
1978 *) libmagic=never-match;;
1979 esac
1980 # this will be overridden with pass_all, but let us keep it just in case
1981 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1983 esac
1984 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1985 lt_cv_deplibs_check_method=pass_all
1988 # This must be Linux ELF.
1989 linux-gnu*)
1990 case "$host_cpu" in
1991 alpha* | i*86 | powerpc* | sparc* | ia64* )
1992 lt_cv_deplibs_check_method=pass_all ;;
1994 # glibc up to 2.1.1 does not perform some relocations on ARM
1995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1996 esac
1997 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2000 netbsd*)
2001 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
2002 else
2003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2004 lt_cv_file_magic_cmd='/usr/bin/file -L'
2005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2009 osf3* | osf4* | osf5*)
2010 # this will be overridden with pass_all, but let us keep it just in case
2011 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2012 lt_cv_file_magic_test_file=/shlib/libc.so
2013 lt_cv_deplibs_check_method=pass_all
2016 sco3.2v5*)
2017 lt_cv_deplibs_check_method=pass_all
2020 solaris*)
2021 lt_cv_deplibs_check_method=pass_all
2022 lt_cv_file_magic_test_file=/lib/libc.so
2025 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2026 case "$host_vendor" in
2027 ncr)
2028 lt_cv_deplibs_check_method=pass_all
2030 motorola)
2031 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]'
2032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2034 esac
2036 esac
2040 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2041 file_magic_cmd=$lt_cv_file_magic_cmd
2042 deplibs_check_method=$lt_cv_deplibs_check_method
2044 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2045 echo "configure:2046: checking for object suffix" >&5
2046 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2048 else
2049 rm -f conftest*
2050 echo 'int i = 1;' > conftest.$ac_ext
2051 if { (eval echo configure:2052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2052 for ac_file in conftest.*; do
2053 case $ac_file in
2054 *.c) ;;
2055 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2056 esac
2057 done
2058 else
2059 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2061 rm -f conftest*
2064 echo "$ac_t""$ac_cv_objext" 1>&6
2065 OBJEXT=$ac_cv_objext
2066 ac_objext=$ac_cv_objext
2068 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2070 # Only perform the check for file, if the check method requires it
2071 case "$deplibs_check_method" in
2072 file_magic*)
2073 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2074 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2075 echo "configure:2076: checking for ${ac_tool_prefix}file" >&5
2076 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2078 else
2079 case "$MAGIC_CMD" in
2081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2083 ?:/*)
2084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2087 ac_save_MAGIC_CMD="$MAGIC_CMD"
2088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2089 ac_dummy="/usr/bin:$PATH"
2090 for ac_dir in $ac_dummy; do
2091 test -z "$ac_dir" && ac_dir=.
2092 if test -f $ac_dir/${ac_tool_prefix}file; then
2093 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2094 if test -n "$file_magic_test_file"; then
2095 case "$deplibs_check_method" in
2096 "file_magic "*)
2097 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2098 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2099 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2100 egrep "$file_magic_regex" > /dev/null; then
2102 else
2103 cat <<EOF 1>&2
2105 *** Warning: the command libtool uses to detect shared libraries,
2106 *** $file_magic_cmd, produces output that libtool cannot recognize.
2107 *** The result is that libtool may fail to recognize shared libraries
2108 *** as such. This will affect the creation of libtool libraries that
2109 *** depend on shared libraries, but programs linked with such libtool
2110 *** libraries will work regardless of this problem. Nevertheless, you
2111 *** may want to report the problem to your system manager and/or to
2112 *** bug-libtool@gnu.org
2115 fi ;;
2116 esac
2118 break
2120 done
2121 IFS="$ac_save_ifs"
2122 MAGIC_CMD="$ac_save_MAGIC_CMD"
2124 esac
2127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2128 if test -n "$MAGIC_CMD"; then
2129 echo "$ac_t""$MAGIC_CMD" 1>&6
2130 else
2131 echo "$ac_t""no" 1>&6
2134 if test -z "$lt_cv_path_MAGIC_CMD"; then
2135 if test -n "$ac_tool_prefix"; then
2136 echo $ac_n "checking for file""... $ac_c" 1>&6
2137 echo "configure:2138: checking for file" >&5
2138 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140 else
2141 case "$MAGIC_CMD" in
2143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2145 ?:/*)
2146 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2149 ac_save_MAGIC_CMD="$MAGIC_CMD"
2150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2151 ac_dummy="/usr/bin:$PATH"
2152 for ac_dir in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir=.
2154 if test -f $ac_dir/file; then
2155 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2156 if test -n "$file_magic_test_file"; then
2157 case "$deplibs_check_method" in
2158 "file_magic "*)
2159 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2161 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2162 egrep "$file_magic_regex" > /dev/null; then
2164 else
2165 cat <<EOF 1>&2
2167 *** Warning: the command libtool uses to detect shared libraries,
2168 *** $file_magic_cmd, produces output that libtool cannot recognize.
2169 *** The result is that libtool may fail to recognize shared libraries
2170 *** as such. This will affect the creation of libtool libraries that
2171 *** depend on shared libraries, but programs linked with such libtool
2172 *** libraries will work regardless of this problem. Nevertheless, you
2173 *** may want to report the problem to your system manager and/or to
2174 *** bug-libtool@gnu.org
2177 fi ;;
2178 esac
2180 break
2182 done
2183 IFS="$ac_save_ifs"
2184 MAGIC_CMD="$ac_save_MAGIC_CMD"
2186 esac
2189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2190 if test -n "$MAGIC_CMD"; then
2191 echo "$ac_t""$MAGIC_CMD" 1>&6
2192 else
2193 echo "$ac_t""no" 1>&6
2196 else
2197 MAGIC_CMD=:
2203 esac
2205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2208 echo "configure:2209: checking for $ac_word" >&5
2209 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2211 else
2212 if test -n "$RANLIB"; then
2213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2214 else
2215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2216 ac_dummy="$PATH"
2217 for ac_dir in $ac_dummy; do
2218 test -z "$ac_dir" && ac_dir=.
2219 if test -f $ac_dir/$ac_word; then
2220 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2221 break
2223 done
2224 IFS="$ac_save_ifs"
2227 RANLIB="$ac_cv_prog_RANLIB"
2228 if test -n "$RANLIB"; then
2229 echo "$ac_t""$RANLIB" 1>&6
2230 else
2231 echo "$ac_t""no" 1>&6
2235 if test -z "$ac_cv_prog_RANLIB"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "ranlib", so it can be a program name with args.
2238 set dummy ranlib; ac_word=$2
2239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2240 echo "configure:2241: checking for $ac_word" >&5
2241 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2243 else
2244 if test -n "$RANLIB"; then
2245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2246 else
2247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2248 ac_dummy="$PATH"
2249 for ac_dir in $ac_dummy; do
2250 test -z "$ac_dir" && ac_dir=.
2251 if test -f $ac_dir/$ac_word; then
2252 ac_cv_prog_RANLIB="ranlib"
2253 break
2255 done
2256 IFS="$ac_save_ifs"
2257 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2260 RANLIB="$ac_cv_prog_RANLIB"
2261 if test -n "$RANLIB"; then
2262 echo "$ac_t""$RANLIB" 1>&6
2263 else
2264 echo "$ac_t""no" 1>&6
2267 else
2268 RANLIB=":"
2272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}strip; ac_word=$2
2274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2275 echo "configure:2276: checking for $ac_word" >&5
2276 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2278 else
2279 if test -n "$STRIP"; then
2280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2281 else
2282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2283 ac_dummy="$PATH"
2284 for ac_dir in $ac_dummy; do
2285 test -z "$ac_dir" && ac_dir=.
2286 if test -f $ac_dir/$ac_word; then
2287 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2288 break
2290 done
2291 IFS="$ac_save_ifs"
2294 STRIP="$ac_cv_prog_STRIP"
2295 if test -n "$STRIP"; then
2296 echo "$ac_t""$STRIP" 1>&6
2297 else
2298 echo "$ac_t""no" 1>&6
2302 if test -z "$ac_cv_prog_STRIP"; then
2303 if test -n "$ac_tool_prefix"; then
2304 # Extract the first word of "strip", so it can be a program name with args.
2305 set dummy strip; ac_word=$2
2306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2307 echo "configure:2308: checking for $ac_word" >&5
2308 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2310 else
2311 if test -n "$STRIP"; then
2312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313 else
2314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2315 ac_dummy="$PATH"
2316 for ac_dir in $ac_dummy; do
2317 test -z "$ac_dir" && ac_dir=.
2318 if test -f $ac_dir/$ac_word; then
2319 ac_cv_prog_STRIP="strip"
2320 break
2322 done
2323 IFS="$ac_save_ifs"
2324 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2327 STRIP="$ac_cv_prog_STRIP"
2328 if test -n "$STRIP"; then
2329 echo "$ac_t""$STRIP" 1>&6
2330 else
2331 echo "$ac_t""no" 1>&6
2334 else
2335 STRIP=":"
2340 # Check for any special flags to pass to ltconfig.
2341 libtool_flags="--cache-file=$cache_file"
2342 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2343 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2344 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2345 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2346 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2347 libtool_flags="$libtool_flags --enable-dlopen"
2349 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2350 if test "${enable_libtool_lock+set}" = set; then
2351 enableval="$enable_libtool_lock"
2355 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2356 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2358 # Check whether --with-pic or --without-pic was given.
2359 if test "${with_pic+set}" = set; then
2360 withval="$with_pic"
2361 pic_mode="$withval"
2362 else
2363 pic_mode=default
2366 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2367 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2369 # Some flags need to be propagated to the compiler or linker for good
2370 # libtool support.
2371 case "$host" in
2372 *-*-irix6*)
2373 # Find out which ABI we are using.
2374 echo '#line 2375 "configure"' > conftest.$ac_ext
2375 if { (eval echo configure:2376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2376 case "`/usr/bin/file conftest.o`" in
2377 *32-bit*)
2378 LD="${LD-ld} -32"
2380 *N32*)
2381 LD="${LD-ld} -n32"
2383 *64-bit*)
2384 LD="${LD-ld} -64"
2386 esac
2388 rm -rf conftest*
2391 *-*-sco3.2v5*)
2392 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2393 SAVE_CFLAGS="$CFLAGS"
2394 CFLAGS="$CFLAGS -belf"
2395 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2396 echo "configure:2397: checking whether the C compiler needs -belf" >&5
2397 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2399 else
2401 ac_ext=c
2402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2403 ac_cpp='$CPP $CPPFLAGS'
2404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2406 cross_compiling=$ac_cv_prog_cc_cross
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2412 int main() {
2414 ; return 0; }
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2417 rm -rf conftest*
2418 lt_cv_cc_needs_belf=yes
2419 else
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2422 rm -rf conftest*
2423 lt_cv_cc_needs_belf=no
2425 rm -f conftest*
2426 ac_ext=c
2427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2428 ac_cpp='$CPP $CPPFLAGS'
2429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2431 cross_compiling=$ac_cv_prog_cc_cross
2435 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2436 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2437 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2438 CFLAGS="$SAVE_CFLAGS"
2443 esac
2445 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2446 echo "configure:2447: checking how to run the C++ preprocessor" >&5
2447 if test -z "$CXXCPP"; then
2448 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2450 else
2451 ac_ext=C
2452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2453 ac_cpp='$CXXCPP $CPPFLAGS'
2454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2456 cross_compiling=$ac_cv_prog_cxx_cross
2457 CXXCPP="${CXX-g++} -E"
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2461 #include <stdlib.h>
2463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2464 { (eval echo configure:2465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2466 if test -z "$ac_err"; then
2468 else
2469 echo "$ac_err" >&5
2470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2472 rm -rf conftest*
2473 CXXCPP=/lib/cpp
2475 rm -f conftest*
2476 ac_cv_prog_CXXCPP="$CXXCPP"
2477 ac_ext=c
2478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2482 cross_compiling=$ac_cv_prog_cc_cross
2485 CXXCPP="$ac_cv_prog_CXXCPP"
2486 echo "$ac_t""$CXXCPP" 1>&6
2489 # Save cache, so that ltconfig can load it
2490 cat > confcache <<\EOF
2491 # This file is a shell script that caches the results of configure
2492 # tests run on this system so they can be shared between configure
2493 # scripts and configure runs. It is not useful on other systems.
2494 # If it contains results you don't want to keep, you may remove or edit it.
2496 # By default, configure uses ./config.cache as the cache file,
2497 # creating it if it does not exist already. You can give configure
2498 # the --cache-file=FILE option to use a different cache file; that is
2499 # what configure does when it calls configure scripts in
2500 # subdirectories, so they share the cache.
2501 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2502 # config.status only pays attention to the cache file if you give it the
2503 # --recheck option to rerun configure.
2506 # The following way of writing the cache mishandles newlines in values,
2507 # but we know of no workaround that is simple, portable, and efficient.
2508 # So, don't put newlines in cache variables' values.
2509 # Ultrix sh set writes to stderr and can't be redirected directly,
2510 # and sets the high bit in the cache file unless we assign to the vars.
2511 (set) 2>&1 |
2512 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2513 *ac_space=\ *)
2514 # `set' does not quote correctly, so add quotes (double-quote substitution
2515 # turns \\\\ into \\, and sed turns \\ into \).
2516 sed -n \
2517 -e "s/'/'\\\\''/g" \
2518 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2521 # `set' quotes correctly as required by POSIX, so do not add quotes.
2522 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2524 esac >> confcache
2525 if cmp -s $cache_file confcache; then
2527 else
2528 if test -w $cache_file; then
2529 echo "updating cache $cache_file"
2530 cat confcache > $cache_file
2531 else
2532 echo "not updating unwritable cache $cache_file"
2535 rm -f confcache
2538 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2539 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2540 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2541 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2542 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2543 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2544 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2545 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2546 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2547 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2549 # Reload cache, that may have been modified by ltconfig
2550 if test -r "$cache_file"; then
2551 echo "loading cache $cache_file"
2552 . $cache_file
2553 else
2554 echo "creating cache $cache_file"
2555 > $cache_file
2559 # This can be used to rebuild libtool when needed
2560 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2562 # Always use our own libtool.
2563 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2565 # Redirect the config.log output again, so that the ltconfig log is not
2566 # clobbered by the next message.
2567 exec 5>>./config.log
2572 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2573 lt_save_CC="$CC"
2574 lt_save_CFLAGS="$CFLAGS"
2575 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2576 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2577 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2578 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2579 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2580 deplibs_check_method="$deplibs_check_method" \
2581 file_magic_cmd="$file_magic_cmd" \
2582 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2583 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2584 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2585 CC="$lt_save_CC"
2586 CFLAGS="$lt_save_CFLAGS"
2588 # Redirect the config.log output again, so that the ltconfig log is not
2589 # clobbered by the next message.
2590 exec 5>>./config.log
2598 subdirs="$DIRLTDL"
2601 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2602 COMPPATH=.
2603 else
2604 COMPPATH=..
2610 if test -d $srcdir/testsuite; then
2611 TESTSUBDIR_TRUE=
2612 TESTSUBDIR_FALSE='#'
2613 else
2614 TESTSUBDIR_TRUE='#'
2615 TESTSUBDIR_FALSE=
2618 # Check whether --enable-fast-character or --disable-fast-character was given.
2619 if test "${enable_fast_character+set}" = set; then
2620 enableval="$enable_fast_character"
2621 # Nothing
2623 else
2624 cat >> confdefs.h <<\EOF
2625 #define COMPACT_CHARACTER 1
2631 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2632 if test "${enable_getenv_properties+set}" = set; then
2633 enableval="$enable_getenv_properties"
2638 if test -n "$enable_getenv_properties"; then
2639 enable_getenv_properties=${enable_getenv_properties_default-yes}
2641 if test "$enable_getenv_properties" = no; then
2642 cat >> confdefs.h <<\EOF
2643 #define DISABLE_GETENV_PROPERTIES 1
2648 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2649 if test "${enable_libgcj_debug+set}" = set; then
2650 enableval="$enable_libgcj_debug"
2651 if test "$enable_libgcj_debug" = yes; then
2652 cat >> confdefs.h <<\EOF
2653 #define DEBUG 1
2660 # Check whether --enable-interpreter or --disable-interpreter was given.
2661 if test "${enable_interpreter+set}" = set; then
2662 enableval="$enable_interpreter"
2663 if test "$enable_interpreter" = yes; then
2664 # This can also be set in configure.host.
2665 libgcj_interpreter=yes
2666 elif test "$enable_interpreter" = no; then
2667 libgcj_interpreter=no
2672 if test "$libgcj_interpreter" = yes; then
2673 cat >> confdefs.h <<\EOF
2674 #define INTERPRETER 1
2679 EXCEPTIONSPEC=
2680 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2681 if test "${enable_sjlj_exceptions+set}" = set; then
2682 enableval="$enable_sjlj_exceptions"
2683 if test "$enable_sjlj_exceptions" = yes; then
2684 # This can be set in configure.host.
2685 libgcj_sjlj=yes
2690 if test "$libgcj_sjlj" = yes; then
2691 EXCEPTIONSPEC="-fsjlj-exceptions"
2692 cat >> confdefs.h <<\EOF
2693 #define SJLJ_EXCEPTIONS 1
2698 FORCELIBGCCSPEC=
2699 if test "$ac_cv_prog_gnu_ld" = yes; then
2700 FORCELIBGCCSPEC="-u __rethrow -u __frame_state_for -lgcc"
2703 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2704 echo "configure:2705: checking for data_start" >&5
2705 LIBDATASTARTSPEC=
2706 NEEDS_DATA_START=
2707 cat > conftest.$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2710 extern int data_start;
2711 int main() {
2712 return ((int) &data_start);
2713 ; return 0; }
2715 if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2716 rm -rf conftest*
2717 echo "$ac_t""found it" 1>&6
2718 else
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2721 rm -rf conftest*
2722 LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
2723 NEEDS_DATA_START=yes
2724 echo "$ac_t""missing" 1>&6
2726 rm -f conftest*
2729 # Check whether --enable-java-net or --disable-java-net was given.
2730 if test "${enable_java_net+set}" = set; then
2731 enableval="$enable_java_net"
2736 if test -n "$enable_java_net"; then
2737 enable_java_net=${enable_java_net_default-yes}
2739 if test "$enable_java_net" = no; then
2740 cat >> confdefs.h <<\EOF
2741 #define DISABLE_JAVA_NET 1
2746 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2747 if test "${enable_jvmpi+set}" = set; then
2748 enableval="$enable_jvmpi"
2753 if test "$enable_jvmpi" != no; then
2754 cat >> confdefs.h <<\EOF
2755 #define ENABLE_JVMPI 1
2760 TARGET_ECOS="no"
2761 # Check whether --with-ecos or --without-ecos was given.
2762 if test "${with_ecos+set}" = set; then
2763 withval="$with_ecos"
2764 TARGET_ECOS="$with_ecos"
2769 case "$TARGET_ECOS" in
2771 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2772 PROCESS=${PROCESS-Posix}
2775 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2776 PROCESS=Ecos
2777 cat >> confdefs.h <<\EOF
2778 #define ECOS 1
2782 esac
2784 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2785 echo "configure:2786: checking how to run the C preprocessor" >&5
2786 # On Suns, sometimes $CPP names a directory.
2787 if test -n "$CPP" && test -d "$CPP"; then
2788 CPP=
2790 if test -z "$CPP"; then
2791 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2793 else
2794 # This must be in double quotes, not single quotes, because CPP may get
2795 # substituted into the Makefile and "${CC-cc}" will confuse make.
2796 CPP="${CC-cc} -E"
2797 # On the NeXT, cc -E runs the code through the compiler's parser,
2798 # not just through cpp.
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 #include <assert.h>
2803 Syntax Error
2805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2806 { (eval echo configure:2807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2808 if test -z "$ac_err"; then
2810 else
2811 echo "$ac_err" >&5
2812 echo "configure: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2814 rm -rf conftest*
2815 CPP="${CC-cc} -E -traditional-cpp"
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 #include <assert.h>
2820 Syntax Error
2822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2823 { (eval echo configure:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2825 if test -z "$ac_err"; then
2827 else
2828 echo "$ac_err" >&5
2829 echo "configure: failed program was:" >&5
2830 cat conftest.$ac_ext >&5
2831 rm -rf conftest*
2832 CPP="${CC-cc} -nologo -E"
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <assert.h>
2837 Syntax Error
2839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2840 { (eval echo configure:2841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2842 if test -z "$ac_err"; then
2844 else
2845 echo "$ac_err" >&5
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2848 rm -rf conftest*
2849 CPP=/lib/cpp
2851 rm -f conftest*
2853 rm -f conftest*
2855 rm -f conftest*
2856 ac_cv_prog_CPP="$CPP"
2858 CPP="$ac_cv_prog_CPP"
2859 else
2860 ac_cv_prog_CPP="$CPP"
2862 echo "$ac_t""$CPP" 1>&6
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 #include <stdint.h>
2869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2870 egrep "uint32_t" >/dev/null 2>&1; then
2871 rm -rf conftest*
2872 cat >> confdefs.h <<\EOF
2873 #define HAVE_INT32_DEFINED 1
2877 rm -f conftest*
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2882 #include <inttypes.h>
2884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2885 egrep "uint32_t" >/dev/null 2>&1; then
2886 rm -rf conftest*
2887 cat >> confdefs.h <<\EOF
2888 #define HAVE_INT32_DEFINED 1
2892 rm -f conftest*
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 #include <sys/types.h>
2899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2900 egrep "u_int32_t" >/dev/null 2>&1; then
2901 rm -rf conftest*
2902 cat >> confdefs.h <<\EOF
2903 #define HAVE_BSD_INT32_DEFINED 1
2907 rm -f conftest*
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2912 #include <sys/config.h>
2914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2915 egrep "u_int32_t" >/dev/null 2>&1; then
2916 rm -rf conftest*
2917 cat >> confdefs.h <<\EOF
2918 #define HAVE_BSD_INT32_DEFINED 1
2922 rm -f conftest*
2926 cat > conftest.$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2929 #include <time.h>
2931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2932 egrep "mktime" >/dev/null 2>&1; then
2933 rm -rf conftest*
2934 cat >> confdefs.h <<\EOF
2935 #define HAVE_MKTIME 1
2939 rm -f conftest*
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 #include <time.h>
2946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2947 egrep "localtime" >/dev/null 2>&1; then
2948 rm -rf conftest*
2949 cat >> confdefs.h <<\EOF
2950 #define HAVE_LOCALTIME 1
2954 rm -f conftest*
2957 test -d java || mkdir java
2958 test -d java/io || mkdir java/io
2961 test -d java/lang || mkdir java/lang
2965 SYSTEMSPEC=
2968 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
2971 # Check whether --with-system-zlib or --without-system-zlib was given.
2972 if test "${with_system_zlib+set}" = set; then
2973 withval="$with_system_zlib"
2977 ZLIBSPEC=
2979 ZLIBTESTSPEC=
2982 libsubdir=.libs
2984 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2985 echo "configure:2986: checking for garbage collector to use" >&5
2986 # Check whether --enable-java-gc or --disable-java-gc was given.
2987 if test "${enable_java_gc+set}" = set; then
2988 enableval="$enable_java_gc"
2990 GC=$enableval
2991 else
2992 GC=boehm
2995 GCLIBS=
2996 GCINCS=
2997 GCDEPS=
2998 GCOBJS=
2999 GCSPEC=
3000 JC1GCSPEC=
3001 GCTESTSPEC=
3002 case "$GC" in
3003 boehm)
3004 echo "$ac_t""boehm" 1>&6
3005 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3006 # We include the path to the boehm-gc build directory.
3007 # See Makefile.am to understand why.
3008 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3009 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
3010 GCSPEC='-lgcjgc'
3011 JC1GCSPEC='-fuse-boehm-gc'
3012 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3013 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3014 GCOBJS=boehm.lo
3015 GCHDR=boehm-gc.h
3016 cat >> confdefs.h <<\EOF
3017 #define HAVE_BOEHM_GC 1
3022 echo "$ac_t""none" 1>&6
3023 GCOBJS=nogc.lo
3024 GCHDR=no-gc.h
3027 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3029 esac
3040 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3041 echo "configure:3042: checking for threads package to use" >&5
3042 # Check whether --enable-threads or --disable-threads was given.
3043 if test "${enable_threads+set}" = set; then
3044 enableval="$enable_threads"
3045 THREADS=$enableval
3046 else
3047 THREADS=no
3051 if test "$THREADS" = yes; then
3052 case "$host" in
3053 *-*-vxworks*)
3054 THREADS=vxworks
3056 *-*-linux*)
3057 # FIXME: this isn't correct in all cases.
3058 THREADS=posix
3060 *-*-win*)
3061 THREADS=win32
3063 *-*-irix*)
3064 # FIXME: for now, choose POSIX, because we implement that.
3065 # Later, choose irix threads.
3066 THREADS=posix
3068 *-*-solaris*)
3069 # FIXME: for now, choose POSIX, because we implement that.
3070 # Later, choose solaris threads.
3071 THREADS=posix
3074 # For now.
3075 THREADS=none
3077 esac
3080 case "$THREADS" in
3081 no | none | single)
3082 THREADS=none
3084 posix | pthreads)
3085 THREADS=posix
3086 case "$host" in
3087 *-*-linux*)
3088 cat >> confdefs.h <<\EOF
3089 #define LINUX_THREADS 1
3093 esac
3095 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3096 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3099 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3101 esac
3102 echo "$ac_t""$THREADS" 1>&6
3104 THREADLIBS=
3105 THREADINCS=
3106 THREADDEPS=
3107 THREADOBJS=
3108 THREADH=
3109 THREADSPEC=
3110 case "$THREADS" in
3111 posix)
3112 THREADLIBS=-lpthread
3113 THREADSPEC=-lpthread
3114 THREADOBJS=posix-threads.lo
3115 THREADH=posix-threads.h
3116 # MIT pthreads doesn't seem to have the mutexattr functions.
3117 # But for now we don't check for it. We just assume you aren't
3118 # using MIT pthreads.
3119 cat >> confdefs.h <<\EOF
3120 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3124 # If we're using the Boehm GC, then we happen to know that it
3125 # defines _REENTRANT, so we don't bother. Eww.
3126 if test "$GC" != boehm; then
3127 cat >> confdefs.h <<\EOF
3128 #define _REENTRANT 1
3132 cat >> confdefs.h <<\EOF
3133 #define _POSIX_PTHREAD_SEMANTICS 1
3138 none)
3139 THREADOBJS=no-threads.lo
3140 THREADH=no-threads.h
3142 esac
3152 if test "$GCC" = yes; then
3153 USING_GCC_TRUE=
3154 USING_GCC_FALSE='#'
3155 else
3156 USING_GCC_TRUE='#'
3157 USING_GCC_FALSE=
3160 CANADIAN=no
3161 NULL_TARGET=no
3162 NATIVE=yes
3164 # Find eh-common.h and support headers. If we're in the tree with
3165 # gcc, then look there. Otherwise look in compat-include. If all else
3166 # fails, just hope the user has set things up somehow.
3167 if test -r $srcdir/../gcc/eh-common.h; then
3168 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
3169 else
3170 if test -d $srcdir/../compat-include; then
3171 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
3172 else
3173 EH_COMMON_INCLUDE=
3177 if test -n "${with_cross_host}"; then
3178 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3179 # may not work correctly, because the compiler may not be able to
3180 # link executables.
3182 # We assume newlib. This lets us hard-code the functions we know
3183 # we'll have.
3184 cat >> confdefs.h <<\EOF
3185 #define HAVE_MEMMOVE 1
3188 cat >> confdefs.h <<\EOF
3189 #define HAVE_MEMCPY 1
3192 cat >> confdefs.h <<\EOF
3193 #define HAVE_STRERROR 1
3196 cat >> confdefs.h <<\EOF
3197 #define HAVE_GMTIME_R 1
3200 cat >> confdefs.h <<\EOF
3201 #define HAVE_LOCALTIME_R 1
3204 cat >> confdefs.h <<\EOF
3205 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3208 cat >> confdefs.h <<\EOF
3209 #define HAVE_ALLOCA 1
3213 cat >> confdefs.h <<\EOF
3214 #define NO_GETUID 1
3218 ZLIBSPEC=-lzgcj
3219 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3221 # If Canadian cross, then don't pick up tools from the build
3222 # directory.
3223 if test "$build" != "$with_cross_host"; then
3224 CANADIAN=yes
3225 EH_COMMON_INCLUDE=
3226 GCJ="${target_alias}-gcj"
3227 else
3228 GCJ=
3230 NATIVE=no
3231 else
3232 for ac_func in strerror ioctl select fstat open fsync sleep
3234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3235 echo "configure:3236: checking for $ac_func" >&5
3236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3238 else
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 /* System header to define __stub macros and hopefully few prototypes,
3243 which can conflict with char $ac_func(); below. */
3244 #include <assert.h>
3245 /* Override any gcc2 internal prototype to avoid an error. */
3246 /* We use char because int might match the return type of a gcc2
3247 builtin and then its argument prototype would still apply. */
3248 char $ac_func();
3250 int main() {
3252 /* The GNU C library defines this for functions which it implements
3253 to always fail with ENOSYS. Some functions are actually named
3254 something starting with __ and the normal name is an alias. */
3255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3256 choke me
3257 #else
3258 $ac_func();
3259 #endif
3261 ; return 0; }
3263 if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3264 rm -rf conftest*
3265 eval "ac_cv_func_$ac_func=yes"
3266 else
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3269 rm -rf conftest*
3270 eval "ac_cv_func_$ac_func=no"
3272 rm -f conftest*
3275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3276 echo "$ac_t""yes" 1>&6
3277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3278 cat >> confdefs.h <<EOF
3279 #define $ac_tr_func 1
3282 else
3283 echo "$ac_t""no" 1>&6
3285 done
3287 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3290 echo "configure:3291: checking for $ac_func" >&5
3291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3293 else
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 /* System header to define __stub macros and hopefully few prototypes,
3298 which can conflict with char $ac_func(); below. */
3299 #include <assert.h>
3300 /* Override any gcc2 internal prototype to avoid an error. */
3301 /* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3303 char $ac_func();
3305 int main() {
3307 /* The GNU C library defines this for functions which it implements
3308 to always fail with ENOSYS. Some functions are actually named
3309 something starting with __ and the normal name is an alias. */
3310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3311 choke me
3312 #else
3313 $ac_func();
3314 #endif
3316 ; return 0; }
3318 if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3319 rm -rf conftest*
3320 eval "ac_cv_func_$ac_func=yes"
3321 else
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 rm -rf conftest*
3325 eval "ac_cv_func_$ac_func=no"
3327 rm -f conftest*
3330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3333 cat >> confdefs.h <<EOF
3334 #define $ac_tr_func 1
3337 else
3338 echo "$ac_t""no" 1>&6
3340 done
3342 for ac_func in access stat mkdir rename rmdir unlink realpath
3344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_func" >&5
3346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3348 else
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 /* System header to define __stub macros and hopefully few prototypes,
3353 which can conflict with char $ac_func(); below. */
3354 #include <assert.h>
3355 /* Override any gcc2 internal prototype to avoid an error. */
3356 /* We use char because int might match the return type of a gcc2
3357 builtin and then its argument prototype would still apply. */
3358 char $ac_func();
3360 int main() {
3362 /* The GNU C library defines this for functions which it implements
3363 to always fail with ENOSYS. Some functions are actually named
3364 something starting with __ and the normal name is an alias. */
3365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3366 choke me
3367 #else
3368 $ac_func();
3369 #endif
3371 ; return 0; }
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3374 rm -rf conftest*
3375 eval "ac_cv_func_$ac_func=yes"
3376 else
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3379 rm -rf conftest*
3380 eval "ac_cv_func_$ac_func=no"
3382 rm -f conftest*
3385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3388 cat >> confdefs.h <<EOF
3389 #define $ac_tr_func 1
3392 else
3393 echo "$ac_t""no" 1>&6
3395 done
3397 for ac_func in iconv nl_langinfo
3399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3400 echo "configure:3401: checking for $ac_func" >&5
3401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3403 else
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 /* System header to define __stub macros and hopefully few prototypes,
3408 which can conflict with char $ac_func(); below. */
3409 #include <assert.h>
3410 /* Override any gcc2 internal prototype to avoid an error. */
3411 /* We use char because int might match the return type of a gcc2
3412 builtin and then its argument prototype would still apply. */
3413 char $ac_func();
3415 int main() {
3417 /* The GNU C library defines this for functions which it implements
3418 to always fail with ENOSYS. Some functions are actually named
3419 something starting with __ and the normal name is an alias. */
3420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3421 choke me
3422 #else
3423 $ac_func();
3424 #endif
3426 ; return 0; }
3428 if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3429 rm -rf conftest*
3430 eval "ac_cv_func_$ac_func=yes"
3431 else
3432 echo "configure: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3434 rm -rf conftest*
3435 eval "ac_cv_func_$ac_func=no"
3437 rm -f conftest*
3440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3441 echo "$ac_t""yes" 1>&6
3442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3443 cat >> confdefs.h <<EOF
3444 #define $ac_tr_func 1
3447 else
3448 echo "$ac_t""no" 1>&6
3450 done
3452 for ac_func in inet_aton inet_addr
3454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3455 echo "configure:3456: checking for $ac_func" >&5
3456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3458 else
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* System header to define __stub macros and hopefully few prototypes,
3463 which can conflict with char $ac_func(); below. */
3464 #include <assert.h>
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3468 char $ac_func();
3470 int main() {
3472 /* The GNU C library defines this for functions which it implements
3473 to always fail with ENOSYS. Some functions are actually named
3474 something starting with __ and the normal name is an alias. */
3475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3476 choke me
3477 #else
3478 $ac_func();
3479 #endif
3481 ; return 0; }
3483 if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3484 rm -rf conftest*
3485 eval "ac_cv_func_$ac_func=yes"
3486 else
3487 echo "configure: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3489 rm -rf conftest*
3490 eval "ac_cv_func_$ac_func=no"
3492 rm -f conftest*
3495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3498 cat >> confdefs.h <<EOF
3499 #define $ac_tr_func 1
3501 break
3502 else
3503 echo "$ac_t""no" 1>&6
3505 done
3507 for ac_func in inet_pton uname inet_ntoa
3509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_func" >&5
3511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3513 else
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 /* System header to define __stub macros and hopefully few prototypes,
3518 which can conflict with char $ac_func(); below. */
3519 #include <assert.h>
3520 /* Override any gcc2 internal prototype to avoid an error. */
3521 /* We use char because int might match the return type of a gcc2
3522 builtin and then its argument prototype would still apply. */
3523 char $ac_func();
3525 int main() {
3527 /* The GNU C library defines this for functions which it implements
3528 to always fail with ENOSYS. Some functions are actually named
3529 something starting with __ and the normal name is an alias. */
3530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3531 choke me
3532 #else
3533 $ac_func();
3534 #endif
3536 ; return 0; }
3538 if { (eval echo configure:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3539 rm -rf conftest*
3540 eval "ac_cv_func_$ac_func=yes"
3541 else
3542 echo "configure: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3544 rm -rf conftest*
3545 eval "ac_cv_func_$ac_func=no"
3547 rm -f conftest*
3550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3551 echo "$ac_t""yes" 1>&6
3552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3553 cat >> confdefs.h <<EOF
3554 #define $ac_tr_func 1
3557 else
3558 echo "$ac_t""no" 1>&6
3560 done
3562 for ac_func in backtrace fork execvp pipe
3564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3565 echo "configure:3566: checking for $ac_func" >&5
3566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3568 else
3569 cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 /* System header to define __stub macros and hopefully few prototypes,
3573 which can conflict with char $ac_func(); below. */
3574 #include <assert.h>
3575 /* Override any gcc2 internal prototype to avoid an error. */
3576 /* We use char because int might match the return type of a gcc2
3577 builtin and then its argument prototype would still apply. */
3578 char $ac_func();
3580 int main() {
3582 /* The GNU C library defines this for functions which it implements
3583 to always fail with ENOSYS. Some functions are actually named
3584 something starting with __ and the normal name is an alias. */
3585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3586 choke me
3587 #else
3588 $ac_func();
3589 #endif
3591 ; return 0; }
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3594 rm -rf conftest*
3595 eval "ac_cv_func_$ac_func=yes"
3596 else
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 rm -rf conftest*
3600 eval "ac_cv_func_$ac_func=no"
3602 rm -f conftest*
3605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
3607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3608 cat >> confdefs.h <<EOF
3609 #define $ac_tr_func 1
3612 else
3613 echo "$ac_t""no" 1>&6
3615 done
3617 for ac_hdr in execinfo.h unistd.h dlfcn.h
3619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3621 echo "configure:3622: checking for $ac_hdr" >&5
3622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3624 else
3625 cat > conftest.$ac_ext <<EOF
3626 #line 3627 "configure"
3627 #include "confdefs.h"
3628 #include <$ac_hdr>
3630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3631 { (eval echo configure:3632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3633 if test -z "$ac_err"; then
3634 rm -rf conftest*
3635 eval "ac_cv_header_$ac_safe=yes"
3636 else
3637 echo "$ac_err" >&5
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3640 rm -rf conftest*
3641 eval "ac_cv_header_$ac_safe=no"
3643 rm -f conftest*
3645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3646 echo "$ac_t""yes" 1>&6
3647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3648 cat >> confdefs.h <<EOF
3649 #define $ac_tr_hdr 1
3652 else
3653 echo "$ac_t""no" 1>&6
3655 done
3657 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3658 echo "configure:3659: checking for dladdr in -ldl" >&5
3659 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3662 else
3663 ac_save_LIBS="$LIBS"
3664 LIBS="-ldl $LIBS"
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3671 char dladdr();
3673 int main() {
3674 dladdr()
3675 ; return 0; }
3677 if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3678 rm -rf conftest*
3679 eval "ac_cv_lib_$ac_lib_var=yes"
3680 else
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3683 rm -rf conftest*
3684 eval "ac_cv_lib_$ac_lib_var=no"
3686 rm -f conftest*
3687 LIBS="$ac_save_LIBS"
3690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3691 echo "$ac_t""yes" 1>&6
3693 cat >> confdefs.h <<\EOF
3694 #define HAVE_DLADDR 1
3697 else
3698 echo "$ac_t""no" 1>&6
3701 for ac_file in /proc/self/exe
3704 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3705 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3706 echo "configure:3707: checking for $ac_file" >&5
3707 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3709 else
3710 if test "$cross_compiling" = yes; then
3711 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3712 else
3713 if test -r $ac_file; then
3714 eval "ac_cv_file_$ac_safe=yes"
3715 else
3716 eval "ac_cv_file_$ac_safe=no"
3720 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3721 echo "$ac_t""yes" 1>&6
3722 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3723 cat >> confdefs.h <<EOF
3724 #define $ac_tr_file 1
3727 cat >> confdefs.h <<\EOF
3728 #define HAVE_PROC_SELF_EXE 1
3731 else
3732 echo "$ac_t""no" 1>&6
3735 done
3738 for ac_func in gethostbyname_r
3740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3741 echo "configure:3742: checking for $ac_func" >&5
3742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3744 else
3745 cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 /* System header to define __stub macros and hopefully few prototypes,
3749 which can conflict with char $ac_func(); below. */
3750 #include <assert.h>
3751 /* Override any gcc2 internal prototype to avoid an error. */
3752 /* We use char because int might match the return type of a gcc2
3753 builtin and then its argument prototype would still apply. */
3754 char $ac_func();
3756 int main() {
3758 /* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3762 choke me
3763 #else
3764 $ac_func();
3765 #endif
3767 ; return 0; }
3769 if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3770 rm -rf conftest*
3771 eval "ac_cv_func_$ac_func=yes"
3772 else
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3775 rm -rf conftest*
3776 eval "ac_cv_func_$ac_func=no"
3778 rm -f conftest*
3781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3784 cat >> confdefs.h <<EOF
3785 #define $ac_tr_func 1
3788 cat >> confdefs.h <<\EOF
3789 #define HAVE_GETHOSTBYNAME_R 1
3792 # There are two different kinds of gethostbyname_r.
3793 # We look for the one that returns `int'.
3794 # Hopefully this check is robust enough.
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 #include <netdb.h>
3800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3801 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3802 rm -rf conftest*
3804 cat >> confdefs.h <<\EOF
3805 #define GETHOSTBYNAME_R_RETURNS_INT 1
3809 rm -f conftest*
3812 case " $GCINCS " in
3813 *" -D_REENTRANT "*) ;;
3815 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3816 echo "configure:3817: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3817 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3819 else
3821 ac_ext=C
3822 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3823 ac_cpp='$CXXCPP $CPPFLAGS'
3824 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3825 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3826 cross_compiling=$ac_cv_prog_cxx_cross
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 #include <netdb.h>
3832 int main() {
3833 gethostbyname_r("", 0, 0);
3834 ; return 0; }
3836 if { (eval echo configure:3837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3837 rm -rf conftest*
3838 libjava_cv_gethostbyname_r_needs_reentrant=no
3839 else
3840 echo "configure: failed program was:" >&5
3841 cat conftest.$ac_ext >&5
3842 rm -rf conftest*
3843 CPPFLAGS_SAVE="$CPPFLAGS"
3844 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848 #include <netdb.h>
3849 int main() {
3850 gethostbyname_r("", 0, 0);
3851 ; return 0; }
3853 if { (eval echo configure:3854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3854 rm -rf conftest*
3855 libjava_cv_gethostbyname_r_needs_reentrant=yes
3856 else
3857 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3859 rm -rf conftest*
3860 libjava_cv_gethostbyname_r_needs_reentrant=fail
3862 rm -f conftest*
3863 CPPFLAGS="$CPPFLAGS_SAVE"
3866 rm -f conftest*
3867 ac_ext=c
3868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3872 cross_compiling=$ac_cv_prog_cc_cross
3877 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3878 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3879 cat >> confdefs.h <<\EOF
3880 #define _REENTRANT 1
3885 esac
3887 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3888 echo "configure:3889: checking for struct hostent_data" >&5
3889 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3891 else
3892 cat > conftest.$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3896 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3897 # define _REENTRANT 1
3898 #endif
3899 #include <netdb.h>
3900 int main() {
3901 struct hostent_data data;
3902 ; return 0; }
3904 if { (eval echo configure:3905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3905 rm -rf conftest*
3906 libjava_cv_struct_hostent_data=yes
3907 else
3908 echo "configure: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3910 rm -rf conftest*
3911 libjava_cv_struct_hostent_data=no
3913 rm -f conftest*
3916 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3917 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3918 cat >> confdefs.h <<\EOF
3919 #define HAVE_STRUCT_HOSTENT_DATA 1
3924 else
3925 echo "$ac_t""no" 1>&6
3927 done
3930 for ac_func in gethostbyaddr_r
3932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3933 echo "configure:3934: checking for $ac_func" >&5
3934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3936 else
3937 cat > conftest.$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3940 /* System header to define __stub macros and hopefully few prototypes,
3941 which can conflict with char $ac_func(); below. */
3942 #include <assert.h>
3943 /* Override any gcc2 internal prototype to avoid an error. */
3944 /* We use char because int might match the return type of a gcc2
3945 builtin and then its argument prototype would still apply. */
3946 char $ac_func();
3948 int main() {
3950 /* The GNU C library defines this for functions which it implements
3951 to always fail with ENOSYS. Some functions are actually named
3952 something starting with __ and the normal name is an alias. */
3953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3954 choke me
3955 #else
3956 $ac_func();
3957 #endif
3959 ; return 0; }
3961 if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3962 rm -rf conftest*
3963 eval "ac_cv_func_$ac_func=yes"
3964 else
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3967 rm -rf conftest*
3968 eval "ac_cv_func_$ac_func=no"
3970 rm -f conftest*
3973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3974 echo "$ac_t""yes" 1>&6
3975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3976 cat >> confdefs.h <<EOF
3977 #define $ac_tr_func 1
3980 cat >> confdefs.h <<\EOF
3981 #define HAVE_GETHOSTBYADDR_R 1
3984 # There are two different kinds of gethostbyaddr_r.
3985 # We look for the one that returns `int'.
3986 # Hopefully this check is robust enough.
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 #include <netdb.h>
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3994 rm -rf conftest*
3996 cat >> confdefs.h <<\EOF
3997 #define GETHOSTBYADDR_R_RETURNS_INT 1
4001 rm -f conftest*
4003 else
4004 echo "$ac_t""no" 1>&6
4006 done
4009 for ac_func in gethostname
4011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4012 echo "configure:4013: checking for $ac_func" >&5
4013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4015 else
4016 cat > conftest.$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4019 /* System header to define __stub macros and hopefully few prototypes,
4020 which can conflict with char $ac_func(); below. */
4021 #include <assert.h>
4022 /* Override any gcc2 internal prototype to avoid an error. */
4023 /* We use char because int might match the return type of a gcc2
4024 builtin and then its argument prototype would still apply. */
4025 char $ac_func();
4027 int main() {
4029 /* The GNU C library defines this for functions which it implements
4030 to always fail with ENOSYS. Some functions are actually named
4031 something starting with __ and the normal name is an alias. */
4032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4033 choke me
4034 #else
4035 $ac_func();
4036 #endif
4038 ; return 0; }
4040 if { (eval echo configure:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4041 rm -rf conftest*
4042 eval "ac_cv_func_$ac_func=yes"
4043 else
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4046 rm -rf conftest*
4047 eval "ac_cv_func_$ac_func=no"
4049 rm -f conftest*
4052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4053 echo "$ac_t""yes" 1>&6
4054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4055 cat >> confdefs.h <<EOF
4056 #define $ac_tr_func 1
4059 cat >> confdefs.h <<\EOF
4060 #define HAVE_GETHOSTNAME 1
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4066 #include <unistd.h>
4068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4069 egrep "gethostname" >/dev/null 2>&1; then
4070 rm -rf conftest*
4072 cat >> confdefs.h <<\EOF
4073 #define HAVE_GETHOSTNAME_DECL 1
4077 rm -f conftest*
4079 else
4080 echo "$ac_t""no" 1>&6
4082 done
4085 # Look for these functions in the thread library, but only bother
4086 # if using POSIX threads.
4087 if test "$THREADS" = posix; then
4088 save_LIBS="$LIBS"
4089 LIBS="$LIBS $THREADLIBS"
4090 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4091 # E.g., Solaris.
4092 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4095 echo "configure:4096: checking for $ac_func" >&5
4096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4098 else
4099 cat > conftest.$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 /* System header to define __stub macros and hopefully few prototypes,
4103 which can conflict with char $ac_func(); below. */
4104 #include <assert.h>
4105 /* Override any gcc2 internal prototype to avoid an error. */
4106 /* We use char because int might match the return type of a gcc2
4107 builtin and then its argument prototype would still apply. */
4108 char $ac_func();
4110 int main() {
4112 /* The GNU C library defines this for functions which it implements
4113 to always fail with ENOSYS. Some functions are actually named
4114 something starting with __ and the normal name is an alias. */
4115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4116 choke me
4117 #else
4118 $ac_func();
4119 #endif
4121 ; return 0; }
4123 if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4124 rm -rf conftest*
4125 eval "ac_cv_func_$ac_func=yes"
4126 else
4127 echo "configure: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4129 rm -rf conftest*
4130 eval "ac_cv_func_$ac_func=no"
4132 rm -f conftest*
4135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4136 echo "$ac_t""yes" 1>&6
4137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4138 cat >> confdefs.h <<EOF
4139 #define $ac_tr_func 1
4142 else
4143 echo "$ac_t""no" 1>&6
4145 done
4148 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4149 # Solaris 7 the name librt is preferred.
4150 for ac_func in sched_yield
4152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4153 echo "configure:4154: checking for $ac_func" >&5
4154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4156 else
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 /* System header to define __stub macros and hopefully few prototypes,
4161 which can conflict with char $ac_func(); below. */
4162 #include <assert.h>
4163 /* Override any gcc2 internal prototype to avoid an error. */
4164 /* We use char because int might match the return type of a gcc2
4165 builtin and then its argument prototype would still apply. */
4166 char $ac_func();
4168 int main() {
4170 /* The GNU C library defines this for functions which it implements
4171 to always fail with ENOSYS. Some functions are actually named
4172 something starting with __ and the normal name is an alias. */
4173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4174 choke me
4175 #else
4176 $ac_func();
4177 #endif
4179 ; return 0; }
4181 if { (eval echo configure:4182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4182 rm -rf conftest*
4183 eval "ac_cv_func_$ac_func=yes"
4184 else
4185 echo "configure: failed program was:" >&5
4186 cat conftest.$ac_ext >&5
4187 rm -rf conftest*
4188 eval "ac_cv_func_$ac_func=no"
4190 rm -f conftest*
4193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4194 echo "$ac_t""yes" 1>&6
4195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4196 cat >> confdefs.h <<EOF
4197 #define $ac_tr_func 1
4200 else
4201 echo "$ac_t""no" 1>&6
4202 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4203 echo "configure:4204: checking for sched_yield in -lrt" >&5
4204 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4207 else
4208 ac_save_LIBS="$LIBS"
4209 LIBS="-lrt $LIBS"
4210 cat > conftest.$ac_ext <<EOF
4211 #line 4212 "configure"
4212 #include "confdefs.h"
4213 /* Override any gcc2 internal prototype to avoid an error. */
4214 /* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4216 char sched_yield();
4218 int main() {
4219 sched_yield()
4220 ; return 0; }
4222 if { (eval echo configure:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4223 rm -rf conftest*
4224 eval "ac_cv_lib_$ac_lib_var=yes"
4225 else
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4228 rm -rf conftest*
4229 eval "ac_cv_lib_$ac_lib_var=no"
4231 rm -f conftest*
4232 LIBS="$ac_save_LIBS"
4235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4236 echo "$ac_t""yes" 1>&6
4238 cat >> confdefs.h <<\EOF
4239 #define HAVE_SCHED_YIELD 1
4242 THREADLIBS="$THREADLIBS -lrt"
4243 THREADSPEC="$THREADSPEC -lrt"
4244 else
4245 echo "$ac_t""no" 1>&6
4247 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4248 echo "configure:4249: checking for sched_yield in -lposix4" >&5
4249 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4252 else
4253 ac_save_LIBS="$LIBS"
4254 LIBS="-lposix4 $LIBS"
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 /* Override any gcc2 internal prototype to avoid an error. */
4259 /* We use char because int might match the return type of a gcc2
4260 builtin and then its argument prototype would still apply. */
4261 char sched_yield();
4263 int main() {
4264 sched_yield()
4265 ; return 0; }
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4268 rm -rf conftest*
4269 eval "ac_cv_lib_$ac_lib_var=yes"
4270 else
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4273 rm -rf conftest*
4274 eval "ac_cv_lib_$ac_lib_var=no"
4276 rm -f conftest*
4277 LIBS="$ac_save_LIBS"
4280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4281 echo "$ac_t""yes" 1>&6
4283 cat >> confdefs.h <<\EOF
4284 #define HAVE_SCHED_YIELD 1
4287 THREADLIBS="$THREADLIBS -lposix4"
4288 THREADSPEC="$THREADSPEC -lposix4"
4289 else
4290 echo "$ac_t""no" 1>&6
4296 done
4298 LIBS="$save_LIBS"
4300 # We can save a little space at runtime if the mutex has m_count
4301 # or __m_count. This is a nice hack for Linux.
4302 cat > conftest.$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4305 #include <pthread.h>
4306 int main() {
4308 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4310 ; return 0; }
4312 if { (eval echo configure:4313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4313 rm -rf conftest*
4314 cat >> confdefs.h <<\EOF
4315 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4318 else
4319 echo "configure: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 rm -rf conftest*
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #include <pthread.h>
4327 int main() {
4329 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4331 ; return 0; }
4333 if { (eval echo configure:4334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4334 rm -rf conftest*
4335 cat >> confdefs.h <<\EOF
4336 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4339 else
4340 echo "configure: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4343 rm -f conftest*
4345 rm -f conftest*
4348 # We require a way to get the time.
4349 time_found=no
4350 for ac_func in gettimeofday time ftime
4352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4353 echo "configure:4354: checking for $ac_func" >&5
4354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4356 else
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 /* System header to define __stub macros and hopefully few prototypes,
4361 which can conflict with char $ac_func(); below. */
4362 #include <assert.h>
4363 /* Override any gcc2 internal prototype to avoid an error. */
4364 /* We use char because int might match the return type of a gcc2
4365 builtin and then its argument prototype would still apply. */
4366 char $ac_func();
4368 int main() {
4370 /* The GNU C library defines this for functions which it implements
4371 to always fail with ENOSYS. Some functions are actually named
4372 something starting with __ and the normal name is an alias. */
4373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4374 choke me
4375 #else
4376 $ac_func();
4377 #endif
4379 ; return 0; }
4381 if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4382 rm -rf conftest*
4383 eval "ac_cv_func_$ac_func=yes"
4384 else
4385 echo "configure: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 rm -rf conftest*
4388 eval "ac_cv_func_$ac_func=no"
4390 rm -f conftest*
4393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4396 cat >> confdefs.h <<EOF
4397 #define $ac_tr_func 1
4399 time_found=yes
4400 else
4401 echo "$ac_t""no" 1>&6
4403 done
4405 if test "$time_found" = no; then
4406 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4409 for ac_func in memmove
4411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4412 echo "configure:4413: checking for $ac_func" >&5
4413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4415 else
4416 cat > conftest.$ac_ext <<EOF
4417 #line 4418 "configure"
4418 #include "confdefs.h"
4419 /* System header to define __stub macros and hopefully few prototypes,
4420 which can conflict with char $ac_func(); below. */
4421 #include <assert.h>
4422 /* Override any gcc2 internal prototype to avoid an error. */
4423 /* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4425 char $ac_func();
4427 int main() {
4429 /* The GNU C library defines this for functions which it implements
4430 to always fail with ENOSYS. Some functions are actually named
4431 something starting with __ and the normal name is an alias. */
4432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4433 choke me
4434 #else
4435 $ac_func();
4436 #endif
4438 ; return 0; }
4440 if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4441 rm -rf conftest*
4442 eval "ac_cv_func_$ac_func=yes"
4443 else
4444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4446 rm -rf conftest*
4447 eval "ac_cv_func_$ac_func=no"
4449 rm -f conftest*
4452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4455 cat >> confdefs.h <<EOF
4456 #define $ac_tr_func 1
4459 else
4460 echo "$ac_t""no" 1>&6
4462 done
4465 # We require memcpy.
4466 memcpy_found=no
4467 for ac_func in memcpy
4469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4470 echo "configure:4471: checking for $ac_func" >&5
4471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4473 else
4474 cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4477 /* System header to define __stub macros and hopefully few prototypes,
4478 which can conflict with char $ac_func(); below. */
4479 #include <assert.h>
4480 /* Override any gcc2 internal prototype to avoid an error. */
4481 /* We use char because int might match the return type of a gcc2
4482 builtin and then its argument prototype would still apply. */
4483 char $ac_func();
4485 int main() {
4487 /* The GNU C library defines this for functions which it implements
4488 to always fail with ENOSYS. Some functions are actually named
4489 something starting with __ and the normal name is an alias. */
4490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4491 choke me
4492 #else
4493 $ac_func();
4494 #endif
4496 ; return 0; }
4498 if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4499 rm -rf conftest*
4500 eval "ac_cv_func_$ac_func=yes"
4501 else
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4504 rm -rf conftest*
4505 eval "ac_cv_func_$ac_func=no"
4507 rm -f conftest*
4510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4513 cat >> confdefs.h <<EOF
4514 #define $ac_tr_func 1
4516 memcpy_found=yes
4517 else
4518 echo "$ac_t""no" 1>&6
4520 done
4522 if test "$memcpy_found" = no; then
4523 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4526 # Some library-finding code we stole from Tcl.
4527 #--------------------------------------------------------------------
4528 # Check for the existence of the -lsocket and -lnsl libraries.
4529 # The order here is important, so that they end up in the right
4530 # order in the command line generated by make. Here are some
4531 # special considerations:
4532 # 1. Use "connect" and "accept" to check for -lsocket, and
4533 # "gethostbyname" to check for -lnsl.
4534 # 2. Use each function name only once: can't redo a check because
4535 # autoconf caches the results of the last check and won't redo it.
4536 # 3. Use -lnsl and -lsocket only if they supply procedures that
4537 # aren't already present in the normal libraries. This is because
4538 # IRIX 5.2 has libraries, but they aren't needed and they're
4539 # bogus: they goof up name resolution if used.
4540 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4541 # To get around this problem, check for both libraries together
4542 # if -lsocket doesn't work by itself.
4543 #--------------------------------------------------------------------
4545 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4546 echo "configure:4547: checking for socket libraries" >&5
4547 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4549 else
4550 gcj_cv_lib_sockets=
4551 gcj_checkBoth=0
4552 unset ac_cv_func_connect
4553 echo $ac_n "checking for connect""... $ac_c" 1>&6
4554 echo "configure:4555: checking for connect" >&5
4555 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4557 else
4558 cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 /* System header to define __stub macros and hopefully few prototypes,
4562 which can conflict with char connect(); below. */
4563 #include <assert.h>
4564 /* Override any gcc2 internal prototype to avoid an error. */
4565 /* We use char because int might match the return type of a gcc2
4566 builtin and then its argument prototype would still apply. */
4567 char connect();
4569 int main() {
4571 /* The GNU C library defines this for functions which it implements
4572 to always fail with ENOSYS. Some functions are actually named
4573 something starting with __ and the normal name is an alias. */
4574 #if defined (__stub_connect) || defined (__stub___connect)
4575 choke me
4576 #else
4577 connect();
4578 #endif
4580 ; return 0; }
4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4583 rm -rf conftest*
4584 eval "ac_cv_func_connect=yes"
4585 else
4586 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4588 rm -rf conftest*
4589 eval "ac_cv_func_connect=no"
4591 rm -f conftest*
4594 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4595 echo "$ac_t""yes" 1>&6
4596 gcj_checkSocket=0
4597 else
4598 echo "$ac_t""no" 1>&6
4599 gcj_checkSocket=1
4602 if test "$gcj_checkSocket" = 1; then
4603 unset ac_cv_func_connect
4604 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4605 echo "configure:4606: checking for main in -lsocket" >&5
4606 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4609 else
4610 ac_save_LIBS="$LIBS"
4611 LIBS="-lsocket $LIBS"
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4616 int main() {
4617 main()
4618 ; return 0; }
4620 if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4621 rm -rf conftest*
4622 eval "ac_cv_lib_$ac_lib_var=yes"
4623 else
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4626 rm -rf conftest*
4627 eval "ac_cv_lib_$ac_lib_var=no"
4629 rm -f conftest*
4630 LIBS="$ac_save_LIBS"
4633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4634 echo "$ac_t""yes" 1>&6
4635 gcj_cv_lib_sockets="-lsocket"
4636 else
4637 echo "$ac_t""no" 1>&6
4638 gcj_checkBoth=1
4642 if test "$gcj_checkBoth" = 1; then
4643 gcj_oldLibs=$LIBS
4644 LIBS="$LIBS -lsocket -lnsl"
4645 unset ac_cv_func_accept
4646 echo $ac_n "checking for accept""... $ac_c" 1>&6
4647 echo "configure:4648: checking for accept" >&5
4648 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4650 else
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 /* System header to define __stub macros and hopefully few prototypes,
4655 which can conflict with char accept(); below. */
4656 #include <assert.h>
4657 /* Override any gcc2 internal prototype to avoid an error. */
4658 /* We use char because int might match the return type of a gcc2
4659 builtin and then its argument prototype would still apply. */
4660 char accept();
4662 int main() {
4664 /* The GNU C library defines this for functions which it implements
4665 to always fail with ENOSYS. Some functions are actually named
4666 something starting with __ and the normal name is an alias. */
4667 #if defined (__stub_accept) || defined (__stub___accept)
4668 choke me
4669 #else
4670 accept();
4671 #endif
4673 ; return 0; }
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4676 rm -rf conftest*
4677 eval "ac_cv_func_accept=yes"
4678 else
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 rm -rf conftest*
4682 eval "ac_cv_func_accept=no"
4684 rm -f conftest*
4687 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4688 echo "$ac_t""yes" 1>&6
4689 gcj_checkNsl=0
4690 gcj_cv_lib_sockets="-lsocket -lnsl"
4691 else
4692 echo "$ac_t""no" 1>&6
4695 unset ac_cv_func_accept
4696 LIBS=$gcj_oldLibs
4698 unset ac_cv_func_gethostbyname
4699 gcj_oldLibs=$LIBS
4700 LIBS="$LIBS $gcj_cv_lib_sockets"
4701 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4702 echo "configure:4703: checking for gethostbyname" >&5
4703 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4704 echo $ac_n "(cached) $ac_c" 1>&6
4705 else
4706 cat > conftest.$ac_ext <<EOF
4707 #line 4708 "configure"
4708 #include "confdefs.h"
4709 /* System header to define __stub macros and hopefully few prototypes,
4710 which can conflict with char gethostbyname(); below. */
4711 #include <assert.h>
4712 /* Override any gcc2 internal prototype to avoid an error. */
4713 /* We use char because int might match the return type of a gcc2
4714 builtin and then its argument prototype would still apply. */
4715 char gethostbyname();
4717 int main() {
4719 /* The GNU C library defines this for functions which it implements
4720 to always fail with ENOSYS. Some functions are actually named
4721 something starting with __ and the normal name is an alias. */
4722 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4723 choke me
4724 #else
4725 gethostbyname();
4726 #endif
4728 ; return 0; }
4730 if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4731 rm -rf conftest*
4732 eval "ac_cv_func_gethostbyname=yes"
4733 else
4734 echo "configure: failed program was:" >&5
4735 cat conftest.$ac_ext >&5
4736 rm -rf conftest*
4737 eval "ac_cv_func_gethostbyname=no"
4739 rm -f conftest*
4742 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4745 else
4746 echo "$ac_t""no" 1>&6
4747 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4748 echo "configure:4749: checking for main in -lnsl" >&5
4749 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4752 else
4753 ac_save_LIBS="$LIBS"
4754 LIBS="-lnsl $LIBS"
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4759 int main() {
4760 main()
4761 ; return 0; }
4763 if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4764 rm -rf conftest*
4765 eval "ac_cv_lib_$ac_lib_var=yes"
4766 else
4767 echo "configure: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4769 rm -rf conftest*
4770 eval "ac_cv_lib_$ac_lib_var=no"
4772 rm -f conftest*
4773 LIBS="$ac_save_LIBS"
4776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4777 echo "$ac_t""yes" 1>&6
4778 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4779 else
4780 echo "$ac_t""no" 1>&6
4785 unset ac_cv_func_gethostbyname
4786 LIBS=$gcj_oldLIBS
4790 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4791 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4793 if test "$with_system_zlib" = yes; then
4794 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4795 echo "configure:4796: checking for deflate in -lz" >&5
4796 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4799 else
4800 ac_save_LIBS="$LIBS"
4801 LIBS="-lz $LIBS"
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 /* Override any gcc2 internal prototype to avoid an error. */
4806 /* We use char because int might match the return type of a gcc2
4807 builtin and then its argument prototype would still apply. */
4808 char deflate();
4810 int main() {
4811 deflate()
4812 ; return 0; }
4814 if { (eval echo configure:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4815 rm -rf conftest*
4816 eval "ac_cv_lib_$ac_lib_var=yes"
4817 else
4818 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4820 rm -rf conftest*
4821 eval "ac_cv_lib_$ac_lib_var=no"
4823 rm -f conftest*
4824 LIBS="$ac_save_LIBS"
4827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6
4829 ZLIBSPEC=-lz
4830 else
4831 echo "$ac_t""no" 1>&6
4832 ZLIBSPEC=-lzgcj
4835 else
4836 ZLIBSPEC=-lzgcj
4837 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4840 # On Solaris, and maybe other architectures, the Boehm collector
4841 # requires -ldl.
4842 if test "$GC" = boehm; then
4843 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4844 echo "configure:4845: checking for main in -ldl" >&5
4845 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4848 else
4849 ac_save_LIBS="$LIBS"
4850 LIBS="-ldl $LIBS"
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4855 int main() {
4856 main()
4857 ; return 0; }
4859 if { (eval echo configure:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4860 rm -rf conftest*
4861 eval "ac_cv_lib_$ac_lib_var=yes"
4862 else
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4865 rm -rf conftest*
4866 eval "ac_cv_lib_$ac_lib_var=no"
4868 rm -f conftest*
4869 LIBS="$ac_save_LIBS"
4872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4873 echo "$ac_t""yes" 1>&6
4874 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4875 else
4876 echo "$ac_t""no" 1>&6
4881 if test -z "${with_multisubdir}"; then
4882 builddotdot=.
4883 else
4885 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4888 if test -x "${builddotdot}/../../gcc/gcj"; then
4889 dir="`cd ${builddotdot}/../../gcc && pwd`"
4890 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
4891 else
4892 CANADIAN=yes
4893 NULL_TARGET=yes
4894 GCJ="gcj -B`pwd`/"
4898 # Create it, so that compile/link tests don't fail
4899 test -f libgcj.spec || touch libgcj.spec
4900 GCJ="$GCJ -I$srcdir"
4903 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4904 set dummy ${ac_tool_prefix}gcj; ac_word=$2
4905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4906 echo "configure:4907: checking for $ac_word" >&5
4907 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4909 else
4910 if test -n "$GCJ"; then
4911 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4912 else
4913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4914 ac_dummy="$PATH"
4915 for ac_dir in $ac_dummy; do
4916 test -z "$ac_dir" && ac_dir=.
4917 if test -f $ac_dir/$ac_word; then
4918 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
4919 break
4921 done
4922 IFS="$ac_save_ifs"
4925 GCJ="$ac_cv_prog_GCJ"
4926 if test -n "$GCJ"; then
4927 echo "$ac_t""$GCJ" 1>&6
4928 else
4929 echo "$ac_t""no" 1>&6
4933 if test -z "$ac_cv_prog_GCJ"; then
4934 if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "gcj", so it can be a program name with args.
4936 set dummy gcj; ac_word=$2
4937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4938 echo "configure:4939: checking for $ac_word" >&5
4939 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4941 else
4942 if test -n "$GCJ"; then
4943 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4944 else
4945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4946 ac_dummy="$PATH"
4947 for ac_dir in $ac_dummy; do
4948 test -z "$ac_dir" && ac_dir=.
4949 if test -f $ac_dir/$ac_word; then
4950 ac_cv_prog_GCJ="gcj"
4951 break
4953 done
4954 IFS="$ac_save_ifs"
4955 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
4958 GCJ="$ac_cv_prog_GCJ"
4959 if test -n "$GCJ"; then
4960 echo "$ac_t""$GCJ" 1>&6
4961 else
4962 echo "$ac_t""no" 1>&6
4965 else
4966 GCJ="no"
4970 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
4974 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
4975 lt_save_CC="$CC"
4976 lt_save_CFLAGS="$CFLAGS"
4977 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="" \
4978 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4979 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4980 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4981 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4982 deplibs_check_method="$deplibs_check_method" \
4983 file_magic_cmd="$file_magic_cmd" \
4984 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4985 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
4986 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
4987 CC="$lt_save_CC"
4988 CFLAGS="$lt_save_CFLAGS"
4990 # Redirect the config.log output again, so that the ltconfig log is not
4991 # clobbered by the next message.
4992 exec 5>>./config.log
4997 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4998 echo "configure:4999: checking size of void *" >&5
4999 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5001 else
5002 if test "$cross_compiling" = yes; then
5003 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5004 else
5005 cat > conftest.$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5008 #include <stdio.h>
5009 main()
5011 FILE *f=fopen("conftestval", "w");
5012 if (!f) exit(1);
5013 fprintf(f, "%d\n", sizeof(void *));
5014 exit(0);
5017 if { (eval echo configure:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5018 then
5019 ac_cv_sizeof_void_p=`cat conftestval`
5020 else
5021 echo "configure: failed program was:" >&5
5022 cat conftest.$ac_ext >&5
5023 rm -fr conftest*
5024 ac_cv_sizeof_void_p=0
5026 rm -fr conftest*
5030 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5031 cat >> confdefs.h <<EOF
5032 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5037 ZLIBS=
5038 ZDEPS=
5039 ZINCS=
5040 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5041 # We include the path to the zlib build directory.
5042 # See Makefile.am to understand why.
5043 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5044 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5045 ZINCS='-I$(top_srcdir)/../zlib'
5046 else
5047 ZLIBS="$ZLIBSPEC"
5058 if test "$CANADIAN" = yes; then
5059 CANADIAN_TRUE=
5060 CANADIAN_FALSE='#'
5061 else
5062 CANADIAN_TRUE='#'
5063 CANADIAN_FALSE=
5067 if test "$NULL_TARGET" = yes; then
5068 NULL_TARGET_TRUE=
5069 NULL_TARGET_FALSE='#'
5070 else
5071 NULL_TARGET_TRUE='#'
5072 NULL_TARGET_FALSE=
5076 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5077 NATIVE_TRUE=
5078 NATIVE_FALSE='#'
5079 else
5080 NATIVE_TRUE='#'
5081 NATIVE_FALSE=
5085 if test -z "$with_cross_host"; then
5086 USE_LIBDIR_TRUE=
5087 USE_LIBDIR_FALSE='#'
5088 else
5089 USE_LIBDIR_TRUE='#'
5090 USE_LIBDIR_FALSE=
5094 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5095 NEEDS_DATA_START_TRUE=
5096 NEEDS_DATA_START_FALSE='#'
5097 else
5098 NEEDS_DATA_START_TRUE='#'
5099 NEEDS_DATA_START_FALSE=
5103 # Determine gcj version number.
5105 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5107 cat >> confdefs.h <<EOF
5108 #define GCJVERSION "$gcjvers"
5112 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
5113 # we want to continue to support that version.
5114 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
5115 echo "configure:5116: checking whether gcj supports -fuse-divide-subroutine" >&5
5116 cat > conftest.java << 'END'
5117 public class conftest { }
5119 use_fuse=yes
5120 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
5121 conftest.java > /dev/null 2>&1 \
5122 || use_fuse=no
5123 rm -f conftest.java
5124 if test "$use_fuse" = no; then
5125 DIVIDESPEC=
5127 echo "$ac_t""$use_fuse" 1>&6
5131 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5132 echo "configure:5133: checking for g++ -ffloat-store bug" >&5
5133 save_CFLAGS="$CFLAGS"
5134 CFLAGS="-x c++ -O2 -ffloat-store"
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5138 #include <math.h>
5139 int main() {
5141 ; return 0; }
5143 if { (eval echo configure:5144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5144 rm -rf conftest*
5145 echo "$ac_t""no" 1>&6
5146 else
5147 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5149 rm -rf conftest*
5150 cat >> confdefs.h <<\EOF
5151 #define __NO_MATH_INLINES 1
5154 echo "$ac_t""yes" 1>&6
5156 rm -f conftest*
5157 CFLAGS="$save_CFLAGS"
5159 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h langinfo.h
5161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5163 echo "configure:5164: checking for $ac_hdr" >&5
5164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5166 else
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5170 #include <$ac_hdr>
5172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5173 { (eval echo configure:5174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5175 if test -z "$ac_err"; then
5176 rm -rf conftest*
5177 eval "ac_cv_header_$ac_safe=yes"
5178 else
5179 echo "$ac_err" >&5
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5182 rm -rf conftest*
5183 eval "ac_cv_header_$ac_safe=no"
5185 rm -f conftest*
5187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5190 cat >> confdefs.h <<EOF
5191 #define $ac_tr_hdr 1
5194 else
5195 echo "$ac_t""no" 1>&6
5197 done
5199 for ac_hdr in dirent.h
5201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5203 echo "configure:5204: checking for $ac_hdr" >&5
5204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5206 else
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5210 #include <$ac_hdr>
5212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5213 { (eval echo configure:5214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5215 if test -z "$ac_err"; then
5216 rm -rf conftest*
5217 eval "ac_cv_header_$ac_safe=yes"
5218 else
5219 echo "$ac_err" >&5
5220 echo "configure: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5222 rm -rf conftest*
5223 eval "ac_cv_header_$ac_safe=no"
5225 rm -f conftest*
5227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5228 echo "$ac_t""yes" 1>&6
5229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5230 cat >> confdefs.h <<EOF
5231 #define $ac_tr_hdr 1
5234 else
5235 echo "$ac_t""no" 1>&6
5237 done
5240 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5241 echo "configure:5242: checking for ANSI C header files" >&5
5242 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5244 else
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5248 #include <stdlib.h>
5249 #include <stdarg.h>
5250 #include <string.h>
5251 #include <float.h>
5253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5254 { (eval echo configure:5255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5256 if test -z "$ac_err"; then
5257 rm -rf conftest*
5258 ac_cv_header_stdc=yes
5259 else
5260 echo "$ac_err" >&5
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5263 rm -rf conftest*
5264 ac_cv_header_stdc=no
5266 rm -f conftest*
5268 if test $ac_cv_header_stdc = yes; then
5269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5273 #include <string.h>
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 egrep "memchr" >/dev/null 2>&1; then
5278 else
5279 rm -rf conftest*
5280 ac_cv_header_stdc=no
5282 rm -f conftest*
5286 if test $ac_cv_header_stdc = yes; then
5287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5288 cat > conftest.$ac_ext <<EOF
5289 #line 5290 "configure"
5290 #include "confdefs.h"
5291 #include <stdlib.h>
5293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 egrep "free" >/dev/null 2>&1; then
5296 else
5297 rm -rf conftest*
5298 ac_cv_header_stdc=no
5300 rm -f conftest*
5304 if test $ac_cv_header_stdc = yes; then
5305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5306 if test "$cross_compiling" = yes; then
5308 else
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5312 #include <ctype.h>
5313 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5314 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5316 int main () { int i; for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5318 exit (0); }
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5322 then
5324 else
5325 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5327 rm -fr conftest*
5328 ac_cv_header_stdc=no
5330 rm -fr conftest*
5336 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5337 if test $ac_cv_header_stdc = yes; then
5338 cat >> confdefs.h <<\EOF
5339 #define STDC_HEADERS 1
5344 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5345 echo "configure:5346: checking for ssize_t" >&5
5346 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5348 else
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5352 #include <sys/types.h>
5353 #if STDC_HEADERS
5354 #include <stdlib.h>
5355 #include <stddef.h>
5356 #endif
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5360 rm -rf conftest*
5361 ac_cv_type_ssize_t=yes
5362 else
5363 rm -rf conftest*
5364 ac_cv_type_ssize_t=no
5366 rm -f conftest*
5369 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5370 if test $ac_cv_type_ssize_t = no; then
5371 cat >> confdefs.h <<\EOF
5372 #define ssize_t int
5378 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5379 echo "configure:5380: checking for in_addr_t" >&5
5380 cat > conftest.$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5383 #include <sys/types.h>
5384 #if STDC_HEADERS
5385 #include <stdlib.h>
5386 #include <stddef.h>
5387 #endif
5388 #if HAVE_NETINET_IN_H
5389 #include <netinet/in.h>
5390 #endif
5391 int main() {
5392 in_addr_t foo;
5393 ; return 0; }
5395 if { (eval echo configure:5396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5396 rm -rf conftest*
5397 cat >> confdefs.h <<\EOF
5398 #define HAVE_IN_ADDR_T 1
5401 echo "$ac_t""yes" 1>&6
5402 else
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5405 rm -rf conftest*
5406 echo "$ac_t""no" 1>&6
5408 rm -f conftest*
5410 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5411 echo "configure:5412: checking whether struct ip_mreq is in netinet/in.h" >&5
5412 cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5415 #include <netinet/in.h>
5416 int main() {
5417 struct ip_mreq mreq;
5418 ; return 0; }
5420 if { (eval echo configure:5421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5421 rm -rf conftest*
5422 cat >> confdefs.h <<\EOF
5423 #define HAVE_STRUCT_IP_MREQ 1
5426 echo "$ac_t""yes" 1>&6
5427 else
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5430 rm -rf conftest*
5431 echo "$ac_t""no" 1>&6
5433 rm -f conftest*
5435 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5436 echo "configure:5437: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5437 cat > conftest.$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 #include <netinet/in.h>
5441 int main() {
5442 struct sockaddr_in6 addr6;
5443 ; return 0; }
5445 if { (eval echo configure:5446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5446 rm -rf conftest*
5447 cat >> confdefs.h <<\EOF
5448 #define HAVE_INET6 1
5451 echo "$ac_t""yes" 1>&6
5452 else
5453 echo "configure: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5455 rm -rf conftest*
5456 echo "$ac_t""no" 1>&6
5458 rm -f conftest*
5460 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5461 echo "configure:5462: checking for socklen_t in sys/socket.h" >&5
5462 cat > conftest.$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5465 #include <sys/types.h>
5466 #include <sys/socket.h>
5467 int main() {
5468 socklen_t x = 5;
5469 ; return 0; }
5471 if { (eval echo configure:5472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5472 rm -rf conftest*
5473 cat >> confdefs.h <<\EOF
5474 #define HAVE_SOCKLEN_T 1
5477 echo "$ac_t""yes" 1>&6
5478 else
5479 echo "configure: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5481 rm -rf conftest*
5482 echo "$ac_t""no" 1>&6
5484 rm -f conftest*
5486 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5487 echo "configure:5488: checking for tm_gmtoff in struct tm" >&5
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 #include <time.h>
5492 int main() {
5493 struct tm tim; tim.tm_gmtoff = 0;
5494 ; return 0; }
5496 if { (eval echo configure:5497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5497 rm -rf conftest*
5498 cat >> confdefs.h <<\EOF
5499 #define STRUCT_TM_HAS_GMTOFF 1
5502 echo "$ac_t""yes" 1>&6
5503 else
5504 echo "configure: failed program was:" >&5
5505 cat conftest.$ac_ext >&5
5506 rm -rf conftest*
5507 echo "$ac_t""no" 1>&6
5508 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5509 echo "configure:5510: checking for global timezone variable" >&5
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5513 #include <time.h>
5514 int main() {
5515 long z2 = timezone;
5516 ; return 0; }
5518 if { (eval echo configure:5519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5519 rm -rf conftest*
5520 cat >> confdefs.h <<\EOF
5521 #define HAVE_TIMEZONE 1
5524 echo "$ac_t""yes" 1>&6
5525 else
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5528 rm -rf conftest*
5529 echo "$ac_t""no" 1>&6
5531 rm -f conftest*
5533 rm -f conftest*
5535 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5536 # for constant arguments. Useless!
5537 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5538 echo "configure:5539: checking for working alloca.h" >&5
5539 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5541 else
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 #include <alloca.h>
5546 int main() {
5547 void *p = alloca(2 * sizeof(int));
5548 ; return 0; }
5550 if { (eval echo configure:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551 rm -rf conftest*
5552 ac_cv_header_alloca_h=yes
5553 else
5554 echo "configure: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5556 rm -rf conftest*
5557 ac_cv_header_alloca_h=no
5559 rm -f conftest*
5562 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5563 if test $ac_cv_header_alloca_h = yes; then
5564 cat >> confdefs.h <<\EOF
5565 #define HAVE_ALLOCA_H 1
5570 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5571 echo "configure:5572: checking for alloca" >&5
5572 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5574 else
5575 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5579 #ifdef __GNUC__
5580 # define alloca __builtin_alloca
5581 #else
5582 # ifdef _MSC_VER
5583 # include <malloc.h>
5584 # define alloca _alloca
5585 # else
5586 # if HAVE_ALLOCA_H
5587 # include <alloca.h>
5588 # else
5589 # ifdef _AIX
5590 #pragma alloca
5591 # else
5592 # ifndef alloca /* predefined by HP cc +Olibcalls */
5593 char *alloca ();
5594 # endif
5595 # endif
5596 # endif
5597 # endif
5598 #endif
5600 int main() {
5601 char *p = (char *) alloca(1);
5602 ; return 0; }
5604 if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5605 rm -rf conftest*
5606 ac_cv_func_alloca_works=yes
5607 else
5608 echo "configure: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5610 rm -rf conftest*
5611 ac_cv_func_alloca_works=no
5613 rm -f conftest*
5616 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5617 if test $ac_cv_func_alloca_works = yes; then
5618 cat >> confdefs.h <<\EOF
5619 #define HAVE_ALLOCA 1
5624 if test $ac_cv_func_alloca_works = no; then
5625 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5626 # that cause trouble. Some versions do not even contain alloca or
5627 # contain a buggy version. If you still want to use their alloca,
5628 # use ar to extract alloca.o from them instead of compiling alloca.c.
5629 ALLOCA=alloca.${ac_objext}
5630 cat >> confdefs.h <<\EOF
5631 #define C_ALLOCA 1
5635 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5636 echo "configure:5637: checking whether alloca needs Cray hooks" >&5
5637 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5639 else
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643 #if defined(CRAY) && ! defined(CRAY2)
5644 webecray
5645 #else
5646 wenotbecray
5647 #endif
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 egrep "webecray" >/dev/null 2>&1; then
5652 rm -rf conftest*
5653 ac_cv_os_cray=yes
5654 else
5655 rm -rf conftest*
5656 ac_cv_os_cray=no
5658 rm -f conftest*
5662 echo "$ac_t""$ac_cv_os_cray" 1>&6
5663 if test $ac_cv_os_cray = yes; then
5664 for ac_func in _getb67 GETB67 getb67; do
5665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5666 echo "configure:5667: checking for $ac_func" >&5
5667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5669 else
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5673 /* System header to define __stub macros and hopefully few prototypes,
5674 which can conflict with char $ac_func(); below. */
5675 #include <assert.h>
5676 /* Override any gcc2 internal prototype to avoid an error. */
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5679 char $ac_func();
5681 int main() {
5683 /* The GNU C library defines this for functions which it implements
5684 to always fail with ENOSYS. Some functions are actually named
5685 something starting with __ and the normal name is an alias. */
5686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5687 choke me
5688 #else
5689 $ac_func();
5690 #endif
5692 ; return 0; }
5694 if { (eval echo configure:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5695 rm -rf conftest*
5696 eval "ac_cv_func_$ac_func=yes"
5697 else
5698 echo "configure: failed program was:" >&5
5699 cat conftest.$ac_ext >&5
5700 rm -rf conftest*
5701 eval "ac_cv_func_$ac_func=no"
5703 rm -f conftest*
5706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5707 echo "$ac_t""yes" 1>&6
5708 cat >> confdefs.h <<EOF
5709 #define CRAY_STACKSEG_END $ac_func
5712 break
5713 else
5714 echo "$ac_t""no" 1>&6
5717 done
5720 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5721 echo "configure:5722: checking stack direction for C alloca" >&5
5722 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5724 else
5725 if test "$cross_compiling" = yes; then
5726 ac_cv_c_stack_direction=0
5727 else
5728 cat > conftest.$ac_ext <<EOF
5729 #line 5730 "configure"
5730 #include "confdefs.h"
5731 find_stack_direction ()
5733 static char *addr = 0;
5734 auto char dummy;
5735 if (addr == 0)
5737 addr = &dummy;
5738 return find_stack_direction ();
5740 else
5741 return (&dummy > addr) ? 1 : -1;
5743 main ()
5745 exit (find_stack_direction() < 0);
5748 if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5749 then
5750 ac_cv_c_stack_direction=1
5751 else
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5754 rm -fr conftest*
5755 ac_cv_c_stack_direction=-1
5757 rm -fr conftest*
5762 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5763 cat >> confdefs.h <<EOF
5764 #define STACK_DIRECTION $ac_cv_c_stack_direction
5770 for ac_prog in perl
5772 # Extract the first word of "$ac_prog", so it can be a program name with args.
5773 set dummy $ac_prog; ac_word=$2
5774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5775 echo "configure:5776: checking for $ac_word" >&5
5776 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5778 else
5779 if test -n "$PERL"; then
5780 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5781 else
5782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5783 ac_dummy="$PATH"
5784 for ac_dir in $ac_dummy; do
5785 test -z "$ac_dir" && ac_dir=.
5786 if test -f $ac_dir/$ac_word; then
5787 ac_cv_prog_PERL="$ac_prog"
5788 break
5790 done
5791 IFS="$ac_save_ifs"
5794 PERL="$ac_cv_prog_PERL"
5795 if test -n "$PERL"; then
5796 echo "$ac_t""$PERL" 1>&6
5797 else
5798 echo "$ac_t""no" 1>&6
5801 test -n "$PERL" && break
5802 done
5803 test -n "$PERL" || PERL="false"
5806 SYSDEP_SOURCES=
5808 case "${host}" in
5809 i?86-*-linux*)
5810 SIGNAL_HANDLER=include/i386-signal.h
5812 sparc-sun-solaris*)
5813 SIGNAL_HANDLER=include/sparc-signal.h
5815 ia64-*)
5816 SYSDEP_SOURCES=sysdep/ia64.c
5817 test -d sysdep || mkdir sysdep
5820 SIGNAL_HANDLER=include/default-signal.h
5822 esac
5824 # If we're using sjlj exceptions, forget what we just learned.
5825 if test "$libgcj_sjlj" = yes; then
5826 SIGNAL_HANDLER=include/default-signal.h
5833 if test "${multilib}" = "yes"; then
5834 multilib_arg="--enable-multilib"
5835 else
5836 multilib_arg=
5839 # If we find X, set shell vars x_includes and x_libraries to the
5840 # paths, otherwise set no_x=yes.
5841 # Uses ac_ vars as temps to allow command line to override cache and checks.
5842 # --without-x overrides everything else, but does not touch the cache.
5843 echo $ac_n "checking for X""... $ac_c" 1>&6
5844 echo "configure:5845: checking for X" >&5
5846 # Check whether --with-x or --without-x was given.
5847 if test "${with_x+set}" = set; then
5848 withval="$with_x"
5852 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5853 if test "x$with_x" = xno; then
5854 # The user explicitly disabled X.
5855 have_x=disabled
5856 else
5857 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5858 # Both variables are already set.
5859 have_x=yes
5860 else
5861 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5862 echo $ac_n "(cached) $ac_c" 1>&6
5863 else
5864 # One or both of the vars are not set, and there is no cached value.
5865 ac_x_includes=NO ac_x_libraries=NO
5866 rm -fr conftestdir
5867 if mkdir conftestdir; then
5868 cd conftestdir
5869 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5870 cat > Imakefile <<'EOF'
5871 acfindx:
5872 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5874 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5875 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5876 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5877 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5878 for ac_extension in a so sl; do
5879 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5880 test -f $ac_im_libdir/libX11.$ac_extension; then
5881 ac_im_usrlibdir=$ac_im_libdir; break
5883 done
5884 # Screen out bogus values from the imake configuration. They are
5885 # bogus both because they are the default anyway, and because
5886 # using them would break gcc on systems where it needs fixed includes.
5887 case "$ac_im_incroot" in
5888 /usr/include) ;;
5889 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5890 esac
5891 case "$ac_im_usrlibdir" in
5892 /usr/lib | /lib) ;;
5893 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5894 esac
5896 cd ..
5897 rm -fr conftestdir
5900 if test "$ac_x_includes" = NO; then
5901 # Guess where to find include files, by looking for this one X11 .h file.
5902 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5904 # First, try using that file with no special directory specified.
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5908 #include <$x_direct_test_include>
5910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5911 { (eval echo configure:5912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5913 if test -z "$ac_err"; then
5914 rm -rf conftest*
5915 # We can compile using X headers with no special include directory.
5916 ac_x_includes=
5917 else
5918 echo "$ac_err" >&5
5919 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5921 rm -rf conftest*
5922 # Look for the header file in a standard set of common directories.
5923 # Check X11 before X11Rn because it is often a symlink to the current release.
5924 for ac_dir in \
5925 /usr/X11/include \
5926 /usr/X11R6/include \
5927 /usr/X11R5/include \
5928 /usr/X11R4/include \
5930 /usr/include/X11 \
5931 /usr/include/X11R6 \
5932 /usr/include/X11R5 \
5933 /usr/include/X11R4 \
5935 /usr/local/X11/include \
5936 /usr/local/X11R6/include \
5937 /usr/local/X11R5/include \
5938 /usr/local/X11R4/include \
5940 /usr/local/include/X11 \
5941 /usr/local/include/X11R6 \
5942 /usr/local/include/X11R5 \
5943 /usr/local/include/X11R4 \
5945 /usr/X386/include \
5946 /usr/x386/include \
5947 /usr/XFree86/include/X11 \
5949 /usr/include \
5950 /usr/local/include \
5951 /usr/unsupported/include \
5952 /usr/athena/include \
5953 /usr/local/x11r5/include \
5954 /usr/lpp/Xamples/include \
5956 /usr/openwin/include \
5957 /usr/openwin/share/include \
5960 if test -r "$ac_dir/$x_direct_test_include"; then
5961 ac_x_includes=$ac_dir
5962 break
5964 done
5966 rm -f conftest*
5967 fi # $ac_x_includes = NO
5969 if test "$ac_x_libraries" = NO; then
5970 # Check for the libraries.
5972 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5973 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5975 # See if we find them without any special options.
5976 # Don't add to $LIBS permanently.
5977 ac_save_LIBS="$LIBS"
5978 LIBS="-l$x_direct_test_library $LIBS"
5979 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure"
5981 #include "confdefs.h"
5983 int main() {
5984 ${x_direct_test_function}()
5985 ; return 0; }
5987 if { (eval echo configure:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5988 rm -rf conftest*
5989 LIBS="$ac_save_LIBS"
5990 # We can link X programs with no special library path.
5991 ac_x_libraries=
5992 else
5993 echo "configure: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5995 rm -rf conftest*
5996 LIBS="$ac_save_LIBS"
5997 # First see if replacing the include by lib works.
5998 # Check X11 before X11Rn because it is often a symlink to the current release.
5999 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6000 /usr/X11/lib \
6001 /usr/X11R6/lib \
6002 /usr/X11R5/lib \
6003 /usr/X11R4/lib \
6005 /usr/lib/X11 \
6006 /usr/lib/X11R6 \
6007 /usr/lib/X11R5 \
6008 /usr/lib/X11R4 \
6010 /usr/local/X11/lib \
6011 /usr/local/X11R6/lib \
6012 /usr/local/X11R5/lib \
6013 /usr/local/X11R4/lib \
6015 /usr/local/lib/X11 \
6016 /usr/local/lib/X11R6 \
6017 /usr/local/lib/X11R5 \
6018 /usr/local/lib/X11R4 \
6020 /usr/X386/lib \
6021 /usr/x386/lib \
6022 /usr/XFree86/lib/X11 \
6024 /usr/lib \
6025 /usr/local/lib \
6026 /usr/unsupported/lib \
6027 /usr/athena/lib \
6028 /usr/local/x11r5/lib \
6029 /usr/lpp/Xamples/lib \
6030 /lib/usr/lib/X11 \
6032 /usr/openwin/lib \
6033 /usr/openwin/share/lib \
6036 for ac_extension in a so sl; do
6037 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6038 ac_x_libraries=$ac_dir
6039 break 2
6041 done
6042 done
6044 rm -f conftest*
6045 fi # $ac_x_libraries = NO
6047 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6048 # Didn't find X anywhere. Cache the known absence of X.
6049 ac_cv_have_x="have_x=no"
6050 else
6051 # Record where we found X for the cache.
6052 ac_cv_have_x="have_x=yes \
6053 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6057 eval "$ac_cv_have_x"
6058 fi # $with_x != no
6060 if test "$have_x" != yes; then
6061 echo "$ac_t""$have_x" 1>&6
6062 no_x=yes
6063 else
6064 # If each of the values was on the command line, it overrides each guess.
6065 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6066 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6067 # Update the cache value to reflect the command line values.
6068 ac_cv_have_x="have_x=yes \
6069 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6070 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6073 if test "$no_x" = yes; then
6074 # Not all programs may use this symbol, but it does not hurt to define it.
6075 cat >> confdefs.h <<\EOF
6076 #define X_DISPLAY_MISSING 1
6079 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6080 else
6081 if test -n "$x_includes"; then
6082 X_CFLAGS="$X_CFLAGS -I$x_includes"
6085 # It would also be nice to do this for all -L options, not just this one.
6086 if test -n "$x_libraries"; then
6087 X_LIBS="$X_LIBS -L$x_libraries"
6088 # For Solaris; some versions of Sun CC require a space after -R and
6089 # others require no space. Words are not sufficient . . . .
6090 case "`(uname -sr) 2>/dev/null`" in
6091 "SunOS 5"*)
6092 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6093 echo "configure:6094: checking whether -R must be followed by a space" >&5
6094 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6099 int main() {
6101 ; return 0; }
6103 if { (eval echo configure:6104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6104 rm -rf conftest*
6105 ac_R_nospace=yes
6106 else
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 rm -rf conftest*
6110 ac_R_nospace=no
6112 rm -f conftest*
6113 if test $ac_R_nospace = yes; then
6114 echo "$ac_t""no" 1>&6
6115 X_LIBS="$X_LIBS -R$x_libraries"
6116 else
6117 LIBS="$ac_xsave_LIBS -R $x_libraries"
6118 cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6122 int main() {
6124 ; return 0; }
6126 if { (eval echo configure:6127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6127 rm -rf conftest*
6128 ac_R_space=yes
6129 else
6130 echo "configure: failed program was:" >&5
6131 cat conftest.$ac_ext >&5
6132 rm -rf conftest*
6133 ac_R_space=no
6135 rm -f conftest*
6136 if test $ac_R_space = yes; then
6137 echo "$ac_t""yes" 1>&6
6138 X_LIBS="$X_LIBS -R $x_libraries"
6139 else
6140 echo "$ac_t""neither works" 1>&6
6143 LIBS="$ac_xsave_LIBS"
6144 esac
6147 # Check for system-dependent libraries X programs must link with.
6148 # Do this before checking for the system-independent R6 libraries
6149 # (-lICE), since we may need -lsocket or whatever for X linking.
6151 if test "$ISC" = yes; then
6152 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6153 else
6154 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6155 # libraries were built with DECnet support. And karl@cs.umb.edu says
6156 # the Alpha needs dnet_stub (dnet does not exist).
6157 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6158 echo "configure:6159: checking for dnet_ntoa in -ldnet" >&5
6159 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6162 else
6163 ac_save_LIBS="$LIBS"
6164 LIBS="-ldnet $LIBS"
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 /* Override any gcc2 internal prototype to avoid an error. */
6169 /* We use char because int might match the return type of a gcc2
6170 builtin and then its argument prototype would still apply. */
6171 char dnet_ntoa();
6173 int main() {
6174 dnet_ntoa()
6175 ; return 0; }
6177 if { (eval echo configure:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6178 rm -rf conftest*
6179 eval "ac_cv_lib_$ac_lib_var=yes"
6180 else
6181 echo "configure: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6183 rm -rf conftest*
6184 eval "ac_cv_lib_$ac_lib_var=no"
6186 rm -f conftest*
6187 LIBS="$ac_save_LIBS"
6190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6191 echo "$ac_t""yes" 1>&6
6192 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6193 else
6194 echo "$ac_t""no" 1>&6
6197 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6198 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6199 echo "configure:6200: checking for dnet_ntoa in -ldnet_stub" >&5
6200 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6
6203 else
6204 ac_save_LIBS="$LIBS"
6205 LIBS="-ldnet_stub $LIBS"
6206 cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209 /* Override any gcc2 internal prototype to avoid an error. */
6210 /* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6212 char dnet_ntoa();
6214 int main() {
6215 dnet_ntoa()
6216 ; return 0; }
6218 if { (eval echo configure:6219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6219 rm -rf conftest*
6220 eval "ac_cv_lib_$ac_lib_var=yes"
6221 else
6222 echo "configure: failed program was:" >&5
6223 cat conftest.$ac_ext >&5
6224 rm -rf conftest*
6225 eval "ac_cv_lib_$ac_lib_var=no"
6227 rm -f conftest*
6228 LIBS="$ac_save_LIBS"
6231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6232 echo "$ac_t""yes" 1>&6
6233 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6234 else
6235 echo "$ac_t""no" 1>&6
6240 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6241 # to get the SysV transport functions.
6242 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6243 # needs -lnsl.
6244 # The nsl library prevents programs from opening the X display
6245 # on Irix 5.2, according to dickey@clark.net.
6246 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6247 echo "configure:6248: checking for gethostbyname" >&5
6248 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6250 else
6251 cat > conftest.$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6254 /* System header to define __stub macros and hopefully few prototypes,
6255 which can conflict with char gethostbyname(); below. */
6256 #include <assert.h>
6257 /* Override any gcc2 internal prototype to avoid an error. */
6258 /* We use char because int might match the return type of a gcc2
6259 builtin and then its argument prototype would still apply. */
6260 char gethostbyname();
6262 int main() {
6264 /* The GNU C library defines this for functions which it implements
6265 to always fail with ENOSYS. Some functions are actually named
6266 something starting with __ and the normal name is an alias. */
6267 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6268 choke me
6269 #else
6270 gethostbyname();
6271 #endif
6273 ; return 0; }
6275 if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6276 rm -rf conftest*
6277 eval "ac_cv_func_gethostbyname=yes"
6278 else
6279 echo "configure: failed program was:" >&5
6280 cat conftest.$ac_ext >&5
6281 rm -rf conftest*
6282 eval "ac_cv_func_gethostbyname=no"
6284 rm -f conftest*
6287 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6288 echo "$ac_t""yes" 1>&6
6290 else
6291 echo "$ac_t""no" 1>&6
6294 if test $ac_cv_func_gethostbyname = no; then
6295 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6296 echo "configure:6297: checking for gethostbyname in -lnsl" >&5
6297 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6299 echo $ac_n "(cached) $ac_c" 1>&6
6300 else
6301 ac_save_LIBS="$LIBS"
6302 LIBS="-lnsl $LIBS"
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 /* Override any gcc2 internal prototype to avoid an error. */
6307 /* We use char because int might match the return type of a gcc2
6308 builtin and then its argument prototype would still apply. */
6309 char gethostbyname();
6311 int main() {
6312 gethostbyname()
6313 ; return 0; }
6315 if { (eval echo configure:6316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6316 rm -rf conftest*
6317 eval "ac_cv_lib_$ac_lib_var=yes"
6318 else
6319 echo "configure: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6321 rm -rf conftest*
6322 eval "ac_cv_lib_$ac_lib_var=no"
6324 rm -f conftest*
6325 LIBS="$ac_save_LIBS"
6328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6329 echo "$ac_t""yes" 1>&6
6330 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6331 else
6332 echo "$ac_t""no" 1>&6
6337 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6338 # socket/setsockopt and other routines are undefined under SCO ODT
6339 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6340 # on later versions), says simon@lia.di.epfl.ch: it contains
6341 # gethostby* variants that don't use the nameserver (or something).
6342 # -lsocket must be given before -lnsl if both are needed.
6343 # We assume that if connect needs -lnsl, so does gethostbyname.
6344 echo $ac_n "checking for connect""... $ac_c" 1>&6
6345 echo "configure:6346: checking for connect" >&5
6346 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6347 echo $ac_n "(cached) $ac_c" 1>&6
6348 else
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6352 /* System header to define __stub macros and hopefully few prototypes,
6353 which can conflict with char connect(); below. */
6354 #include <assert.h>
6355 /* Override any gcc2 internal prototype to avoid an error. */
6356 /* We use char because int might match the return type of a gcc2
6357 builtin and then its argument prototype would still apply. */
6358 char connect();
6360 int main() {
6362 /* The GNU C library defines this for functions which it implements
6363 to always fail with ENOSYS. Some functions are actually named
6364 something starting with __ and the normal name is an alias. */
6365 #if defined (__stub_connect) || defined (__stub___connect)
6366 choke me
6367 #else
6368 connect();
6369 #endif
6371 ; return 0; }
6373 if { (eval echo configure:6374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6374 rm -rf conftest*
6375 eval "ac_cv_func_connect=yes"
6376 else
6377 echo "configure: failed program was:" >&5
6378 cat conftest.$ac_ext >&5
6379 rm -rf conftest*
6380 eval "ac_cv_func_connect=no"
6382 rm -f conftest*
6385 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6388 else
6389 echo "$ac_t""no" 1>&6
6392 if test $ac_cv_func_connect = no; then
6393 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6394 echo "configure:6395: checking for connect in -lsocket" >&5
6395 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6398 else
6399 ac_save_LIBS="$LIBS"
6400 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6401 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 /* Override any gcc2 internal prototype to avoid an error. */
6405 /* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6407 char connect();
6409 int main() {
6410 connect()
6411 ; return 0; }
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6414 rm -rf conftest*
6415 eval "ac_cv_lib_$ac_lib_var=yes"
6416 else
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6419 rm -rf conftest*
6420 eval "ac_cv_lib_$ac_lib_var=no"
6422 rm -f conftest*
6423 LIBS="$ac_save_LIBS"
6426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6427 echo "$ac_t""yes" 1>&6
6428 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6429 else
6430 echo "$ac_t""no" 1>&6
6435 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6436 echo $ac_n "checking for remove""... $ac_c" 1>&6
6437 echo "configure:6438: checking for remove" >&5
6438 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6440 else
6441 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 /* System header to define __stub macros and hopefully few prototypes,
6445 which can conflict with char remove(); below. */
6446 #include <assert.h>
6447 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6450 char remove();
6452 int main() {
6454 /* The GNU C library defines this for functions which it implements
6455 to always fail with ENOSYS. Some functions are actually named
6456 something starting with __ and the normal name is an alias. */
6457 #if defined (__stub_remove) || defined (__stub___remove)
6458 choke me
6459 #else
6460 remove();
6461 #endif
6463 ; return 0; }
6465 if { (eval echo configure:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 rm -rf conftest*
6467 eval "ac_cv_func_remove=yes"
6468 else
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 rm -rf conftest*
6472 eval "ac_cv_func_remove=no"
6474 rm -f conftest*
6477 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6478 echo "$ac_t""yes" 1>&6
6480 else
6481 echo "$ac_t""no" 1>&6
6484 if test $ac_cv_func_remove = no; then
6485 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6486 echo "configure:6487: checking for remove in -lposix" >&5
6487 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6490 else
6491 ac_save_LIBS="$LIBS"
6492 LIBS="-lposix $LIBS"
6493 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 /* Override any gcc2 internal prototype to avoid an error. */
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6499 char remove();
6501 int main() {
6502 remove()
6503 ; return 0; }
6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6506 rm -rf conftest*
6507 eval "ac_cv_lib_$ac_lib_var=yes"
6508 else
6509 echo "configure: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6511 rm -rf conftest*
6512 eval "ac_cv_lib_$ac_lib_var=no"
6514 rm -f conftest*
6515 LIBS="$ac_save_LIBS"
6518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6519 echo "$ac_t""yes" 1>&6
6520 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6521 else
6522 echo "$ac_t""no" 1>&6
6527 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6528 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6529 echo "configure:6530: checking for shmat" >&5
6530 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6532 else
6533 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6536 /* System header to define __stub macros and hopefully few prototypes,
6537 which can conflict with char shmat(); below. */
6538 #include <assert.h>
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542 char shmat();
6544 int main() {
6546 /* The GNU C library defines this for functions which it implements
6547 to always fail with ENOSYS. Some functions are actually named
6548 something starting with __ and the normal name is an alias. */
6549 #if defined (__stub_shmat) || defined (__stub___shmat)
6550 choke me
6551 #else
6552 shmat();
6553 #endif
6555 ; return 0; }
6557 if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6558 rm -rf conftest*
6559 eval "ac_cv_func_shmat=yes"
6560 else
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6563 rm -rf conftest*
6564 eval "ac_cv_func_shmat=no"
6566 rm -f conftest*
6569 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6572 else
6573 echo "$ac_t""no" 1>&6
6576 if test $ac_cv_func_shmat = no; then
6577 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6578 echo "configure:6579: checking for shmat in -lipc" >&5
6579 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6582 else
6583 ac_save_LIBS="$LIBS"
6584 LIBS="-lipc $LIBS"
6585 cat > conftest.$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6588 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6591 char shmat();
6593 int main() {
6594 shmat()
6595 ; return 0; }
6597 if { (eval echo configure:6598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6598 rm -rf conftest*
6599 eval "ac_cv_lib_$ac_lib_var=yes"
6600 else
6601 echo "configure: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6603 rm -rf conftest*
6604 eval "ac_cv_lib_$ac_lib_var=no"
6606 rm -f conftest*
6607 LIBS="$ac_save_LIBS"
6610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6611 echo "$ac_t""yes" 1>&6
6612 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6613 else
6614 echo "$ac_t""no" 1>&6
6620 # Check for libraries that X11R6 Xt/Xaw programs need.
6621 ac_save_LDFLAGS="$LDFLAGS"
6622 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6623 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6624 # check for ICE first), but we must link in the order -lSM -lICE or
6625 # we get undefined symbols. So assume we have SM if we have ICE.
6626 # These have to be linked with before -lX11, unlike the other
6627 # libraries we check for below, so use a different variable.
6628 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6629 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6630 echo "configure:6631: checking for IceConnectionNumber in -lICE" >&5
6631 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6634 else
6635 ac_save_LIBS="$LIBS"
6636 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6637 cat > conftest.$ac_ext <<EOF
6638 #line 6639 "configure"
6639 #include "confdefs.h"
6640 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6643 char IceConnectionNumber();
6645 int main() {
6646 IceConnectionNumber()
6647 ; return 0; }
6649 if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650 rm -rf conftest*
6651 eval "ac_cv_lib_$ac_lib_var=yes"
6652 else
6653 echo "configure: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6655 rm -rf conftest*
6656 eval "ac_cv_lib_$ac_lib_var=no"
6658 rm -f conftest*
6659 LIBS="$ac_save_LIBS"
6662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6663 echo "$ac_t""yes" 1>&6
6664 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6665 else
6666 echo "$ac_t""no" 1>&6
6669 LDFLAGS="$ac_save_LDFLAGS"
6676 if test "$no_x" = yes; then
6677 NO_X_TRUE=
6678 NO_X_FALSE='#'
6679 else
6680 NO_X_TRUE='#'
6681 NO_X_FALSE=
6684 here=`pwd`
6688 trap '' 1 2 15
6689 cat > confcache <<\EOF
6690 # This file is a shell script that caches the results of configure
6691 # tests run on this system so they can be shared between configure
6692 # scripts and configure runs. It is not useful on other systems.
6693 # If it contains results you don't want to keep, you may remove or edit it.
6695 # By default, configure uses ./config.cache as the cache file,
6696 # creating it if it does not exist already. You can give configure
6697 # the --cache-file=FILE option to use a different cache file; that is
6698 # what configure does when it calls configure scripts in
6699 # subdirectories, so they share the cache.
6700 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6701 # config.status only pays attention to the cache file if you give it the
6702 # --recheck option to rerun configure.
6705 # The following way of writing the cache mishandles newlines in values,
6706 # but we know of no workaround that is simple, portable, and efficient.
6707 # So, don't put newlines in cache variables' values.
6708 # Ultrix sh set writes to stderr and can't be redirected directly,
6709 # and sets the high bit in the cache file unless we assign to the vars.
6710 (set) 2>&1 |
6711 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6712 *ac_space=\ *)
6713 # `set' does not quote correctly, so add quotes (double-quote substitution
6714 # turns \\\\ into \\, and sed turns \\ into \).
6715 sed -n \
6716 -e "s/'/'\\\\''/g" \
6717 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6720 # `set' quotes correctly as required by POSIX, so do not add quotes.
6721 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6723 esac >> confcache
6724 if cmp -s $cache_file confcache; then
6726 else
6727 if test -w $cache_file; then
6728 echo "updating cache $cache_file"
6729 cat confcache > $cache_file
6730 else
6731 echo "not updating unwritable cache $cache_file"
6734 rm -f confcache
6736 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6738 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6739 # Let make expand exec_prefix.
6740 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6742 # Any assignment to VPATH causes Sun make to only execute
6743 # the first set of double-colon rules, so remove it if not needed.
6744 # If there is a colon in the path, we need to keep it.
6745 if test "x$srcdir" = x.; then
6746 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6749 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6751 DEFS=-DHAVE_CONFIG_H
6753 # Without the "./", some shells look in PATH for config.status.
6754 : ${CONFIG_STATUS=./config.status}
6756 echo creating $CONFIG_STATUS
6757 rm -f $CONFIG_STATUS
6758 cat > $CONFIG_STATUS <<EOF
6759 #! /bin/sh
6760 # Generated automatically by configure.
6761 # Run this file to recreate the current configuration.
6762 # This directory was configured as follows,
6763 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6765 # $0 $ac_configure_args
6767 # Compiler output produced by configure, useful for debugging
6768 # configure, is in ./config.log if it exists.
6770 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6771 for ac_option
6773 case "\$ac_option" in
6774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6775 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6776 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6777 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6778 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6779 exit 0 ;;
6780 -help | --help | --hel | --he | --h)
6781 echo "\$ac_cs_usage"; exit 0 ;;
6782 *) echo "\$ac_cs_usage"; exit 1 ;;
6783 esac
6784 done
6786 ac_given_srcdir=$srcdir
6787 ac_given_INSTALL="$INSTALL"
6789 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6791 cat >> $CONFIG_STATUS <<EOF
6793 # Protect against being on the right side of a sed subst in config.status.
6794 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6795 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6796 $ac_vpsub
6797 $extrasub
6798 s%@SHELL@%$SHELL%g
6799 s%@CFLAGS@%$CFLAGS%g
6800 s%@CPPFLAGS@%$CPPFLAGS%g
6801 s%@CXXFLAGS@%$CXXFLAGS%g
6802 s%@FFLAGS@%$FFLAGS%g
6803 s%@DEFS@%$DEFS%g
6804 s%@LDFLAGS@%$LDFLAGS%g
6805 s%@LIBS@%$LIBS%g
6806 s%@exec_prefix@%$exec_prefix%g
6807 s%@prefix@%$prefix%g
6808 s%@program_transform_name@%$program_transform_name%g
6809 s%@bindir@%$bindir%g
6810 s%@sbindir@%$sbindir%g
6811 s%@libexecdir@%$libexecdir%g
6812 s%@datadir@%$datadir%g
6813 s%@sysconfdir@%$sysconfdir%g
6814 s%@sharedstatedir@%$sharedstatedir%g
6815 s%@localstatedir@%$localstatedir%g
6816 s%@libdir@%$libdir%g
6817 s%@includedir@%$includedir%g
6818 s%@oldincludedir@%$oldincludedir%g
6819 s%@infodir@%$infodir%g
6820 s%@mandir@%$mandir%g
6821 s%@host@%$host%g
6822 s%@host_alias@%$host_alias%g
6823 s%@host_cpu@%$host_cpu%g
6824 s%@host_vendor@%$host_vendor%g
6825 s%@host_os@%$host_os%g
6826 s%@target@%$target%g
6827 s%@target_alias@%$target_alias%g
6828 s%@target_cpu@%$target_cpu%g
6829 s%@target_vendor@%$target_vendor%g
6830 s%@target_os@%$target_os%g
6831 s%@build@%$build%g
6832 s%@build_alias@%$build_alias%g
6833 s%@build_cpu@%$build_cpu%g
6834 s%@build_vendor@%$build_vendor%g
6835 s%@build_os@%$build_os%g
6836 s%@libgcj_basedir@%$libgcj_basedir%g
6837 s%@CC@%$CC%g
6838 s%@CXX@%$CXX%g
6839 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6840 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6841 s%@INSTALL_DATA@%$INSTALL_DATA%g
6842 s%@PACKAGE@%$PACKAGE%g
6843 s%@VERSION@%$VERSION%g
6844 s%@ACLOCAL@%$ACLOCAL%g
6845 s%@AUTOCONF@%$AUTOCONF%g
6846 s%@AUTOMAKE@%$AUTOMAKE%g
6847 s%@AUTOHEADER@%$AUTOHEADER%g
6848 s%@MAKEINFO@%$MAKEINFO%g
6849 s%@SET_MAKE@%$SET_MAKE%g
6850 s%@AS@%$AS%g
6851 s%@AR@%$AR%g
6852 s%@RANLIB@%$RANLIB%g
6853 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6854 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6855 s%@MAINT@%$MAINT%g
6856 s%@EXEEXT@%$EXEEXT%g
6857 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6858 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6859 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6860 s%@INCLTDL@%$INCLTDL%g
6861 s%@LIBLTDL@%$LIBLTDL%g
6862 s%@DIRLTDL@%$DIRLTDL%g
6863 s%@LN_S@%$LN_S%g
6864 s%@OBJEXT@%$OBJEXT%g
6865 s%@STRIP@%$STRIP%g
6866 s%@LIBTOOL@%$LIBTOOL%g
6867 s%@CXXCPP@%$CXXCPP%g
6868 s%@subdirs@%$subdirs%g
6869 s%@COMPPATH@%$COMPPATH%g
6870 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6871 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6872 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6873 s%@CPP@%$CPP%g
6874 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6875 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6876 s%@ZLIBSPEC@%$ZLIBSPEC%g
6877 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6878 s%@GCLIBS@%$GCLIBS%g
6879 s%@GCINCS@%$GCINCS%g
6880 s%@GCDEPS@%$GCDEPS%g
6881 s%@GCOBJS@%$GCOBJS%g
6882 s%@GCSPEC@%$GCSPEC%g
6883 s%@JC1GCSPEC@%$JC1GCSPEC%g
6884 s%@GCTESTSPEC@%$GCTESTSPEC%g
6885 s%@THREADLIBS@%$THREADLIBS%g
6886 s%@THREADINCS@%$THREADINCS%g
6887 s%@THREADDEPS@%$THREADDEPS%g
6888 s%@THREADOBJS@%$THREADOBJS%g
6889 s%@THREADSPEC@%$THREADSPEC%g
6890 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
6891 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
6892 s%@GCJ@%$GCJ%g
6893 s%@GCJFLAGS@%$GCJFLAGS%g
6894 s%@ZLIBS@%$ZLIBS%g
6895 s%@ZDEPS@%$ZDEPS%g
6896 s%@ZINCS@%$ZINCS%g
6897 s%@DIVIDESPEC@%$DIVIDESPEC%g
6898 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
6899 s%@FORCELIBGCCSPEC@%$FORCELIBGCCSPEC%g
6900 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
6901 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
6902 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
6903 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
6904 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
6905 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
6906 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
6907 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
6908 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
6909 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
6910 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
6911 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
6912 s%@ALLOCA@%$ALLOCA%g
6913 s%@PERL@%$PERL%g
6914 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
6915 s%@X_CFLAGS@%$X_CFLAGS%g
6916 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6917 s%@X_LIBS@%$X_LIBS%g
6918 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6919 s%@NO_X_TRUE@%$NO_X_TRUE%g
6920 s%@NO_X_FALSE@%$NO_X_FALSE%g
6921 s%@here@%$here%g
6923 CEOF
6926 cat >> $CONFIG_STATUS <<\EOF
6928 # Split the substitutions into bite-sized pieces for seds with
6929 # small command number limits, like on Digital OSF/1 and HP-UX.
6930 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6931 ac_file=1 # Number of current file.
6932 ac_beg=1 # First line for current file.
6933 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6934 ac_more_lines=:
6935 ac_sed_cmds=""
6936 while $ac_more_lines; do
6937 if test $ac_beg -gt 1; then
6938 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6939 else
6940 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6942 if test ! -s conftest.s$ac_file; then
6943 ac_more_lines=false
6944 rm -f conftest.s$ac_file
6945 else
6946 if test -z "$ac_sed_cmds"; then
6947 ac_sed_cmds="sed -f conftest.s$ac_file"
6948 else
6949 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6951 ac_file=`expr $ac_file + 1`
6952 ac_beg=$ac_end
6953 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6955 done
6956 if test -z "$ac_sed_cmds"; then
6957 ac_sed_cmds=cat
6961 cat >> $CONFIG_STATUS <<EOF
6963 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"}
6965 cat >> $CONFIG_STATUS <<\EOF
6966 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6967 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6968 case "$ac_file" in
6969 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6970 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6971 *) ac_file_in="${ac_file}.in" ;;
6972 esac
6974 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6976 # Remove last slash and all that follows it. Not all systems have dirname.
6977 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6978 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6979 # The file is in a subdirectory.
6980 test ! -d "$ac_dir" && mkdir "$ac_dir"
6981 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6982 # A "../" for each directory in $ac_dir_suffix.
6983 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6984 else
6985 ac_dir_suffix= ac_dots=
6988 case "$ac_given_srcdir" in
6989 .) srcdir=.
6990 if test -z "$ac_dots"; then top_srcdir=.
6991 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6992 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6993 *) # Relative path.
6994 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6995 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6996 esac
6998 case "$ac_given_INSTALL" in
6999 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7000 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7001 esac
7003 echo creating "$ac_file"
7004 rm -f "$ac_file"
7005 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7006 case "$ac_file" in
7007 *Makefile*) ac_comsub="1i\\
7008 # $configure_input" ;;
7009 *) ac_comsub= ;;
7010 esac
7012 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7013 sed -e "$ac_comsub
7014 s%@configure_input@%$configure_input%g
7015 s%@srcdir@%$srcdir%g
7016 s%@top_srcdir@%$top_srcdir%g
7017 s%@INSTALL@%$INSTALL%g
7018 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7019 fi; done
7020 rm -f conftest.s*
7022 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7023 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7025 # ac_d sets the value in "#define NAME VALUE" lines.
7026 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7027 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7028 ac_dC='\3'
7029 ac_dD='%g'
7030 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7031 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7032 ac_uB='\([ ]\)%\1#\2define\3'
7033 ac_uC=' '
7034 ac_uD='\4%g'
7035 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7036 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7037 ac_eB='$%\1#\2define\3'
7038 ac_eC=' '
7039 ac_eD='%g'
7041 if test "${CONFIG_HEADERS+set}" != set; then
7043 cat >> $CONFIG_STATUS <<EOF
7044 CONFIG_HEADERS="include/config.h"
7046 cat >> $CONFIG_STATUS <<\EOF
7048 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7049 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7050 case "$ac_file" in
7051 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7052 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7053 *) ac_file_in="${ac_file}.in" ;;
7054 esac
7056 echo creating $ac_file
7058 rm -f conftest.frag conftest.in conftest.out
7059 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7060 cat $ac_file_inputs > conftest.in
7064 # Transform confdefs.h into a sed script conftest.vals that substitutes
7065 # the proper values into config.h.in to produce config.h. And first:
7066 # Protect against being on the right side of a sed subst in config.status.
7067 # Protect against being in an unquoted here document in config.status.
7068 rm -f conftest.vals
7069 cat > conftest.hdr <<\EOF
7070 s/[\\&%]/\\&/g
7071 s%[\\$`]%\\&%g
7072 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7073 s%ac_d%ac_u%gp
7074 s%ac_u%ac_e%gp
7076 sed -n -f conftest.hdr confdefs.h > conftest.vals
7077 rm -f conftest.hdr
7079 # This sed command replaces #undef with comments. This is necessary, for
7080 # example, in the case of _POSIX_SOURCE, which is predefined and required
7081 # on some systems where configure will not decide to define it.
7082 cat >> conftest.vals <<\EOF
7083 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7086 # Break up conftest.vals because some shells have a limit on
7087 # the size of here documents, and old seds have small limits too.
7089 rm -f conftest.tail
7090 while :
7092 ac_lines=`grep -c . conftest.vals`
7093 # grep -c gives empty output for an empty file on some AIX systems.
7094 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7095 # Write a limited-size here document to conftest.frag.
7096 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7097 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7098 echo 'CEOF
7099 sed -f conftest.frag conftest.in > conftest.out
7100 rm -f conftest.in
7101 mv conftest.out conftest.in
7102 ' >> $CONFIG_STATUS
7103 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7104 rm -f conftest.vals
7105 mv conftest.tail conftest.vals
7106 done
7107 rm -f conftest.vals
7109 cat >> $CONFIG_STATUS <<\EOF
7110 rm -f conftest.frag conftest.h
7111 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7112 cat conftest.in >> conftest.h
7113 rm -f conftest.in
7114 if cmp -s $ac_file conftest.h 2>/dev/null; then
7115 echo "$ac_file is unchanged"
7116 rm -f conftest.h
7117 else
7118 # Remove last slash and all that follows it. Not all systems have dirname.
7119 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7120 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7121 # The file is in a subdirectory.
7122 test ! -d "$ac_dir" && mkdir "$ac_dir"
7124 rm -f $ac_file
7125 mv conftest.h $ac_file
7127 fi; done
7131 cat >> $CONFIG_STATUS <<EOF
7132 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7133 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
7136 cat >> $CONFIG_STATUS <<\EOF
7137 srcdir=$ac_given_srcdir
7138 while test -n "$ac_sources"; do
7139 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7140 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7142 echo "linking $srcdir/$ac_source to $ac_dest"
7144 if test ! -r $srcdir/$ac_source; then
7145 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7147 rm -f $ac_dest
7149 # Make relative symlinks.
7150 # Remove last slash and all that follows it. Not all systems have dirname.
7151 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7152 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7153 # The dest file is in a subdirectory.
7154 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7155 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7156 # A "../" for each directory in $ac_dest_dir_suffix.
7157 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7158 else
7159 ac_dest_dir_suffix= ac_dots=
7162 case "$srcdir" in
7163 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7164 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7165 esac
7167 # Make a symlink if possible; otherwise try a hard link.
7168 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7169 ln $srcdir/$ac_source $ac_dest; then :
7170 else
7171 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7173 done
7175 cat >> $CONFIG_STATUS <<EOF
7177 srcdir=${srcdir}
7178 host=${host}
7179 target=${target}
7180 with_multisubdir=${with_multisubdir}
7181 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7182 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7183 libgcj_basedir=${libgcj_basedir}
7184 CC="${CC}"
7185 CXX="${CXX}"
7188 cat >> $CONFIG_STATUS <<\EOF
7189 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
7190 if test -n "$CONFIG_FILES"; then
7191 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7194 # Make subdirectories and `.d' files. Look in both srcdir and
7195 # builddir for the .java files.
7196 h=`pwd`
7197 : > deps.mk
7198 ( (cd $srcdir && find . -name '*.java' -print) ;
7199 find . -name '*.java' -print) | \
7200 fgrep -v testsuite | \
7201 sed -e 's/\.java/.d/' | \
7202 while read f; do
7203 echo "include $f" >> deps.mk
7204 test -f $f || {
7206 d=`echo $f | sed -e 's,/[^/]*$,,'`
7208 $srcdir/../mkinstalldirs $d
7209 : > $f
7211 done
7213 exit 0
7215 chmod +x $CONFIG_STATUS
7216 rm -fr confdefs* $ac_clean_files
7217 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7219 if test "$no_recursion" != yes; then
7221 # Remove --cache-file and --srcdir arguments so they do not pile up.
7222 ac_sub_configure_args=
7223 ac_prev=
7224 for ac_arg in $ac_configure_args; do
7225 if test -n "$ac_prev"; then
7226 ac_prev=
7227 continue
7229 case "$ac_arg" in
7230 -cache-file | --cache-file | --cache-fil | --cache-fi \
7231 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7232 ac_prev=cache_file ;;
7233 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7234 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7236 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7237 ac_prev=srcdir ;;
7238 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7240 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7241 esac
7242 done
7244 for ac_config_dir in $DIRLTDL; do
7246 # Do not complain, so a configure script can configure whichever
7247 # parts of a large source tree are present.
7248 if test ! -d $srcdir/$ac_config_dir; then
7249 continue
7252 echo configuring in $ac_config_dir
7254 case "$srcdir" in
7255 .) ;;
7257 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7258 else
7259 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7262 esac
7264 ac_popdir=`pwd`
7265 cd $ac_config_dir
7267 # A "../" for each directory in /$ac_config_dir.
7268 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7270 case "$srcdir" in
7271 .) # No --srcdir option. We are building in place.
7272 ac_sub_srcdir=$srcdir ;;
7273 /*) # Absolute path.
7274 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7275 *) # Relative path.
7276 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7277 esac
7279 # Check for guested configure; otherwise get Cygnus style configure.
7280 if test -f $ac_sub_srcdir/configure; then
7281 ac_sub_configure=$ac_sub_srcdir/configure
7282 elif test -f $ac_sub_srcdir/configure.in; then
7283 ac_sub_configure=$ac_configure
7284 else
7285 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7286 ac_sub_configure=
7289 # The recursion is here.
7290 if test -n "$ac_sub_configure"; then
7292 # Make the cache file name correct relative to the subdirectory.
7293 case "$cache_file" in
7294 /*) ac_sub_cache_file=$cache_file ;;
7295 *) # Relative path.
7296 ac_sub_cache_file="$ac_dots$cache_file" ;;
7297 esac
7298 case "$ac_given_INSTALL" in
7299 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7300 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7301 esac
7303 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7304 # The eval makes quoting arguments work.
7305 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7306 then :
7307 else
7308 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
7312 cd $ac_popdir
7313 done