2005-01-20 Michael Koch <konqueror@gmx.de>
[official-gcc.git] / libjava / configure
blob0390f99a09d45b55825dd961bf92d66293566aaf
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --with-newlib Configuring with newlib"
21 ac_help="$ac_help
22 --enable-version-specific-runtime-libs
23 specify that runtime libraries should be installed in a compiler-specific
24 directory "
25 ac_help="$ac_help
26 --enable-multilib build many library versions (default)"
27 ac_help="$ac_help
28 --enable-maintainer-mode enable make rules and dependencies not useful
29 (and sometimes confusing) to the casual installer"
30 ac_help="$ac_help
31 --enable-shared[=PKGS] build shared libraries [default=yes]"
32 ac_help="$ac_help
33 --enable-static[=PKGS] build static libraries [default=yes]"
34 ac_help="$ac_help
35 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
36 ac_help="$ac_help
37 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
38 ac_help="$ac_help
39 --disable-libtool-lock avoid locking (might break parallel builds)"
40 ac_help="$ac_help
41 --with-pic try to use only PIC/non-PIC objects [default=use both]"
42 ac_help="$ac_help
43 --disable-getenv-properties
44 don't set system properties from GCJ_PROPERTIES"
45 ac_help="$ac_help
46 --enable-hash-synchronization
47 use global hash table for monitor locks"
48 ac_help="$ac_help
49 --enable-libgcj-multifile
50 allow compilation of several files at once"
51 ac_help="$ac_help
52 --with-win32-nlsapi=ansi, unicows or unicode
53 native MinGW libgcj Win32 OS API [ansi]"
54 ac_help="$ac_help
55 --enable-libgcj-debug enable runtime debugging code"
56 ac_help="$ac_help
57 --enable-interpreter enable interpreter"
58 ac_help="$ac_help
59 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
60 ac_help="$ac_help
61 --disable-java-net disable java.net"
62 ac_help="$ac_help
63 --without-libffi don't use libffi"
64 ac_help="$ac_help
65 --disable-jvmpi disable JVMPI support"
66 ac_help="$ac_help
67 --with-ecos enable runtime eCos target support"
68 ac_help="$ac_help
69 --with-system-zlib use installed libz"
70 ac_help="$ac_help
71 --with-x use the X Window System"
72 ac_help="$ac_help
73 --enable-java-awt list of AWT peer implementations to be built"
74 ac_help="$ac_help
75 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK"
76 ac_help="$ac_help
77 --enable-java-gc=TYPE choose garbage collector [boehm]"
78 ac_help="$ac_help
79 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
84 build=NONE
85 cache_file=./config.cache
86 exec_prefix=NONE
87 host=NONE
88 no_create=
89 nonopt=NONE
90 no_recursion=
91 prefix=NONE
92 program_prefix=NONE
93 program_suffix=NONE
94 program_transform_name=s,x,x,
95 silent=
96 site=
97 srcdir=
98 target=NONE
99 verbose=
100 x_includes=NONE
101 x_libraries=NONE
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
115 # Initialize some other variables.
116 subdirs=
117 MFLAGS= MAKEFLAGS=
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
120 ac_max_here_lines=12
122 ac_prev=
123 for ac_option
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
129 ac_prev=
130 continue
133 case "$ac_option" in
134 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135 *) ac_optarg= ;;
136 esac
138 # Accept the important Cygnus configure options, so we can diagnose typos.
140 case "$ac_option" in
142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
143 ac_prev=bindir ;;
144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145 bindir="$ac_optarg" ;;
147 -build | --build | --buil | --bui | --bu)
148 ac_prev=build ;;
149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150 build="$ac_optarg" ;;
152 -cache-file | --cache-file | --cache-fil | --cache-fi \
153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154 ac_prev=cache_file ;;
155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157 cache_file="$ac_optarg" ;;
159 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160 ac_prev=datadir ;;
161 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162 | --da=*)
163 datadir="$ac_optarg" ;;
165 -disable-* | --disable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* | --enable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 case "$ac_option" in
182 *=*) ;;
183 *) ac_optarg=yes ;;
184 esac
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189 | --exec | --exe | --ex)
190 ac_prev=exec_prefix ;;
191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193 | --exec=* | --exe=* | --ex=*)
194 exec_prefix="$ac_optarg" ;;
196 -gas | --gas | --ga | --g)
197 # Obsolete; use --with-gas.
198 with_gas=yes ;;
200 -help | --help | --hel | --he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
203 cat << EOF
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
206 Configuration:
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
214 [$ac_default_prefix]
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 [same as prefix]
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
221 [PREFIX/share]
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 [PREFIX/com]
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
237 cat << EOF
238 Host type:
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
253 exit 0 ;;
255 -host | --host | --hos | --ho)
256 ac_prev=host ;;
257 -host=* | --host=* | --hos=* | --ho=*)
258 host="$ac_optarg" ;;
260 -includedir | --includedir | --includedi | --included | --include \
261 | --includ | --inclu | --incl | --inc)
262 ac_prev=includedir ;;
263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264 | --includ=* | --inclu=* | --incl=* | --inc=*)
265 includedir="$ac_optarg" ;;
267 -infodir | --infodir | --infodi | --infod | --info | --inf)
268 ac_prev=infodir ;;
269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270 infodir="$ac_optarg" ;;
272 -libdir | --libdir | --libdi | --libd)
273 ac_prev=libdir ;;
274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
275 libdir="$ac_optarg" ;;
277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278 | --libexe | --libex | --libe)
279 ac_prev=libexecdir ;;
280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281 | --libexe=* | --libex=* | --libe=*)
282 libexecdir="$ac_optarg" ;;
284 -localstatedir | --localstatedir | --localstatedi | --localstated \
285 | --localstate | --localstat | --localsta | --localst \
286 | --locals | --local | --loca | --loc | --lo)
287 ac_prev=localstatedir ;;
288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291 localstatedir="$ac_optarg" ;;
293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294 ac_prev=mandir ;;
295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296 mandir="$ac_optarg" ;;
298 -nfp | --nfp | --nf)
299 # Obsolete; use --without-fp.
300 with_fp=no ;;
302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303 | --no-cr | --no-c)
304 no_create=yes ;;
306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308 no_recursion=yes ;;
310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312 | --oldin | --oldi | --old | --ol | --o)
313 ac_prev=oldincludedir ;;
314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317 oldincludedir="$ac_optarg" ;;
319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320 ac_prev=prefix ;;
321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322 prefix="$ac_optarg" ;;
324 -program-prefix | --program-prefix | --program-prefi | --program-pref \
325 | --program-pre | --program-pr | --program-p)
326 ac_prev=program_prefix ;;
327 -program-prefix=* | --program-prefix=* | --program-prefi=* \
328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329 program_prefix="$ac_optarg" ;;
331 -program-suffix | --program-suffix | --program-suffi | --program-suff \
332 | --program-suf | --program-su | --program-s)
333 ac_prev=program_suffix ;;
334 -program-suffix=* | --program-suffix=* | --program-suffi=* \
335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336 program_suffix="$ac_optarg" ;;
338 -program-transform-name | --program-transform-name \
339 | --program-transform-nam | --program-transform-na \
340 | --program-transform-n | --program-transform- \
341 | --program-transform | --program-transfor \
342 | --program-transfo | --program-transf \
343 | --program-trans | --program-tran \
344 | --progr-tra | --program-tr | --program-t)
345 ac_prev=program_transform_name ;;
346 -program-transform-name=* | --program-transform-name=* \
347 | --program-transform-nam=* | --program-transform-na=* \
348 | --program-transform-n=* | --program-transform-=* \
349 | --program-transform=* | --program-transfor=* \
350 | --program-transfo=* | --program-transf=* \
351 | --program-trans=* | --program-tran=* \
352 | --progr-tra=* | --program-tr=* | --program-t=*)
353 program_transform_name="$ac_optarg" ;;
355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356 | -silent | --silent | --silen | --sile | --sil)
357 silent=yes ;;
359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360 ac_prev=sbindir ;;
361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362 | --sbi=* | --sb=*)
363 sbindir="$ac_optarg" ;;
365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367 | --sharedst | --shareds | --shared | --share | --shar \
368 | --sha | --sh)
369 ac_prev=sharedstatedir ;;
370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373 | --sha=* | --sh=*)
374 sharedstatedir="$ac_optarg" ;;
376 -site | --site | --sit)
377 ac_prev=site ;;
378 -site=* | --site=* | --sit=*)
379 site="$ac_optarg" ;;
381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382 ac_prev=srcdir ;;
383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384 srcdir="$ac_optarg" ;;
386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387 | --syscon | --sysco | --sysc | --sys | --sy)
388 ac_prev=sysconfdir ;;
389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391 sysconfdir="$ac_optarg" ;;
393 -target | --target | --targe | --targ | --tar | --ta | --t)
394 ac_prev=target ;;
395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396 target="$ac_optarg" ;;
398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
399 verbose=yes ;;
401 -version | --version | --versio | --versi | --vers)
402 echo "configure generated by autoconf version 2.13"
403 exit 0 ;;
405 -with-* | --with-*)
406 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 case "$ac_option" in
413 *=*) ;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
427 --x)
428 # Obsolete; use --with-x.
429 with_x=yes ;;
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes="$ac_optarg" ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 nonopt="$ac_option"
458 esac
459 done
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
468 # 0 standard input
469 # 1 file creation
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
476 exec 6>/dev/null
477 else
478 exec 6>&1
480 exec 5>./config.log
482 echo "\
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
485 " 1>&5
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
489 ac_configure_args=
490 for ac_arg
492 case "$ac_arg" in
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c) ;;
495 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 esac
501 done
503 # NLS nuisances.
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 echo > confdefs.h
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=java/lang/System.java
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
526 ac_prog=$0
527 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529 srcdir=$ac_confdir
530 if test ! -r $srcdir/$ac_unique_file; then
531 srcdir=..
533 else
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 else
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE; then
548 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549 else
550 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
556 . "$ac_site_file"
558 done
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
562 . $cache_file
563 else
564 echo "creating cache $cache_file"
565 > $cache_file
568 ac_ext=c
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
575 ac_exeext=
576 ac_objext=o
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
580 ac_n= ac_c='
581 ' ac_t=' '
582 else
583 ac_n=-n ac_c= ac_t=
585 else
586 ac_n= ac_c='\c' ac_t=
591 # This works around the fact that libtool configuration may change LD
592 # for this particular configuration, but some shells, instead of
593 # keeping the changes in LD private, export them just because LD is
594 # exported.
595 ORIGINAL_LD_FOR_MULTILIBS=$LD
597 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
598 echo "configure:599: checking whether ln -s works" >&5
599 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
600 echo $ac_n "(cached) $ac_c" 1>&6
601 else
602 rm -f conftestdata
603 if ln -s X conftestdata 2>/dev/null
604 then
605 rm -f conftestdata
606 ac_cv_prog_LN_S="ln -s"
607 else
608 ac_cv_prog_LN_S=ln
611 LN_S="$ac_cv_prog_LN_S"
612 if test "$ac_cv_prog_LN_S" = "ln -s"; then
613 echo "$ac_t""yes" 1>&6
614 else
615 echo "$ac_t""no" 1>&6
619 # Check whether --with-target-subdir or --without-target-subdir was given.
620 if test "${with_target_subdir+set}" = set; then
621 withval="$with_target_subdir"
625 # Check whether --with-cross-host or --without-cross-host was given.
626 if test "${with_cross_host+set}" = set; then
627 withval="$with_cross_host"
632 # Check whether --with-newlib or --without-newlib was given.
633 if test "${with_newlib+set}" = set; then
634 withval="$with_newlib"
639 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
640 if test "${enable_version_specific_runtime_libs+set}" = set; then
641 enableval="$enable_version_specific_runtime_libs"
642 case "$enableval" in
643 yes) version_specific_libs=yes ;;
644 no) version_specific_libs=no ;;
645 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
646 esac
647 else
648 version_specific_libs=no
654 am__api_version="1.4"
655 # Find a good install program. We prefer a C program (faster),
656 # so one script is as good as another. But avoid the broken or
657 # incompatible versions:
658 # SysV /etc/install, /usr/sbin/install
659 # SunOS /usr/etc/install
660 # IRIX /sbin/install
661 # AIX /bin/install
662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
665 # ./install, which can be erroneously created by make from ./install.sh.
666 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
667 echo "configure:668: checking for a BSD compatible install" >&5
668 if test -z "$INSTALL"; then
669 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
671 else
672 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
673 for ac_dir in $PATH; do
674 # Account for people who put trailing slashes in PATH elements.
675 case "$ac_dir/" in
676 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
678 # OSF1 and SCO ODT 3.0 have their own names for install.
679 # Don't use installbsd from OSF since it installs stuff as root
680 # by default.
681 for ac_prog in ginstall scoinst install; do
682 if test -f $ac_dir/$ac_prog; then
683 if test $ac_prog = install &&
684 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
685 # AIX install. It has an incompatible calling convention.
687 else
688 ac_cv_path_install="$ac_dir/$ac_prog -c"
689 break 2
692 done
694 esac
695 done
696 IFS="$ac_save_IFS"
699 if test "${ac_cv_path_install+set}" = set; then
700 INSTALL="$ac_cv_path_install"
701 else
702 # As a last resort, use the slow shell script. We don't cache a
703 # path for INSTALL within a source directory, because that will
704 # break other packages using the cache if that directory is
705 # removed, or if the path is relative.
706 INSTALL="$ac_install_sh"
709 echo "$ac_t""$INSTALL" 1>&6
711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
712 # It thinks the first close brace ends the variable substitution.
713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
719 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
720 echo "configure:721: checking whether build environment is sane" >&5
721 # Just in case
722 sleep 1
723 echo timestamp > conftestfile
724 # Do `set' in a subshell so we don't clobber the current shell's
725 # arguments. Must try -L first in case configure is actually a
726 # symlink; some systems play weird games with the mod time of symlinks
727 # (eg FreeBSD returns the mod time of the symlink's containing
728 # directory).
729 if (
730 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
731 if test "$*" = "X"; then
732 # -L didn't work.
733 set X `ls -t $srcdir/configure conftestfile`
735 if test "$*" != "X $srcdir/configure conftestfile" \
736 && test "$*" != "X conftestfile $srcdir/configure"; then
738 # If neither matched, then we have a broken ls. This can happen
739 # if, for instance, CONFIG_SHELL is bash and it inherits a
740 # broken ls alias from the environment. This has actually
741 # happened. Such a system could not be considered "sane".
742 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
743 alias in your environment" 1>&2; exit 1; }
746 test "$2" = conftestfile
748 then
749 # Ok.
751 else
752 { echo "configure: error: newly created file is older than distributed files!
753 Check your system clock" 1>&2; exit 1; }
755 rm -f conftest*
756 echo "$ac_t""yes" 1>&6
757 if test "$program_transform_name" = s,x,x,; then
758 program_transform_name=
759 else
760 # Double any \ or $. echo might interpret backslashes.
761 cat <<\EOF_SED > conftestsed
762 s,\\,\\\\,g; s,\$,$$,g
763 EOF_SED
764 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
765 rm -f conftestsed
767 test "$program_prefix" != NONE &&
768 program_transform_name="s,^,${program_prefix},; $program_transform_name"
769 # Use a double $ so make ignores it.
770 test "$program_suffix" != NONE &&
771 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
773 # sed with no file args requires a program.
774 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
776 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
777 echo "configure:778: checking whether ${MAKE-make} sets \${MAKE}" >&5
778 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
779 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781 else
782 cat > conftestmake <<\EOF
783 all:
784 @echo 'ac_maketemp="${MAKE}"'
786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
787 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
788 if test -n "$ac_maketemp"; then
789 eval ac_cv_prog_make_${ac_make}_set=yes
790 else
791 eval ac_cv_prog_make_${ac_make}_set=no
793 rm -f conftestmake
795 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
796 echo "$ac_t""yes" 1>&6
797 SET_MAKE=
798 else
799 echo "$ac_t""no" 1>&6
800 SET_MAKE="MAKE=${MAKE-make}"
803 if test $host != $build; then
804 ac_tool_prefix=${host_alias}-
805 else
806 ac_tool_prefix=
809 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
810 echo "configure:811: checking for Cygwin environment" >&5
811 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
813 else
814 cat > conftest.$ac_ext <<EOF
815 #line 816 "configure"
816 #include "confdefs.h"
818 int main() {
820 #ifndef __CYGWIN__
821 #define __CYGWIN__ __CYGWIN32__
822 #endif
823 return __CYGWIN__;
824 ; return 0; }
826 if { (eval echo configure:827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
827 rm -rf conftest*
828 ac_cv_cygwin=yes
829 else
830 echo "configure: failed program was:" >&5
831 cat conftest.$ac_ext >&5
832 rm -rf conftest*
833 ac_cv_cygwin=no
835 rm -f conftest*
836 rm -f conftest*
839 echo "$ac_t""$ac_cv_cygwin" 1>&6
840 CYGWIN=
841 test "$ac_cv_cygwin" = yes && CYGWIN=yes
842 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
843 echo "configure:844: checking for mingw32 environment" >&5
844 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
846 else
847 cat > conftest.$ac_ext <<EOF
848 #line 849 "configure"
849 #include "confdefs.h"
851 int main() {
852 return __MINGW32__;
853 ; return 0; }
855 if { (eval echo configure:856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
856 rm -rf conftest*
857 ac_cv_mingw32=yes
858 else
859 echo "configure: failed program was:" >&5
860 cat conftest.$ac_ext >&5
861 rm -rf conftest*
862 ac_cv_mingw32=no
864 rm -f conftest*
865 rm -f conftest*
868 echo "$ac_t""$ac_cv_mingw32" 1>&6
869 MINGW32=
870 test "$ac_cv_mingw32" = yes && MINGW32=yes
872 # Check whether --enable-multilib or --disable-multilib was given.
873 if test "${enable_multilib+set}" = set; then
874 enableval="$enable_multilib"
875 case "${enableval}" in
876 yes) multilib=yes ;;
877 no) multilib=no ;;
878 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
879 esac
880 else
881 multilib=yes
885 # When building with srcdir == objdir, links to the source files will
886 # be created in directories within the target_subdir. We have to
887 # adjust toplevel_srcdir accordingly, so that configure finds
888 # install-sh and other auxiliary files that live in the top-level
889 # source directory.
890 if test "${srcdir}" = "."; then
891 if test -z "${with_target_subdir}"; then
892 toprel=".."
893 else
894 if test "${with_target_subdir}" != "."; then
895 toprel="${with_multisrctop}../.."
896 else
897 toprel="${with_multisrctop}.."
900 else
901 toprel=".."
904 libgcj_basedir=$srcdir/$toprel/./libjava
907 ac_aux_dir=
908 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
909 if test -f $ac_dir/install-sh; then
910 ac_aux_dir=$ac_dir
911 ac_install_sh="$ac_aux_dir/install-sh -c"
912 break
913 elif test -f $ac_dir/install.sh; then
914 ac_aux_dir=$ac_dir
915 ac_install_sh="$ac_aux_dir/install.sh -c"
916 break
918 done
919 if test -z "$ac_aux_dir"; then
920 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
922 ac_config_guess=$ac_aux_dir/config.guess
923 ac_config_sub=$ac_aux_dir/config.sub
924 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
926 if :; then :; else
927 # This overrides the previous occurrence for automake, but not for
928 # autoconf, which is exactly what we want.
929 ac_aux_dir=
930 for ac_dir in .. $srcdir/..; do
931 if test -f $ac_dir/install-sh; then
932 ac_aux_dir=$ac_dir
933 ac_install_sh="$ac_aux_dir/install-sh -c"
934 break
935 elif test -f $ac_dir/install.sh; then
936 ac_aux_dir=$ac_dir
937 ac_install_sh="$ac_aux_dir/install.sh -c"
938 break
940 done
941 if test -z "$ac_aux_dir"; then
942 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
944 ac_config_guess=$ac_aux_dir/config.guess
945 ac_config_sub=$ac_aux_dir/config.sub
946 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
950 # This works around an automake problem.
951 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
955 # Do some error checking and defaulting for the host and target type.
956 # The inputs are:
957 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
959 # The rules are:
960 # 1. You are not allowed to specify --host, --target, and nonopt at the
961 # same time.
962 # 2. Host defaults to nonopt.
963 # 3. If nonopt is not specified, then host defaults to the current host,
964 # as determined by config.guess.
965 # 4. Target and build default to nonopt.
966 # 5. If nonopt is not specified, then target and build default to host.
968 # The aliases save the names the user supplied, while $host etc.
969 # will get canonicalized.
970 case $host---$target---$nonopt in
971 NONE---*---* | *---NONE---* | *---*---NONE) ;;
972 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
973 esac
976 # Make sure we can run config.sub.
977 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
978 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
981 echo $ac_n "checking host system type""... $ac_c" 1>&6
982 echo "configure:983: checking host system type" >&5
984 host_alias=$host
985 case "$host_alias" in
986 NONE)
987 case $nonopt in
988 NONE)
989 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
990 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
991 fi ;;
992 *) host_alias=$nonopt ;;
993 esac ;;
994 esac
996 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
997 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
998 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
999 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1000 echo "$ac_t""$host" 1>&6
1002 echo $ac_n "checking target system type""... $ac_c" 1>&6
1003 echo "configure:1004: checking target system type" >&5
1005 target_alias=$target
1006 case "$target_alias" in
1007 NONE)
1008 case $nonopt in
1009 NONE) target_alias=$host_alias ;;
1010 *) target_alias=$nonopt ;;
1011 esac ;;
1012 esac
1014 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1015 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1016 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1017 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1018 echo "$ac_t""$target" 1>&6
1020 echo $ac_n "checking build system type""... $ac_c" 1>&6
1021 echo "configure:1022: checking build system type" >&5
1023 build_alias=$build
1024 case "$build_alias" in
1025 NONE)
1026 case $nonopt in
1027 NONE) build_alias=$host_alias ;;
1028 *) build_alias=$nonopt ;;
1029 esac ;;
1030 esac
1032 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1033 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1034 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1035 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1036 echo "$ac_t""$build" 1>&6
1038 test "$host_alias" != "$target_alias" &&
1039 test "$program_prefix$program_suffix$program_transform_name" = \
1040 NONENONEs,x,x, &&
1041 program_prefix=${target_alias}-
1047 # Extract the first word of "gcc", so it can be a program name with args.
1048 set dummy gcc; ac_word=$2
1049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1050 echo "configure:1051: checking for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1053 else
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC="$CC" # Let the user override the test.
1056 else
1057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1058 ac_dummy="$PATH"
1059 for ac_dir in $ac_dummy; do
1060 test -z "$ac_dir" && ac_dir=.
1061 if test -f $ac_dir/$ac_word; then
1062 ac_cv_prog_CC="gcc"
1063 break
1065 done
1066 IFS="$ac_save_ifs"
1069 CC="$ac_cv_prog_CC"
1070 if test -n "$CC"; then
1071 echo "$ac_t""$CC" 1>&6
1072 else
1073 echo "$ac_t""no" 1>&6
1076 if test -z "$CC"; then
1077 # Extract the first word of "cc", so it can be a program name with args.
1078 set dummy cc; ac_word=$2
1079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1080 echo "configure:1081: checking for $ac_word" >&5
1081 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1083 else
1084 if test -n "$CC"; then
1085 ac_cv_prog_CC="$CC" # Let the user override the test.
1086 else
1087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1088 ac_prog_rejected=no
1089 ac_dummy="$PATH"
1090 for ac_dir in $ac_dummy; do
1091 test -z "$ac_dir" && ac_dir=.
1092 if test -f $ac_dir/$ac_word; then
1093 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1094 ac_prog_rejected=yes
1095 continue
1097 ac_cv_prog_CC="cc"
1098 break
1100 done
1101 IFS="$ac_save_ifs"
1102 if test $ac_prog_rejected = yes; then
1103 # We found a bogon in the path, so make sure we never use it.
1104 set dummy $ac_cv_prog_CC
1105 shift
1106 if test $# -gt 0; then
1107 # We chose a different compiler from the bogus one.
1108 # However, it has the same basename, so the bogon will be chosen
1109 # first if we set CC to just the basename; use the full file name.
1110 shift
1111 set dummy "$ac_dir/$ac_word" "$@"
1112 shift
1113 ac_cv_prog_CC="$@"
1118 CC="$ac_cv_prog_CC"
1119 if test -n "$CC"; then
1120 echo "$ac_t""$CC" 1>&6
1121 else
1122 echo "$ac_t""no" 1>&6
1125 if test -z "$CC"; then
1126 case "`uname -s`" in
1127 *win32* | *WIN32*)
1128 # Extract the first word of "cl", so it can be a program name with args.
1129 set dummy cl; ac_word=$2
1130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1131 echo "configure:1132: checking for $ac_word" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1134 else
1135 if test -n "$CC"; then
1136 ac_cv_prog_CC="$CC" # Let the user override the test.
1137 else
1138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1139 ac_dummy="$PATH"
1140 for ac_dir in $ac_dummy; do
1141 test -z "$ac_dir" && ac_dir=.
1142 if test -f $ac_dir/$ac_word; then
1143 ac_cv_prog_CC="cl"
1144 break
1146 done
1147 IFS="$ac_save_ifs"
1150 CC="$ac_cv_prog_CC"
1151 if test -n "$CC"; then
1152 echo "$ac_t""$CC" 1>&6
1153 else
1154 echo "$ac_t""no" 1>&6
1157 esac
1159 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1163 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether we are using GNU C" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167 else
1168 cat > conftest.c <<EOF
1169 #ifdef __GNUC__
1170 yes;
1171 #endif
1173 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1174 ac_cv_prog_gcc=yes
1175 else
1176 ac_cv_prog_gcc=no
1180 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1182 if test $ac_cv_prog_gcc = yes; then
1183 GCC=yes
1184 else
1185 GCC=
1188 ac_test_CFLAGS="${CFLAGS+set}"
1189 ac_save_CFLAGS="$CFLAGS"
1190 CFLAGS=
1191 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether ${CC-cc} accepts -g" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1195 else
1196 echo 'void f(){}' > conftest.c
1197 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1198 ac_cv_prog_cc_g=yes
1199 else
1200 ac_cv_prog_cc_g=no
1202 rm -f conftest*
1206 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1207 if test "$ac_test_CFLAGS" = set; then
1208 CFLAGS="$ac_save_CFLAGS"
1209 elif test $ac_cv_prog_cc_g = yes; then
1210 if test "$GCC" = yes; then
1211 CFLAGS="-g -O2"
1212 else
1213 CFLAGS="-g"
1215 else
1216 if test "$GCC" = yes; then
1217 CFLAGS="-O2"
1218 else
1219 CFLAGS=
1224 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1225 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1226 # different definition of CXX than other directories, since we don't
1227 # depend on libstdc++-v3 having already been built.
1231 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1232 # flags that come in CXX while configuring libjava. They're different
1233 # from those used for all other target libraries. If CXX is set in
1234 # the environment, respect that here.
1235 glibjava_CXX=$CXX
1236 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1238 # Extract the first word of "$ac_prog", so it can be a program name with args.
1239 set dummy $ac_prog; ac_word=$2
1240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1241 echo "configure:1242: checking for $ac_word" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1244 else
1245 if test -n "$glibjava_CXX"; then
1246 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1247 else
1248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1249 ac_dummy="$PATH"
1250 for ac_dir in $ac_dummy; do
1251 test -z "$ac_dir" && ac_dir=.
1252 if test -f $ac_dir/$ac_word; then
1253 ac_cv_prog_glibjava_CXX="$ac_prog"
1254 break
1256 done
1257 IFS="$ac_save_ifs"
1260 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1261 if test -n "$glibjava_CXX"; then
1262 echo "$ac_t""$glibjava_CXX" 1>&6
1263 else
1264 echo "$ac_t""no" 1>&6
1267 test -n "$glibjava_CXX" && break
1268 done
1269 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1272 CXX=$glibjava_CXX
1273 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1275 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1276 echo "configure:1277: checking whether we are using GNU C++" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280 cat > conftest.C <<EOF
1281 #ifdef __GNUC__
1282 yes;
1283 #endif
1285 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1286 ac_cv_prog_gxx=yes
1287 else
1288 ac_cv_prog_gxx=no
1292 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1294 if test $ac_cv_prog_gxx = yes; then
1295 GXX=yes
1296 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1297 ac_save_CXXFLAGS="$CXXFLAGS"
1298 CXXFLAGS=
1299 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether ${CXX-g++} accepts -g" >&5
1301 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1303 else
1304 echo 'void f(){}' > conftest.cc
1305 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1306 ac_cv_prog_cxx_g=yes
1307 else
1308 ac_cv_prog_cxx_g=no
1310 rm -f conftest*
1314 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1315 if test "$ac_test_CXXFLAGS" = set; then
1316 CXXFLAGS="$ac_save_CXXFLAGS"
1317 elif test $ac_cv_prog_cxx_g = yes; then
1318 CXXFLAGS="-g -O2"
1319 else
1320 CXXFLAGS="-O2"
1322 else
1323 GXX=
1324 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1328 version=0.0.7
1330 PACKAGE=libjava
1332 VERSION=$version
1334 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1335 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1337 cat >> confdefs.h <<EOF
1338 #define PACKAGE "$PACKAGE"
1341 cat >> confdefs.h <<EOF
1342 #define VERSION "$VERSION"
1347 missing_dir=`cd $ac_aux_dir && pwd`
1348 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1349 echo "configure:1350: checking for working aclocal-${am__api_version}" >&5
1350 # Run test in a subshell; some versions of sh will print an error if
1351 # an executable is not found, even if stderr is redirected.
1352 # Redirect stdin to placate older versions of autoconf. Sigh.
1353 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1354 ACLOCAL=aclocal-${am__api_version}
1355 echo "$ac_t""found" 1>&6
1356 else
1357 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1358 echo "$ac_t""missing" 1>&6
1361 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1362 echo "configure:1363: checking for working autoconf" >&5
1363 # Run test in a subshell; some versions of sh will print an error if
1364 # an executable is not found, even if stderr is redirected.
1365 # Redirect stdin to placate older versions of autoconf. Sigh.
1366 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1367 AUTOCONF=autoconf
1368 echo "$ac_t""found" 1>&6
1369 else
1370 AUTOCONF="$missing_dir/missing autoconf"
1371 echo "$ac_t""missing" 1>&6
1374 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1375 echo "configure:1376: checking for working automake-${am__api_version}" >&5
1376 # Run test in a subshell; some versions of sh will print an error if
1377 # an executable is not found, even if stderr is redirected.
1378 # Redirect stdin to placate older versions of autoconf. Sigh.
1379 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1380 AUTOMAKE=automake-${am__api_version}
1381 echo "$ac_t""found" 1>&6
1382 else
1383 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1384 echo "$ac_t""missing" 1>&6
1387 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1388 echo "configure:1389: checking for working autoheader" >&5
1389 # Run test in a subshell; some versions of sh will print an error if
1390 # an executable is not found, even if stderr is redirected.
1391 # Redirect stdin to placate older versions of autoconf. Sigh.
1392 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1393 AUTOHEADER=autoheader
1394 echo "$ac_t""found" 1>&6
1395 else
1396 AUTOHEADER="$missing_dir/missing autoheader"
1397 echo "$ac_t""missing" 1>&6
1400 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1401 echo "configure:1402: checking for working makeinfo" >&5
1402 # Run test in a subshell; some versions of sh will print an error if
1403 # an executable is not found, even if stderr is redirected.
1404 # Redirect stdin to placate older versions of autoconf. Sigh.
1405 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1406 MAKEINFO=makeinfo
1407 echo "$ac_t""found" 1>&6
1408 else
1409 MAKEINFO="$missing_dir/missing makeinfo"
1410 echo "$ac_t""missing" 1>&6
1415 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1416 set dummy ${ac_tool_prefix}as; 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_AS'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1421 else
1422 if test -n "$AS"; then
1423 ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as"
1431 break
1433 done
1434 IFS="$ac_save_ifs"
1435 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1438 AS="$ac_cv_prog_AS"
1439 if test -n "$AS"; then
1440 echo "$ac_t""$AS" 1>&6
1441 else
1442 echo "$ac_t""no" 1>&6
1447 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1448 set dummy ${ac_tool_prefix}ar; 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_AR'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1453 else
1454 if test -n "$AR"; then
1455 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
1463 break
1465 done
1466 IFS="$ac_save_ifs"
1467 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1470 AR="$ac_cv_prog_AR"
1471 if test -n "$AR"; then
1472 echo "$ac_t""$AR" 1>&6
1473 else
1474 echo "$ac_t""no" 1>&6
1479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1482 echo "configure:1483: checking for $ac_word" >&5
1483 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1485 else
1486 if test -n "$RANLIB"; then
1487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1488 else
1489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1490 ac_dummy="$PATH"
1491 for ac_dir in $ac_dummy; do
1492 test -z "$ac_dir" && ac_dir=.
1493 if test -f $ac_dir/$ac_word; then
1494 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1495 break
1497 done
1498 IFS="$ac_save_ifs"
1501 RANLIB="$ac_cv_prog_RANLIB"
1502 if test -n "$RANLIB"; then
1503 echo "$ac_t""$RANLIB" 1>&6
1504 else
1505 echo "$ac_t""no" 1>&6
1509 if test -z "$ac_cv_prog_RANLIB"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "ranlib", so it can be a program name with args.
1512 set dummy ranlib; ac_word=$2
1513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1514 echo "configure:1515: checking for $ac_word" >&5
1515 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1517 else
1518 if test -n "$RANLIB"; then
1519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1520 else
1521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1522 ac_dummy="$PATH"
1523 for ac_dir in $ac_dummy; do
1524 test -z "$ac_dir" && ac_dir=.
1525 if test -f $ac_dir/$ac_word; then
1526 ac_cv_prog_RANLIB="ranlib"
1527 break
1529 done
1530 IFS="$ac_save_ifs"
1531 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1534 RANLIB="$ac_cv_prog_RANLIB"
1535 if test -n "$RANLIB"; then
1536 echo "$ac_t""$RANLIB" 1>&6
1537 else
1538 echo "$ac_t""no" 1>&6
1541 else
1542 RANLIB=":"
1547 # Find a good install program. We prefer a C program (faster),
1548 # so one script is as good as another. But avoid the broken or
1549 # incompatible versions:
1550 # SysV /etc/install, /usr/sbin/install
1551 # SunOS /usr/etc/install
1552 # IRIX /sbin/install
1553 # AIX /bin/install
1554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1557 # ./install, which can be erroneously created by make from ./install.sh.
1558 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1559 echo "configure:1560: checking for a BSD compatible install" >&5
1560 if test -z "$INSTALL"; then
1561 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1565 for ac_dir in $PATH; do
1566 # Account for people who put trailing slashes in PATH elements.
1567 case "$ac_dir/" in
1568 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1570 # OSF1 and SCO ODT 3.0 have their own names for install.
1571 # Don't use installbsd from OSF since it installs stuff as root
1572 # by default.
1573 for ac_prog in ginstall scoinst install; do
1574 if test -f $ac_dir/$ac_prog; then
1575 if test $ac_prog = install &&
1576 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1577 # AIX install. It has an incompatible calling convention.
1579 else
1580 ac_cv_path_install="$ac_dir/$ac_prog -c"
1581 break 2
1584 done
1586 esac
1587 done
1588 IFS="$ac_save_IFS"
1591 if test "${ac_cv_path_install+set}" = set; then
1592 INSTALL="$ac_cv_path_install"
1593 else
1594 # As a last resort, use the slow shell script. We don't cache a
1595 # path for INSTALL within a source directory, because that will
1596 # break other packages using the cache if that directory is
1597 # removed, or if the path is relative.
1598 INSTALL="$ac_install_sh"
1601 echo "$ac_t""$INSTALL" 1>&6
1603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1604 # It thinks the first close brace ends the variable substitution.
1605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1612 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1613 echo "configure:1614: checking whether to enable maintainer-specific portions of Makefiles" >&5
1614 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1615 if test "${enable_maintainer_mode+set}" = set; then
1616 enableval="$enable_maintainer_mode"
1617 USE_MAINTAINER_MODE=$enableval
1618 else
1619 USE_MAINTAINER_MODE=no
1622 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1625 if test $USE_MAINTAINER_MODE = yes; then
1626 MAINTAINER_MODE_TRUE=
1627 MAINTAINER_MODE_FALSE='#'
1628 else
1629 MAINTAINER_MODE_TRUE='#'
1630 MAINTAINER_MODE_FALSE=
1632 MAINT=$MAINTAINER_MODE_TRUE
1638 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1639 echo "configure:1640: checking for executable suffix" >&5
1640 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1641 echo $ac_n "(cached) $ac_c" 1>&6
1642 else
1643 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1644 ac_cv_exeext=.exe
1645 else
1646 rm -f conftest*
1647 echo 'int main () { return 0; }' > conftest.$ac_ext
1648 ac_cv_exeext=
1649 if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1650 for file in conftest.*; do
1651 case $file in
1652 *.c | *.o | *.obj) ;;
1653 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1654 esac
1655 done
1656 else
1657 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1659 rm -f conftest*
1660 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1664 EXEEXT=""
1665 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1666 echo "$ac_t""${ac_cv_exeext}" 1>&6
1667 ac_exeext=$EXEEXT
1670 # configure.host sets the following important variables
1671 # libgcj_cflags - host specific C compiler flags
1672 # libgcj_cxxflags - host specific C++ compiler flags
1673 # libgcj_javaflags - host specific Java compiler flags
1675 libgcj_cflags=
1676 libgcj_cxxflags=
1677 libgcj_javaflags=
1679 . ${srcdir}/configure.host
1681 LIBGCJ_CFLAGS="${libgcj_cflags}"
1682 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1683 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1693 # Only use libltdl for non-newlib builds.
1694 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
1695 case $enable_ltdl_convenience in
1696 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1697 "") enable_ltdl_convenience=yes
1698 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1699 esac
1700 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1701 INCLTDL='-I${top_srcdir}/''libltdl'
1704 DIRLTDL=libltdl
1705 cat >> confdefs.h <<\EOF
1706 #define USE_LTDL 1
1709 # Sigh. Libtool's macro doesn't do the right thing.
1710 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1711 # FIXME: this is a hack.
1712 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1713 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1718 # Check whether --enable-shared or --disable-shared was given.
1719 if test "${enable_shared+set}" = set; then
1720 enableval="$enable_shared"
1721 p=${PACKAGE-default}
1722 case $enableval in
1723 yes) enable_shared=yes ;;
1724 no) enable_shared=no ;;
1726 enable_shared=no
1727 # Look at the argument we got. We use all the common list separators.
1728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1729 for pkg in $enableval; do
1730 if test "X$pkg" = "X$p"; then
1731 enable_shared=yes
1733 done
1734 IFS="$ac_save_ifs"
1736 esac
1737 else
1738 enable_shared=yes
1741 # Check whether --enable-static or --disable-static was given.
1742 if test "${enable_static+set}" = set; then
1743 enableval="$enable_static"
1744 p=${PACKAGE-default}
1745 case $enableval in
1746 yes) enable_static=yes ;;
1747 no) enable_static=no ;;
1749 enable_static=no
1750 # Look at the argument we got. We use all the common list separators.
1751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1752 for pkg in $enableval; do
1753 if test "X$pkg" = "X$p"; then
1754 enable_static=yes
1756 done
1757 IFS="$ac_save_ifs"
1759 esac
1760 else
1761 enable_static=yes
1764 # Check whether --enable-fast-install or --disable-fast-install was given.
1765 if test "${enable_fast_install+set}" = set; then
1766 enableval="$enable_fast_install"
1767 p=${PACKAGE-default}
1768 case $enableval in
1769 yes) enable_fast_install=yes ;;
1770 no) enable_fast_install=no ;;
1772 enable_fast_install=no
1773 # Look at the argument we got. We use all the common list separators.
1774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1775 for pkg in $enableval; do
1776 if test "X$pkg" = "X$p"; then
1777 enable_fast_install=yes
1779 done
1780 IFS="$ac_save_ifs"
1782 esac
1783 else
1784 enable_fast_install=yes
1787 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1788 if test "${with_gnu_ld+set}" = set; then
1789 withval="$with_gnu_ld"
1790 test "$withval" = no || with_gnu_ld=yes
1791 else
1792 with_gnu_ld=no
1795 ac_prog=ld
1796 if test "$GCC" = yes; then
1797 # Check if gcc -print-prog-name=ld gives a path.
1798 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1799 echo "configure:1800: checking for ld used by GCC" >&5
1800 case $host in
1801 *-*-mingw*)
1802 # gcc leaves a trailing carriage return which upsets mingw
1803 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1805 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1806 esac
1807 case $ac_prog in
1808 # Accept absolute paths.
1809 [\\/]* | [A-Za-z]:[\\/]*)
1810 re_direlt='/[^/][^/]*/\.\./'
1811 # Canonicalize the path of ld
1812 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1813 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1814 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1815 done
1816 test -z "$LD" && LD="$ac_prog"
1819 # If it fails, then pretend we aren't using GCC.
1820 ac_prog=ld
1823 # If it is relative, then search for the first ld in PATH.
1824 with_gnu_ld=unknown
1826 esac
1827 elif test "$with_gnu_ld" = yes; then
1828 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1829 echo "configure:1830: checking for GNU ld" >&5
1830 else
1831 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1832 echo "configure:1833: checking for non-GNU ld" >&5
1834 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1836 else
1837 if test -z "$LD"; then
1838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1839 for ac_dir in $PATH; do
1840 test -z "$ac_dir" && ac_dir=.
1841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1842 lt_cv_path_LD="$ac_dir/$ac_prog"
1843 # Check to see if the program is GNU ld. I'd rather use --version,
1844 # but apparently some GNU ld's only accept -v.
1845 # Break only if it was the GNU/non-GNU ld that we prefer.
1846 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1847 test "$with_gnu_ld" != no && break
1848 else
1849 test "$with_gnu_ld" != yes && break
1852 done
1853 IFS="$ac_save_ifs"
1854 else
1855 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1859 LD="$lt_cv_path_LD"
1860 if test -n "$LD"; then
1861 echo "$ac_t""$LD" 1>&6
1862 else
1863 echo "$ac_t""no" 1>&6
1865 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1866 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1867 echo "configure:1868: checking if the linker ($LD) is GNU ld" >&5
1868 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1870 else
1871 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1872 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1873 lt_cv_prog_gnu_ld=yes
1874 else
1875 lt_cv_prog_gnu_ld=no
1879 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1880 with_gnu_ld=$lt_cv_prog_gnu_ld
1883 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1884 echo "configure:1885: checking for $LD option to reload object files" >&5
1885 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1887 else
1888 lt_cv_ld_reload_flag='-r'
1891 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1892 reload_flag=$lt_cv_ld_reload_flag
1893 test -n "$reload_flag" && reload_flag=" $reload_flag"
1895 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1896 echo "configure:1897: checking for BSD-compatible nm" >&5
1897 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1899 else
1900 if test -n "$NM"; then
1901 # Let the user override the test.
1902 lt_cv_path_NM="$NM"
1903 else
1904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1905 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1906 test -z "$ac_dir" && ac_dir=.
1907 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1908 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1909 # Check to see if the nm accepts a BSD-compat flag.
1910 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1911 # nm: unknown option "B" ignored
1912 # Tru64's nm complains that /dev/null is an invalid object file
1913 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1914 lt_cv_path_NM="$tmp_nm -B"
1915 break
1916 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1917 lt_cv_path_NM="$tmp_nm -p"
1918 break
1919 else
1920 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1921 continue # so that we can try to find one that supports BSD flags
1924 done
1925 IFS="$ac_save_ifs"
1926 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1930 NM="$lt_cv_path_NM"
1931 echo "$ac_t""$NM" 1>&6
1933 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1934 echo "configure:1935: checking how to recognise dependant libraries" >&5
1935 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1937 else
1938 lt_cv_file_magic_cmd='$MAGIC_CMD'
1939 lt_cv_file_magic_test_file=
1940 lt_cv_deplibs_check_method='unknown'
1941 # Need to set the preceding variable on all platforms that support
1942 # interlibrary dependencies.
1943 # 'none' -- dependencies not supported.
1944 # `unknown' -- same as none, but documents that we really don't know.
1945 # 'pass_all' -- all dependencies passed with no checks.
1946 # 'test_compile' -- check by making test program.
1947 # 'file_magic [regex]' -- check by looking for files in library path
1948 # which responds to the $file_magic_cmd with a given egrep regex.
1949 # If you have `file' or equivalent on your system and you're not sure
1950 # whether `pass_all' will *always* work, you probably want this one.
1952 case $host_os in
1953 aix*)
1954 lt_cv_deplibs_check_method=pass_all
1957 beos*)
1958 lt_cv_deplibs_check_method=pass_all
1961 bsdi4*)
1962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1963 lt_cv_file_magic_cmd='/usr/bin/file -L'
1964 lt_cv_file_magic_test_file=/shlib/libc.so
1967 cygwin* | mingw* |pw32*)
1968 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1969 lt_cv_file_magic_cmd='$OBJDUMP -f'
1972 darwin* | rhapsody*)
1973 # this will be overwritten by pass_all, but leave it in just in case
1974 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1975 lt_cv_file_magic_cmd='/usr/bin/file -L'
1976 case "$host_os" in
1977 rhapsody* | darwin1.012)
1978 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1980 *) # Darwin 1.3 on
1981 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1983 esac
1984 lt_cv_deplibs_check_method=pass_all
1987 freebsd* | kfreebsd*-gnu)
1988 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1989 case $host_cpu in
1990 i*86 )
1991 # Not sure whether the presence of OpenBSD here was a mistake.
1992 # Let's accept both of them until this is cleared up.
1993 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1994 lt_cv_file_magic_cmd=/usr/bin/file
1995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1997 esac
1998 else
1999 lt_cv_deplibs_check_method=pass_all
2003 gnu*)
2004 lt_cv_deplibs_check_method=pass_all
2007 hpux10.20*|hpux11*)
2008 case $host_cpu in
2009 hppa*)
2010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2011 lt_cv_file_magic_cmd=/usr/bin/file
2012 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2014 ia64*)
2015 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2016 lt_cv_file_magic_cmd=/usr/bin/file
2017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2019 esac
2022 irix5* | irix6*)
2023 case $host_os in
2024 irix5*)
2025 # this will be overridden with pass_all, but let us keep it just in case
2026 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2029 case $LD in
2030 *-32|*"-32 ") libmagic=32-bit;;
2031 *-n32|*"-n32 ") libmagic=N32;;
2032 *-64|*"-64 ") libmagic=64-bit;;
2033 *) libmagic=never-match;;
2034 esac
2035 # this will be overridden with pass_all, but let us keep it just in case
2036 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2038 esac
2039 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2040 lt_cv_deplibs_check_method=pass_all
2043 # This must be Linux ELF.
2044 linux-gnu*)
2045 case $host_cpu in
2046 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
2047 lt_cv_deplibs_check_method=pass_all ;;
2049 # glibc up to 2.1.1 does not perform some relocations on ARM
2050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2051 esac
2052 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2055 netbsd* | knetbsd*-gnu)
2056 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2057 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2058 else
2059 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2063 newsos6)
2064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2065 lt_cv_file_magic_cmd=/usr/bin/file
2066 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2069 osf3* | osf4* | osf5*)
2070 # this will be overridden with pass_all, but let us keep it just in case
2071 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2072 lt_cv_file_magic_test_file=/shlib/libc.so
2073 lt_cv_deplibs_check_method=pass_all
2076 sco3.2v5*)
2077 lt_cv_deplibs_check_method=pass_all
2080 solaris*)
2081 lt_cv_deplibs_check_method=pass_all
2082 lt_cv_file_magic_test_file=/lib/libc.so
2085 sysv5uw[78]* | sysv4*uw2*)
2086 lt_cv_deplibs_check_method=pass_all
2089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2090 case $host_vendor in
2091 ncr)
2092 lt_cv_deplibs_check_method=pass_all
2094 motorola)
2095 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]'
2096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2098 esac
2100 esac
2104 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2105 file_magic_cmd=$lt_cv_file_magic_cmd
2106 deplibs_check_method=$lt_cv_deplibs_check_method
2108 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2109 echo "configure:2110: checking for object suffix" >&5
2110 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2112 else
2113 rm -f conftest*
2114 echo 'int i = 1;' > conftest.$ac_ext
2115 if { (eval echo configure:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2116 for ac_file in conftest.*; do
2117 case $ac_file in
2118 *.c) ;;
2119 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2120 esac
2121 done
2122 else
2123 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2125 rm -f conftest*
2128 echo "$ac_t""$ac_cv_objext" 1>&6
2129 OBJEXT=$ac_cv_objext
2130 ac_objext=$ac_cv_objext
2132 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2134 # Only perform the check for file, if the check method requires it
2135 case $deplibs_check_method in
2136 file_magic*)
2137 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2138 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2139 echo "configure:2140: checking for ${ac_tool_prefix}file" >&5
2140 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2142 else
2143 case $MAGIC_CMD in
2145 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2147 ?:/*)
2148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2151 ac_save_MAGIC_CMD="$MAGIC_CMD"
2152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2153 ac_dummy="/usr/bin:$PATH"
2154 for ac_dir in $ac_dummy; do
2155 test -z "$ac_dir" && ac_dir=.
2156 if test -f $ac_dir/${ac_tool_prefix}file; then
2157 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2158 if test -n "$file_magic_test_file"; then
2159 case $deplibs_check_method in
2160 "file_magic "*)
2161 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2164 egrep "$file_magic_regex" > /dev/null; then
2166 else
2167 cat <<EOF 1>&2
2169 *** Warning: the command libtool uses to detect shared libraries,
2170 *** $file_magic_cmd, produces output that libtool cannot recognize.
2171 *** The result is that libtool may fail to recognize shared libraries
2172 *** as such. This will affect the creation of libtool libraries that
2173 *** depend on shared libraries, but programs linked with such libtool
2174 *** libraries will work regardless of this problem. Nevertheless, you
2175 *** may want to report the problem to your system manager and/or to
2176 *** bug-libtool@gnu.org
2179 fi ;;
2180 esac
2182 break
2184 done
2185 IFS="$ac_save_ifs"
2186 MAGIC_CMD="$ac_save_MAGIC_CMD"
2188 esac
2191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2192 if test -n "$MAGIC_CMD"; then
2193 echo "$ac_t""$MAGIC_CMD" 1>&6
2194 else
2195 echo "$ac_t""no" 1>&6
2198 if test -z "$lt_cv_path_MAGIC_CMD"; then
2199 if test -n "$ac_tool_prefix"; then
2200 echo $ac_n "checking for file""... $ac_c" 1>&6
2201 echo "configure:2202: checking for file" >&5
2202 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2204 else
2205 case $MAGIC_CMD in
2207 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2209 ?:/*)
2210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2213 ac_save_MAGIC_CMD="$MAGIC_CMD"
2214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2215 ac_dummy="/usr/bin:$PATH"
2216 for ac_dir in $ac_dummy; do
2217 test -z "$ac_dir" && ac_dir=.
2218 if test -f $ac_dir/file; then
2219 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2220 if test -n "$file_magic_test_file"; then
2221 case $deplibs_check_method in
2222 "file_magic "*)
2223 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2226 egrep "$file_magic_regex" > /dev/null; then
2228 else
2229 cat <<EOF 1>&2
2231 *** Warning: the command libtool uses to detect shared libraries,
2232 *** $file_magic_cmd, produces output that libtool cannot recognize.
2233 *** The result is that libtool may fail to recognize shared libraries
2234 *** as such. This will affect the creation of libtool libraries that
2235 *** depend on shared libraries, but programs linked with such libtool
2236 *** libraries will work regardless of this problem. Nevertheless, you
2237 *** may want to report the problem to your system manager and/or to
2238 *** bug-libtool@gnu.org
2241 fi ;;
2242 esac
2244 break
2246 done
2247 IFS="$ac_save_ifs"
2248 MAGIC_CMD="$ac_save_MAGIC_CMD"
2250 esac
2253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2254 if test -n "$MAGIC_CMD"; then
2255 echo "$ac_t""$MAGIC_CMD" 1>&6
2256 else
2257 echo "$ac_t""no" 1>&6
2260 else
2261 MAGIC_CMD=:
2267 esac
2269 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2272 echo "configure:2273: checking for $ac_word" >&5
2273 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2275 else
2276 if test -n "$RANLIB"; then
2277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2278 else
2279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2280 ac_dummy="$PATH"
2281 for ac_dir in $ac_dummy; do
2282 test -z "$ac_dir" && ac_dir=.
2283 if test -f $ac_dir/$ac_word; then
2284 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2285 break
2287 done
2288 IFS="$ac_save_ifs"
2291 RANLIB="$ac_cv_prog_RANLIB"
2292 if test -n "$RANLIB"; then
2293 echo "$ac_t""$RANLIB" 1>&6
2294 else
2295 echo "$ac_t""no" 1>&6
2299 if test -z "$ac_cv_prog_RANLIB"; then
2300 if test -n "$ac_tool_prefix"; then
2301 # Extract the first word of "ranlib", so it can be a program name with args.
2302 set dummy ranlib; ac_word=$2
2303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_word" >&5
2305 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2307 else
2308 if test -n "$RANLIB"; then
2309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2310 else
2311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2312 ac_dummy="$PATH"
2313 for ac_dir in $ac_dummy; do
2314 test -z "$ac_dir" && ac_dir=.
2315 if test -f $ac_dir/$ac_word; then
2316 ac_cv_prog_RANLIB="ranlib"
2317 break
2319 done
2320 IFS="$ac_save_ifs"
2321 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2324 RANLIB="$ac_cv_prog_RANLIB"
2325 if test -n "$RANLIB"; then
2326 echo "$ac_t""$RANLIB" 1>&6
2327 else
2328 echo "$ac_t""no" 1>&6
2331 else
2332 RANLIB=":"
2336 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}strip; ac_word=$2
2338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2339 echo "configure:2340: checking for $ac_word" >&5
2340 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2342 else
2343 if test -n "$STRIP"; then
2344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2345 else
2346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2347 ac_dummy="$PATH"
2348 for ac_dir in $ac_dummy; do
2349 test -z "$ac_dir" && ac_dir=.
2350 if test -f $ac_dir/$ac_word; then
2351 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2352 break
2354 done
2355 IFS="$ac_save_ifs"
2358 STRIP="$ac_cv_prog_STRIP"
2359 if test -n "$STRIP"; then
2360 echo "$ac_t""$STRIP" 1>&6
2361 else
2362 echo "$ac_t""no" 1>&6
2366 if test -z "$ac_cv_prog_STRIP"; then
2367 if test -n "$ac_tool_prefix"; then
2368 # Extract the first word of "strip", so it can be a program name with args.
2369 set dummy strip; ac_word=$2
2370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2371 echo "configure:2372: checking for $ac_word" >&5
2372 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2374 else
2375 if test -n "$STRIP"; then
2376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2377 else
2378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2379 ac_dummy="$PATH"
2380 for ac_dir in $ac_dummy; do
2381 test -z "$ac_dir" && ac_dir=.
2382 if test -f $ac_dir/$ac_word; then
2383 ac_cv_prog_STRIP="strip"
2384 break
2386 done
2387 IFS="$ac_save_ifs"
2388 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2391 STRIP="$ac_cv_prog_STRIP"
2392 if test -n "$STRIP"; then
2393 echo "$ac_t""$STRIP" 1>&6
2394 else
2395 echo "$ac_t""no" 1>&6
2398 else
2399 STRIP=":"
2404 # Check for any special flags to pass to ltconfig.
2405 libtool_flags="--cache-file=$cache_file"
2406 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2407 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2408 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2409 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2410 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2411 libtool_flags="$libtool_flags --enable-dlopen"
2413 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2414 if test "${enable_libtool_lock+set}" = set; then
2415 enableval="$enable_libtool_lock"
2419 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2420 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2422 # Check whether --with-pic or --without-pic was given.
2423 if test "${with_pic+set}" = set; then
2424 withval="$with_pic"
2425 pic_mode="$withval"
2426 else
2427 pic_mode=default
2430 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2431 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2433 # Some flags need to be propagated to the compiler or linker for good
2434 # libtool support.
2435 case $host in
2436 *-*-irix6*)
2437 # Find out which ABI we are using.
2438 echo '#line 2439 "configure"' > conftest.$ac_ext
2439 if { (eval echo configure:2440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2440 if test "$lt_cv_prog_gnu_ld" = yes; then
2441 case `/usr/bin/file conftest.$ac_objext` in
2442 *32-bit*)
2443 LD="${LD-ld} -melf32bsmip"
2445 *N32*)
2446 LD="${LD-ld} -melf32bmipn32"
2448 *64-bit*)
2449 LD="${LD-ld} -melf64bmip"
2451 esac
2452 else
2453 case `/usr/bin/file conftest.$ac_objext` in
2454 *32-bit*)
2455 LD="${LD-ld} -32"
2457 *N32*)
2458 LD="${LD-ld} -n32"
2460 *64-bit*)
2461 LD="${LD-ld} -64"
2463 esac
2466 rm -rf conftest*
2469 ia64-*-hpux*)
2470 # Find out which ABI we are using.
2471 echo 'int i;' > conftest.$ac_ext
2472 if { (eval echo configure:2473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2473 case "`/usr/bin/file conftest.o`" in
2474 *ELF-32*)
2475 HPUX_IA64_MODE="32"
2477 *ELF-64*)
2478 HPUX_IA64_MODE="64"
2480 esac
2482 rm -rf conftest*
2485 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2486 # Find out which ABI we are using.
2487 echo 'int i;' > conftest.$ac_ext
2488 if { (eval echo configure:2489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2489 case "`/usr/bin/file conftest.o`" in
2490 *32-bit*)
2491 case $host in
2492 x86_64-*linux*)
2493 LD="${LD-ld} -m elf_i386"
2495 ppc64-*linux*|powerpc64-*linux*)
2496 LD="${LD-ld} -m elf32ppclinux"
2498 s390x-*linux*)
2499 LD="${LD-ld} -m elf_s390"
2501 sparc64-*linux*)
2502 LD="${LD-ld} -m elf32_sparc"
2504 esac
2506 *64-bit*)
2507 case $host in
2508 x86_64-*linux*)
2509 LD="${LD-ld} -m elf_x86_64"
2511 ppc*-*linux*|powerpc*-*linux*)
2512 LD="${LD-ld} -m elf64ppc"
2514 s390*-*linux*)
2515 LD="${LD-ld} -m elf64_s390"
2517 sparc*-*linux*)
2518 LD="${LD-ld} -m elf64_sparc"
2520 esac
2522 esac
2524 rm -rf conftest*
2527 *-*-sco3.2v5*)
2528 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2529 SAVE_CFLAGS="$CFLAGS"
2530 CFLAGS="$CFLAGS -belf"
2531 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2532 echo "configure:2533: checking whether the C compiler needs -belf" >&5
2533 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2535 else
2537 ac_ext=c
2538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2542 cross_compiling=$ac_cv_prog_cc_cross
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2548 int main() {
2550 ; return 0; }
2552 if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2553 rm -rf conftest*
2554 lt_cv_cc_needs_belf=yes
2555 else
2556 echo "configure: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2558 rm -rf conftest*
2559 lt_cv_cc_needs_belf=no
2561 rm -f conftest*
2562 ac_ext=c
2563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2567 cross_compiling=$ac_cv_prog_cc_cross
2571 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2572 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2573 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2574 CFLAGS="$SAVE_CFLAGS"
2579 esac
2581 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2582 echo "configure:2583: checking how to run the C++ preprocessor" >&5
2583 if test -z "$CXXCPP"; then
2584 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586 else
2587 ac_ext=C
2588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2589 ac_cpp='$CXXCPP $CPPFLAGS'
2590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2592 cross_compiling=$ac_cv_prog_cxx_cross
2593 CXXCPP="${CXX-g++} -E"
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 #include <stdlib.h>
2599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2600 { (eval echo configure:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2602 if test -z "$ac_err"; then
2604 else
2605 echo "$ac_err" >&5
2606 echo "configure: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2608 rm -rf conftest*
2609 CXXCPP=/lib/cpp
2611 rm -f conftest*
2612 ac_cv_prog_CXXCPP="$CXXCPP"
2613 ac_ext=c
2614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2618 cross_compiling=$ac_cv_prog_cc_cross
2621 CXXCPP="$ac_cv_prog_CXXCPP"
2622 echo "$ac_t""$CXXCPP" 1>&6
2625 # Save cache, so that ltconfig can load it
2626 cat > confcache <<\EOF
2627 # This file is a shell script that caches the results of configure
2628 # tests run on this system so they can be shared between configure
2629 # scripts and configure runs. It is not useful on other systems.
2630 # If it contains results you don't want to keep, you may remove or edit it.
2632 # By default, configure uses ./config.cache as the cache file,
2633 # creating it if it does not exist already. You can give configure
2634 # the --cache-file=FILE option to use a different cache file; that is
2635 # what configure does when it calls configure scripts in
2636 # subdirectories, so they share the cache.
2637 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2638 # config.status only pays attention to the cache file if you give it the
2639 # --recheck option to rerun configure.
2642 # The following way of writing the cache mishandles newlines in values,
2643 # but we know of no workaround that is simple, portable, and efficient.
2644 # So, don't put newlines in cache variables' values.
2645 # Ultrix sh set writes to stderr and can't be redirected directly,
2646 # and sets the high bit in the cache file unless we assign to the vars.
2647 (set) 2>&1 |
2648 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2649 *ac_space=\ *)
2650 # `set' does not quote correctly, so add quotes (double-quote substitution
2651 # turns \\\\ into \\, and sed turns \\ into \).
2652 sed -n \
2653 -e "s/'/'\\\\''/g" \
2654 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2657 # `set' quotes correctly as required by POSIX, so do not add quotes.
2658 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2660 esac >> confcache
2661 if cmp -s $cache_file confcache; then
2663 else
2664 if test -w $cache_file; then
2665 echo "updating cache $cache_file"
2666 cat confcache > $cache_file
2667 else
2668 echo "not updating unwritable cache $cache_file"
2671 rm -f confcache
2674 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2675 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2676 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2677 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2678 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2679 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2680 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2681 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2682 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2683 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2685 # Reload cache, that may have been modified by ltconfig
2686 if test -r "$cache_file"; then
2687 echo "loading cache $cache_file"
2688 . $cache_file
2689 else
2690 echo "creating cache $cache_file"
2691 > $cache_file
2695 # This can be used to rebuild libtool when needed
2696 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2698 # Always use our own libtool.
2699 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2701 # Redirect the config.log output again, so that the ltconfig log is not
2702 # clobbered by the next message.
2703 exec 5>>./config.log
2707 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2708 lt_save_CC="$CC"
2709 lt_save_CFLAGS="$CFLAGS"
2710 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2711 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2712 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2713 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2714 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2715 deplibs_check_method="$deplibs_check_method" \
2716 file_magic_cmd="$file_magic_cmd" \
2717 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2718 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2719 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2720 CC="$lt_save_CC"
2721 CFLAGS="$lt_save_CFLAGS"
2723 # Redirect the config.log output again, so that the ltconfig log is not
2724 # clobbered by the next message.
2725 exec 5>>./config.log
2732 subdirs="$DIRLTDL"
2735 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2736 COMPPATH=.
2737 else
2738 COMPPATH=..
2744 if test -d $srcdir/testsuite; then
2745 TESTSUBDIR_TRUE=
2746 TESTSUBDIR_FALSE='#'
2747 else
2748 TESTSUBDIR_TRUE='#'
2749 TESTSUBDIR_FALSE=
2752 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2753 if test "${enable_getenv_properties+set}" = set; then
2754 enableval="$enable_getenv_properties"
2759 if test -z "$enable_getenv_properties"; then
2760 enable_getenv_properties=${enable_getenv_properties_default-yes}
2762 if test "$enable_getenv_properties" = no; then
2763 cat >> confdefs.h <<\EOF
2764 #define DISABLE_GETENV_PROPERTIES 1
2769 if test -z "$enable_main_args"; then
2770 enable_main_args=${enable_main_args_default-yes}
2772 if test "$enable_main_args" = no; then
2773 cat >> confdefs.h <<\EOF
2774 #define DISABLE_MAIN_ARGS 1
2780 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2781 if test "${enable_hash_synchronization+set}" = set; then
2782 enableval="$enable_hash_synchronization"
2787 if test -z "$enable_hash_synchronization"; then
2788 enable_hash_synchronization=$enable_hash_synchronization_default
2791 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
2792 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
2793 if test "${enable_libgcj_multifile+set}" = set; then
2794 enableval="$enable_libgcj_multifile"
2795 case "${enableval}" in
2796 yes) enable_libgcj_multifile=yes ;;
2797 no) enable_libgcj_multifile=no ;;
2798 *) { echo "configure: error: bad value ${enableval} for --enable-libgcj-multifile" 1>&2; exit 1; } ;;
2799 esac
2800 else
2801 enable_libgcj_multifile=no
2806 if test "$enable_libgcj_multifile" = yes; then
2807 ONESTEP_TRUE=
2808 ONESTEP_FALSE='#'
2809 else
2810 ONESTEP_TRUE='#'
2811 ONESTEP_FALSE=
2814 # What is the native OS API for MinGW?
2815 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
2816 if test "${with_win32_nlsapi+set}" = set; then
2817 withval="$with_win32_nlsapi"
2819 case "${withval}" in
2820 ansi) with_win32_nlsapi=ansi ;;
2821 unicows) with_win32_nlsapi=unicows ;;
2822 unicode) with_win32_nlsapi=unicode ;;
2823 *) { echo "configure: error: Bad value ${withval} for --with-win32-nlsapi." 1>&2; exit 1; } ;;
2824 esac
2825 else
2826 with_win32_nlsapi=ansi
2830 case "${with_win32_nlsapi}" in
2831 unicows | unicode)
2832 cat >> confdefs.h <<\EOF
2833 #define MINGW_LIBGCJ_UNICODE 1
2837 esac
2839 if test "${slow_pthread_self}" = "yes"; then
2840 cat >> confdefs.h <<\EOF
2841 #define SLOW_PTHREAD_SELF 1
2847 LIBGCJDEBUG="false"
2849 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2850 if test "${enable_libgcj_debug+set}" = set; then
2851 enableval="$enable_libgcj_debug"
2852 if test "$enable_libgcj_debug" = yes; then
2853 cat >> confdefs.h <<\EOF
2854 #define DEBUG 1
2857 LIBGCJDEBUG="true"
2862 # Check whether --enable-interpreter or --disable-interpreter was given.
2863 if test "${enable_interpreter+set}" = set; then
2864 enableval="$enable_interpreter"
2865 if test "$enable_interpreter" = yes; then
2866 # This can also be set in configure.host.
2867 libgcj_interpreter=yes
2868 elif test "$enable_interpreter" = no; then
2869 libgcj_interpreter=no
2874 if test "$libgcj_interpreter" = yes; then
2875 cat >> confdefs.h <<\EOF
2876 #define INTERPRETER 1
2880 INTERPRETER="$libgcj_interpreter"
2883 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2884 echo "configure:2885: checking for exception model to use" >&5
2886 ac_ext=C
2887 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2888 ac_cpp='$CXXCPP $CPPFLAGS'
2889 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2890 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2891 cross_compiling=$ac_cv_prog_cxx_cross
2893 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2894 if test "${enable_sjlj_exceptions+set}" = set; then
2895 enableval="$enable_sjlj_exceptions"
2897 else
2898 cat > conftest.$ac_ext << EOF
2899 #line 2900 "configure"
2900 struct S { ~S(); };
2901 void bar();
2902 void foo()
2904 S s;
2905 bar();
2908 old_CXXFLAGS="$CXXFLAGS"
2909 CXXFLAGS=-S
2910 if { (eval echo configure:2911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2911 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2912 enable_sjlj_exceptions=yes
2913 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2914 enable_sjlj_exceptions=no
2917 CXXFLAGS="$old_CXXFLAGS"
2918 rm -f conftest*
2921 if test x$enable_sjlj_exceptions = xyes; then
2922 cat >> confdefs.h <<\EOF
2923 #define SJLJ_EXCEPTIONS 1
2926 ac_exception_model_name=sjlj
2927 elif test x$enable_sjlj_exceptions = xno; then
2928 ac_exception_model_name="call frame"
2929 else
2930 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2932 ac_ext=c
2933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2937 cross_compiling=$ac_cv_prog_cc_cross
2939 echo "$ac_t""$ac_exception_model_name" 1>&6
2941 # If we are non using SJLJ exceptions, and this host does not have support
2942 # for unwinding from a signal handler, enable checked dereferences and divides.
2943 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2944 CHECKREFSPEC=-fcheck-references
2945 DIVIDESPEC=-fuse-divide-subroutine
2946 EXCEPTIONSPEC=
2949 # Check whether --enable-java-net or --disable-java-net was given.
2950 if test "${enable_java_net+set}" = set; then
2951 enableval="$enable_java_net"
2956 if test -z "$enable_java_net"; then
2957 enable_java_net=${enable_java_net_default-yes}
2959 if test "$enable_java_net" = no; then
2960 cat >> confdefs.h <<\EOF
2961 #define DISABLE_JAVA_NET 1
2966 # Check whether --with-libffi or --without-libffi was given.
2967 if test "${with_libffi+set}" = set; then
2968 withval="$with_libffi"
2970 else
2971 with_libffi=${with_libffi_default-yes}
2975 LIBFFI=
2976 LIBFFIINCS=
2977 if test "$with_libffi" != no; then
2978 cat >> confdefs.h <<\EOF
2979 #define USE_LIBFFI 1
2982 LIBFFI=../libffi/libffi_convenience.la
2983 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2988 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2989 if test "${enable_jvmpi+set}" = set; then
2990 enableval="$enable_jvmpi"
2995 if test "$enable_jvmpi" != no; then
2996 cat >> confdefs.h <<\EOF
2997 #define ENABLE_JVMPI 1
3002 TARGET_ECOS=${PROCESS-"no"}
3003 # Check whether --with-ecos or --without-ecos was given.
3004 if test "${with_ecos+set}" = set; then
3005 withval="$with_ecos"
3006 TARGET_ECOS="$with_ecos"
3011 EXTRA_CC_FILES=
3014 PLATFORMOBJS=
3015 case "$TARGET_ECOS" in
3016 no) case "$host" in
3017 *mingw*)
3018 PLATFORM=Win32
3019 PLATFORMNET=Win32
3020 PLATFORMOBJS=win32.lo
3021 PLATFORMH=win32.h
3023 echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6
3024 echo "configure:3025: checking whether 'ld' is at least 2.13" >&5
3025 LD_PROG=`$CC --print-prog-name=ld`
3026 LD_VERSION=`$LD_PROG --version`
3027 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
3028 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
3029 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
3030 LD_OK="ok"
3031 else
3032 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
3033 LD_OK="ok"
3036 if test "x$LD_OK" != x; then
3037 echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3038 else
3039 echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3040 echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2
3041 cat >> confdefs.h <<\EOF
3042 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3048 PLATFORM=Posix
3049 PLATFORMNET=Posix
3050 PLATFORMOBJS=posix.lo
3051 PLATFORMH=posix.h
3053 esac
3056 PLATFORM=Ecos
3057 PLATFORMNET=NoNet
3058 cat >> confdefs.h <<\EOF
3059 #define ECOS 1
3062 PLATFORMOBJS=posix.lo
3063 PLATFORMH=posix.h
3065 esac
3069 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3070 echo "configure:3071: checking how to run the C preprocessor" >&5
3071 # On Suns, sometimes $CPP names a directory.
3072 if test -n "$CPP" && test -d "$CPP"; then
3073 CPP=
3075 if test -z "$CPP"; then
3076 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3078 else
3079 # This must be in double quotes, not single quotes, because CPP may get
3080 # substituted into the Makefile and "${CC-cc}" will confuse make.
3081 CPP="${CC-cc} -E"
3082 # On the NeXT, cc -E runs the code through the compiler's parser,
3083 # not just through cpp.
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 #include <assert.h>
3088 Syntax Error
3090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3091 { (eval echo configure:3092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3093 if test -z "$ac_err"; then
3095 else
3096 echo "$ac_err" >&5
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3099 rm -rf conftest*
3100 CPP="${CC-cc} -E -traditional-cpp"
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3104 #include <assert.h>
3105 Syntax Error
3107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3108 { (eval echo configure:3109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3110 if test -z "$ac_err"; then
3112 else
3113 echo "$ac_err" >&5
3114 echo "configure: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3116 rm -rf conftest*
3117 CPP="${CC-cc} -nologo -E"
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3121 #include <assert.h>
3122 Syntax Error
3124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3125 { (eval echo configure:3126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3127 if test -z "$ac_err"; then
3129 else
3130 echo "$ac_err" >&5
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3133 rm -rf conftest*
3134 CPP=/lib/cpp
3136 rm -f conftest*
3138 rm -f conftest*
3140 rm -f conftest*
3141 ac_cv_prog_CPP="$CPP"
3143 CPP="$ac_cv_prog_CPP"
3144 else
3145 ac_cv_prog_CPP="$CPP"
3147 echo "$ac_t""$CPP" 1>&6
3149 cat > conftest.$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3152 #include <stdint.h>
3154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3155 egrep "uint32_t" >/dev/null 2>&1; then
3156 rm -rf conftest*
3157 cat >> confdefs.h <<\EOF
3158 #define HAVE_INT32_DEFINED 1
3162 rm -f conftest*
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 #include <inttypes.h>
3169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3170 egrep "uint32_t" >/dev/null 2>&1; then
3171 rm -rf conftest*
3172 cat >> confdefs.h <<\EOF
3173 #define HAVE_INT32_DEFINED 1
3177 rm -f conftest*
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 #include <sys/types.h>
3184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3185 egrep "u_int32_t" >/dev/null 2>&1; then
3186 rm -rf conftest*
3187 cat >> confdefs.h <<\EOF
3188 #define HAVE_BSD_INT32_DEFINED 1
3192 rm -f conftest*
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 #include <sys/config.h>
3199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3200 egrep "u_int32_t" >/dev/null 2>&1; then
3201 rm -rf conftest*
3202 cat >> confdefs.h <<\EOF
3203 #define HAVE_BSD_INT32_DEFINED 1
3207 rm -f conftest*
3211 cat > conftest.$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 #include <time.h>
3216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3217 egrep "mktime" >/dev/null 2>&1; then
3218 rm -rf conftest*
3219 cat >> confdefs.h <<\EOF
3220 #define HAVE_MKTIME 1
3224 rm -f conftest*
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 #include <time.h>
3231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3232 egrep "localtime" >/dev/null 2>&1; then
3233 rm -rf conftest*
3234 cat >> confdefs.h <<\EOF
3235 #define HAVE_LOCALTIME 1
3239 rm -f conftest*
3242 test -d java || mkdir java
3243 test -d java/io || mkdir java/io
3244 test -d gnu || mkdir gnu
3247 test -d java/lang || mkdir java/lang
3251 test -d java/net || mkdir java/net
3255 test -d gnu/java || mkdir gnu/java
3256 test -d gnu/java/net || mkdir gnu/java/net
3260 test -d gnu/java/nio || mkdir gnu/java/nio
3263 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
3266 case "${host}" in
3267 *mingw*)
3268 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3269 if test "${with_win32_nlsapi}" = "unicows"; then
3270 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
3274 SYSTEMSPEC=
3276 esac
3279 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3282 # Check whether --with-system-zlib or --without-system-zlib was given.
3283 if test "${with_system_zlib+set}" = set; then
3284 withval="$with_system_zlib"
3288 ZLIBSPEC=
3290 ZLIBTESTSPEC=
3293 # If we find X, set shell vars x_includes and x_libraries to the
3294 # paths, otherwise set no_x=yes.
3295 # Uses ac_ vars as temps to allow command line to override cache and checks.
3296 # --without-x overrides everything else, but does not touch the cache.
3297 echo $ac_n "checking for X""... $ac_c" 1>&6
3298 echo "configure:3299: checking for X" >&5
3300 # Check whether --with-x or --without-x was given.
3301 if test "${with_x+set}" = set; then
3302 withval="$with_x"
3306 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3307 if test "x$with_x" = xno; then
3308 # The user explicitly disabled X.
3309 have_x=disabled
3310 else
3311 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3312 # Both variables are already set.
3313 have_x=yes
3314 else
3315 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3317 else
3318 # One or both of the vars are not set, and there is no cached value.
3319 ac_x_includes=NO ac_x_libraries=NO
3320 rm -fr conftestdir
3321 if mkdir conftestdir; then
3322 cd conftestdir
3323 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3324 cat > Imakefile <<'EOF'
3325 acfindx:
3326 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3328 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3329 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3330 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3331 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3332 for ac_extension in a so sl; do
3333 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3334 test -f $ac_im_libdir/libX11.$ac_extension; then
3335 ac_im_usrlibdir=$ac_im_libdir; break
3337 done
3338 # Screen out bogus values from the imake configuration. They are
3339 # bogus both because they are the default anyway, and because
3340 # using them would break gcc on systems where it needs fixed includes.
3341 case "$ac_im_incroot" in
3342 /usr/include) ;;
3343 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3344 esac
3345 case "$ac_im_usrlibdir" in
3346 /usr/lib | /lib) ;;
3347 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3348 esac
3350 cd ..
3351 rm -fr conftestdir
3354 if test "$ac_x_includes" = NO; then
3355 # Guess where to find include files, by looking for this one X11 .h file.
3356 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3358 # First, try using that file with no special directory specified.
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 #include <$x_direct_test_include>
3364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3365 { (eval echo configure:3366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3367 if test -z "$ac_err"; then
3368 rm -rf conftest*
3369 # We can compile using X headers with no special include directory.
3370 ac_x_includes=
3371 else
3372 echo "$ac_err" >&5
3373 echo "configure: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3375 rm -rf conftest*
3376 # Look for the header file in a standard set of common directories.
3377 # Check X11 before X11Rn because it is often a symlink to the current release.
3378 for ac_dir in \
3379 /usr/X11/include \
3380 /usr/X11R6/include \
3381 /usr/X11R5/include \
3382 /usr/X11R4/include \
3384 /usr/include/X11 \
3385 /usr/include/X11R6 \
3386 /usr/include/X11R5 \
3387 /usr/include/X11R4 \
3389 /usr/local/X11/include \
3390 /usr/local/X11R6/include \
3391 /usr/local/X11R5/include \
3392 /usr/local/X11R4/include \
3394 /usr/local/include/X11 \
3395 /usr/local/include/X11R6 \
3396 /usr/local/include/X11R5 \
3397 /usr/local/include/X11R4 \
3399 /usr/X386/include \
3400 /usr/x386/include \
3401 /usr/XFree86/include/X11 \
3403 /usr/include \
3404 /usr/local/include \
3405 /usr/unsupported/include \
3406 /usr/athena/include \
3407 /usr/local/x11r5/include \
3408 /usr/lpp/Xamples/include \
3410 /usr/openwin/include \
3411 /usr/openwin/share/include \
3414 if test -r "$ac_dir/$x_direct_test_include"; then
3415 ac_x_includes=$ac_dir
3416 break
3418 done
3420 rm -f conftest*
3421 fi # $ac_x_includes = NO
3423 if test "$ac_x_libraries" = NO; then
3424 # Check for the libraries.
3426 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3427 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3429 # See if we find them without any special options.
3430 # Don't add to $LIBS permanently.
3431 ac_save_LIBS="$LIBS"
3432 LIBS="-l$x_direct_test_library $LIBS"
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3437 int main() {
3438 ${x_direct_test_function}()
3439 ; return 0; }
3441 if { (eval echo configure:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3442 rm -rf conftest*
3443 LIBS="$ac_save_LIBS"
3444 # We can link X programs with no special library path.
3445 ac_x_libraries=
3446 else
3447 echo "configure: failed program was:" >&5
3448 cat conftest.$ac_ext >&5
3449 rm -rf conftest*
3450 LIBS="$ac_save_LIBS"
3451 # First see if replacing the include by lib works.
3452 # Check X11 before X11Rn because it is often a symlink to the current release.
3453 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3454 /usr/X11/lib \
3455 /usr/X11R6/lib \
3456 /usr/X11R5/lib \
3457 /usr/X11R4/lib \
3459 /usr/lib/X11 \
3460 /usr/lib/X11R6 \
3461 /usr/lib/X11R5 \
3462 /usr/lib/X11R4 \
3464 /usr/local/X11/lib \
3465 /usr/local/X11R6/lib \
3466 /usr/local/X11R5/lib \
3467 /usr/local/X11R4/lib \
3469 /usr/local/lib/X11 \
3470 /usr/local/lib/X11R6 \
3471 /usr/local/lib/X11R5 \
3472 /usr/local/lib/X11R4 \
3474 /usr/X386/lib \
3475 /usr/x386/lib \
3476 /usr/XFree86/lib/X11 \
3478 /usr/lib \
3479 /usr/local/lib \
3480 /usr/unsupported/lib \
3481 /usr/athena/lib \
3482 /usr/local/x11r5/lib \
3483 /usr/lpp/Xamples/lib \
3484 /lib/usr/lib/X11 \
3486 /usr/openwin/lib \
3487 /usr/openwin/share/lib \
3490 for ac_extension in a so sl; do
3491 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3492 ac_x_libraries=$ac_dir
3493 break 2
3495 done
3496 done
3498 rm -f conftest*
3499 fi # $ac_x_libraries = NO
3501 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3502 # Didn't find X anywhere. Cache the known absence of X.
3503 ac_cv_have_x="have_x=no"
3504 else
3505 # Record where we found X for the cache.
3506 ac_cv_have_x="have_x=yes \
3507 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3511 eval "$ac_cv_have_x"
3512 fi # $with_x != no
3514 if test "$have_x" != yes; then
3515 echo "$ac_t""$have_x" 1>&6
3516 no_x=yes
3517 else
3518 # If each of the values was on the command line, it overrides each guess.
3519 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3520 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3521 # Update the cache value to reflect the command line values.
3522 ac_cv_have_x="have_x=yes \
3523 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3524 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3527 if test "$no_x" = yes; then
3528 # Not all programs may use this symbol, but it does not hurt to define it.
3529 cat >> confdefs.h <<\EOF
3530 #define X_DISPLAY_MISSING 1
3533 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3534 else
3535 if test -n "$x_includes"; then
3536 X_CFLAGS="$X_CFLAGS -I$x_includes"
3539 # It would also be nice to do this for all -L options, not just this one.
3540 if test -n "$x_libraries"; then
3541 X_LIBS="$X_LIBS -L$x_libraries"
3542 # For Solaris; some versions of Sun CC require a space after -R and
3543 # others require no space. Words are not sufficient . . . .
3544 case "`(uname -sr) 2>/dev/null`" in
3545 "SunOS 5"*)
3546 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3547 echo "configure:3548: checking whether -R must be followed by a space" >&5
3548 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3553 int main() {
3555 ; return 0; }
3557 if { (eval echo configure:3558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3558 rm -rf conftest*
3559 ac_R_nospace=yes
3560 else
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3563 rm -rf conftest*
3564 ac_R_nospace=no
3566 rm -f conftest*
3567 if test $ac_R_nospace = yes; then
3568 echo "$ac_t""no" 1>&6
3569 X_LIBS="$X_LIBS -R$x_libraries"
3570 else
3571 LIBS="$ac_xsave_LIBS -R $x_libraries"
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3576 int main() {
3578 ; return 0; }
3580 if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3581 rm -rf conftest*
3582 ac_R_space=yes
3583 else
3584 echo "configure: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3586 rm -rf conftest*
3587 ac_R_space=no
3589 rm -f conftest*
3590 if test $ac_R_space = yes; then
3591 echo "$ac_t""yes" 1>&6
3592 X_LIBS="$X_LIBS -R $x_libraries"
3593 else
3594 echo "$ac_t""neither works" 1>&6
3597 LIBS="$ac_xsave_LIBS"
3598 esac
3601 # Check for system-dependent libraries X programs must link with.
3602 # Do this before checking for the system-independent R6 libraries
3603 # (-lICE), since we may need -lsocket or whatever for X linking.
3605 if test "$ISC" = yes; then
3606 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3607 else
3608 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3609 # libraries were built with DECnet support. And karl@cs.umb.edu says
3610 # the Alpha needs dnet_stub (dnet does not exist).
3611 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3612 echo "configure:3613: checking for dnet_ntoa in -ldnet" >&5
3613 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3616 else
3617 ac_save_LIBS="$LIBS"
3618 LIBS="-ldnet $LIBS"
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 /* Override any gcc2 internal prototype to avoid an error. */
3623 /* We use char because int might match the return type of a gcc2
3624 builtin and then its argument prototype would still apply. */
3625 char dnet_ntoa();
3627 int main() {
3628 dnet_ntoa()
3629 ; return 0; }
3631 if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3632 rm -rf conftest*
3633 eval "ac_cv_lib_$ac_lib_var=yes"
3634 else
3635 echo "configure: failed program was:" >&5
3636 cat conftest.$ac_ext >&5
3637 rm -rf conftest*
3638 eval "ac_cv_lib_$ac_lib_var=no"
3640 rm -f conftest*
3641 LIBS="$ac_save_LIBS"
3644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3645 echo "$ac_t""yes" 1>&6
3646 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3647 else
3648 echo "$ac_t""no" 1>&6
3651 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3652 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3653 echo "configure:3654: checking for dnet_ntoa in -ldnet_stub" >&5
3654 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3657 else
3658 ac_save_LIBS="$LIBS"
3659 LIBS="-ldnet_stub $LIBS"
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 /* Override any gcc2 internal prototype to avoid an error. */
3664 /* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3666 char dnet_ntoa();
3668 int main() {
3669 dnet_ntoa()
3670 ; return 0; }
3672 if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3673 rm -rf conftest*
3674 eval "ac_cv_lib_$ac_lib_var=yes"
3675 else
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 rm -rf conftest*
3679 eval "ac_cv_lib_$ac_lib_var=no"
3681 rm -f conftest*
3682 LIBS="$ac_save_LIBS"
3685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3686 echo "$ac_t""yes" 1>&6
3687 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3688 else
3689 echo "$ac_t""no" 1>&6
3694 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3695 # to get the SysV transport functions.
3696 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3697 # needs -lnsl.
3698 # The nsl library prevents programs from opening the X display
3699 # on Irix 5.2, according to dickey@clark.net.
3700 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3701 echo "configure:3702: checking for gethostbyname" >&5
3702 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3704 else
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* System header to define __stub macros and hopefully few prototypes,
3709 which can conflict with char gethostbyname(); below. */
3710 #include <assert.h>
3711 /* Override any gcc2 internal prototype to avoid an error. */
3712 /* We use char because int might match the return type of a gcc2
3713 builtin and then its argument prototype would still apply. */
3714 char gethostbyname();
3716 int main() {
3718 /* The GNU C library defines this for functions which it implements
3719 to always fail with ENOSYS. Some functions are actually named
3720 something starting with __ and the normal name is an alias. */
3721 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3722 choke me
3723 #else
3724 gethostbyname();
3725 #endif
3727 ; return 0; }
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3730 rm -rf conftest*
3731 eval "ac_cv_func_gethostbyname=yes"
3732 else
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3735 rm -rf conftest*
3736 eval "ac_cv_func_gethostbyname=no"
3738 rm -f conftest*
3741 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3744 else
3745 echo "$ac_t""no" 1>&6
3748 if test $ac_cv_func_gethostbyname = no; then
3749 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3750 echo "configure:3751: checking for gethostbyname in -lnsl" >&5
3751 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3754 else
3755 ac_save_LIBS="$LIBS"
3756 LIBS="-lnsl $LIBS"
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 /* Override any gcc2 internal prototype to avoid an error. */
3761 /* We use char because int might match the return type of a gcc2
3762 builtin and then its argument prototype would still apply. */
3763 char gethostbyname();
3765 int main() {
3766 gethostbyname()
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_lib_$ac_lib_var=yes"
3772 else
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3775 rm -rf conftest*
3776 eval "ac_cv_lib_$ac_lib_var=no"
3778 rm -f conftest*
3779 LIBS="$ac_save_LIBS"
3782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3783 echo "$ac_t""yes" 1>&6
3784 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3785 else
3786 echo "$ac_t""no" 1>&6
3791 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3792 # socket/setsockopt and other routines are undefined under SCO ODT
3793 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3794 # on later versions), says simon@lia.di.epfl.ch: it contains
3795 # gethostby* variants that don't use the nameserver (or something).
3796 # -lsocket must be given before -lnsl if both are needed.
3797 # We assume that if connect needs -lnsl, so does gethostbyname.
3798 echo $ac_n "checking for connect""... $ac_c" 1>&6
3799 echo "configure:3800: checking for connect" >&5
3800 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3802 else
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 /* System header to define __stub macros and hopefully few prototypes,
3807 which can conflict with char connect(); below. */
3808 #include <assert.h>
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3812 char connect();
3814 int main() {
3816 /* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819 #if defined (__stub_connect) || defined (__stub___connect)
3820 choke me
3821 #else
3822 connect();
3823 #endif
3825 ; return 0; }
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 rm -rf conftest*
3829 eval "ac_cv_func_connect=yes"
3830 else
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3833 rm -rf conftest*
3834 eval "ac_cv_func_connect=no"
3836 rm -f conftest*
3839 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3842 else
3843 echo "$ac_t""no" 1>&6
3846 if test $ac_cv_func_connect = no; then
3847 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3848 echo "configure:3849: checking for connect in -lsocket" >&5
3849 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3852 else
3853 ac_save_LIBS="$LIBS"
3854 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858 /* Override any gcc2 internal prototype to avoid an error. */
3859 /* We use char because int might match the return type of a gcc2
3860 builtin and then its argument prototype would still apply. */
3861 char connect();
3863 int main() {
3864 connect()
3865 ; return 0; }
3867 if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3868 rm -rf conftest*
3869 eval "ac_cv_lib_$ac_lib_var=yes"
3870 else
3871 echo "configure: failed program was:" >&5
3872 cat conftest.$ac_ext >&5
3873 rm -rf conftest*
3874 eval "ac_cv_lib_$ac_lib_var=no"
3876 rm -f conftest*
3877 LIBS="$ac_save_LIBS"
3880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3881 echo "$ac_t""yes" 1>&6
3882 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3883 else
3884 echo "$ac_t""no" 1>&6
3889 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3890 echo $ac_n "checking for remove""... $ac_c" 1>&6
3891 echo "configure:3892: checking for remove" >&5
3892 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3894 else
3895 cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure"
3897 #include "confdefs.h"
3898 /* System header to define __stub macros and hopefully few prototypes,
3899 which can conflict with char remove(); below. */
3900 #include <assert.h>
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3904 char remove();
3906 int main() {
3908 /* The GNU C library defines this for functions which it implements
3909 to always fail with ENOSYS. Some functions are actually named
3910 something starting with __ and the normal name is an alias. */
3911 #if defined (__stub_remove) || defined (__stub___remove)
3912 choke me
3913 #else
3914 remove();
3915 #endif
3917 ; return 0; }
3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3920 rm -rf conftest*
3921 eval "ac_cv_func_remove=yes"
3922 else
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3925 rm -rf conftest*
3926 eval "ac_cv_func_remove=no"
3928 rm -f conftest*
3931 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3932 echo "$ac_t""yes" 1>&6
3934 else
3935 echo "$ac_t""no" 1>&6
3938 if test $ac_cv_func_remove = no; then
3939 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3940 echo "configure:3941: checking for remove in -lposix" >&5
3941 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3944 else
3945 ac_save_LIBS="$LIBS"
3946 LIBS="-lposix $LIBS"
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 /* Override any gcc2 internal prototype to avoid an error. */
3951 /* We use char because int might match the return type of a gcc2
3952 builtin and then its argument prototype would still apply. */
3953 char remove();
3955 int main() {
3956 remove()
3957 ; return 0; }
3959 if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3960 rm -rf conftest*
3961 eval "ac_cv_lib_$ac_lib_var=yes"
3962 else
3963 echo "configure: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3965 rm -rf conftest*
3966 eval "ac_cv_lib_$ac_lib_var=no"
3968 rm -f conftest*
3969 LIBS="$ac_save_LIBS"
3972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3973 echo "$ac_t""yes" 1>&6
3974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3975 else
3976 echo "$ac_t""no" 1>&6
3981 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3982 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3983 echo "configure:3984: checking for shmat" >&5
3984 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3986 else
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 /* System header to define __stub macros and hopefully few prototypes,
3991 which can conflict with char shmat(); below. */
3992 #include <assert.h>
3993 /* Override any gcc2 internal prototype to avoid an error. */
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
3996 char shmat();
3998 int main() {
4000 /* The GNU C library defines this for functions which it implements
4001 to always fail with ENOSYS. Some functions are actually named
4002 something starting with __ and the normal name is an alias. */
4003 #if defined (__stub_shmat) || defined (__stub___shmat)
4004 choke me
4005 #else
4006 shmat();
4007 #endif
4009 ; return 0; }
4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4012 rm -rf conftest*
4013 eval "ac_cv_func_shmat=yes"
4014 else
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4017 rm -rf conftest*
4018 eval "ac_cv_func_shmat=no"
4020 rm -f conftest*
4023 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4026 else
4027 echo "$ac_t""no" 1>&6
4030 if test $ac_cv_func_shmat = no; then
4031 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4032 echo "configure:4033: checking for shmat in -lipc" >&5
4033 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4036 else
4037 ac_save_LIBS="$LIBS"
4038 LIBS="-lipc $LIBS"
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4042 /* Override any gcc2 internal prototype to avoid an error. */
4043 /* We use char because int might match the return type of a gcc2
4044 builtin and then its argument prototype would still apply. */
4045 char shmat();
4047 int main() {
4048 shmat()
4049 ; return 0; }
4051 if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4052 rm -rf conftest*
4053 eval "ac_cv_lib_$ac_lib_var=yes"
4054 else
4055 echo "configure: failed program was:" >&5
4056 cat conftest.$ac_ext >&5
4057 rm -rf conftest*
4058 eval "ac_cv_lib_$ac_lib_var=no"
4060 rm -f conftest*
4061 LIBS="$ac_save_LIBS"
4064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4065 echo "$ac_t""yes" 1>&6
4066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4067 else
4068 echo "$ac_t""no" 1>&6
4074 # Check for libraries that X11R6 Xt/Xaw programs need.
4075 ac_save_LDFLAGS="$LDFLAGS"
4076 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4077 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4078 # check for ICE first), but we must link in the order -lSM -lICE or
4079 # we get undefined symbols. So assume we have SM if we have ICE.
4080 # These have to be linked with before -lX11, unlike the other
4081 # libraries we check for below, so use a different variable.
4082 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4083 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4084 echo "configure:4085: checking for IceConnectionNumber in -lICE" >&5
4085 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4086 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088 else
4089 ac_save_LIBS="$LIBS"
4090 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4094 /* Override any gcc2 internal prototype to avoid an error. */
4095 /* We use char because int might match the return type of a gcc2
4096 builtin and then its argument prototype would still apply. */
4097 char IceConnectionNumber();
4099 int main() {
4100 IceConnectionNumber()
4101 ; return 0; }
4103 if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4104 rm -rf conftest*
4105 eval "ac_cv_lib_$ac_lib_var=yes"
4106 else
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4109 rm -rf conftest*
4110 eval "ac_cv_lib_$ac_lib_var=no"
4112 rm -f conftest*
4113 LIBS="$ac_save_LIBS"
4116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4118 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4119 else
4120 echo "$ac_t""no" 1>&6
4123 LDFLAGS="$ac_save_LDFLAGS"
4128 # Check whether --enable-java-awt or --disable-java-awt was given.
4129 if test "${enable_java_awt+set}" = set; then
4130 enableval="$enable_java_awt"
4135 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4136 use_xlib_awt=""
4137 use_gtk_awt=""
4138 # The default toolkit to use is the first one specified.
4139 TOOLKIT=
4142 for peer in $peerlibs ; do
4143 case $peer in
4144 xlib)
4145 if test "$no_x" = yes; then
4146 echo "*** xlib peers requested but no X library available" 1>&2
4147 exit 1
4148 else
4149 use_xlib_awt="yes"
4150 if test -z "$TOOLKIT"; then
4151 TOOLKIT=gnu.awt.xlib.XToolkit
4155 gtk)
4156 if test "$no_x" = yes; then
4157 echo "*** xlib peers requested but no X library available" 1>&2
4158 exit 1
4159 else
4160 use_gtk_awt=yes
4161 if test -z "$TOOLKIT"; then
4162 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4164 test -d jniinclude || mkdir jniinclude
4168 use_xlib_awt=
4169 use_gtk_awt=
4170 break
4173 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4174 exit 1
4175 esac
4176 done
4180 if test "$use_xlib_awt" = yes; then
4181 XLIB_AWT_TRUE=
4182 XLIB_AWT_FALSE='#'
4183 else
4184 XLIB_AWT_TRUE='#'
4185 XLIB_AWT_FALSE=
4189 if test "$use_gtk_awt" = yes; then
4190 GTK_AWT_TRUE=
4191 GTK_AWT_FALSE='#'
4192 else
4193 GTK_AWT_TRUE='#'
4194 GTK_AWT_FALSE=
4197 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4198 if test "${enable_gtk_cairo+set}" = set; then
4199 enableval="$enable_gtk_cairo"
4205 if test "x${enable_gtk_cairo}" = xyes; then
4206 GTK_CAIRO_TRUE=
4207 GTK_CAIRO_FALSE='#'
4208 else
4209 GTK_CAIRO_TRUE='#'
4210 GTK_CAIRO_FALSE=
4212 if test "x${enable_gtk_cairo}" = xyes
4213 then
4215 succeeded=no
4217 if test -z "$PKG_CONFIG"; then
4218 # Extract the first word of "pkg-config", so it can be a program name with args.
4219 set dummy pkg-config; ac_word=$2
4220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4221 echo "configure:4222: checking for $ac_word" >&5
4222 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4224 else
4225 case "$PKG_CONFIG" in
4227 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4229 ?:/*)
4230 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4234 ac_dummy="$PATH"
4235 for ac_dir in $ac_dummy; do
4236 test -z "$ac_dir" && ac_dir=.
4237 if test -f $ac_dir/$ac_word; then
4238 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4239 break
4241 done
4242 IFS="$ac_save_ifs"
4243 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4245 esac
4247 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4248 if test -n "$PKG_CONFIG"; then
4249 echo "$ac_t""$PKG_CONFIG" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4256 if test "$PKG_CONFIG" = "no" ; then
4257 echo "*** The pkg-config script could not be found. Make sure it is"
4258 echo "*** in your path, or set the PKG_CONFIG environment variable"
4259 echo "*** to the full path to pkg-config."
4260 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4261 else
4262 PKG_CONFIG_MIN_VERSION=0.9.0
4263 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4264 echo $ac_n "checking for cairo""... $ac_c" 1>&6
4265 echo "configure:4266: checking for cairo" >&5
4267 if $PKG_CONFIG --exists "cairo" ; then
4268 echo "$ac_t""yes" 1>&6
4269 succeeded=yes
4271 echo $ac_n "checking CAIRO_CFLAGS""... $ac_c" 1>&6
4272 echo "configure:4273: checking CAIRO_CFLAGS" >&5
4273 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
4274 echo "$ac_t""$CAIRO_CFLAGS" 1>&6
4276 echo $ac_n "checking CAIRO_LIBS""... $ac_c" 1>&6
4277 echo "configure:4278: checking CAIRO_LIBS" >&5
4278 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
4279 echo "$ac_t""$CAIRO_LIBS" 1>&6
4280 else
4281 CAIRO_CFLAGS=""
4282 CAIRO_LIBS=""
4283 ## If we have a custom action on failure, don't print errors, but
4284 ## do set a variable so people can do so.
4285 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
4286 echo $CAIRO_PKG_ERRORS
4291 else
4292 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4293 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4297 if test $succeeded = yes; then
4299 else
4300 { echo "configure: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
4304 succeeded=no
4306 if test -z "$PKG_CONFIG"; then
4307 # Extract the first word of "pkg-config", so it can be a program name with args.
4308 set dummy pkg-config; ac_word=$2
4309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4310 echo "configure:4311: checking for $ac_word" >&5
4311 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4313 else
4314 case "$PKG_CONFIG" in
4316 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4318 ?:/*)
4319 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4323 ac_dummy="$PATH"
4324 for ac_dir in $ac_dummy; do
4325 test -z "$ac_dir" && ac_dir=.
4326 if test -f $ac_dir/$ac_word; then
4327 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4328 break
4330 done
4331 IFS="$ac_save_ifs"
4332 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4334 esac
4336 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4337 if test -n "$PKG_CONFIG"; then
4338 echo "$ac_t""$PKG_CONFIG" 1>&6
4339 else
4340 echo "$ac_t""no" 1>&6
4345 if test "$PKG_CONFIG" = "no" ; then
4346 echo "*** The pkg-config script could not be found. Make sure it is"
4347 echo "*** in your path, or set the PKG_CONFIG environment variable"
4348 echo "*** to the full path to pkg-config."
4349 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4350 else
4351 PKG_CONFIG_MIN_VERSION=0.9.0
4352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4353 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
4354 echo "configure:4355: checking for pangoft2" >&5
4356 if $PKG_CONFIG --exists "pangoft2" ; then
4357 echo "$ac_t""yes" 1>&6
4358 succeeded=yes
4360 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
4361 echo "configure:4362: checking PANGOFT2_CFLAGS" >&5
4362 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
4363 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
4365 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
4366 echo "configure:4367: checking PANGOFT2_LIBS" >&5
4367 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
4368 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
4369 else
4370 PANGOFT2_CFLAGS=""
4371 PANGOFT2_LIBS=""
4372 ## If we have a custom action on failure, don't print errors, but
4373 ## do set a variable so people can do so.
4374 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
4375 echo $PANGOFT2_PKG_ERRORS
4380 else
4381 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4382 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4386 if test $succeeded = yes; then
4388 else
4389 { echo "configure: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
4398 libsubdir=.libs
4400 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
4401 echo "configure:4402: checking for garbage collector to use" >&5
4402 # Check whether --enable-java-gc or --disable-java-gc was given.
4403 if test "${enable_java_gc+set}" = set; then
4404 enableval="$enable_java_gc"
4406 GC=$enableval
4407 else
4408 GC=boehm
4411 GCLIBS=
4412 GCINCS=
4413 GCDEPS=
4414 GCOBJS=
4415 GCSPEC=
4416 JC1GCSPEC=
4417 GCTESTSPEC=
4418 case "$GC" in
4419 boehm)
4420 echo "$ac_t""boehm" 1>&6
4421 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4422 JC1GCSPEC='-fuse-boehm-gc'
4423 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
4425 GCINCS="`cat ../boehm-gc/boehm-cflags`"
4426 GCOBJS=boehm.lo
4427 GCHDR=boehm-gc.h
4428 cat >> confdefs.h <<\EOF
4429 #define HAVE_BOEHM_GC 1
4434 echo "$ac_t""none" 1>&6
4435 GCOBJS=nogc.lo
4436 GCHDR=no-gc.h
4439 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
4441 esac
4452 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4453 echo "configure:4454: checking for thread model used by GCC" >&5
4454 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4455 echo "$ac_t""$THREADS" 1>&6
4457 case "$THREADS" in
4458 no | none | single)
4459 THREADS=none
4461 posix | pthreads)
4462 THREADS=posix
4463 case "$host" in
4464 *-*-linux*)
4465 cat >> confdefs.h <<\EOF
4466 #define LINUX_THREADS 1
4470 esac
4472 win32)
4474 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4475 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
4478 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
4480 esac
4482 THREADCXXFLAGS=
4483 THREADLDFLAGS=
4484 THREADLIBS=
4485 THREADINCS=
4486 THREADDEPS=
4487 THREADOBJS=
4488 THREADH=
4489 THREADSPEC=
4490 case "$THREADS" in
4491 posix)
4492 case "$host" in
4493 *-*-cygwin*)
4494 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4497 *-*-freebsd[1234]*)
4499 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4500 # merely adds pthread_* functions) but it does have a -pthread switch
4501 # which is required at link-time to select -lc_r *instead* of -lc.
4502 THREADLDFLAGS=-pthread
4503 # Don't set THREADSPEC here as might be expected since -pthread is
4504 # not processed when found within a spec file, it must come from
4505 # the command line. For now, the user must provide the -pthread
4506 # switch to link code compiled with gcj. In future, consider adding
4507 # support for weak references to pthread_* functions ala gthr.h API.
4508 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4510 *-*-freebsd*)
4511 # FreeBSD 5 implements a model much closer to other modern UNIX
4512 # which support threads. However, it still does not support
4513 # -lpthread.
4514 THREADLDFLAGS=-pthread
4515 THREADSPEC=-lc_r
4517 alpha*-dec-osf*)
4518 THREADCXXFLAGS=-pthread
4519 # boehm-gc needs some functions from librt, so link that too.
4520 THREADLIBS='-lpthread -lrt'
4521 THREADSPEC='-lpthread -lrt'
4524 THREADLIBS=-lpthread
4525 THREADSPEC=-lpthread
4527 esac
4528 THREADOBJS=posix-threads.lo
4529 THREADH=posix-threads.h
4530 # MIT pthreads doesn't seem to have the mutexattr functions.
4531 # But for now we don't check for it. We just assume you aren't
4532 # using MIT pthreads.
4533 cat >> confdefs.h <<\EOF
4534 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4538 # If we're using the Boehm GC, then we happen to know that it
4539 # defines _REENTRANT, so we don't bother. Eww.
4540 if test "$GC" != boehm; then
4541 cat >> confdefs.h <<\EOF
4542 #define _REENTRANT 1
4546 cat >> confdefs.h <<\EOF
4547 #define _POSIX_PTHREAD_SEMANTICS 1
4552 win32)
4553 THREADOBJS=win32-threads.lo
4554 THREADH=win32-threads.h
4557 none)
4558 THREADOBJS=no-threads.lo
4559 THREADH=no-threads.h
4561 esac
4571 if test -d sysdep; then true; else mkdir sysdep; fi
4574 HASH_SYNC_SPEC=
4575 # Hash synchronization is only useful with posix threads right now.
4576 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
4577 HASH_SYNC_SPEC=-fhash-synchronization
4578 cat >> confdefs.h <<\EOF
4579 #define JV_HASH_SYNCHRONIZATION 1
4588 if test "$GCC" = yes; then
4589 USING_GCC_TRUE=
4590 USING_GCC_FALSE='#'
4591 else
4592 USING_GCC_TRUE='#'
4593 USING_GCC_FALSE=
4596 CANADIAN=no
4597 NULL_TARGET=no
4598 NATIVE=yes
4600 # We're in the tree with gcc, and need to include some of its headers.
4601 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4603 # Figure out where generated headers like libgcj-config.h get installed.
4604 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4605 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4606 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4607 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
4611 if test "x${with_newlib}" = "xyes"; then
4612 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4613 # may not work correctly, because the compiler may not be able to
4614 # link executables.
4616 # We assume newlib. This lets us hard-code the functions we know
4617 # we'll have.
4618 cat >> confdefs.h <<\EOF
4619 #define HAVE_MEMMOVE 1
4622 cat >> confdefs.h <<\EOF
4623 #define HAVE_MEMCPY 1
4626 cat >> confdefs.h <<\EOF
4627 #define HAVE_STRERROR 1
4630 cat >> confdefs.h <<\EOF
4631 #define HAVE_TIME 1
4634 cat >> confdefs.h <<\EOF
4635 #define HAVE_GMTIME_R 1
4638 cat >> confdefs.h <<\EOF
4639 #define HAVE_LOCALTIME_R 1
4642 cat >> confdefs.h <<\EOF
4643 #define HAVE_USLEEP_DECL 1
4646 cat >> confdefs.h <<\EOF
4647 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4650 cat >> confdefs.h <<\EOF
4651 #define HAVE_ALLOCA 1
4655 cat >> confdefs.h <<\EOF
4656 #define NO_GETUID 1
4659 PLATFORMNET=NoNet
4660 else
4661 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4664 echo "configure:4665: checking for $ac_func" >&5
4665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4667 else
4668 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 /* System header to define __stub macros and hopefully few prototypes,
4672 which can conflict with char $ac_func(); below. */
4673 #include <assert.h>
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4677 char $ac_func();
4679 int main() {
4681 /* The GNU C library defines this for functions which it implements
4682 to always fail with ENOSYS. Some functions are actually named
4683 something starting with __ and the normal name is an alias. */
4684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4685 choke me
4686 #else
4687 $ac_func();
4688 #endif
4690 ; return 0; }
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 rm -rf conftest*
4694 eval "ac_cv_func_$ac_func=yes"
4695 else
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 rm -rf conftest*
4699 eval "ac_cv_func_$ac_func=no"
4701 rm -f conftest*
4704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4707 cat >> confdefs.h <<EOF
4708 #define $ac_tr_func 1
4711 else
4712 echo "$ac_t""no" 1>&6
4714 done
4716 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4719 echo "configure:4720: checking for $ac_func" >&5
4720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4722 else
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 /* System header to define __stub macros and hopefully few prototypes,
4727 which can conflict with char $ac_func(); below. */
4728 #include <assert.h>
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4732 char $ac_func();
4734 int main() {
4736 /* The GNU C library defines this for functions which it implements
4737 to always fail with ENOSYS. Some functions are actually named
4738 something starting with __ and the normal name is an alias. */
4739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4740 choke me
4741 #else
4742 $ac_func();
4743 #endif
4745 ; return 0; }
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4748 rm -rf conftest*
4749 eval "ac_cv_func_$ac_func=yes"
4750 else
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 rm -rf conftest*
4754 eval "ac_cv_func_$ac_func=no"
4756 rm -f conftest*
4759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4762 cat >> confdefs.h <<EOF
4763 #define $ac_tr_func 1
4766 else
4767 echo "$ac_t""no" 1>&6
4769 done
4771 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_func" >&5
4775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4777 else
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4781 /* System header to define __stub macros and hopefully few prototypes,
4782 which can conflict with char $ac_func(); below. */
4783 #include <assert.h>
4784 /* Override any gcc2 internal prototype to avoid an error. */
4785 /* We use char because int might match the return type of a gcc2
4786 builtin and then its argument prototype would still apply. */
4787 char $ac_func();
4789 int main() {
4791 /* The GNU C library defines this for functions which it implements
4792 to always fail with ENOSYS. Some functions are actually named
4793 something starting with __ and the normal name is an alias. */
4794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4795 choke me
4796 #else
4797 $ac_func();
4798 #endif
4800 ; return 0; }
4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4803 rm -rf conftest*
4804 eval "ac_cv_func_$ac_func=yes"
4805 else
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4808 rm -rf conftest*
4809 eval "ac_cv_func_$ac_func=no"
4811 rm -f conftest*
4814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4817 cat >> confdefs.h <<EOF
4818 #define $ac_tr_func 1
4821 else
4822 echo "$ac_t""no" 1>&6
4824 done
4826 for ac_func in nl_langinfo setlocale
4828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4829 echo "configure:4830: checking for $ac_func" >&5
4830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4832 else
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 /* System header to define __stub macros and hopefully few prototypes,
4837 which can conflict with char $ac_func(); below. */
4838 #include <assert.h>
4839 /* Override any gcc2 internal prototype to avoid an error. */
4840 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4842 char $ac_func();
4844 int main() {
4846 /* The GNU C library defines this for functions which it implements
4847 to always fail with ENOSYS. Some functions are actually named
4848 something starting with __ and the normal name is an alias. */
4849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4850 choke me
4851 #else
4852 $ac_func();
4853 #endif
4855 ; return 0; }
4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4858 rm -rf conftest*
4859 eval "ac_cv_func_$ac_func=yes"
4860 else
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4863 rm -rf conftest*
4864 eval "ac_cv_func_$ac_func=no"
4866 rm -f conftest*
4869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4872 cat >> confdefs.h <<EOF
4873 #define $ac_tr_func 1
4876 else
4877 echo "$ac_t""no" 1>&6
4879 done
4881 for ac_func in inet_aton inet_addr
4883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4884 echo "configure:4885: checking for $ac_func" >&5
4885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4887 else
4888 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4891 /* System header to define __stub macros and hopefully few prototypes,
4892 which can conflict with char $ac_func(); below. */
4893 #include <assert.h>
4894 /* Override any gcc2 internal prototype to avoid an error. */
4895 /* We use char because int might match the return type of a gcc2
4896 builtin and then its argument prototype would still apply. */
4897 char $ac_func();
4899 int main() {
4901 /* The GNU C library defines this for functions which it implements
4902 to always fail with ENOSYS. Some functions are actually named
4903 something starting with __ and the normal name is an alias. */
4904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4905 choke me
4906 #else
4907 $ac_func();
4908 #endif
4910 ; return 0; }
4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4913 rm -rf conftest*
4914 eval "ac_cv_func_$ac_func=yes"
4915 else
4916 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4918 rm -rf conftest*
4919 eval "ac_cv_func_$ac_func=no"
4921 rm -f conftest*
4924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4927 cat >> confdefs.h <<EOF
4928 #define $ac_tr_func 1
4930 break
4931 else
4932 echo "$ac_t""no" 1>&6
4934 done
4936 for ac_func in inet_pton uname inet_ntoa
4938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4939 echo "configure:4940: checking for $ac_func" >&5
4940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4942 else
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 /* System header to define __stub macros and hopefully few prototypes,
4947 which can conflict with char $ac_func(); below. */
4948 #include <assert.h>
4949 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4952 char $ac_func();
4954 int main() {
4956 /* The GNU C library defines this for functions which it implements
4957 to always fail with ENOSYS. Some functions are actually named
4958 something starting with __ and the normal name is an alias. */
4959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4960 choke me
4961 #else
4962 $ac_func();
4963 #endif
4965 ; return 0; }
4967 if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4968 rm -rf conftest*
4969 eval "ac_cv_func_$ac_func=yes"
4970 else
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4973 rm -rf conftest*
4974 eval "ac_cv_func_$ac_func=no"
4976 rm -f conftest*
4979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4980 echo "$ac_t""yes" 1>&6
4981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4982 cat >> confdefs.h <<EOF
4983 #define $ac_tr_func 1
4986 else
4987 echo "$ac_t""no" 1>&6
4989 done
4991 for ac_func in fork execvp pipe sigaction ftruncate
4993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4994 echo "configure:4995: checking for $ac_func" >&5
4995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4997 else
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* System header to define __stub macros and hopefully few prototypes,
5002 which can conflict with char $ac_func(); below. */
5003 #include <assert.h>
5004 /* Override any gcc2 internal prototype to avoid an error. */
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5007 char $ac_func();
5009 int main() {
5011 /* The GNU C library defines this for functions which it implements
5012 to always fail with ENOSYS. Some functions are actually named
5013 something starting with __ and the normal name is an alias. */
5014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5015 choke me
5016 #else
5017 $ac_func();
5018 #endif
5020 ; return 0; }
5022 if { (eval echo configure:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5023 rm -rf conftest*
5024 eval "ac_cv_func_$ac_func=yes"
5025 else
5026 echo "configure: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5028 rm -rf conftest*
5029 eval "ac_cv_func_$ac_func=no"
5031 rm -f conftest*
5034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5035 echo "$ac_t""yes" 1>&6
5036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5037 cat >> confdefs.h <<EOF
5038 #define $ac_tr_func 1
5041 else
5042 echo "$ac_t""no" 1>&6
5044 done
5046 for ac_hdr in execinfo.h unistd.h dlfcn.h
5048 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5050 echo "configure:5051: checking for $ac_hdr" >&5
5051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5052 echo $ac_n "(cached) $ac_c" 1>&6
5053 else
5054 cat > conftest.$ac_ext <<EOF
5055 #line 5056 "configure"
5056 #include "confdefs.h"
5057 #include <$ac_hdr>
5059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5060 { (eval echo configure:5061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5062 if test -z "$ac_err"; then
5063 rm -rf conftest*
5064 eval "ac_cv_header_$ac_safe=yes"
5065 else
5066 echo "$ac_err" >&5
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5069 rm -rf conftest*
5070 eval "ac_cv_header_$ac_safe=no"
5072 rm -f conftest*
5074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5075 echo "$ac_t""yes" 1>&6
5076 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5077 cat >> confdefs.h <<EOF
5078 #define $ac_tr_hdr 1
5081 else
5082 echo "$ac_t""no" 1>&6
5084 done
5086 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
5087 echo "configure:5088: checking for backtrace" >&5
5088 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5090 else
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 /* System header to define __stub macros and hopefully few prototypes,
5095 which can conflict with char backtrace(); below. */
5096 #include <assert.h>
5097 /* Override any gcc2 internal prototype to avoid an error. */
5098 /* We use char because int might match the return type of a gcc2
5099 builtin and then its argument prototype would still apply. */
5100 char backtrace();
5102 int main() {
5104 /* The GNU C library defines this for functions which it implements
5105 to always fail with ENOSYS. Some functions are actually named
5106 something starting with __ and the normal name is an alias. */
5107 #if defined (__stub_backtrace) || defined (__stub___backtrace)
5108 choke me
5109 #else
5110 backtrace();
5111 #endif
5113 ; return 0; }
5115 if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5116 rm -rf conftest*
5117 eval "ac_cv_func_backtrace=yes"
5118 else
5119 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5121 rm -rf conftest*
5122 eval "ac_cv_func_backtrace=no"
5124 rm -f conftest*
5127 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5130 case "$host" in
5131 ia64-*-linux*)
5132 # Has broken backtrace()
5134 mips*-*-linux*)
5135 # Has broken backtrace(), but we supply our own.
5136 if test -d sysdep; then true; else mkdir -p sysdep; fi
5137 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep/dwarf2-backtrace.cc"
5138 cat >> confdefs.h <<\EOF
5139 #define HAVE_BACKTRACE 1
5144 cat >> confdefs.h <<\EOF
5145 #define HAVE_BACKTRACE 1
5149 esac
5151 else
5152 echo "$ac_t""no" 1>&6
5154 case "$host" in
5155 *mingw*)
5156 # Has backtrace() defined in libgcj itself
5157 cat >> confdefs.h <<\EOF
5158 #define HAVE_BACKTRACE 1
5162 esac
5167 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
5168 echo "configure:5169: checking for dladdr in -ldl" >&5
5169 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
5170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5172 else
5173 ac_save_LIBS="$LIBS"
5174 LIBS="-ldl $LIBS"
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5181 char dladdr();
5183 int main() {
5184 dladdr()
5185 ; return 0; }
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5188 rm -rf conftest*
5189 eval "ac_cv_lib_$ac_lib_var=yes"
5190 else
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5193 rm -rf conftest*
5194 eval "ac_cv_lib_$ac_lib_var=no"
5196 rm -f conftest*
5197 LIBS="$ac_save_LIBS"
5200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5201 echo "$ac_t""yes" 1>&6
5203 if test "x${disable_dladdr}" = "xyes"; then
5204 #Broken dladdr().
5205 true
5206 else
5207 cat >> confdefs.h <<\EOF
5208 #define HAVE_DLADDR 1
5213 else
5214 echo "$ac_t""no" 1>&6
5217 if test x"$build" = x"$host"; then
5218 for ac_file in /proc/self/exe
5221 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
5222 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
5223 echo "configure:5224: checking for $ac_file" >&5
5224 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5226 else
5227 if test "$cross_compiling" = yes; then
5228 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
5229 else
5230 if test -r $ac_file; then
5231 eval "ac_cv_file_$ac_safe=yes"
5232 else
5233 eval "ac_cv_file_$ac_safe=no"
5237 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
5238 echo "$ac_t""yes" 1>&6
5239 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5240 cat >> confdefs.h <<EOF
5241 #define $ac_tr_file 1
5244 cat >> confdefs.h <<\EOF
5245 #define HAVE_PROC_SELF_EXE 1
5248 else
5249 echo "$ac_t""no" 1>&6
5252 done
5254 else
5255 case $host in
5256 *-linux*)
5257 cat >> confdefs.h <<\EOF
5258 #define HAVE_PROC_SELF_EXE 1
5262 esac
5267 am_cv_lib_iconv_ldpath=
5268 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5269 if test "${with_libiconv_prefix+set}" = set; then
5270 withval="$with_libiconv_prefix"
5272 for dir in `echo "$withval" | tr : ' '`; do
5273 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
5274 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
5275 done
5280 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5281 echo "configure:5282: checking for iconv" >&5
5282 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5284 else
5286 am_cv_func_iconv="no, consider installing GNU libiconv"
5287 am_cv_lib_iconv=no
5288 cat > conftest.$ac_ext <<EOF
5289 #line 5290 "configure"
5290 #include "confdefs.h"
5291 #include <stdlib.h>
5292 #include <iconv.h>
5293 int main() {
5294 iconv_t cd = iconv_open("","");
5295 iconv(cd,NULL,NULL,NULL,NULL);
5296 iconv_close(cd);
5297 ; return 0; }
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5300 rm -rf conftest*
5301 am_cv_func_iconv=yes
5302 else
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5306 rm -f conftest*
5307 if test "$am_cv_func_iconv" != yes; then
5308 am_save_LIBS="$LIBS"
5309 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5313 #include <stdlib.h>
5314 #include <iconv.h>
5315 int main() {
5316 iconv_t cd = iconv_open("","");
5317 iconv(cd,NULL,NULL,NULL,NULL);
5318 iconv_close(cd);
5319 ; return 0; }
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5322 rm -rf conftest*
5323 am_cv_lib_iconv=yes
5324 am_cv_func_iconv=yes
5325 else
5326 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5329 rm -f conftest*
5330 LIBS="$am_save_LIBS"
5335 echo "$ac_t""$am_cv_func_iconv" 1>&6
5336 if test "$am_cv_func_iconv" = yes; then
5337 cat >> confdefs.h <<\EOF
5338 #define HAVE_ICONV 1
5341 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5342 echo "configure:5343: checking for iconv declaration" >&5
5343 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5344 echo $ac_n "(cached) $ac_c" 1>&6
5345 else
5347 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5351 #include <stdlib.h>
5352 #include <iconv.h>
5353 extern
5354 #ifdef __cplusplus
5356 #endif
5357 #if defined(__STDC__) || defined(__cplusplus)
5358 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5359 #else
5360 size_t iconv();
5361 #endif
5363 int main() {
5365 ; return 0; }
5367 if { (eval echo configure:5368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5368 rm -rf conftest*
5369 am_cv_proto_iconv_arg1=""
5370 else
5371 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5373 rm -rf conftest*
5374 am_cv_proto_iconv_arg1="const"
5376 rm -f conftest*
5377 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5380 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5381 echo "$ac_t""${ac_t:-
5382 }$am_cv_proto_iconv" 1>&6
5383 cat >> confdefs.h <<EOF
5384 #define ICONV_CONST $am_cv_proto_iconv_arg1
5388 LIBICONV=
5389 if test "$am_cv_lib_iconv" = yes; then
5390 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5394 for ac_hdr in locale.h
5396 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5397 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5398 echo "configure:5399: checking for $ac_hdr" >&5
5399 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5400 echo $ac_n "(cached) $ac_c" 1>&6
5401 else
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 #include <$ac_hdr>
5407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5408 { (eval echo configure:5409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5410 if test -z "$ac_err"; then
5411 rm -rf conftest*
5412 eval "ac_cv_header_$ac_safe=yes"
5413 else
5414 echo "$ac_err" >&5
5415 echo "configure: failed program was:" >&5
5416 cat conftest.$ac_ext >&5
5417 rm -rf conftest*
5418 eval "ac_cv_header_$ac_safe=no"
5420 rm -f conftest*
5422 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5423 echo "$ac_t""yes" 1>&6
5424 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5425 cat >> confdefs.h <<EOF
5426 #define $ac_tr_hdr 1
5429 else
5430 echo "$ac_t""no" 1>&6
5432 done
5434 if test $ac_cv_header_locale_h = yes; then
5435 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5436 echo "configure:5437: checking for LC_MESSAGES" >&5
5437 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5439 else
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 #include <locale.h>
5444 int main() {
5445 return LC_MESSAGES
5446 ; return 0; }
5448 if { (eval echo configure:5449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5449 rm -rf conftest*
5450 am_cv_val_LC_MESSAGES=yes
5451 else
5452 echo "configure: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5454 rm -rf conftest*
5455 am_cv_val_LC_MESSAGES=no
5457 rm -f conftest*
5460 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5461 if test $am_cv_val_LC_MESSAGES = yes; then
5462 cat >> confdefs.h <<\EOF
5463 #define HAVE_LC_MESSAGES 1
5468 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5469 echo "configure:5470: checking whether struct tm is in sys/time.h or time.h" >&5
5470 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5471 echo $ac_n "(cached) $ac_c" 1>&6
5472 else
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5476 #include <sys/types.h>
5477 #include <time.h>
5478 int main() {
5479 struct tm *tp; tp->tm_sec;
5480 ; return 0; }
5482 if { (eval echo configure:5483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5483 rm -rf conftest*
5484 ac_cv_struct_tm=time.h
5485 else
5486 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5488 rm -rf conftest*
5489 ac_cv_struct_tm=sys/time.h
5491 rm -f conftest*
5494 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5495 if test $ac_cv_struct_tm = sys/time.h; then
5496 cat >> confdefs.h <<\EOF
5497 #define TM_IN_SYS_TIME 1
5502 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5503 echo "configure:5504: checking for tm_zone in struct tm" >&5
5504 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5506 else
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 #include <sys/types.h>
5511 #include <$ac_cv_struct_tm>
5512 int main() {
5513 struct tm tm; tm.tm_zone;
5514 ; return 0; }
5516 if { (eval echo configure:5517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5517 rm -rf conftest*
5518 ac_cv_struct_tm_zone=yes
5519 else
5520 echo "configure: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5522 rm -rf conftest*
5523 ac_cv_struct_tm_zone=no
5525 rm -f conftest*
5528 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5529 if test "$ac_cv_struct_tm_zone" = yes; then
5530 cat >> confdefs.h <<\EOF
5531 #define HAVE_TM_ZONE 1
5534 else
5535 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5536 echo "configure:5537: checking for tzname" >&5
5537 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5539 else
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 #include <time.h>
5544 #ifndef tzname /* For SGI. */
5545 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5546 #endif
5547 int main() {
5548 atoi(*tzname);
5549 ; return 0; }
5551 if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5552 rm -rf conftest*
5553 ac_cv_var_tzname=yes
5554 else
5555 echo "configure: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5557 rm -rf conftest*
5558 ac_cv_var_tzname=no
5560 rm -f conftest*
5563 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5564 if test $ac_cv_var_tzname = yes; then
5565 cat >> confdefs.h <<\EOF
5566 #define HAVE_TZNAME 1
5573 for ac_func in gethostbyname_r
5575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5576 echo "configure:5577: checking for $ac_func" >&5
5577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5579 else
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 /* System header to define __stub macros and hopefully few prototypes,
5584 which can conflict with char $ac_func(); below. */
5585 #include <assert.h>
5586 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5589 char $ac_func();
5591 int main() {
5593 /* The GNU C library defines this for functions which it implements
5594 to always fail with ENOSYS. Some functions are actually named
5595 something starting with __ and the normal name is an alias. */
5596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5597 choke me
5598 #else
5599 $ac_func();
5600 #endif
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 eval "ac_cv_func_$ac_func=yes"
5607 else
5608 echo "configure: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5610 rm -rf conftest*
5611 eval "ac_cv_func_$ac_func=no"
5613 rm -f conftest*
5616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5617 echo "$ac_t""yes" 1>&6
5618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5619 cat >> confdefs.h <<EOF
5620 #define $ac_tr_func 1
5623 cat >> confdefs.h <<\EOF
5624 #define HAVE_GETHOSTBYNAME_R 1
5627 # There are two different kinds of gethostbyname_r.
5628 # We look for the one that returns `int'.
5629 # Hopefully this check is robust enough.
5630 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure"
5632 #include "confdefs.h"
5633 #include <netdb.h>
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
5637 rm -rf conftest*
5639 cat >> confdefs.h <<\EOF
5640 #define GETHOSTBYNAME_R_RETURNS_INT 1
5644 rm -f conftest*
5647 case " $GCINCS " in
5648 *" -D_REENTRANT "*) ;;
5650 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
5651 echo "configure:5652: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
5652 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5654 else
5656 ac_ext=C
5657 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5658 ac_cpp='$CXXCPP $CPPFLAGS'
5659 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5660 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5661 cross_compiling=$ac_cv_prog_cxx_cross
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5666 #include <netdb.h>
5667 int main() {
5668 gethostbyname_r("", 0, 0);
5669 ; return 0; }
5671 if { (eval echo configure:5672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5672 rm -rf conftest*
5673 libjava_cv_gethostbyname_r_needs_reentrant=no
5674 else
5675 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5677 rm -rf conftest*
5678 CPPFLAGS_SAVE="$CPPFLAGS"
5679 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5680 cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5683 #include <netdb.h>
5684 int main() {
5685 gethostbyname_r("", 0, 0);
5686 ; return 0; }
5688 if { (eval echo configure:5689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5689 rm -rf conftest*
5690 libjava_cv_gethostbyname_r_needs_reentrant=yes
5691 else
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 rm -rf conftest*
5695 libjava_cv_gethostbyname_r_needs_reentrant=fail
5697 rm -f conftest*
5698 CPPFLAGS="$CPPFLAGS_SAVE"
5701 rm -f conftest*
5702 ac_ext=c
5703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5704 ac_cpp='$CPP $CPPFLAGS'
5705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5707 cross_compiling=$ac_cv_prog_cc_cross
5712 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5713 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5714 cat >> confdefs.h <<\EOF
5715 #define _REENTRANT 1
5720 esac
5722 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
5723 echo "configure:5724: checking for struct hostent_data" >&5
5724 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5726 else
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5731 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5732 # define _REENTRANT 1
5733 #endif
5734 #include <netdb.h>
5735 int main() {
5736 struct hostent_data data;
5737 ; return 0; }
5739 if { (eval echo configure:5740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5740 rm -rf conftest*
5741 libjava_cv_struct_hostent_data=yes
5742 else
5743 echo "configure: failed program was:" >&5
5744 cat conftest.$ac_ext >&5
5745 rm -rf conftest*
5746 libjava_cv_struct_hostent_data=no
5748 rm -f conftest*
5751 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5752 if test "x$libjava_cv_struct_hostent_data" = xyes; then
5753 cat >> confdefs.h <<\EOF
5754 #define HAVE_STRUCT_HOSTENT_DATA 1
5759 else
5760 echo "$ac_t""no" 1>&6
5762 done
5765 # FIXME: libjava source code expects to find a prototype for
5766 # gethostbyaddr_r in netdb.h. The outer check ensures that
5767 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5768 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5769 # linkage check is enough, yet C++ code requires proper prototypes.)
5770 cat > conftest.$ac_ext <<EOF
5771 #line 5772 "configure"
5772 #include "confdefs.h"
5773 #include <netdb.h>
5775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5776 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
5777 rm -rf conftest*
5779 for ac_func in gethostbyaddr_r
5781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5782 echo "configure:5783: checking for $ac_func" >&5
5783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5785 else
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5789 /* System header to define __stub macros and hopefully few prototypes,
5790 which can conflict with char $ac_func(); below. */
5791 #include <assert.h>
5792 /* Override any gcc2 internal prototype to avoid an error. */
5793 /* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */
5795 char $ac_func();
5797 int main() {
5799 /* The GNU C library defines this for functions which it implements
5800 to always fail with ENOSYS. Some functions are actually named
5801 something starting with __ and the normal name is an alias. */
5802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5803 choke me
5804 #else
5805 $ac_func();
5806 #endif
5808 ; return 0; }
5810 if { (eval echo configure:5811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5811 rm -rf conftest*
5812 eval "ac_cv_func_$ac_func=yes"
5813 else
5814 echo "configure: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5816 rm -rf conftest*
5817 eval "ac_cv_func_$ac_func=no"
5819 rm -f conftest*
5822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5823 echo "$ac_t""yes" 1>&6
5824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5825 cat >> confdefs.h <<EOF
5826 #define $ac_tr_func 1
5829 cat >> confdefs.h <<\EOF
5830 #define HAVE_GETHOSTBYADDR_R 1
5833 # There are two different kinds of gethostbyaddr_r.
5834 # We look for the one that returns `int'.
5835 # Hopefully this check is robust enough.
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5839 #include <netdb.h>
5841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5842 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
5843 rm -rf conftest*
5845 cat >> confdefs.h <<\EOF
5846 #define GETHOSTBYADDR_R_RETURNS_INT 1
5850 rm -f conftest*
5852 else
5853 echo "$ac_t""no" 1>&6
5855 done
5858 rm -f conftest*
5861 for ac_func in gethostname
5863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5864 echo "configure:5865: checking for $ac_func" >&5
5865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5866 echo $ac_n "(cached) $ac_c" 1>&6
5867 else
5868 cat > conftest.$ac_ext <<EOF
5869 #line 5870 "configure"
5870 #include "confdefs.h"
5871 /* System header to define __stub macros and hopefully few prototypes,
5872 which can conflict with char $ac_func(); below. */
5873 #include <assert.h>
5874 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5877 char $ac_func();
5879 int main() {
5881 /* The GNU C library defines this for functions which it implements
5882 to always fail with ENOSYS. Some functions are actually named
5883 something starting with __ and the normal name is an alias. */
5884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5885 choke me
5886 #else
5887 $ac_func();
5888 #endif
5890 ; return 0; }
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893 rm -rf conftest*
5894 eval "ac_cv_func_$ac_func=yes"
5895 else
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5898 rm -rf conftest*
5899 eval "ac_cv_func_$ac_func=no"
5901 rm -f conftest*
5904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5905 echo "$ac_t""yes" 1>&6
5906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5907 cat >> confdefs.h <<EOF
5908 #define $ac_tr_func 1
5911 cat >> confdefs.h <<\EOF
5912 #define HAVE_GETHOSTNAME 1
5915 cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure"
5917 #include "confdefs.h"
5918 #include <unistd.h>
5920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5921 egrep "gethostname" >/dev/null 2>&1; then
5922 rm -rf conftest*
5924 cat >> confdefs.h <<\EOF
5925 #define HAVE_GETHOSTNAME_DECL 1
5929 rm -f conftest*
5931 else
5932 echo "$ac_t""no" 1>&6
5934 done
5937 for ac_func in usleep
5939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5940 echo "configure:5941: checking for $ac_func" >&5
5941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5942 echo $ac_n "(cached) $ac_c" 1>&6
5943 else
5944 cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure"
5946 #include "confdefs.h"
5947 /* System header to define __stub macros and hopefully few prototypes,
5948 which can conflict with char $ac_func(); below. */
5949 #include <assert.h>
5950 /* Override any gcc2 internal prototype to avoid an error. */
5951 /* We use char because int might match the return type of a gcc2
5952 builtin and then its argument prototype would still apply. */
5953 char $ac_func();
5955 int main() {
5957 /* The GNU C library defines this for functions which it implements
5958 to always fail with ENOSYS. Some functions are actually named
5959 something starting with __ and the normal name is an alias. */
5960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5961 choke me
5962 #else
5963 $ac_func();
5964 #endif
5966 ; return 0; }
5968 if { (eval echo configure:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5969 rm -rf conftest*
5970 eval "ac_cv_func_$ac_func=yes"
5971 else
5972 echo "configure: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5974 rm -rf conftest*
5975 eval "ac_cv_func_$ac_func=no"
5977 rm -f conftest*
5980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5981 echo "$ac_t""yes" 1>&6
5982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5983 cat >> confdefs.h <<EOF
5984 #define $ac_tr_func 1
5987 cat > conftest.$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5990 #include <unistd.h>
5992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 egrep "usleep" >/dev/null 2>&1; then
5994 rm -rf conftest*
5996 cat >> confdefs.h <<\EOF
5997 #define HAVE_USLEEP_DECL 1
6001 rm -f conftest*
6003 else
6004 echo "$ac_t""no" 1>&6
6006 done
6009 # Look for these functions in the thread library, but only bother
6010 # if using POSIX threads.
6011 if test "$THREADS" = posix; then
6012 save_LIBS="$LIBS"
6013 LIBS="$LIBS $THREADLIBS"
6014 # Some POSIX thread systems don't have pthread_mutexattr_settype.
6015 # E.g., Solaris.
6016 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
6018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6019 echo "configure:6020: checking for $ac_func" >&5
6020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6022 else
6023 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char $ac_func(); below. */
6028 #include <assert.h>
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6032 char $ac_func();
6034 int main() {
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6040 choke me
6041 #else
6042 $ac_func();
6043 #endif
6045 ; return 0; }
6047 if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6048 rm -rf conftest*
6049 eval "ac_cv_func_$ac_func=yes"
6050 else
6051 echo "configure: failed program was:" >&5
6052 cat conftest.$ac_ext >&5
6053 rm -rf conftest*
6054 eval "ac_cv_func_$ac_func=no"
6056 rm -f conftest*
6059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6062 cat >> confdefs.h <<EOF
6063 #define $ac_tr_func 1
6066 else
6067 echo "$ac_t""no" 1>&6
6069 done
6072 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
6073 # Solaris 7 the name librt is preferred.
6074 for ac_func in sched_yield
6076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6077 echo "configure:6078: checking for $ac_func" >&5
6078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6079 echo $ac_n "(cached) $ac_c" 1>&6
6080 else
6081 cat > conftest.$ac_ext <<EOF
6082 #line 6083 "configure"
6083 #include "confdefs.h"
6084 /* System header to define __stub macros and hopefully few prototypes,
6085 which can conflict with char $ac_func(); below. */
6086 #include <assert.h>
6087 /* Override any gcc2 internal prototype to avoid an error. */
6088 /* We use char because int might match the return type of a gcc2
6089 builtin and then its argument prototype would still apply. */
6090 char $ac_func();
6092 int main() {
6094 /* The GNU C library defines this for functions which it implements
6095 to always fail with ENOSYS. Some functions are actually named
6096 something starting with __ and the normal name is an alias. */
6097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6098 choke me
6099 #else
6100 $ac_func();
6101 #endif
6103 ; return 0; }
6105 if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6106 rm -rf conftest*
6107 eval "ac_cv_func_$ac_func=yes"
6108 else
6109 echo "configure: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6111 rm -rf conftest*
6112 eval "ac_cv_func_$ac_func=no"
6114 rm -f conftest*
6117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6118 echo "$ac_t""yes" 1>&6
6119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6120 cat >> confdefs.h <<EOF
6121 #define $ac_tr_func 1
6124 else
6125 echo "$ac_t""no" 1>&6
6126 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6127 echo "configure:6128: checking for sched_yield in -lrt" >&5
6128 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6131 else
6132 ac_save_LIBS="$LIBS"
6133 LIBS="-lrt $LIBS"
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6140 char sched_yield();
6142 int main() {
6143 sched_yield()
6144 ; return 0; }
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6147 rm -rf conftest*
6148 eval "ac_cv_lib_$ac_lib_var=yes"
6149 else
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6152 rm -rf conftest*
6153 eval "ac_cv_lib_$ac_lib_var=no"
6155 rm -f conftest*
6156 LIBS="$ac_save_LIBS"
6159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6160 echo "$ac_t""yes" 1>&6
6162 cat >> confdefs.h <<\EOF
6163 #define HAVE_SCHED_YIELD 1
6166 THREADLIBS="$THREADLIBS -lrt"
6167 THREADSPEC="$THREADSPEC -lrt"
6168 else
6169 echo "$ac_t""no" 1>&6
6171 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
6172 echo "configure:6173: checking for sched_yield in -lposix4" >&5
6173 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
6174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6176 else
6177 ac_save_LIBS="$LIBS"
6178 LIBS="-lposix4 $LIBS"
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6182 /* Override any gcc2 internal prototype to avoid an error. */
6183 /* We use char because int might match the return type of a gcc2
6184 builtin and then its argument prototype would still apply. */
6185 char sched_yield();
6187 int main() {
6188 sched_yield()
6189 ; return 0; }
6191 if { (eval echo configure:6192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6192 rm -rf conftest*
6193 eval "ac_cv_lib_$ac_lib_var=yes"
6194 else
6195 echo "configure: failed program was:" >&5
6196 cat conftest.$ac_ext >&5
6197 rm -rf conftest*
6198 eval "ac_cv_lib_$ac_lib_var=no"
6200 rm -f conftest*
6201 LIBS="$ac_save_LIBS"
6204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6205 echo "$ac_t""yes" 1>&6
6207 cat >> confdefs.h <<\EOF
6208 #define HAVE_SCHED_YIELD 1
6211 THREADLIBS="$THREADLIBS -lposix4"
6212 THREADSPEC="$THREADSPEC -lposix4"
6213 else
6214 echo "$ac_t""no" 1>&6
6220 done
6222 LIBS="$save_LIBS"
6224 # We can save a little space at runtime if the mutex has m_count
6225 # or __m_count. This is a nice hack for Linux.
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure"
6228 #include "confdefs.h"
6229 #include <pthread.h>
6230 int main() {
6232 extern pthread_mutex_t *mutex; int q = mutex->m_count;
6234 ; return 0; }
6236 if { (eval echo configure:6237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6237 rm -rf conftest*
6238 cat >> confdefs.h <<\EOF
6239 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
6242 else
6243 echo "configure: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6245 rm -rf conftest*
6247 cat > conftest.$ac_ext <<EOF
6248 #line 6249 "configure"
6249 #include "confdefs.h"
6250 #include <pthread.h>
6251 int main() {
6253 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
6255 ; return 0; }
6257 if { (eval echo configure:6258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6258 rm -rf conftest*
6259 cat >> confdefs.h <<\EOF
6260 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
6263 else
6264 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6267 rm -f conftest*
6269 rm -f conftest*
6272 # We require a way to get the time.
6273 time_found=no
6274 for ac_func in gettimeofday time ftime
6276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6277 echo "configure:6278: checking for $ac_func" >&5
6278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6279 echo $ac_n "(cached) $ac_c" 1>&6
6280 else
6281 cat > conftest.$ac_ext <<EOF
6282 #line 6283 "configure"
6283 #include "confdefs.h"
6284 /* System header to define __stub macros and hopefully few prototypes,
6285 which can conflict with char $ac_func(); below. */
6286 #include <assert.h>
6287 /* Override any gcc2 internal prototype to avoid an error. */
6288 /* We use char because int might match the return type of a gcc2
6289 builtin and then its argument prototype would still apply. */
6290 char $ac_func();
6292 int main() {
6294 /* The GNU C library defines this for functions which it implements
6295 to always fail with ENOSYS. Some functions are actually named
6296 something starting with __ and the normal name is an alias. */
6297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6298 choke me
6299 #else
6300 $ac_func();
6301 #endif
6303 ; return 0; }
6305 if { (eval echo configure:6306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6306 rm -rf conftest*
6307 eval "ac_cv_func_$ac_func=yes"
6308 else
6309 echo "configure: failed program was:" >&5
6310 cat conftest.$ac_ext >&5
6311 rm -rf conftest*
6312 eval "ac_cv_func_$ac_func=no"
6314 rm -f conftest*
6317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6318 echo "$ac_t""yes" 1>&6
6319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6320 cat >> confdefs.h <<EOF
6321 #define $ac_tr_func 1
6323 time_found=yes
6324 else
6325 echo "$ac_t""no" 1>&6
6327 done
6329 if test "$time_found" = no; then
6330 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
6333 for ac_func in memmove
6335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6336 echo "configure:6337: checking for $ac_func" >&5
6337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6339 else
6340 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6343 /* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char $ac_func(); below. */
6345 #include <assert.h>
6346 /* Override any gcc2 internal prototype to avoid an error. */
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6349 char $ac_func();
6351 int main() {
6353 /* The GNU C library defines this for functions which it implements
6354 to always fail with ENOSYS. Some functions are actually named
6355 something starting with __ and the normal name is an alias. */
6356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6357 choke me
6358 #else
6359 $ac_func();
6360 #endif
6362 ; return 0; }
6364 if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6365 rm -rf conftest*
6366 eval "ac_cv_func_$ac_func=yes"
6367 else
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6370 rm -rf conftest*
6371 eval "ac_cv_func_$ac_func=no"
6373 rm -f conftest*
6376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6377 echo "$ac_t""yes" 1>&6
6378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6379 cat >> confdefs.h <<EOF
6380 #define $ac_tr_func 1
6383 else
6384 echo "$ac_t""no" 1>&6
6386 done
6389 # We require memcpy.
6390 memcpy_found=no
6391 for ac_func in memcpy
6393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6394 echo "configure:6395: checking for $ac_func" >&5
6395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6396 echo $ac_n "(cached) $ac_c" 1>&6
6397 else
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6401 /* System header to define __stub macros and hopefully few prototypes,
6402 which can conflict with char $ac_func(); below. */
6403 #include <assert.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 $ac_func();
6409 int main() {
6411 /* The GNU C library defines this for functions which it implements
6412 to always fail with ENOSYS. Some functions are actually named
6413 something starting with __ and the normal name is an alias. */
6414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6415 choke me
6416 #else
6417 $ac_func();
6418 #endif
6420 ; return 0; }
6422 if { (eval echo configure:6423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6423 rm -rf conftest*
6424 eval "ac_cv_func_$ac_func=yes"
6425 else
6426 echo "configure: failed program was:" >&5
6427 cat conftest.$ac_ext >&5
6428 rm -rf conftest*
6429 eval "ac_cv_func_$ac_func=no"
6431 rm -f conftest*
6434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6435 echo "$ac_t""yes" 1>&6
6436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6437 cat >> confdefs.h <<EOF
6438 #define $ac_tr_func 1
6440 memcpy_found=yes
6441 else
6442 echo "$ac_t""no" 1>&6
6444 done
6446 if test "$memcpy_found" = no; then
6447 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
6450 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6451 echo "configure:6452: checking for dlopen in -ldl" >&5
6452 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6454 echo $ac_n "(cached) $ac_c" 1>&6
6455 else
6456 ac_save_LIBS="$LIBS"
6457 LIBS="-ldl $LIBS"
6458 cat > conftest.$ac_ext <<EOF
6459 #line 6460 "configure"
6460 #include "confdefs.h"
6461 /* Override any gcc2 internal prototype to avoid an error. */
6462 /* We use char because int might match the return type of a gcc2
6463 builtin and then its argument prototype would still apply. */
6464 char dlopen();
6466 int main() {
6467 dlopen()
6468 ; return 0; }
6470 if { (eval echo configure:6471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6471 rm -rf conftest*
6472 eval "ac_cv_lib_$ac_lib_var=yes"
6473 else
6474 echo "configure: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6476 rm -rf conftest*
6477 eval "ac_cv_lib_$ac_lib_var=no"
6479 rm -f conftest*
6480 LIBS="$ac_save_LIBS"
6483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6484 echo "$ac_t""yes" 1>&6
6486 cat >> confdefs.h <<\EOF
6487 #define HAVE_DLOPEN 1
6490 else
6491 echo "$ac_t""no" 1>&6
6495 # Some library-finding code we stole from Tcl.
6496 #--------------------------------------------------------------------
6497 # Check for the existence of the -lsocket and -lnsl libraries.
6498 # The order here is important, so that they end up in the right
6499 # order in the command line generated by make. Here are some
6500 # special considerations:
6501 # 1. Use "connect" and "accept" to check for -lsocket, and
6502 # "gethostbyname" to check for -lnsl.
6503 # 2. Use each function name only once: can't redo a check because
6504 # autoconf caches the results of the last check and won't redo it.
6505 # 3. Use -lnsl and -lsocket only if they supply procedures that
6506 # aren't already present in the normal libraries. This is because
6507 # IRIX 5.2 has libraries, but they aren't needed and they're
6508 # bogus: they goof up name resolution if used.
6509 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6510 # To get around this problem, check for both libraries together
6511 # if -lsocket doesn't work by itself.
6512 #--------------------------------------------------------------------
6514 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
6515 echo "configure:6516: checking for socket libraries" >&5
6516 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6517 echo $ac_n "(cached) $ac_c" 1>&6
6518 else
6519 gcj_cv_lib_sockets=
6520 gcj_checkBoth=0
6521 unset ac_cv_func_connect
6522 echo $ac_n "checking for connect""... $ac_c" 1>&6
6523 echo "configure:6524: checking for connect" >&5
6524 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6526 else
6527 cat > conftest.$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6530 /* System header to define __stub macros and hopefully few prototypes,
6531 which can conflict with char connect(); below. */
6532 #include <assert.h>
6533 /* Override any gcc2 internal prototype to avoid an error. */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6536 char connect();
6538 int main() {
6540 /* The GNU C library defines this for functions which it implements
6541 to always fail with ENOSYS. Some functions are actually named
6542 something starting with __ and the normal name is an alias. */
6543 #if defined (__stub_connect) || defined (__stub___connect)
6544 choke me
6545 #else
6546 connect();
6547 #endif
6549 ; return 0; }
6551 if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6552 rm -rf conftest*
6553 eval "ac_cv_func_connect=yes"
6554 else
6555 echo "configure: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6557 rm -rf conftest*
6558 eval "ac_cv_func_connect=no"
6560 rm -f conftest*
6563 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6564 echo "$ac_t""yes" 1>&6
6565 gcj_checkSocket=0
6566 else
6567 echo "$ac_t""no" 1>&6
6568 gcj_checkSocket=1
6571 if test "$gcj_checkSocket" = 1; then
6572 unset ac_cv_func_connect
6573 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
6574 echo "configure:6575: checking for main in -lsocket" >&5
6575 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6577 echo $ac_n "(cached) $ac_c" 1>&6
6578 else
6579 ac_save_LIBS="$LIBS"
6580 LIBS="-lsocket $LIBS"
6581 cat > conftest.$ac_ext <<EOF
6582 #line 6583 "configure"
6583 #include "confdefs.h"
6585 int main() {
6586 main()
6587 ; return 0; }
6589 if { (eval echo configure:6590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6590 rm -rf conftest*
6591 eval "ac_cv_lib_$ac_lib_var=yes"
6592 else
6593 echo "configure: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 rm -rf conftest*
6596 eval "ac_cv_lib_$ac_lib_var=no"
6598 rm -f conftest*
6599 LIBS="$ac_save_LIBS"
6602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6603 echo "$ac_t""yes" 1>&6
6604 gcj_cv_lib_sockets="-lsocket"
6605 else
6606 echo "$ac_t""no" 1>&6
6607 gcj_checkBoth=1
6611 if test "$gcj_checkBoth" = 1; then
6612 gcj_oldLibs=$LIBS
6613 LIBS="$LIBS -lsocket -lnsl"
6614 unset ac_cv_func_accept
6615 echo $ac_n "checking for accept""... $ac_c" 1>&6
6616 echo "configure:6617: checking for accept" >&5
6617 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6618 echo $ac_n "(cached) $ac_c" 1>&6
6619 else
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6623 /* System header to define __stub macros and hopefully few prototypes,
6624 which can conflict with char accept(); below. */
6625 #include <assert.h>
6626 /* Override any gcc2 internal prototype to avoid an error. */
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6629 char accept();
6631 int main() {
6633 /* The GNU C library defines this for functions which it implements
6634 to always fail with ENOSYS. Some functions are actually named
6635 something starting with __ and the normal name is an alias. */
6636 #if defined (__stub_accept) || defined (__stub___accept)
6637 choke me
6638 #else
6639 accept();
6640 #endif
6642 ; return 0; }
6644 if { (eval echo configure:6645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6645 rm -rf conftest*
6646 eval "ac_cv_func_accept=yes"
6647 else
6648 echo "configure: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6650 rm -rf conftest*
6651 eval "ac_cv_func_accept=no"
6653 rm -f conftest*
6656 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6657 echo "$ac_t""yes" 1>&6
6658 gcj_checkNsl=0
6659 gcj_cv_lib_sockets="-lsocket -lnsl"
6660 else
6661 echo "$ac_t""no" 1>&6
6664 unset ac_cv_func_accept
6665 LIBS=$gcj_oldLibs
6667 unset ac_cv_func_gethostbyname
6668 gcj_oldLibs=$LIBS
6669 LIBS="$LIBS $gcj_cv_lib_sockets"
6670 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6671 echo "configure:6672: checking for gethostbyname" >&5
6672 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6674 else
6675 cat > conftest.$ac_ext <<EOF
6676 #line 6677 "configure"
6677 #include "confdefs.h"
6678 /* System header to define __stub macros and hopefully few prototypes,
6679 which can conflict with char gethostbyname(); below. */
6680 #include <assert.h>
6681 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6684 char gethostbyname();
6686 int main() {
6688 /* The GNU C library defines this for functions which it implements
6689 to always fail with ENOSYS. Some functions are actually named
6690 something starting with __ and the normal name is an alias. */
6691 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6692 choke me
6693 #else
6694 gethostbyname();
6695 #endif
6697 ; return 0; }
6699 if { (eval echo configure:6700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6700 rm -rf conftest*
6701 eval "ac_cv_func_gethostbyname=yes"
6702 else
6703 echo "configure: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6705 rm -rf conftest*
6706 eval "ac_cv_func_gethostbyname=no"
6708 rm -f conftest*
6711 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6712 echo "$ac_t""yes" 1>&6
6714 else
6715 echo "$ac_t""no" 1>&6
6716 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
6717 echo "configure:6718: checking for main in -lnsl" >&5
6718 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6720 echo $ac_n "(cached) $ac_c" 1>&6
6721 else
6722 ac_save_LIBS="$LIBS"
6723 LIBS="-lnsl $LIBS"
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6728 int main() {
6729 main()
6730 ; return 0; }
6732 if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733 rm -rf conftest*
6734 eval "ac_cv_lib_$ac_lib_var=yes"
6735 else
6736 echo "configure: failed program was:" >&5
6737 cat conftest.$ac_ext >&5
6738 rm -rf conftest*
6739 eval "ac_cv_lib_$ac_lib_var=no"
6741 rm -f conftest*
6742 LIBS="$ac_save_LIBS"
6745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6746 echo "$ac_t""yes" 1>&6
6747 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6748 else
6749 echo "$ac_t""no" 1>&6
6754 unset ac_cv_func_gethostbyname
6755 LIBS=$gcj_oldLIBS
6759 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6760 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6762 if test "$with_system_zlib" = yes; then
6763 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6764 echo "configure:6765: checking for deflate in -lz" >&5
6765 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6767 echo $ac_n "(cached) $ac_c" 1>&6
6768 else
6769 ac_save_LIBS="$LIBS"
6770 LIBS="-lz $LIBS"
6771 cat > conftest.$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6774 /* Override any gcc2 internal prototype to avoid an error. */
6775 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */
6777 char deflate();
6779 int main() {
6780 deflate()
6781 ; return 0; }
6783 if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6784 rm -rf conftest*
6785 eval "ac_cv_lib_$ac_lib_var=yes"
6786 else
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 rm -rf conftest*
6790 eval "ac_cv_lib_$ac_lib_var=no"
6792 rm -f conftest*
6793 LIBS="$ac_save_LIBS"
6796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6797 echo "$ac_t""yes" 1>&6
6798 ZLIBSPEC=-lz
6799 else
6800 echo "$ac_t""no" 1>&6
6801 ZLIBSPEC=
6806 # Test for Gtk stuff, if asked for.
6807 if test "$use_gtk_awt" = yes; then
6809 succeeded=no
6811 if test -z "$PKG_CONFIG"; then
6812 # Extract the first word of "pkg-config", so it can be a program name with args.
6813 set dummy pkg-config; ac_word=$2
6814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6815 echo "configure:6816: checking for $ac_word" >&5
6816 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6818 else
6819 case "$PKG_CONFIG" in
6821 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6823 ?:/*)
6824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6828 ac_dummy="$PATH"
6829 for ac_dir in $ac_dummy; do
6830 test -z "$ac_dir" && ac_dir=.
6831 if test -f $ac_dir/$ac_word; then
6832 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6833 break
6835 done
6836 IFS="$ac_save_ifs"
6837 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6839 esac
6841 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6842 if test -n "$PKG_CONFIG"; then
6843 echo "$ac_t""$PKG_CONFIG" 1>&6
6844 else
6845 echo "$ac_t""no" 1>&6
6850 if test "$PKG_CONFIG" = "no" ; then
6851 echo "*** The pkg-config script could not be found. Make sure it is"
6852 echo "*** in your path, or set the PKG_CONFIG environment variable"
6853 echo "*** to the full path to pkg-config."
6854 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6855 else
6856 PKG_CONFIG_MIN_VERSION=0.9.0
6857 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6858 echo $ac_n "checking for gtk+-2.0 >= 2.2""... $ac_c" 1>&6
6859 echo "configure:6860: checking for gtk+-2.0 >= 2.2" >&5
6861 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.2" ; then
6862 echo "$ac_t""yes" 1>&6
6863 succeeded=yes
6865 echo $ac_n "checking GTK_CFLAGS""... $ac_c" 1>&6
6866 echo "configure:6867: checking GTK_CFLAGS" >&5
6867 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.2"`
6868 echo "$ac_t""$GTK_CFLAGS" 1>&6
6870 echo $ac_n "checking GTK_LIBS""... $ac_c" 1>&6
6871 echo "configure:6872: checking GTK_LIBS" >&5
6872 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.2"`
6873 echo "$ac_t""$GTK_LIBS" 1>&6
6874 else
6875 GTK_CFLAGS=""
6876 GTK_LIBS=""
6877 ## If we have a custom action on failure, don't print errors, but
6878 ## do set a variable so people can do so.
6879 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2"`
6880 echo $GTK_PKG_ERRORS
6885 else
6886 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6887 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6891 if test $succeeded = yes; then
6893 else
6894 { echo "configure: error: Library requirements (gtk+-2.0 >= 2.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
6901 succeeded=no
6903 if test -z "$PKG_CONFIG"; then
6904 # Extract the first word of "pkg-config", so it can be a program name with args.
6905 set dummy pkg-config; ac_word=$2
6906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6907 echo "configure:6908: checking for $ac_word" >&5
6908 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6910 else
6911 case "$PKG_CONFIG" in
6913 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6915 ?:/*)
6916 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6920 ac_dummy="$PATH"
6921 for ac_dir in $ac_dummy; do
6922 test -z "$ac_dir" && ac_dir=.
6923 if test -f $ac_dir/$ac_word; then
6924 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6925 break
6927 done
6928 IFS="$ac_save_ifs"
6929 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6931 esac
6933 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6934 if test -n "$PKG_CONFIG"; then
6935 echo "$ac_t""$PKG_CONFIG" 1>&6
6936 else
6937 echo "$ac_t""no" 1>&6
6942 if test "$PKG_CONFIG" = "no" ; then
6943 echo "*** The pkg-config script could not be found. Make sure it is"
6944 echo "*** in your path, or set the PKG_CONFIG environment variable"
6945 echo "*** to the full path to pkg-config."
6946 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6947 else
6948 PKG_CONFIG_MIN_VERSION=0.9.0
6949 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6950 echo $ac_n "checking for glib-2.0 >= 2.2 gthread-2.0 >= 2.2""... $ac_c" 1>&6
6951 echo "configure:6952: checking for glib-2.0 >= 2.2 gthread-2.0 >= 2.2" >&5
6953 if $PKG_CONFIG --exists "glib-2.0 >= 2.2 gthread-2.0 >= 2.2" ; then
6954 echo "$ac_t""yes" 1>&6
6955 succeeded=yes
6957 echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6
6958 echo "configure:6959: checking GLIB_CFLAGS" >&5
6959 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6960 echo "$ac_t""$GLIB_CFLAGS" 1>&6
6962 echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6
6963 echo "configure:6964: checking GLIB_LIBS" >&5
6964 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6965 echo "$ac_t""$GLIB_LIBS" 1>&6
6966 else
6967 GLIB_CFLAGS=""
6968 GLIB_LIBS=""
6969 ## If we have a custom action on failure, don't print errors, but
6970 ## do set a variable so people can do so.
6971 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2 gthread-2.0 >= 2.2"`
6972 echo $GLIB_PKG_ERRORS
6977 else
6978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6983 if test $succeeded = yes; then
6985 else
6986 { echo "configure: error: Library requirements (glib-2.0 >= 2.2 gthread-2.0 >= 2.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
6993 succeeded=no
6995 if test -z "$PKG_CONFIG"; then
6996 # Extract the first word of "pkg-config", so it can be a program name with args.
6997 set dummy pkg-config; ac_word=$2
6998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6999 echo "configure:7000: checking for $ac_word" >&5
7000 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
7001 echo $ac_n "(cached) $ac_c" 1>&6
7002 else
7003 case "$PKG_CONFIG" in
7005 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7007 ?:/*)
7008 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
7011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7012 ac_dummy="$PATH"
7013 for ac_dir in $ac_dummy; do
7014 test -z "$ac_dir" && ac_dir=.
7015 if test -f $ac_dir/$ac_word; then
7016 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
7017 break
7019 done
7020 IFS="$ac_save_ifs"
7021 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7023 esac
7025 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7026 if test -n "$PKG_CONFIG"; then
7027 echo "$ac_t""$PKG_CONFIG" 1>&6
7028 else
7029 echo "$ac_t""no" 1>&6
7034 if test "$PKG_CONFIG" = "no" ; then
7035 echo "*** The pkg-config script could not be found. Make sure it is"
7036 echo "*** in your path, or set the PKG_CONFIG environment variable"
7037 echo "*** to the full path to pkg-config."
7038 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7039 else
7040 PKG_CONFIG_MIN_VERSION=0.9.0
7041 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7042 echo $ac_n "checking for libart-2.0 >= 2.1""... $ac_c" 1>&6
7043 echo "configure:7044: checking for libart-2.0 >= 2.1" >&5
7045 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
7046 echo "$ac_t""yes" 1>&6
7047 succeeded=yes
7049 echo $ac_n "checking LIBART_CFLAGS""... $ac_c" 1>&6
7050 echo "configure:7051: checking LIBART_CFLAGS" >&5
7051 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
7052 echo "$ac_t""$LIBART_CFLAGS" 1>&6
7054 echo $ac_n "checking LIBART_LIBS""... $ac_c" 1>&6
7055 echo "configure:7056: checking LIBART_LIBS" >&5
7056 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
7057 echo "$ac_t""$LIBART_LIBS" 1>&6
7058 else
7059 LIBART_CFLAGS=""
7060 LIBART_LIBS=""
7061 ## If we have a custom action on failure, don't print errors, but
7062 ## do set a variable so people can do so.
7063 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
7064 echo $LIBART_PKG_ERRORS
7069 else
7070 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7071 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7075 if test $succeeded = yes; then
7077 else
7078 { echo "configure: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
7085 # On Solaris, and maybe other architectures, the Boehm collector
7086 # requires -ldl.
7087 if test "$GC" = boehm; then
7088 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
7089 echo "configure:7090: checking for main in -ldl" >&5
7090 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
7091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7092 echo $ac_n "(cached) $ac_c" 1>&6
7093 else
7094 ac_save_LIBS="$LIBS"
7095 LIBS="-ldl $LIBS"
7096 cat > conftest.$ac_ext <<EOF
7097 #line 7098 "configure"
7098 #include "confdefs.h"
7100 int main() {
7101 main()
7102 ; return 0; }
7104 if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7105 rm -rf conftest*
7106 eval "ac_cv_lib_$ac_lib_var=yes"
7107 else
7108 echo "configure: failed program was:" >&5
7109 cat conftest.$ac_ext >&5
7110 rm -rf conftest*
7111 eval "ac_cv_lib_$ac_lib_var=no"
7113 rm -f conftest*
7114 LIBS="$ac_save_LIBS"
7117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7118 echo "$ac_t""yes" 1>&6
7119 SYSTEMSPEC="$SYSTEMSPEC -ldl"
7120 else
7121 echo "$ac_t""no" 1>&6
7127 if test -z "${with_multisubdir}"; then
7128 builddotdot=.
7129 else
7131 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7135 # Which gcj do we use?
7136 which_gcj=default
7137 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7138 if test -n "${with_cross_host}"; then
7139 # We are being configured with a cross compiler. We can't
7140 # use ac_exeext, because that is for the target platform.
7141 NATIVE=no
7142 cross_host_exeext=
7143 case "${with_cross_host}" in
7144 *mingw* | *cygwin*)
7145 cross_host_exeext=.exe
7147 esac
7148 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
7149 if test x"$build_alias" = x"$with_cross_host"; then
7150 # Ordinary cross (host!=target and host=build)
7151 which_gcj=built
7152 else
7153 # Canadian cross (host!=target and host!=build)
7154 which_gcj=cross
7156 else
7157 which_gcj=cross
7159 else
7160 # We are being configured with a native or crossed-native compiler
7161 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
7162 if test x"$build" = x"$host"; then
7163 # True native build (host=target and host=build)
7164 which_gcj=built
7165 else
7166 # Crossed-native build (host=target and host!=build)
7167 which_gcj=cross
7169 else
7170 which_gcj=path
7173 case "${which_gcj}" in
7174 built)
7175 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
7177 cross)
7178 # See the comment in Makefile.am about CANADIAN being a misnomer
7179 CANADIAN=yes
7180 NULL_TARGET=no
7181 if test "x${with_newlib}" = "xyes"; then
7182 # FIXME (comment): Why is this needed?
7183 GCC_UNWIND_INCLUDE=
7184 GCJ="${target_alias}-gcj"
7185 else
7186 GCJ="${target_alias}-gcj -B`${PWDCMD-pwd}`/"
7189 path)
7190 # See the comment in Makefile.am about CANADIAN being a misnomer
7191 CANADIAN=yes
7192 NULL_TARGET=yes
7193 GCJ="gcj -B`${PWDCMD-pwd}`/"
7195 esac
7197 # Create it, so that compile/link tests don't fail
7198 test -f libgcj.spec || touch libgcj.spec
7200 # We must search the source tree for java.lang, since we still don't
7201 # have libgcj.jar nor java/lang/*.class
7202 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
7203 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7205 # Since some classes depend on this one, we need its source available
7206 # before we can do any GCJ compilation test :-(
7207 if test ! -f gnu/classpath/Configuration.java; then
7208 test -d gnu || mkdir gnu
7209 test -d gnu/classpath || mkdir gnu/classpath
7210 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7211 -e 's,@TOOLKIT@,$TOOLKIT,' \
7212 < $srcdir/gnu/classpath/Configuration.java.in \
7213 > gnu/classpath/Configuration.java
7214 # We do not want to redirect the output of the grep below to /dev/null,
7215 # but we add /dev/null to the input list so that grep will print the
7216 # filename of Configuration.java in case it finds any matches.
7217 if grep @ gnu/classpath/Configuration.java /dev/null; then
7218 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
7222 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}gcj; ac_word=$2
7224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7225 echo "configure:7226: checking for $ac_word" >&5
7226 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7227 echo $ac_n "(cached) $ac_c" 1>&6
7228 else
7229 if test -n "$GCJ"; then
7230 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7231 else
7232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7233 ac_dummy="$PATH"
7234 for ac_dir in $ac_dummy; do
7235 test -z "$ac_dir" && ac_dir=.
7236 if test -f $ac_dir/$ac_word; then
7237 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
7238 break
7240 done
7241 IFS="$ac_save_ifs"
7244 GCJ="$ac_cv_prog_GCJ"
7245 if test -n "$GCJ"; then
7246 echo "$ac_t""$GCJ" 1>&6
7247 else
7248 echo "$ac_t""no" 1>&6
7252 if test -z "$ac_cv_prog_GCJ"; then
7253 if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "gcj", so it can be a program name with args.
7255 set dummy gcj; ac_word=$2
7256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7257 echo "configure:7258: checking for $ac_word" >&5
7258 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7259 echo $ac_n "(cached) $ac_c" 1>&6
7260 else
7261 if test -n "$GCJ"; then
7262 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7263 else
7264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7265 ac_dummy="$PATH"
7266 for ac_dir in $ac_dummy; do
7267 test -z "$ac_dir" && ac_dir=.
7268 if test -f $ac_dir/$ac_word; then
7269 ac_cv_prog_GCJ="gcj"
7270 break
7272 done
7273 IFS="$ac_save_ifs"
7274 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
7277 GCJ="$ac_cv_prog_GCJ"
7278 if test -n "$GCJ"; then
7279 echo "$ac_t""$GCJ" 1>&6
7280 else
7281 echo "$ac_t""no" 1>&6
7284 else
7285 GCJ="no"
7289 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7293 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
7294 lt_save_CC="$CC"
7295 lt_save_CFLAGS="$CFLAGS"
7296 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7297 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7298 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7299 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7300 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7301 deplibs_check_method="$deplibs_check_method" \
7302 file_magic_cmd="$file_magic_cmd" \
7303 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7304 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7305 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
7306 CC="$lt_save_CC"
7307 CFLAGS="$lt_save_CFLAGS"
7309 # Redirect the config.log output again, so that the ltconfig log is not
7310 # clobbered by the next message.
7311 exec 5>>./config.log
7316 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
7318 echo $ac_n "checking size of void *""... $ac_c" 1>&6
7319 echo "configure:7320: checking size of void *" >&5
7320 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7321 echo $ac_n "(cached) $ac_c" 1>&6
7322 else
7323 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7324 cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7327 #include "confdefs.h"
7328 #include <sys/types.h>
7331 int main() {
7332 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7333 ; return 0; }
7335 if { (eval echo configure:7336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7336 rm -rf conftest*
7337 ac_cv_sizeof_void_p=$ac_size
7338 else
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7342 rm -f conftest*
7343 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7344 done
7348 if test x$ac_cv_sizeof_void_p = x ; then
7349 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
7351 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7352 cat >> confdefs.h <<EOF
7353 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7358 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7359 echo "configure:7360: checking whether byte ordering is bigendian" >&5
7360 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7361 echo $ac_n "(cached) $ac_c" 1>&6
7362 else
7363 ac_cv_c_bigendian=unknown
7364 # See if sys/param.h defines the BYTE_ORDER macro.
7365 cat > conftest.$ac_ext <<EOF
7366 #line 7367 "configure"
7367 #include "confdefs.h"
7368 #include <sys/types.h>
7369 #include <sys/param.h>
7370 int main() {
7372 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7373 bogus endian macros
7374 #endif
7375 ; return 0; }
7377 if { (eval echo configure:7378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7378 rm -rf conftest*
7379 # It does; now see whether it defined to BIG_ENDIAN or not.
7380 cat > conftest.$ac_ext <<EOF
7381 #line 7382 "configure"
7382 #include "confdefs.h"
7383 #include <sys/types.h>
7384 #include <sys/param.h>
7385 int main() {
7387 #if BYTE_ORDER != BIG_ENDIAN
7388 not big endian
7389 #endif
7390 ; return 0; }
7392 if { (eval echo configure:7393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7393 rm -rf conftest*
7394 ac_cv_c_bigendian=yes
7395 else
7396 echo "configure: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7398 rm -rf conftest*
7399 ac_cv_c_bigendian=no
7401 rm -f conftest*
7402 else
7403 echo "configure: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7406 rm -f conftest*
7407 if test $ac_cv_c_bigendian = unknown; then
7408 if test "$cross_compiling" = yes; then
7409 echo $ac_n "cross-compiling... " 2>&6
7410 else
7411 cat > conftest.$ac_ext <<EOF
7412 #line 7413 "configure"
7413 #include "confdefs.h"
7414 main () {
7415 /* Are we little or big endian? From Harbison&Steele. */
7416 union
7418 long l;
7419 char c[sizeof (long)];
7420 } u;
7421 u.l = 1;
7422 exit (u.c[sizeof (long) - 1] == 1);
7425 if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7426 then
7427 ac_cv_c_bigendian=no
7428 else
7429 echo "configure: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7431 rm -fr conftest*
7432 ac_cv_c_bigendian=yes
7434 rm -fr conftest*
7440 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7441 if test $ac_cv_c_bigendian = unknown; then
7442 echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
7443 echo "configure:7444: checking to probe for byte ordering" >&5
7445 cat >conftest.c <<EOF
7446 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7447 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7448 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
7449 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7450 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7451 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
7452 int main() { _ascii (); _ebcdic (); return 0; }
7454 if test -f conftest.c ; then
7455 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
7456 if test `grep -l BIGenDianSyS conftest.o` ; then
7457 echo $ac_n ' big endian probe OK, ' 1>&6
7458 ac_cv_c_bigendian=yes
7460 if test `grep -l LiTTleEnDian conftest.o` ; then
7461 echo $ac_n ' little endian probe OK, ' 1>&6
7462 if test $ac_cv_c_bigendian = yes ; then
7463 ac_cv_c_bigendian=unknown;
7464 else
7465 ac_cv_c_bigendian=no
7468 echo $ac_n 'guessing bigendian ... ' >&6
7471 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7473 if test $ac_cv_c_bigendian = yes; then
7474 cat >> confdefs.h <<\EOF
7475 #define WORDS_BIGENDIAN 1
7478 cat >> confdefs.h <<\EOF
7479 #define HOST_WORDS_BIG_ENDIAN 1
7482 BYTEORDER=4321
7483 else
7484 BYTEORDER=1234
7486 cat >> confdefs.h <<EOF
7487 #define BYTEORDER $BYTEORDER
7490 if test $ac_cv_c_bigendian = unknown; then
7491 { echo "configure: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" 1>&2; exit 1; }
7495 ZLIBS=
7496 SYS_ZLIBS=
7497 ZINCS=
7499 if test -z "$ZLIBSPEC"; then
7500 # Use zlib from the GCC tree.
7501 ZINCS='-I$(top_srcdir)/../zlib'
7502 ZLIBS=../zlib/libzgcj_convenience.la
7503 else
7504 # System's zlib.
7505 SYS_ZLIBS="$ZLIBSPEC"
7517 if test "$CANADIAN" = yes; then
7518 CANADIAN_TRUE=
7519 CANADIAN_FALSE='#'
7520 else
7521 CANADIAN_TRUE='#'
7522 CANADIAN_FALSE=
7526 if test "$NULL_TARGET" = yes; then
7527 NULL_TARGET_TRUE=
7528 NULL_TARGET_FALSE='#'
7529 else
7530 NULL_TARGET_TRUE='#'
7531 NULL_TARGET_FALSE=
7535 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
7536 NATIVE_TRUE=
7537 NATIVE_FALSE='#'
7538 else
7539 NATIVE_TRUE='#'
7540 NATIVE_FALSE=
7544 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7545 NEEDS_DATA_START_TRUE=
7546 NEEDS_DATA_START_FALSE='#'
7547 else
7548 NEEDS_DATA_START_TRUE='#'
7549 NEEDS_DATA_START_FALSE=
7553 # Process the option "--enable-version-specific-runtime-libs"
7554 # Calculate toolexeclibdir
7555 case ${version_specific_libs} in
7556 yes)
7557 # Need the gcc compiler version to know where to install libraries
7558 # and header files if --enable-version-specific-runtime-libs option
7559 # is selected.
7560 includedir='${libdir}/gcc/${target_alias}/'$gcc_version/include/
7561 toolexecdir='$(libdir)/gcc/$(target_alias)'
7562 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
7563 toolexeclibdir=$toolexecmainlibdir
7566 if test -n "$with_cross_host" &&
7567 test x"$with_cross_host" != x"no"; then
7568 # Install a library built with a cross compiler in tooldir, not libdir.
7569 toolexecdir='$(exec_prefix)/$(target_alias)'
7570 toolexecmainlibdir='$(toolexecdir)/lib'
7571 else
7572 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
7573 toolexecmainlibdir='$(libdir)'
7575 multi_os_directory=`$CC -print-multi-os-directory`
7576 case $multi_os_directory in
7577 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
7578 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
7579 esac
7581 esac
7586 # Determine gcj version number.
7588 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7590 GCJVERSION=$gcjversion
7592 cat >> confdefs.h <<EOF
7593 #define GCJVERSION "$GCJVERSION"
7597 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
7599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7601 echo "configure:7602: checking for $ac_hdr" >&5
7602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7604 else
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7608 #include <$ac_hdr>
7610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7611 { (eval echo configure:7612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7613 if test -z "$ac_err"; then
7614 rm -rf conftest*
7615 eval "ac_cv_header_$ac_safe=yes"
7616 else
7617 echo "$ac_err" >&5
7618 echo "configure: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 rm -rf conftest*
7621 eval "ac_cv_header_$ac_safe=no"
7623 rm -f conftest*
7625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7626 echo "$ac_t""yes" 1>&6
7627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7628 cat >> confdefs.h <<EOF
7629 #define $ac_tr_hdr 1
7632 else
7633 echo "$ac_t""no" 1>&6
7635 done
7637 for ac_hdr in dirent.h
7639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7641 echo "configure:7642: checking for $ac_hdr" >&5
7642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7643 echo $ac_n "(cached) $ac_c" 1>&6
7644 else
7645 cat > conftest.$ac_ext <<EOF
7646 #line 7647 "configure"
7647 #include "confdefs.h"
7648 #include <$ac_hdr>
7650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7651 { (eval echo configure:7652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7653 if test -z "$ac_err"; then
7654 rm -rf conftest*
7655 eval "ac_cv_header_$ac_safe=yes"
7656 else
7657 echo "$ac_err" >&5
7658 echo "configure: failed program was:" >&5
7659 cat conftest.$ac_ext >&5
7660 rm -rf conftest*
7661 eval "ac_cv_header_$ac_safe=no"
7663 rm -f conftest*
7665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7666 echo "$ac_t""yes" 1>&6
7667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7668 cat >> confdefs.h <<EOF
7669 #define $ac_tr_hdr 1
7672 else
7673 echo "$ac_t""no" 1>&6
7675 done
7677 for ac_hdr in inttypes.h
7679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7681 echo "configure:7682: checking for $ac_hdr" >&5
7682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7683 echo $ac_n "(cached) $ac_c" 1>&6
7684 else
7685 cat > conftest.$ac_ext <<EOF
7686 #line 7687 "configure"
7687 #include "confdefs.h"
7688 #include <$ac_hdr>
7690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7691 { (eval echo configure:7692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7693 if test -z "$ac_err"; then
7694 rm -rf conftest*
7695 eval "ac_cv_header_$ac_safe=yes"
7696 else
7697 echo "$ac_err" >&5
7698 echo "configure: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7700 rm -rf conftest*
7701 eval "ac_cv_header_$ac_safe=no"
7703 rm -f conftest*
7705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7706 echo "$ac_t""yes" 1>&6
7707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7708 cat >> confdefs.h <<EOF
7709 #define $ac_tr_hdr 1
7712 cat >> confdefs.h <<\EOF
7713 #define HAVE_INTTYPES_H 1
7716 cat >> confdefs.h <<\EOF
7717 #define JV_HAVE_INTTYPES_H 1
7721 else
7722 echo "$ac_t""no" 1>&6
7724 done
7726 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7727 echo "configure:7728: checking for sys/wait.h that is POSIX.1 compatible" >&5
7728 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7729 echo $ac_n "(cached) $ac_c" 1>&6
7730 else
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 #include <sys/types.h>
7735 #include <sys/wait.h>
7736 #ifndef WEXITSTATUS
7737 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7738 #endif
7739 #ifndef WIFEXITED
7740 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7741 #endif
7742 int main() {
7743 int s;
7744 wait (&s);
7745 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7746 ; return 0; }
7748 if { (eval echo configure:7749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7749 rm -rf conftest*
7750 ac_cv_header_sys_wait_h=yes
7751 else
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7754 rm -rf conftest*
7755 ac_cv_header_sys_wait_h=no
7757 rm -f conftest*
7760 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7761 if test $ac_cv_header_sys_wait_h = yes; then
7762 cat >> confdefs.h <<\EOF
7763 #define HAVE_SYS_WAIT_H 1
7769 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7770 echo "configure:7771: checking for ANSI C header files" >&5
7771 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7772 echo $ac_n "(cached) $ac_c" 1>&6
7773 else
7774 cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7777 #include <stdlib.h>
7778 #include <stdarg.h>
7779 #include <string.h>
7780 #include <float.h>
7782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7783 { (eval echo configure:7784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7785 if test -z "$ac_err"; then
7786 rm -rf conftest*
7787 ac_cv_header_stdc=yes
7788 else
7789 echo "$ac_err" >&5
7790 echo "configure: failed program was:" >&5
7791 cat conftest.$ac_ext >&5
7792 rm -rf conftest*
7793 ac_cv_header_stdc=no
7795 rm -f conftest*
7797 if test $ac_cv_header_stdc = yes; then
7798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7799 cat > conftest.$ac_ext <<EOF
7800 #line 7801 "configure"
7801 #include "confdefs.h"
7802 #include <string.h>
7804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7805 egrep "memchr" >/dev/null 2>&1; then
7807 else
7808 rm -rf conftest*
7809 ac_cv_header_stdc=no
7811 rm -f conftest*
7815 if test $ac_cv_header_stdc = yes; then
7816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7817 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 #include <stdlib.h>
7822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7823 egrep "free" >/dev/null 2>&1; then
7825 else
7826 rm -rf conftest*
7827 ac_cv_header_stdc=no
7829 rm -f conftest*
7833 if test $ac_cv_header_stdc = yes; then
7834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7835 if test "$cross_compiling" = yes; then
7837 else
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 #include <ctype.h>
7842 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7843 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7844 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7845 int main () { int i; for (i = 0; i < 256; i++)
7846 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7847 exit (0); }
7850 if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7851 then
7853 else
7854 echo "configure: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7856 rm -fr conftest*
7857 ac_cv_header_stdc=no
7859 rm -fr conftest*
7865 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7866 if test $ac_cv_header_stdc = yes; then
7867 cat >> confdefs.h <<\EOF
7868 #define STDC_HEADERS 1
7873 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
7874 echo "configure:7875: checking for ssize_t" >&5
7875 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7876 echo $ac_n "(cached) $ac_c" 1>&6
7877 else
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 #include <sys/types.h>
7882 #if STDC_HEADERS
7883 #include <stdlib.h>
7884 #include <stddef.h>
7885 #endif
7887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7888 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7889 rm -rf conftest*
7890 ac_cv_type_ssize_t=yes
7891 else
7892 rm -rf conftest*
7893 ac_cv_type_ssize_t=no
7895 rm -f conftest*
7898 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7899 if test $ac_cv_type_ssize_t = no; then
7900 cat >> confdefs.h <<\EOF
7901 #define ssize_t int
7907 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
7908 echo "configure:7909: checking for in_addr_t" >&5
7909 cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7912 #include <sys/types.h>
7913 #if STDC_HEADERS
7914 #include <stdlib.h>
7915 #include <stddef.h>
7916 #endif
7917 #if HAVE_NETINET_IN_H
7918 #include <netinet/in.h>
7919 #endif
7920 int main() {
7921 in_addr_t foo;
7922 ; return 0; }
7924 if { (eval echo configure:7925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7925 rm -rf conftest*
7926 cat >> confdefs.h <<\EOF
7927 #define HAVE_IN_ADDR_T 1
7930 echo "$ac_t""yes" 1>&6
7931 else
7932 echo "configure: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7934 rm -rf conftest*
7935 echo "$ac_t""no" 1>&6
7937 rm -f conftest*
7939 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
7940 echo "configure:7941: checking whether struct ip_mreq is in netinet/in.h" >&5
7941 cat > conftest.$ac_ext <<EOF
7942 #line 7943 "configure"
7943 #include "confdefs.h"
7944 #include <netinet/in.h>
7945 int main() {
7946 struct ip_mreq mreq;
7947 ; return 0; }
7949 if { (eval echo configure:7950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7950 rm -rf conftest*
7951 cat >> confdefs.h <<\EOF
7952 #define HAVE_STRUCT_IP_MREQ 1
7955 echo "$ac_t""yes" 1>&6
7956 else
7957 echo "configure: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7959 rm -rf conftest*
7960 echo "$ac_t""no" 1>&6
7962 rm -f conftest*
7964 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
7965 echo "configure:7966: checking whether struct ipv6_mreq is in netinet/in.h" >&5
7966 cat > conftest.$ac_ext <<EOF
7967 #line 7968 "configure"
7968 #include "confdefs.h"
7969 #include <netinet/in.h>
7970 int main() {
7971 struct ipv6_mreq mreq6;
7972 ; return 0; }
7974 if { (eval echo configure:7975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7975 rm -rf conftest*
7976 cat >> confdefs.h <<\EOF
7977 #define HAVE_STRUCT_IPV6_MREQ 1
7980 echo "$ac_t""yes" 1>&6
7981 else
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7984 rm -rf conftest*
7985 echo "$ac_t""no" 1>&6
7987 rm -f conftest*
7989 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
7990 echo "configure:7991: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
7991 cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 #include <netinet/in.h>
7995 int main() {
7996 struct sockaddr_in6 addr6;
7997 ; return 0; }
7999 if { (eval echo configure:8000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8000 rm -rf conftest*
8001 cat >> confdefs.h <<\EOF
8002 #define HAVE_INET6 1
8005 echo "$ac_t""yes" 1>&6
8006 else
8007 echo "configure: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8009 rm -rf conftest*
8010 echo "$ac_t""no" 1>&6
8012 rm -f conftest*
8014 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
8015 echo "configure:8016: checking for socklen_t in sys/socket.h" >&5
8016 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure"
8018 #include "confdefs.h"
8019 #define _POSIX_PII_SOCKET
8020 #include <sys/types.h>
8021 #include <sys/socket.h>
8022 int main() {
8023 socklen_t x = 5;
8024 ; return 0; }
8026 if { (eval echo configure:8027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8027 rm -rf conftest*
8028 cat >> confdefs.h <<\EOF
8029 #define HAVE_SOCKLEN_T 1
8032 echo "$ac_t""yes" 1>&6
8033 else
8034 echo "configure: failed program was:" >&5
8035 cat conftest.$ac_ext >&5
8036 rm -rf conftest*
8037 echo "$ac_t""no" 1>&6
8039 rm -f conftest*
8041 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
8042 echo "configure:8043: checking for tm_gmtoff in struct tm" >&5
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8046 #include <time.h>
8047 int main() {
8048 struct tm tim; tim.tm_gmtoff = 0;
8049 ; return 0; }
8051 if { (eval echo configure:8052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8052 rm -rf conftest*
8053 cat >> confdefs.h <<\EOF
8054 #define STRUCT_TM_HAS_GMTOFF 1
8057 echo "$ac_t""yes" 1>&6
8058 else
8059 echo "configure: failed program was:" >&5
8060 cat conftest.$ac_ext >&5
8061 rm -rf conftest*
8062 echo "$ac_t""no" 1>&6
8063 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
8064 echo "configure:8065: checking for global timezone variable" >&5
8065 cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure"
8067 #include "confdefs.h"
8068 #include <time.h>
8069 int main() {
8070 void i(){long z2 = 2*timezone;}
8071 ; return 0; }
8073 if { (eval echo configure:8074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8074 rm -rf conftest*
8075 cat >> confdefs.h <<\EOF
8076 #define HAVE_TIMEZONE 1
8079 echo "$ac_t""yes" 1>&6
8080 else
8081 echo "configure: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8083 rm -rf conftest*
8084 echo "$ac_t""no" 1>&6
8085 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
8086 echo "configure:8087: checking for global _timezone variable" >&5
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 #include <time.h>
8091 int main() {
8092 long z2 = _timezone;
8093 ; return 0; }
8095 if { (eval echo configure:8096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8096 rm -rf conftest*
8097 cat >> confdefs.h <<\EOF
8098 #define HAVE_UNDERSCORE_TIMEZONE 1
8101 echo "$ac_t""yes" 1>&6
8102 else
8103 echo "configure: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8105 rm -rf conftest*
8106 echo "$ac_t""no" 1>&6
8108 rm -f conftest*
8110 rm -f conftest*
8112 rm -f conftest*
8114 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8115 # for constant arguments. Useless!
8116 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8117 echo "configure:8118: checking for working alloca.h" >&5
8118 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8119 echo $ac_n "(cached) $ac_c" 1>&6
8120 else
8121 cat > conftest.$ac_ext <<EOF
8122 #line 8123 "configure"
8123 #include "confdefs.h"
8124 #include <alloca.h>
8125 int main() {
8126 char *p = alloca(2 * sizeof(int));
8127 ; return 0; }
8129 if { (eval echo configure:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8130 rm -rf conftest*
8131 ac_cv_header_alloca_h=yes
8132 else
8133 echo "configure: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8135 rm -rf conftest*
8136 ac_cv_header_alloca_h=no
8138 rm -f conftest*
8141 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8142 if test $ac_cv_header_alloca_h = yes; then
8143 cat >> confdefs.h <<\EOF
8144 #define HAVE_ALLOCA_H 1
8149 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8150 echo "configure:8151: checking for alloca" >&5
8151 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8153 else
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8158 #ifdef __GNUC__
8159 # define alloca __builtin_alloca
8160 #else
8161 # ifdef _MSC_VER
8162 # include <malloc.h>
8163 # define alloca _alloca
8164 # else
8165 # if HAVE_ALLOCA_H
8166 # include <alloca.h>
8167 # else
8168 # ifdef _AIX
8169 #pragma alloca
8170 # else
8171 # ifndef alloca /* predefined by HP cc +Olibcalls */
8172 char *alloca ();
8173 # endif
8174 # endif
8175 # endif
8176 # endif
8177 #endif
8179 int main() {
8180 char *p = (char *) alloca(1);
8181 ; return 0; }
8183 if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8184 rm -rf conftest*
8185 ac_cv_func_alloca_works=yes
8186 else
8187 echo "configure: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8189 rm -rf conftest*
8190 ac_cv_func_alloca_works=no
8192 rm -f conftest*
8195 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8196 if test $ac_cv_func_alloca_works = yes; then
8197 cat >> confdefs.h <<\EOF
8198 #define HAVE_ALLOCA 1
8203 if test $ac_cv_func_alloca_works = no; then
8204 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8205 # that cause trouble. Some versions do not even contain alloca or
8206 # contain a buggy version. If you still want to use their alloca,
8207 # use ar to extract alloca.o from them instead of compiling alloca.c.
8208 ALLOCA=alloca.${ac_objext}
8209 cat >> confdefs.h <<\EOF
8210 #define C_ALLOCA 1
8214 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8215 echo "configure:8216: checking whether alloca needs Cray hooks" >&5
8216 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8218 else
8219 cat > conftest.$ac_ext <<EOF
8220 #line 8221 "configure"
8221 #include "confdefs.h"
8222 #if defined(CRAY) && ! defined(CRAY2)
8223 webecray
8224 #else
8225 wenotbecray
8226 #endif
8229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8230 egrep "webecray" >/dev/null 2>&1; then
8231 rm -rf conftest*
8232 ac_cv_os_cray=yes
8233 else
8234 rm -rf conftest*
8235 ac_cv_os_cray=no
8237 rm -f conftest*
8241 echo "$ac_t""$ac_cv_os_cray" 1>&6
8242 if test $ac_cv_os_cray = yes; then
8243 for ac_func in _getb67 GETB67 getb67; do
8244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8245 echo "configure:8246: checking for $ac_func" >&5
8246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8247 echo $ac_n "(cached) $ac_c" 1>&6
8248 else
8249 cat > conftest.$ac_ext <<EOF
8250 #line 8251 "configure"
8251 #include "confdefs.h"
8252 /* System header to define __stub macros and hopefully few prototypes,
8253 which can conflict with char $ac_func(); below. */
8254 #include <assert.h>
8255 /* Override any gcc2 internal prototype to avoid an error. */
8256 /* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */
8258 char $ac_func();
8260 int main() {
8262 /* The GNU C library defines this for functions which it implements
8263 to always fail with ENOSYS. Some functions are actually named
8264 something starting with __ and the normal name is an alias. */
8265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8266 choke me
8267 #else
8268 $ac_func();
8269 #endif
8271 ; return 0; }
8273 if { (eval echo configure:8274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8274 rm -rf conftest*
8275 eval "ac_cv_func_$ac_func=yes"
8276 else
8277 echo "configure: failed program was:" >&5
8278 cat conftest.$ac_ext >&5
8279 rm -rf conftest*
8280 eval "ac_cv_func_$ac_func=no"
8282 rm -f conftest*
8285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8286 echo "$ac_t""yes" 1>&6
8287 cat >> confdefs.h <<EOF
8288 #define CRAY_STACKSEG_END $ac_func
8291 break
8292 else
8293 echo "$ac_t""no" 1>&6
8296 done
8299 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8300 echo "configure:8301: checking stack direction for C alloca" >&5
8301 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8302 echo $ac_n "(cached) $ac_c" 1>&6
8303 else
8304 if test "$cross_compiling" = yes; then
8305 ac_cv_c_stack_direction=0
8306 else
8307 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8310 find_stack_direction ()
8312 static char *addr = 0;
8313 auto char dummy;
8314 if (addr == 0)
8316 addr = &dummy;
8317 return find_stack_direction ();
8319 else
8320 return (&dummy > addr) ? 1 : -1;
8322 main ()
8324 exit (find_stack_direction() < 0);
8327 if { (eval echo configure:8328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8328 then
8329 ac_cv_c_stack_direction=1
8330 else
8331 echo "configure: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8333 rm -fr conftest*
8334 ac_cv_c_stack_direction=-1
8336 rm -fr conftest*
8341 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8342 cat >> confdefs.h <<EOF
8343 #define STACK_DIRECTION $ac_cv_c_stack_direction
8348 for ac_hdr in unistd.h
8350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8352 echo "configure:8353: checking for $ac_hdr" >&5
8353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8354 echo $ac_n "(cached) $ac_c" 1>&6
8355 else
8356 cat > conftest.$ac_ext <<EOF
8357 #line 8358 "configure"
8358 #include "confdefs.h"
8359 #include <$ac_hdr>
8361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8362 { (eval echo configure:8363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8364 if test -z "$ac_err"; then
8365 rm -rf conftest*
8366 eval "ac_cv_header_$ac_safe=yes"
8367 else
8368 echo "$ac_err" >&5
8369 echo "configure: failed program was:" >&5
8370 cat conftest.$ac_ext >&5
8371 rm -rf conftest*
8372 eval "ac_cv_header_$ac_safe=no"
8374 rm -f conftest*
8376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8377 echo "$ac_t""yes" 1>&6
8378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8379 cat >> confdefs.h <<EOF
8380 #define $ac_tr_hdr 1
8383 else
8384 echo "$ac_t""no" 1>&6
8386 done
8388 for ac_func in getpagesize
8390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8391 echo "configure:8392: checking for $ac_func" >&5
8392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8394 else
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 /* System header to define __stub macros and hopefully few prototypes,
8399 which can conflict with char $ac_func(); below. */
8400 #include <assert.h>
8401 /* Override any gcc2 internal prototype to avoid an error. */
8402 /* We use char because int might match the return type of a gcc2
8403 builtin and then its argument prototype would still apply. */
8404 char $ac_func();
8406 int main() {
8408 /* The GNU C library defines this for functions which it implements
8409 to always fail with ENOSYS. Some functions are actually named
8410 something starting with __ and the normal name is an alias. */
8411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8412 choke me
8413 #else
8414 $ac_func();
8415 #endif
8417 ; return 0; }
8419 if { (eval echo configure:8420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8420 rm -rf conftest*
8421 eval "ac_cv_func_$ac_func=yes"
8422 else
8423 echo "configure: failed program was:" >&5
8424 cat conftest.$ac_ext >&5
8425 rm -rf conftest*
8426 eval "ac_cv_func_$ac_func=no"
8428 rm -f conftest*
8431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8432 echo "$ac_t""yes" 1>&6
8433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8434 cat >> confdefs.h <<EOF
8435 #define $ac_tr_func 1
8438 else
8439 echo "$ac_t""no" 1>&6
8441 done
8443 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8444 echo "configure:8445: checking for working mmap" >&5
8445 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8447 else
8448 if test "$cross_compiling" = yes; then
8449 ac_cv_func_mmap_fixed_mapped=no
8450 else
8451 cat > conftest.$ac_ext <<EOF
8452 #line 8453 "configure"
8453 #include "confdefs.h"
8455 /* Thanks to Mike Haertel and Jim Avera for this test.
8456 Here is a matrix of mmap possibilities:
8457 mmap private not fixed
8458 mmap private fixed at somewhere currently unmapped
8459 mmap private fixed at somewhere already mapped
8460 mmap shared not fixed
8461 mmap shared fixed at somewhere currently unmapped
8462 mmap shared fixed at somewhere already mapped
8463 For private mappings, we should verify that changes cannot be read()
8464 back from the file, nor mmap's back from the file at a different
8465 address. (There have been systems where private was not correctly
8466 implemented like the infamous i386 svr4.0, and systems where the
8467 VM page cache was not coherent with the filesystem buffer cache
8468 like early versions of FreeBSD and possibly contemporary NetBSD.)
8469 For shared mappings, we should conversely verify that changes get
8470 propogated back to all the places they're supposed to be.
8472 Grep wants private fixed already mapped.
8473 The main things grep needs to know about mmap are:
8474 * does it exist and is it safe to write into the mmap'd area
8475 * how to use it (BSD variants) */
8476 #include <sys/types.h>
8477 #include <fcntl.h>
8478 #include <sys/mman.h>
8480 /* This mess was copied from the GNU getpagesize.h. */
8481 #ifndef HAVE_GETPAGESIZE
8482 # ifdef HAVE_UNISTD_H
8483 # include <unistd.h>
8484 # endif
8486 /* Assume that all systems that can run configure have sys/param.h. */
8487 # ifndef HAVE_SYS_PARAM_H
8488 # define HAVE_SYS_PARAM_H 1
8489 # endif
8491 # ifdef _SC_PAGESIZE
8492 # define getpagesize() sysconf(_SC_PAGESIZE)
8493 # else /* no _SC_PAGESIZE */
8494 # ifdef HAVE_SYS_PARAM_H
8495 # include <sys/param.h>
8496 # ifdef EXEC_PAGESIZE
8497 # define getpagesize() EXEC_PAGESIZE
8498 # else /* no EXEC_PAGESIZE */
8499 # ifdef NBPG
8500 # define getpagesize() NBPG * CLSIZE
8501 # ifndef CLSIZE
8502 # define CLSIZE 1
8503 # endif /* no CLSIZE */
8504 # else /* no NBPG */
8505 # ifdef NBPC
8506 # define getpagesize() NBPC
8507 # else /* no NBPC */
8508 # ifdef PAGESIZE
8509 # define getpagesize() PAGESIZE
8510 # endif /* PAGESIZE */
8511 # endif /* no NBPC */
8512 # endif /* no NBPG */
8513 # endif /* no EXEC_PAGESIZE */
8514 # else /* no HAVE_SYS_PARAM_H */
8515 # define getpagesize() 8192 /* punt totally */
8516 # endif /* no HAVE_SYS_PARAM_H */
8517 # endif /* no _SC_PAGESIZE */
8519 #endif /* no HAVE_GETPAGESIZE */
8521 #ifdef __cplusplus
8522 extern "C" { void *malloc(unsigned); }
8523 #else
8524 char *malloc();
8525 #endif
8528 main()
8530 char *data, *data2, *data3;
8531 int i, pagesize;
8532 int fd;
8534 pagesize = getpagesize();
8537 * First, make a file with some known garbage in it.
8539 data = malloc(pagesize);
8540 if (!data)
8541 exit(1);
8542 for (i = 0; i < pagesize; ++i)
8543 *(data + i) = rand();
8544 umask(0);
8545 fd = creat("conftestmmap", 0600);
8546 if (fd < 0)
8547 exit(1);
8548 if (write(fd, data, pagesize) != pagesize)
8549 exit(1);
8550 close(fd);
8553 * Next, try to mmap the file at a fixed address which
8554 * already has something else allocated at it. If we can,
8555 * also make sure that we see the same garbage.
8557 fd = open("conftestmmap", O_RDWR);
8558 if (fd < 0)
8559 exit(1);
8560 data2 = malloc(2 * pagesize);
8561 if (!data2)
8562 exit(1);
8563 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8564 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8565 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8566 exit(1);
8567 for (i = 0; i < pagesize; ++i)
8568 if (*(data + i) != *(data2 + i))
8569 exit(1);
8572 * Finally, make sure that changes to the mapped area
8573 * do not percolate back to the file as seen by read().
8574 * (This is a bug on some variants of i386 svr4.0.)
8576 for (i = 0; i < pagesize; ++i)
8577 *(data2 + i) = *(data2 + i) + 1;
8578 data3 = malloc(pagesize);
8579 if (!data3)
8580 exit(1);
8581 if (read(fd, data3, pagesize) != pagesize)
8582 exit(1);
8583 for (i = 0; i < pagesize; ++i)
8584 if (*(data + i) != *(data3 + i))
8585 exit(1);
8586 close(fd);
8587 unlink("conftestmmap");
8588 exit(0);
8592 if { (eval echo configure:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8593 then
8594 ac_cv_func_mmap_fixed_mapped=yes
8595 else
8596 echo "configure: failed program was:" >&5
8597 cat conftest.$ac_ext >&5
8598 rm -fr conftest*
8599 ac_cv_func_mmap_fixed_mapped=no
8601 rm -fr conftest*
8606 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8607 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8608 cat >> confdefs.h <<\EOF
8609 #define HAVE_MMAP 1
8615 for ac_prog in perl
8617 # Extract the first word of "$ac_prog", so it can be a program name with args.
8618 set dummy $ac_prog; ac_word=$2
8619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8620 echo "configure:8621: checking for $ac_word" >&5
8621 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8623 else
8624 if test -n "$PERL"; then
8625 ac_cv_prog_PERL="$PERL" # Let the user override the test.
8626 else
8627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8628 ac_dummy="$PATH"
8629 for ac_dir in $ac_dummy; do
8630 test -z "$ac_dir" && ac_dir=.
8631 if test -f $ac_dir/$ac_word; then
8632 ac_cv_prog_PERL="$ac_prog"
8633 break
8635 done
8636 IFS="$ac_save_ifs"
8639 PERL="$ac_cv_prog_PERL"
8640 if test -n "$PERL"; then
8641 echo "$ac_t""$PERL" 1>&6
8642 else
8643 echo "$ac_t""no" 1>&6
8646 test -n "$PERL" && break
8647 done
8648 test -n "$PERL" || PERL="false"
8651 SYSDEP_SOURCES=
8652 SIGNAL_HANDLER_AUX=
8654 case "${host}" in
8655 i?86-*-linux*)
8656 SIGNAL_HANDLER=include/i386-signal.h
8658 sparc*-sun-solaris*)
8659 SIGNAL_HANDLER=include/sparc-signal.h
8661 # ia64-*)
8662 # SYSDEP_SOURCES=sysdep/ia64.c
8663 # test -d sysdep || mkdir sysdep
8664 # ;;
8665 ia64-*-linux*)
8666 SIGNAL_HANDLER=include/dwarf2-signal.h
8668 powerpc*-*-linux*)
8669 SIGNAL_HANDLER=include/powerpc-signal.h
8671 alpha*-*-linux*)
8672 SIGNAL_HANDLER=include/dwarf2-signal.h
8674 s390*-*-linux*)
8675 SIGNAL_HANDLER=include/s390-signal.h
8677 x86_64*-*-linux*)
8678 SIGNAL_HANDLER=include/x86_64-signal.h
8679 SIGNAL_HANDLER_AUX=include/i386-signal.h
8681 sparc*-*-linux*)
8682 SIGNAL_HANDLER=include/dwarf2-signal.h
8684 sh-*-linux* | sh[34]*-*-linux*)
8685 SIGNAL_HANDLER=include/dwarf2-signal.h
8687 *mingw*)
8688 SIGNAL_HANDLER=include/win32-signal.h
8690 mips*-*-linux*)
8691 SIGNAL_HANDLER=include/mips-signal.h
8694 SIGNAL_HANDLER=include/default-signal.h
8696 esac
8698 # If we're using sjlj exceptions, forget what we just learned.
8699 if test "$enable_sjlj_exceptions" = yes; then
8700 SIGNAL_HANDLER=include/default-signal.h
8701 SIGNAL_HANDLER_AUX=
8704 # Define here any compiler flags that you need in order to make backtrace() work.
8705 BACKTRACESPEC=
8706 case "${host}" in
8707 x86_64*-*-linux*|i?86-*)
8708 BACKTRACESPEC=-fno-omit-frame-pointer
8710 esac
8715 if test -z "$SIGNAL_HANDLER_AUX"; then
8716 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
8721 if test "${multilib}" = "yes"; then
8722 multilib_arg="--enable-multilib"
8723 else
8724 multilib_arg=
8729 here=`${PWDCMD-pwd}`
8732 # We get this from the environment.
8735 trap '' 1 2 15
8736 cat > confcache <<\EOF
8737 # This file is a shell script that caches the results of configure
8738 # tests run on this system so they can be shared between configure
8739 # scripts and configure runs. It is not useful on other systems.
8740 # If it contains results you don't want to keep, you may remove or edit it.
8742 # By default, configure uses ./config.cache as the cache file,
8743 # creating it if it does not exist already. You can give configure
8744 # the --cache-file=FILE option to use a different cache file; that is
8745 # what configure does when it calls configure scripts in
8746 # subdirectories, so they share the cache.
8747 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8748 # config.status only pays attention to the cache file if you give it the
8749 # --recheck option to rerun configure.
8752 # The following way of writing the cache mishandles newlines in values,
8753 # but we know of no workaround that is simple, portable, and efficient.
8754 # So, don't put newlines in cache variables' values.
8755 # Ultrix sh set writes to stderr and can't be redirected directly,
8756 # and sets the high bit in the cache file unless we assign to the vars.
8757 (set) 2>&1 |
8758 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8759 *ac_space=\ *)
8760 # `set' does not quote correctly, so add quotes (double-quote substitution
8761 # turns \\\\ into \\, and sed turns \\ into \).
8762 sed -n \
8763 -e "s/'/'\\\\''/g" \
8764 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8767 # `set' quotes correctly as required by POSIX, so do not add quotes.
8768 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8770 esac >> confcache
8771 if cmp -s $cache_file confcache; then
8773 else
8774 if test -w $cache_file; then
8775 echo "updating cache $cache_file"
8776 cat confcache > $cache_file
8777 else
8778 echo "not updating unwritable cache $cache_file"
8781 rm -f confcache
8783 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8786 # Let make expand exec_prefix.
8787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8789 # Any assignment to VPATH causes Sun make to only execute
8790 # the first set of double-colon rules, so remove it if not needed.
8791 # If there is a colon in the path, we need to keep it.
8792 if test "x$srcdir" = x.; then
8793 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8796 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8798 DEFS=-DHAVE_CONFIG_H
8800 # Without the "./", some shells look in PATH for config.status.
8801 : ${CONFIG_STATUS=./config.status}
8803 echo creating $CONFIG_STATUS
8804 rm -f $CONFIG_STATUS
8805 cat > $CONFIG_STATUS <<EOF
8806 #! /bin/sh
8807 # Generated automatically by configure.
8808 # Run this file to recreate the current configuration.
8809 # This directory was configured as follows,
8810 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8812 # $0 $ac_configure_args
8814 # Compiler output produced by configure, useful for debugging
8815 # configure, is in ./config.log if it exists.
8817 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8818 for ac_option
8820 case "\$ac_option" in
8821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8822 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8823 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8824 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8825 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8826 exit 0 ;;
8827 -help | --help | --hel | --he | --h)
8828 echo "\$ac_cs_usage"; exit 0 ;;
8829 *) echo "\$ac_cs_usage"; exit 1 ;;
8830 esac
8831 done
8833 ac_given_srcdir=$srcdir
8834 ac_given_INSTALL="$INSTALL"
8836 trap 'rm -fr `echo "Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8838 cat >> $CONFIG_STATUS <<EOF
8840 # Protect against being on the right side of a sed subst in config.status.
8841 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8842 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8843 $ac_vpsub
8844 $extrasub
8845 s%@SHELL@%$SHELL%g
8846 s%@CFLAGS@%$CFLAGS%g
8847 s%@CPPFLAGS@%$CPPFLAGS%g
8848 s%@CXXFLAGS@%$CXXFLAGS%g
8849 s%@FFLAGS@%$FFLAGS%g
8850 s%@DEFS@%$DEFS%g
8851 s%@LDFLAGS@%$LDFLAGS%g
8852 s%@LIBS@%$LIBS%g
8853 s%@exec_prefix@%$exec_prefix%g
8854 s%@prefix@%$prefix%g
8855 s%@program_transform_name@%$program_transform_name%g
8856 s%@bindir@%$bindir%g
8857 s%@sbindir@%$sbindir%g
8858 s%@libexecdir@%$libexecdir%g
8859 s%@datadir@%$datadir%g
8860 s%@sysconfdir@%$sysconfdir%g
8861 s%@sharedstatedir@%$sharedstatedir%g
8862 s%@localstatedir@%$localstatedir%g
8863 s%@libdir@%$libdir%g
8864 s%@includedir@%$includedir%g
8865 s%@oldincludedir@%$oldincludedir%g
8866 s%@infodir@%$infodir%g
8867 s%@mandir@%$mandir%g
8868 s%@LN_S@%$LN_S%g
8869 s%@libgcj_basedir@%$libgcj_basedir%g
8870 s%@mkinstalldirs@%$mkinstalldirs%g
8871 s%@host@%$host%g
8872 s%@host_alias@%$host_alias%g
8873 s%@host_cpu@%$host_cpu%g
8874 s%@host_vendor@%$host_vendor%g
8875 s%@host_os@%$host_os%g
8876 s%@target@%$target%g
8877 s%@target_alias@%$target_alias%g
8878 s%@target_cpu@%$target_cpu%g
8879 s%@target_vendor@%$target_vendor%g
8880 s%@target_os@%$target_os%g
8881 s%@build@%$build%g
8882 s%@build_alias@%$build_alias%g
8883 s%@build_cpu@%$build_cpu%g
8884 s%@build_vendor@%$build_vendor%g
8885 s%@build_os@%$build_os%g
8886 s%@CC@%$CC%g
8887 s%@glibjava_CXX@%$glibjava_CXX%g
8888 s%@CXX@%$CXX%g
8889 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8890 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8891 s%@INSTALL_DATA@%$INSTALL_DATA%g
8892 s%@PACKAGE@%$PACKAGE%g
8893 s%@VERSION@%$VERSION%g
8894 s%@ACLOCAL@%$ACLOCAL%g
8895 s%@AUTOCONF@%$AUTOCONF%g
8896 s%@AUTOMAKE@%$AUTOMAKE%g
8897 s%@AUTOHEADER@%$AUTOHEADER%g
8898 s%@MAKEINFO@%$MAKEINFO%g
8899 s%@SET_MAKE@%$SET_MAKE%g
8900 s%@AS@%$AS%g
8901 s%@AR@%$AR%g
8902 s%@RANLIB@%$RANLIB%g
8903 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8904 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8905 s%@MAINT@%$MAINT%g
8906 s%@EXEEXT@%$EXEEXT%g
8907 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
8908 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
8909 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
8910 s%@INCLTDL@%$INCLTDL%g
8911 s%@LIBLTDL@%$LIBLTDL%g
8912 s%@DIRLTDL@%$DIRLTDL%g
8913 s%@OBJEXT@%$OBJEXT%g
8914 s%@STRIP@%$STRIP%g
8915 s%@LIBTOOL@%$LIBTOOL%g
8916 s%@CXXCPP@%$CXXCPP%g
8917 s%@subdirs@%$subdirs%g
8918 s%@COMPPATH@%$COMPPATH%g
8919 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
8920 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
8921 s%@ONESTEP_TRUE@%$ONESTEP_TRUE%g
8922 s%@ONESTEP_FALSE@%$ONESTEP_FALSE%g
8923 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
8924 s%@INTERPRETER@%$INTERPRETER%g
8925 s%@LIBFFI@%$LIBFFI%g
8926 s%@LIBFFIINCS@%$LIBFFIINCS%g
8927 s%@EXTRA_CC_FILES@%$EXTRA_CC_FILES%g
8928 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
8929 s%@CPP@%$CPP%g
8930 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
8931 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
8932 s%@ZLIBSPEC@%$ZLIBSPEC%g
8933 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
8934 s%@X_CFLAGS@%$X_CFLAGS%g
8935 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8936 s%@X_LIBS@%$X_LIBS%g
8937 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8938 s%@TOOLKIT@%$TOOLKIT%g
8939 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
8940 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
8941 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
8942 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
8943 s%@GTK_CAIRO_TRUE@%$GTK_CAIRO_TRUE%g
8944 s%@GTK_CAIRO_FALSE@%$GTK_CAIRO_FALSE%g
8945 s%@PKG_CONFIG@%$PKG_CONFIG%g
8946 s%@CAIRO_CFLAGS@%$CAIRO_CFLAGS%g
8947 s%@CAIRO_LIBS@%$CAIRO_LIBS%g
8948 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
8949 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
8950 s%@GCLIBS@%$GCLIBS%g
8951 s%@GCINCS@%$GCINCS%g
8952 s%@GCDEPS@%$GCDEPS%g
8953 s%@GCOBJS@%$GCOBJS%g
8954 s%@GCSPEC@%$GCSPEC%g
8955 s%@JC1GCSPEC@%$JC1GCSPEC%g
8956 s%@GCTESTSPEC@%$GCTESTSPEC%g
8957 s%@THREADLIBS@%$THREADLIBS%g
8958 s%@THREADINCS@%$THREADINCS%g
8959 s%@THREADDEPS@%$THREADDEPS%g
8960 s%@THREADOBJS@%$THREADOBJS%g
8961 s%@THREADSPEC@%$THREADSPEC%g
8962 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
8963 s%@THREADCXXFLAGS@%$THREADCXXFLAGS%g
8964 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
8965 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
8966 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
8967 s%@tool_include_dir@%$tool_include_dir%g
8968 s%@gcc_version@%$gcc_version%g
8969 s%@LIBICONV@%$LIBICONV%g
8970 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8971 s%@GTK_LIBS@%$GTK_LIBS%g
8972 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8973 s%@GLIB_LIBS@%$GLIB_LIBS%g
8974 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
8975 s%@LIBART_LIBS@%$LIBART_LIBS%g
8976 s%@GCJ@%$GCJ%g
8977 s%@GCJFLAGS@%$GCJFLAGS%g
8978 s%@ZLIBS@%$ZLIBS%g
8979 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
8980 s%@ZINCS@%$ZINCS%g
8981 s%@DIVIDESPEC@%$DIVIDESPEC%g
8982 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
8983 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
8984 s%@IEEESPEC@%$IEEESPEC%g
8985 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
8986 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
8987 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
8988 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
8989 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
8990 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
8991 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
8992 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
8993 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
8994 s%@toolexecdir@%$toolexecdir%g
8995 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
8996 s%@toolexeclibdir@%$toolexeclibdir%g
8997 s%@GCJVERSION@%$GCJVERSION%g
8998 s%@ALLOCA@%$ALLOCA%g
8999 s%@PERL@%$PERL%g
9000 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
9001 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
9002 s%@here@%$here%g
9004 CEOF
9007 cat >> $CONFIG_STATUS <<\EOF
9009 # Split the substitutions into bite-sized pieces for seds with
9010 # small command number limits, like on Digital OSF/1 and HP-UX.
9011 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9012 ac_file=1 # Number of current file.
9013 ac_beg=1 # First line for current file.
9014 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9015 ac_more_lines=:
9016 ac_sed_cmds=""
9017 while $ac_more_lines; do
9018 if test $ac_beg -gt 1; then
9019 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9020 else
9021 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9023 if test ! -s conftest.s$ac_file; then
9024 ac_more_lines=false
9025 rm -f conftest.s$ac_file
9026 else
9027 if test -z "$ac_sed_cmds"; then
9028 ac_sed_cmds="sed -f conftest.s$ac_file"
9029 else
9030 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9032 ac_file=`expr $ac_file + 1`
9033 ac_beg=$ac_end
9034 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9036 done
9037 if test -z "$ac_sed_cmds"; then
9038 ac_sed_cmds=cat
9042 cat >> $CONFIG_STATUS <<EOF
9044 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
9046 cat >> $CONFIG_STATUS <<\EOF
9047 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9048 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9049 case "$ac_file" in
9050 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9051 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9052 *) ac_file_in="${ac_file}.in" ;;
9053 esac
9055 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9057 # Remove last slash and all that follows it. Not all systems have dirname.
9058 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9059 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9060 # The file is in a subdirectory.
9061 test ! -d "$ac_dir" && mkdir "$ac_dir"
9062 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9063 # A "../" for each directory in $ac_dir_suffix.
9064 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9065 else
9066 ac_dir_suffix= ac_dots=
9069 case "$ac_given_srcdir" in
9070 .) srcdir=.
9071 if test -z "$ac_dots"; then top_srcdir=.
9072 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9073 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9074 *) # Relative path.
9075 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9076 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9077 esac
9079 case "$ac_given_INSTALL" in
9080 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9081 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9082 esac
9084 echo creating "$ac_file"
9085 rm -f "$ac_file"
9086 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9087 case "$ac_file" in
9088 *Makefile*) ac_comsub="1i\\
9089 # $configure_input" ;;
9090 *) ac_comsub= ;;
9091 esac
9093 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9094 sed -e "$ac_comsub
9095 s%@configure_input@%$configure_input%g
9096 s%@srcdir@%$srcdir%g
9097 s%@top_srcdir@%$top_srcdir%g
9098 s%@INSTALL@%$INSTALL%g
9099 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9100 fi; done
9101 rm -f conftest.s*
9103 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9104 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9106 # ac_d sets the value in "#define NAME VALUE" lines.
9107 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9108 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9109 ac_dC='\3'
9110 ac_dD='%g'
9111 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9112 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9113 ac_uB='\([ ]\)%\1#\2define\3'
9114 ac_uC=' '
9115 ac_uD='\4%g'
9116 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9117 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9118 ac_eB='$%\1#\2define\3'
9119 ac_eC=' '
9120 ac_eD='%g'
9122 if test "${CONFIG_HEADERS+set}" != set; then
9124 cat >> $CONFIG_STATUS <<EOF
9125 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
9127 cat >> $CONFIG_STATUS <<\EOF
9129 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9131 case "$ac_file" in
9132 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9133 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9134 *) ac_file_in="${ac_file}.in" ;;
9135 esac
9137 echo creating $ac_file
9139 rm -f conftest.frag conftest.in conftest.out
9140 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9141 cat $ac_file_inputs > conftest.in
9145 # Transform confdefs.h into a sed script conftest.vals that substitutes
9146 # the proper values into config.h.in to produce config.h. And first:
9147 # Protect against being on the right side of a sed subst in config.status.
9148 # Protect against being in an unquoted here document in config.status.
9149 rm -f conftest.vals
9150 cat > conftest.hdr <<\EOF
9151 s/[\\&%]/\\&/g
9152 s%[\\$`]%\\&%g
9153 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9154 s%ac_d%ac_u%gp
9155 s%ac_u%ac_e%gp
9157 sed -n -f conftest.hdr confdefs.h > conftest.vals
9158 rm -f conftest.hdr
9160 # This sed command replaces #undef with comments. This is necessary, for
9161 # example, in the case of _POSIX_SOURCE, which is predefined and required
9162 # on some systems where configure will not decide to define it.
9163 cat >> conftest.vals <<\EOF
9164 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9167 # Break up conftest.vals because some shells have a limit on
9168 # the size of here documents, and old seds have small limits too.
9170 rm -f conftest.tail
9171 while :
9173 ac_lines=`grep -c . conftest.vals`
9174 # grep -c gives empty output for an empty file on some AIX systems.
9175 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9176 # Write a limited-size here document to conftest.frag.
9177 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9178 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9179 echo 'CEOF
9180 sed -f conftest.frag conftest.in > conftest.out
9181 rm -f conftest.in
9182 mv conftest.out conftest.in
9183 ' >> $CONFIG_STATUS
9184 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9185 rm -f conftest.vals
9186 mv conftest.tail conftest.vals
9187 done
9188 rm -f conftest.vals
9190 cat >> $CONFIG_STATUS <<\EOF
9191 rm -f conftest.frag conftest.h
9192 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9193 cat conftest.in >> conftest.h
9194 rm -f conftest.in
9195 if cmp -s $ac_file conftest.h 2>/dev/null; then
9196 echo "$ac_file is unchanged"
9197 rm -f conftest.h
9198 else
9199 # Remove last slash and all that follows it. Not all systems have dirname.
9200 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9201 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9202 # The file is in a subdirectory.
9203 test ! -d "$ac_dir" && mkdir "$ac_dir"
9205 rm -f $ac_file
9206 mv conftest.h $ac_file
9208 fi; done
9212 cat >> $CONFIG_STATUS <<EOF
9213 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc java/net/natInetAddress${PLATFORMNET}.cc java/net/natNetworkInterface${PLATFORMNET}.cc gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc gnu/java/nio/natPipeImpl${PLATFORM}.cc gnu/java/nio/natSelectorImpl${PLATFORM}.cc gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER $SIGNAL_HANDLER_AUX"
9214 ac_dests="include/platform.h java/io/natFile.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc java/net/natInetAddress.cc java/net/natNetworkInterface.cc gnu/java/net/natPlainSocketImpl.cc gnu/java/net/natPlainDatagramSocketImpl.cc gnu/java/nio/natPipeImpl.cc gnu/java/nio/natSelectorImpl.cc gnu/java/nio/channels/natFileChannelImpl.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h include/java-signal-aux.h"
9217 cat >> $CONFIG_STATUS <<\EOF
9218 srcdir=$ac_given_srcdir
9219 while test -n "$ac_sources"; do
9220 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9221 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9223 echo "linking $srcdir/$ac_source to $ac_dest"
9225 if test ! -r $srcdir/$ac_source; then
9226 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9228 rm -f $ac_dest
9230 # Make relative symlinks.
9231 # Remove last slash and all that follows it. Not all systems have dirname.
9232 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9233 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9234 # The dest file is in a subdirectory.
9235 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9236 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9237 # A "../" for each directory in $ac_dest_dir_suffix.
9238 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9239 else
9240 ac_dest_dir_suffix= ac_dots=
9243 case "$srcdir" in
9244 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9245 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9246 esac
9248 # Make a symlink if possible; otherwise try a hard link.
9249 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9250 ln $srcdir/$ac_source $ac_dest; then :
9251 else
9252 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9254 done
9256 cat >> $CONFIG_STATUS <<EOF
9258 srcdir=${srcdir}
9259 host=${host}
9260 target=${target}
9261 with_multisubdir=${with_multisubdir}
9262 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9263 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9264 libgcj_basedir=${libgcj_basedir}
9265 CC="${CC}"
9266 CXX="${CXX}"
9267 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9270 cat >> $CONFIG_STATUS <<\EOF
9271 am_indx=1
9272 for am_file in include/config.h gcj/libgcj-config.h; do
9273 case " $CONFIG_HEADERS " in
9274 *" $am_file "*)
9275 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9277 esac
9278 am_indx=`expr "$am_indx" + 1`
9279 done
9280 # Only add multilib support code if we just rebuilt top-level Makefile.
9281 case " $CONFIG_FILES " in
9282 *" Makefile "*)
9283 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9284 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9286 esac
9288 # Make subdirectories and `.d' files. Look in both srcdir and
9289 # builddir for the .java files.
9290 h=`${PWDCMD-pwd}`
9291 : > deps.mk
9292 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
9293 find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
9294 fgrep -v testsuite | \
9295 sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
9296 while read f; do
9297 echo "include $f" >> deps.mk
9298 test -f $f || {
9300 d=`echo $f | sed -e 's,/[^/]*$,,'`
9302 if test ! -d $d; then
9303 $libgcj_basedir/../mkinstalldirs $d
9305 echo > $f
9307 done
9309 exit 0
9311 chmod +x $CONFIG_STATUS
9312 rm -fr confdefs* $ac_clean_files
9313 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9315 if test "$no_recursion" != yes; then
9317 # Remove --cache-file and --srcdir arguments so they do not pile up.
9318 ac_sub_configure_args=
9319 ac_prev=
9320 for ac_arg in $ac_configure_args; do
9321 if test -n "$ac_prev"; then
9322 ac_prev=
9323 continue
9325 case "$ac_arg" in
9326 -cache-file | --cache-file | --cache-fil | --cache-fi \
9327 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9328 ac_prev=cache_file ;;
9329 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9330 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9333 ac_prev=srcdir ;;
9334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9336 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9337 esac
9338 done
9340 for ac_config_dir in $DIRLTDL; do
9342 # Do not complain, so a configure script can configure whichever
9343 # parts of a large source tree are present.
9344 if test ! -d $srcdir/$ac_config_dir; then
9345 continue
9348 echo configuring in $ac_config_dir
9350 case "$srcdir" in
9351 .) ;;
9353 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9354 else
9355 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9358 esac
9360 ac_popdir=`pwd`
9361 cd $ac_config_dir
9363 # A "../" for each directory in /$ac_config_dir.
9364 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9366 case "$srcdir" in
9367 .) # No --srcdir option. We are building in place.
9368 ac_sub_srcdir=$srcdir ;;
9369 /*) # Absolute path.
9370 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9371 *) # Relative path.
9372 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9373 esac
9375 # Check for guested configure; otherwise get Cygnus style configure.
9376 if test -f $ac_sub_srcdir/configure; then
9377 ac_sub_configure=$ac_sub_srcdir/configure
9378 elif test -f $ac_sub_srcdir/configure.in; then
9379 ac_sub_configure=$ac_configure
9380 else
9381 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9382 ac_sub_configure=
9385 # The recursion is here.
9386 if test -n "$ac_sub_configure"; then
9388 # Make the cache file name correct relative to the subdirectory.
9389 case "$cache_file" in
9390 /*) ac_sub_cache_file=$cache_file ;;
9391 *) # Relative path.
9392 ac_sub_cache_file="$ac_dots$cache_file" ;;
9393 esac
9394 case "$ac_given_INSTALL" in
9395 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9396 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9397 esac
9399 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9400 # The eval makes quoting arguments work.
9401 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9402 then :
9403 else
9404 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
9408 cd $ac_popdir
9409 done