* Makefile.in (rtlanal.o): Depend on $(TM_P_H).
[official-gcc.git] / libjava / configure
blobb728650afed6cfc996a70ea68bb7e3cadd4141c0
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build many library versions (default)"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-fast-character prefer speed over size for Character"
38 ac_help="$ac_help
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
41 ac_help="$ac_help
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
44 ac_help="$ac_help
45 --enable-libgcj-debug enable runtime debugging code"
46 ac_help="$ac_help
47 --enable-interpreter enable interpreter"
48 ac_help="$ac_help
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
50 ac_help="$ac_help
51 --disable-java-net disable java.net"
52 ac_help="$ac_help
53 --without-libffi don't use libffi"
54 ac_help="$ac_help
55 --disable-jvmpi disable JVMPI support"
56 ac_help="$ac_help
57 --with-ecos enable runtime eCos target support"
58 ac_help="$ac_help
59 --with-system-zlib use installed libz"
60 ac_help="$ac_help
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
62 ac_help="$ac_help
63 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
64 ac_help="$ac_help
65 --with-x use the X Window System"
66 ac_help="$ac_help
67 --enable-java-awt list of AWT peer implementations to be built"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
72 build=NONE
73 cache_file=./config.cache
74 exec_prefix=NONE
75 host=NONE
76 no_create=
77 nonopt=NONE
78 no_recursion=
79 prefix=NONE
80 program_prefix=NONE
81 program_suffix=NONE
82 program_transform_name=s,x,x,
83 silent=
84 site=
85 sitefile=
86 srcdir=
87 target=NONE
88 verbose=
89 x_includes=NONE
90 x_libraries=NONE
91 bindir='${exec_prefix}/bin'
92 sbindir='${exec_prefix}/sbin'
93 libexecdir='${exec_prefix}/libexec'
94 datadir='${prefix}/share'
95 sysconfdir='${prefix}/etc'
96 sharedstatedir='${prefix}/com'
97 localstatedir='${prefix}/var'
98 libdir='${exec_prefix}/lib'
99 includedir='${prefix}/include'
100 oldincludedir='/usr/include'
101 infodir='${prefix}/info'
102 mandir='${prefix}/man'
104 # Initialize some other variables.
105 subdirs=
106 MFLAGS= MAKEFLAGS=
107 SHELL=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
109 ac_max_here_lines=12
111 ac_prev=
112 for ac_option
115 # If the previous option needs an argument, assign it.
116 if test -n "$ac_prev"; then
117 eval "$ac_prev=\$ac_option"
118 ac_prev=
119 continue
122 case "$ac_option" in
123 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 *) ac_optarg= ;;
125 esac
127 # Accept the important Cygnus configure options, so we can diagnose typos.
129 case "$ac_option" in
131 -bindir | --bindir | --bindi | --bind | --bin | --bi)
132 ac_prev=bindir ;;
133 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
134 bindir="$ac_optarg" ;;
136 -build | --build | --buil | --bui | --bu)
137 ac_prev=build ;;
138 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
139 build="$ac_optarg" ;;
141 -cache-file | --cache-file | --cache-fil | --cache-fi \
142 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
143 ac_prev=cache_file ;;
144 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
145 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
146 cache_file="$ac_optarg" ;;
148 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149 ac_prev=datadir ;;
150 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151 | --da=*)
152 datadir="$ac_optarg" ;;
154 -disable-* | --disable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}=no" ;;
163 -enable-* | --enable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 case "$ac_option" in
171 *=*) ;;
172 *) ac_optarg=yes ;;
173 esac
174 eval "enable_${ac_feature}='$ac_optarg'" ;;
176 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
177 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
178 | --exec | --exe | --ex)
179 ac_prev=exec_prefix ;;
180 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
181 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
182 | --exec=* | --exe=* | --ex=*)
183 exec_prefix="$ac_optarg" ;;
185 -gas | --gas | --ga | --g)
186 # Obsolete; use --with-gas.
187 with_gas=yes ;;
189 -help | --help | --hel | --he)
190 # Omit some internal or obsolete options to make the list less imposing.
191 # This message is too long to be a string in the A/UX 3.1 sh.
192 cat << EOF
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
195 Configuration:
196 --cache-file=FILE cache test results in FILE
197 --help print this message
198 --no-create do not create output files
199 --quiet, --silent do not print \`checking...' messages
200 --site-file=FILE use FILE as the site file
201 --version print the version of autoconf that created configure
202 Directory and file names:
203 --prefix=PREFIX install architecture-independent files in PREFIX
204 [$ac_default_prefix]
205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
206 [same as prefix]
207 --bindir=DIR user executables in DIR [EPREFIX/bin]
208 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
209 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
210 --datadir=DIR read-only architecture-independent data in DIR
211 [PREFIX/share]
212 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
213 --sharedstatedir=DIR modifiable architecture-independent data in DIR
214 [PREFIX/com]
215 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
216 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
217 --includedir=DIR C header files in DIR [PREFIX/include]
218 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
219 --infodir=DIR info documentation in DIR [PREFIX/info]
220 --mandir=DIR man documentation in DIR [PREFIX/man]
221 --srcdir=DIR find the sources in DIR [configure dir or ..]
222 --program-prefix=PREFIX prepend PREFIX to installed program names
223 --program-suffix=SUFFIX append SUFFIX to installed program names
224 --program-transform-name=PROGRAM
225 run sed PROGRAM on installed program names
227 cat << EOF
228 Host type:
229 --build=BUILD configure for building on BUILD [BUILD=HOST]
230 --host=HOST configure for HOST [guessed]
231 --target=TARGET configure for TARGET [TARGET=HOST]
232 Features and packages:
233 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
234 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
235 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
236 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
237 --x-includes=DIR X include files are in DIR
238 --x-libraries=DIR X library files are in DIR
240 if test -n "$ac_help"; then
241 echo "--enable and --with options recognized:$ac_help"
243 exit 0 ;;
245 -host | --host | --hos | --ho)
246 ac_prev=host ;;
247 -host=* | --host=* | --hos=* | --ho=*)
248 host="$ac_optarg" ;;
250 -includedir | --includedir | --includedi | --included | --include \
251 | --includ | --inclu | --incl | --inc)
252 ac_prev=includedir ;;
253 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
254 | --includ=* | --inclu=* | --incl=* | --inc=*)
255 includedir="$ac_optarg" ;;
257 -infodir | --infodir | --infodi | --infod | --info | --inf)
258 ac_prev=infodir ;;
259 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
260 infodir="$ac_optarg" ;;
262 -libdir | --libdir | --libdi | --libd)
263 ac_prev=libdir ;;
264 -libdir=* | --libdir=* | --libdi=* | --libd=*)
265 libdir="$ac_optarg" ;;
267 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
268 | --libexe | --libex | --libe)
269 ac_prev=libexecdir ;;
270 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
271 | --libexe=* | --libex=* | --libe=*)
272 libexecdir="$ac_optarg" ;;
274 -localstatedir | --localstatedir | --localstatedi | --localstated \
275 | --localstate | --localstat | --localsta | --localst \
276 | --locals | --local | --loca | --loc | --lo)
277 ac_prev=localstatedir ;;
278 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
279 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
280 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
281 localstatedir="$ac_optarg" ;;
283 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
284 ac_prev=mandir ;;
285 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
286 mandir="$ac_optarg" ;;
288 -nfp | --nfp | --nf)
289 # Obsolete; use --without-fp.
290 with_fp=no ;;
292 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
293 | --no-cr | --no-c)
294 no_create=yes ;;
296 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
297 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
298 no_recursion=yes ;;
300 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
301 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
302 | --oldin | --oldi | --old | --ol | --o)
303 ac_prev=oldincludedir ;;
304 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
305 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
306 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
307 oldincludedir="$ac_optarg" ;;
309 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
310 ac_prev=prefix ;;
311 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
312 prefix="$ac_optarg" ;;
314 -program-prefix | --program-prefix | --program-prefi | --program-pref \
315 | --program-pre | --program-pr | --program-p)
316 ac_prev=program_prefix ;;
317 -program-prefix=* | --program-prefix=* | --program-prefi=* \
318 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
319 program_prefix="$ac_optarg" ;;
321 -program-suffix | --program-suffix | --program-suffi | --program-suff \
322 | --program-suf | --program-su | --program-s)
323 ac_prev=program_suffix ;;
324 -program-suffix=* | --program-suffix=* | --program-suffi=* \
325 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
326 program_suffix="$ac_optarg" ;;
328 -program-transform-name | --program-transform-name \
329 | --program-transform-nam | --program-transform-na \
330 | --program-transform-n | --program-transform- \
331 | --program-transform | --program-transfor \
332 | --program-transfo | --program-transf \
333 | --program-trans | --program-tran \
334 | --progr-tra | --program-tr | --program-t)
335 ac_prev=program_transform_name ;;
336 -program-transform-name=* | --program-transform-name=* \
337 | --program-transform-nam=* | --program-transform-na=* \
338 | --program-transform-n=* | --program-transform-=* \
339 | --program-transform=* | --program-transfor=* \
340 | --program-transfo=* | --program-transf=* \
341 | --program-trans=* | --program-tran=* \
342 | --progr-tra=* | --program-tr=* | --program-t=*)
343 program_transform_name="$ac_optarg" ;;
345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
346 | -silent | --silent | --silen | --sile | --sil)
347 silent=yes ;;
349 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
350 ac_prev=sbindir ;;
351 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
352 | --sbi=* | --sb=*)
353 sbindir="$ac_optarg" ;;
355 -sharedstatedir | --sharedstatedir | --sharedstatedi \
356 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
357 | --sharedst | --shareds | --shared | --share | --shar \
358 | --sha | --sh)
359 ac_prev=sharedstatedir ;;
360 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
361 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
362 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
363 | --sha=* | --sh=*)
364 sharedstatedir="$ac_optarg" ;;
366 -site | --site | --sit)
367 ac_prev=site ;;
368 -site=* | --site=* | --sit=*)
369 site="$ac_optarg" ;;
371 -site-file | --site-file | --site-fil | --site-fi | --site-f)
372 ac_prev=sitefile ;;
373 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
374 sitefile="$ac_optarg" ;;
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
377 ac_prev=srcdir ;;
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
389 ac_prev=target ;;
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
394 verbose=yes ;;
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
398 exit 0 ;;
400 -with-* | --with-*)
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 case "$ac_option" in
408 *=*) ;;
409 *) ac_optarg=yes ;;
410 esac
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
422 --x)
423 # Obsolete; use --with-x.
424 with_x=yes ;;
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450 nonopt="$ac_option"
453 esac
454 done
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
463 # 0 standard input
464 # 1 file creation
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
471 exec 6>/dev/null
472 else
473 exec 6>&1
475 exec 5>./config.log
477 echo "\
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
480 " 1>&5
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
484 ac_configure_args=
485 for ac_arg
487 case "$ac_arg" in
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
495 esac
496 done
498 # NLS nuisances.
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
511 echo > confdefs.h
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=java/lang/System.java
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
521 ac_prog=$0
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
524 srcdir=$ac_confdir
525 if test ! -r $srcdir/$ac_unique_file; then
526 srcdir=..
528 else
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 else
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$sitefile"; then
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 else
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 else
550 CONFIG_SITE="$sitefile"
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
555 . "$ac_site_file"
557 done
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
561 . $cache_file
562 else
563 echo "creating cache $cache_file"
564 > $cache_file
567 ac_ext=c
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
574 ac_exeext=
575 ac_objext=o
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
579 ac_n= ac_c='
580 ' ac_t=' '
581 else
582 ac_n=-n ac_c= ac_t=
584 else
585 ac_n= ac_c='\c' ac_t=
590 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
591 echo "configure:592: checking whether ln -s works" >&5
592 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
593 echo $ac_n "(cached) $ac_c" 1>&6
594 else
595 rm -f conftestdata
596 if ln -s X conftestdata 2>/dev/null
597 then
598 rm -f conftestdata
599 ac_cv_prog_LN_S="ln -s"
600 else
601 ac_cv_prog_LN_S=ln
604 LN_S="$ac_cv_prog_LN_S"
605 if test "$ac_cv_prog_LN_S" = "ln -s"; then
606 echo "$ac_t""yes" 1>&6
607 else
608 echo "$ac_t""no" 1>&6
612 # Check whether --with-target-subdir or --without-target-subdir was given.
613 if test "${with_target_subdir+set}" = set; then
614 withval="$with_target_subdir"
618 # Check whether --with-cross-host or --without-cross-host was given.
619 if test "${with_cross_host+set}" = set; then
620 withval="$with_cross_host"
625 # Find a good install program. We prefer a C program (faster),
626 # so one script is as good as another. But avoid the broken or
627 # incompatible versions:
628 # SysV /etc/install, /usr/sbin/install
629 # SunOS /usr/etc/install
630 # IRIX /sbin/install
631 # AIX /bin/install
632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
635 # ./install, which can be erroneously created by make from ./install.sh.
636 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
637 echo "configure:638: checking for a BSD compatible install" >&5
638 if test -z "$INSTALL"; then
639 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
641 else
642 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
643 for ac_dir in $PATH; do
644 # Account for people who put trailing slashes in PATH elements.
645 case "$ac_dir/" in
646 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
648 # OSF1 and SCO ODT 3.0 have their own names for install.
649 # Don't use installbsd from OSF since it installs stuff as root
650 # by default.
651 for ac_prog in ginstall scoinst install; do
652 if test -f $ac_dir/$ac_prog; then
653 if test $ac_prog = install &&
654 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
655 # AIX install. It has an incompatible calling convention.
657 else
658 ac_cv_path_install="$ac_dir/$ac_prog -c"
659 break 2
662 done
664 esac
665 done
666 IFS="$ac_save_IFS"
669 if test "${ac_cv_path_install+set}" = set; then
670 INSTALL="$ac_cv_path_install"
671 else
672 # As a last resort, use the slow shell script. We don't cache a
673 # path for INSTALL within a source directory, because that will
674 # break other packages using the cache if that directory is
675 # removed, or if the path is relative.
676 INSTALL="$ac_install_sh"
679 echo "$ac_t""$INSTALL" 1>&6
681 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
682 # It thinks the first close brace ends the variable substitution.
683 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
685 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
687 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
689 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
690 echo "configure:691: checking whether build environment is sane" >&5
691 # Just in case
692 sleep 1
693 echo timestamp > conftestfile
694 # Do `set' in a subshell so we don't clobber the current shell's
695 # arguments. Must try -L first in case configure is actually a
696 # symlink; some systems play weird games with the mod time of symlinks
697 # (eg FreeBSD returns the mod time of the symlink's containing
698 # directory).
699 if (
700 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
701 if test "$*" = "X"; then
702 # -L didn't work.
703 set X `ls -t $srcdir/configure conftestfile`
705 if test "$*" != "X $srcdir/configure conftestfile" \
706 && test "$*" != "X conftestfile $srcdir/configure"; then
708 # If neither matched, then we have a broken ls. This can happen
709 # if, for instance, CONFIG_SHELL is bash and it inherits a
710 # broken ls alias from the environment. This has actually
711 # happened. Such a system could not be considered "sane".
712 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
713 alias in your environment" 1>&2; exit 1; }
716 test "$2" = conftestfile
718 then
719 # Ok.
721 else
722 { echo "configure: error: newly created file is older than distributed files!
723 Check your system clock" 1>&2; exit 1; }
725 rm -f conftest*
726 echo "$ac_t""yes" 1>&6
727 if test "$program_transform_name" = s,x,x,; then
728 program_transform_name=
729 else
730 # Double any \ or $. echo might interpret backslashes.
731 cat <<\EOF_SED > conftestsed
732 s,\\,\\\\,g; s,\$,$$,g
733 EOF_SED
734 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
735 rm -f conftestsed
737 test "$program_prefix" != NONE &&
738 program_transform_name="s,^,${program_prefix},; $program_transform_name"
739 # Use a double $ so make ignores it.
740 test "$program_suffix" != NONE &&
741 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
743 # sed with no file args requires a program.
744 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
746 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
747 echo "configure:748: checking whether ${MAKE-make} sets \${MAKE}" >&5
748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
749 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
751 else
752 cat > conftestmake <<\EOF
753 all:
754 @echo 'ac_maketemp="${MAKE}"'
756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
757 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
758 if test -n "$ac_maketemp"; then
759 eval ac_cv_prog_make_${ac_make}_set=yes
760 else
761 eval ac_cv_prog_make_${ac_make}_set=no
763 rm -f conftestmake
765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
766 echo "$ac_t""yes" 1>&6
767 SET_MAKE=
768 else
769 echo "$ac_t""no" 1>&6
770 SET_MAKE="MAKE=${MAKE-make}"
773 if test $host != $build; then
774 ac_tool_prefix=${host_alias}-
775 else
776 ac_tool_prefix=
779 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
780 echo "configure:781: checking for Cygwin environment" >&5
781 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
783 else
784 cat > conftest.$ac_ext <<EOF
785 #line 786 "configure"
786 #include "confdefs.h"
788 int main() {
790 #ifndef __CYGWIN__
791 #define __CYGWIN__ __CYGWIN32__
792 #endif
793 return __CYGWIN__;
794 ; return 0; }
796 if { (eval echo configure:797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
797 rm -rf conftest*
798 ac_cv_cygwin=yes
799 else
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
802 rm -rf conftest*
803 ac_cv_cygwin=no
805 rm -f conftest*
806 rm -f conftest*
809 echo "$ac_t""$ac_cv_cygwin" 1>&6
810 CYGWIN=
811 test "$ac_cv_cygwin" = yes && CYGWIN=yes
812 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
813 echo "configure:814: checking for mingw32 environment" >&5
814 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
816 else
817 cat > conftest.$ac_ext <<EOF
818 #line 819 "configure"
819 #include "confdefs.h"
821 int main() {
822 return __MINGW32__;
823 ; return 0; }
825 if { (eval echo configure:826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
826 rm -rf conftest*
827 ac_cv_mingw32=yes
828 else
829 echo "configure: failed program was:" >&5
830 cat conftest.$ac_ext >&5
831 rm -rf conftest*
832 ac_cv_mingw32=no
834 rm -f conftest*
835 rm -f conftest*
838 echo "$ac_t""$ac_cv_mingw32" 1>&6
839 MINGW32=
840 test "$ac_cv_mingw32" = yes && MINGW32=yes
842 # Check whether --enable-multilib or --disable-multilib was given.
843 if test "${enable_multilib+set}" = set; then
844 enableval="$enable_multilib"
845 case "${enableval}" in
846 yes) multilib=yes ;;
847 no) multilib=no ;;
848 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
849 esac
850 else
851 multilib=yes
855 # When building with srcdir == objdir, links to the source files will
856 # be created in directories within the target_subdir. We have to
857 # adjust toplevel_srcdir accordingly, so that configure finds
858 # install-sh and other auxiliary files that live in the top-level
859 # source directory.
860 if test "${srcdir}" = "."; then
861 if test -z "${with_target_subdir}"; then
862 toprel=".."
863 else
864 if test "${with_target_subdir}" != "."; then
865 toprel="${with_multisrctop}../.."
866 else
867 toprel="${with_multisrctop}.."
870 else
871 toprel=".."
874 libgcj_basedir=$srcdir/$toprel/./libjava
877 ac_aux_dir=
878 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
879 if test -f $ac_dir/install-sh; then
880 ac_aux_dir=$ac_dir
881 ac_install_sh="$ac_aux_dir/install-sh -c"
882 break
883 elif test -f $ac_dir/install.sh; then
884 ac_aux_dir=$ac_dir
885 ac_install_sh="$ac_aux_dir/install.sh -c"
886 break
888 done
889 if test -z "$ac_aux_dir"; then
890 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
892 ac_config_guess=$ac_aux_dir/config.guess
893 ac_config_sub=$ac_aux_dir/config.sub
894 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
896 if :; then :; else
897 # This overrides the previous occurrence for automake, but not for
898 # autoconf, which is exactly what we want.
899 ac_aux_dir=
900 for ac_dir in .. $srcdir/..; do
901 if test -f $ac_dir/install-sh; then
902 ac_aux_dir=$ac_dir
903 ac_install_sh="$ac_aux_dir/install-sh -c"
904 break
905 elif test -f $ac_dir/install.sh; then
906 ac_aux_dir=$ac_dir
907 ac_install_sh="$ac_aux_dir/install.sh -c"
908 break
910 done
911 if test -z "$ac_aux_dir"; then
912 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
914 ac_config_guess=$ac_aux_dir/config.guess
915 ac_config_sub=$ac_aux_dir/config.sub
916 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
920 # This works around an automake problem.
921 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
925 # Do some error checking and defaulting for the host and target type.
926 # The inputs are:
927 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
929 # The rules are:
930 # 1. You are not allowed to specify --host, --target, and nonopt at the
931 # same time.
932 # 2. Host defaults to nonopt.
933 # 3. If nonopt is not specified, then host defaults to the current host,
934 # as determined by config.guess.
935 # 4. Target and build default to nonopt.
936 # 5. If nonopt is not specified, then target and build default to host.
938 # The aliases save the names the user supplied, while $host etc.
939 # will get canonicalized.
940 case $host---$target---$nonopt in
941 NONE---*---* | *---NONE---* | *---*---NONE) ;;
942 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
943 esac
946 # Make sure we can run config.sub.
947 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
948 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
951 echo $ac_n "checking host system type""... $ac_c" 1>&6
952 echo "configure:953: checking host system type" >&5
954 host_alias=$host
955 case "$host_alias" in
956 NONE)
957 case $nonopt in
958 NONE)
959 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
960 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
961 fi ;;
962 *) host_alias=$nonopt ;;
963 esac ;;
964 esac
966 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
967 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
968 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
969 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
970 echo "$ac_t""$host" 1>&6
972 echo $ac_n "checking target system type""... $ac_c" 1>&6
973 echo "configure:974: checking target system type" >&5
975 target_alias=$target
976 case "$target_alias" in
977 NONE)
978 case $nonopt in
979 NONE) target_alias=$host_alias ;;
980 *) target_alias=$nonopt ;;
981 esac ;;
982 esac
984 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
985 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
986 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
987 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
988 echo "$ac_t""$target" 1>&6
990 echo $ac_n "checking build system type""... $ac_c" 1>&6
991 echo "configure:992: checking build system type" >&5
993 build_alias=$build
994 case "$build_alias" in
995 NONE)
996 case $nonopt in
997 NONE) build_alias=$host_alias ;;
998 *) build_alias=$nonopt ;;
999 esac ;;
1000 esac
1002 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1003 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1004 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1005 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1006 echo "$ac_t""$build" 1>&6
1008 test "$host_alias" != "$target_alias" &&
1009 test "$program_prefix$program_suffix$program_transform_name" = \
1010 NONENONEs,x,x, &&
1011 program_prefix=${target_alias}-
1017 # Extract the first word of "gcc", so it can be a program name with args.
1018 set dummy gcc; ac_word=$2
1019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1020 echo "configure:1021: checking for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1023 else
1024 if test -n "$CC"; then
1025 ac_cv_prog_CC="$CC" # Let the user override the test.
1026 else
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1028 ac_dummy="$PATH"
1029 for ac_dir in $ac_dummy; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_prog_CC="gcc"
1033 break
1035 done
1036 IFS="$ac_save_ifs"
1039 CC="$ac_cv_prog_CC"
1040 if test -n "$CC"; then
1041 echo "$ac_t""$CC" 1>&6
1042 else
1043 echo "$ac_t""no" 1>&6
1046 if test -z "$CC"; then
1047 # Extract the first word of "cc", so it can be a program name with args.
1048 set dummy cc; 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_prog_rejected=no
1059 ac_dummy="$PATH"
1060 for ac_dir in $ac_dummy; do
1061 test -z "$ac_dir" && ac_dir=.
1062 if test -f $ac_dir/$ac_word; then
1063 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1064 ac_prog_rejected=yes
1065 continue
1067 ac_cv_prog_CC="cc"
1068 break
1070 done
1071 IFS="$ac_save_ifs"
1072 if test $ac_prog_rejected = yes; then
1073 # We found a bogon in the path, so make sure we never use it.
1074 set dummy $ac_cv_prog_CC
1075 shift
1076 if test $# -gt 0; then
1077 # We chose a different compiler from the bogus one.
1078 # However, it has the same basename, so the bogon will be chosen
1079 # first if we set CC to just the basename; use the full file name.
1080 shift
1081 set dummy "$ac_dir/$ac_word" "$@"
1082 shift
1083 ac_cv_prog_CC="$@"
1088 CC="$ac_cv_prog_CC"
1089 if test -n "$CC"; then
1090 echo "$ac_t""$CC" 1>&6
1091 else
1092 echo "$ac_t""no" 1>&6
1095 if test -z "$CC"; then
1096 case "`uname -s`" in
1097 *win32* | *WIN32*)
1098 # Extract the first word of "cl", so it can be a program name with args.
1099 set dummy cl; ac_word=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1104 else
1105 if test -n "$CC"; then
1106 ac_cv_prog_CC="$CC" # Let the user override the test.
1107 else
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1109 ac_dummy="$PATH"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1113 ac_cv_prog_CC="cl"
1114 break
1116 done
1117 IFS="$ac_save_ifs"
1120 CC="$ac_cv_prog_CC"
1121 if test -n "$CC"; then
1122 echo "$ac_t""$CC" 1>&6
1123 else
1124 echo "$ac_t""no" 1>&6
1127 esac
1129 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1133 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1134 echo "configure:1135: checking whether we are using GNU C" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1137 else
1138 cat > conftest.c <<EOF
1139 #ifdef __GNUC__
1140 yes;
1141 #endif
1143 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1144 ac_cv_prog_gcc=yes
1145 else
1146 ac_cv_prog_gcc=no
1150 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1152 if test $ac_cv_prog_gcc = yes; then
1153 GCC=yes
1154 else
1155 GCC=
1158 ac_test_CFLAGS="${CFLAGS+set}"
1159 ac_save_CFLAGS="$CFLAGS"
1160 CFLAGS=
1161 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether ${CC-cc} accepts -g" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1165 else
1166 echo 'void f(){}' > conftest.c
1167 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1168 ac_cv_prog_cc_g=yes
1169 else
1170 ac_cv_prog_cc_g=no
1172 rm -f conftest*
1176 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1177 if test "$ac_test_CFLAGS" = set; then
1178 CFLAGS="$ac_save_CFLAGS"
1179 elif test $ac_cv_prog_cc_g = yes; then
1180 if test "$GCC" = yes; then
1181 CFLAGS="-g -O2"
1182 else
1183 CFLAGS="-g"
1185 else
1186 if test "$GCC" = yes; then
1187 CFLAGS="-O2"
1188 else
1189 CFLAGS=
1193 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1195 # Extract the first word of "$ac_prog", so it can be a program name with args.
1196 set dummy $ac_prog; ac_word=$2
1197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1198 echo "configure:1199: checking for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1201 else
1202 if test -n "$CXX"; then
1203 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1204 else
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1206 ac_dummy="$PATH"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_CXX="$ac_prog"
1211 break
1213 done
1214 IFS="$ac_save_ifs"
1217 CXX="$ac_cv_prog_CXX"
1218 if test -n "$CXX"; then
1219 echo "$ac_t""$CXX" 1>&6
1220 else
1221 echo "$ac_t""no" 1>&6
1224 test -n "$CXX" && break
1225 done
1226 test -n "$CXX" || CXX="gcc"
1230 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether we are using GNU C++" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1234 else
1235 cat > conftest.C <<EOF
1236 #ifdef __GNUC__
1237 yes;
1238 #endif
1240 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1241 ac_cv_prog_gxx=yes
1242 else
1243 ac_cv_prog_gxx=no
1247 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1249 if test $ac_cv_prog_gxx = yes; then
1250 GXX=yes
1251 else
1252 GXX=
1255 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1256 ac_save_CXXFLAGS="$CXXFLAGS"
1257 CXXFLAGS=
1258 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether ${CXX-g++} accepts -g" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1262 else
1263 echo 'void f(){}' > conftest.cc
1264 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1265 ac_cv_prog_cxx_g=yes
1266 else
1267 ac_cv_prog_cxx_g=no
1269 rm -f conftest*
1273 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1274 if test "$ac_test_CXXFLAGS" = set; then
1275 CXXFLAGS="$ac_save_CXXFLAGS"
1276 elif test $ac_cv_prog_cxx_g = yes; then
1277 if test "$GXX" = yes; then
1278 CXXFLAGS="-g -O2"
1279 else
1280 CXXFLAGS="-g"
1282 else
1283 if test "$GXX" = yes; then
1284 CXXFLAGS="-O2"
1285 else
1286 CXXFLAGS=
1291 version=0.0.7
1293 PACKAGE=libjava
1295 VERSION=$version
1297 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1298 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1300 cat >> confdefs.h <<EOF
1301 #define PACKAGE "$PACKAGE"
1304 cat >> confdefs.h <<EOF
1305 #define VERSION "$VERSION"
1310 missing_dir=`cd $ac_aux_dir && pwd`
1311 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1312 echo "configure:1313: checking for working aclocal" >&5
1313 # Run test in a subshell; some versions of sh will print an error if
1314 # an executable is not found, even if stderr is redirected.
1315 # Redirect stdin to placate older versions of autoconf. Sigh.
1316 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1317 ACLOCAL=aclocal
1318 echo "$ac_t""found" 1>&6
1319 else
1320 ACLOCAL="$missing_dir/missing aclocal"
1321 echo "$ac_t""missing" 1>&6
1324 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1325 echo "configure:1326: checking for working autoconf" >&5
1326 # Run test in a subshell; some versions of sh will print an error if
1327 # an executable is not found, even if stderr is redirected.
1328 # Redirect stdin to placate older versions of autoconf. Sigh.
1329 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1330 AUTOCONF=autoconf
1331 echo "$ac_t""found" 1>&6
1332 else
1333 AUTOCONF="$missing_dir/missing autoconf"
1334 echo "$ac_t""missing" 1>&6
1337 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1338 echo "configure:1339: checking for working automake" >&5
1339 # Run test in a subshell; some versions of sh will print an error if
1340 # an executable is not found, even if stderr is redirected.
1341 # Redirect stdin to placate older versions of autoconf. Sigh.
1342 if (automake --version) < /dev/null > /dev/null 2>&1; then
1343 AUTOMAKE=automake
1344 echo "$ac_t""found" 1>&6
1345 else
1346 AUTOMAKE="$missing_dir/missing automake"
1347 echo "$ac_t""missing" 1>&6
1350 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1351 echo "configure:1352: checking for working autoheader" >&5
1352 # Run test in a subshell; some versions of sh will print an error if
1353 # an executable is not found, even if stderr is redirected.
1354 # Redirect stdin to placate older versions of autoconf. Sigh.
1355 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1356 AUTOHEADER=autoheader
1357 echo "$ac_t""found" 1>&6
1358 else
1359 AUTOHEADER="$missing_dir/missing autoheader"
1360 echo "$ac_t""missing" 1>&6
1363 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1364 echo "configure:1365: checking for working makeinfo" >&5
1365 # Run test in a subshell; some versions of sh will print an error if
1366 # an executable is not found, even if stderr is redirected.
1367 # Redirect stdin to placate older versions of autoconf. Sigh.
1368 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1369 MAKEINFO=makeinfo
1370 echo "$ac_t""found" 1>&6
1371 else
1372 MAKEINFO="$missing_dir/missing makeinfo"
1373 echo "$ac_t""missing" 1>&6
1378 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1379 # run it explicitly here, it will be run implicitly before
1380 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1381 # be run before AC_CANONICAL_HOST.
1382 echo $ac_n "checking build system type""... $ac_c" 1>&6
1383 echo "configure:1384: checking build system type" >&5
1385 build_alias=$build
1386 case "$build_alias" in
1387 NONE)
1388 case $nonopt in
1389 NONE) build_alias=$host_alias ;;
1390 *) build_alias=$nonopt ;;
1391 esac ;;
1392 esac
1394 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1395 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398 echo "$ac_t""$build" 1>&6
1401 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}as; ac_word=$2
1403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1404 echo "configure:1405: checking for $ac_word" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1407 else
1408 if test -n "$AS"; then
1409 ac_cv_prog_AS="$AS" # Let the user override the test.
1410 else
1411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1412 ac_dummy="$PATH"
1413 for ac_dir in $ac_dummy; do
1414 test -z "$ac_dir" && ac_dir=.
1415 if test -f $ac_dir/$ac_word; then
1416 ac_cv_prog_AS="${ac_tool_prefix}as"
1417 break
1419 done
1420 IFS="$ac_save_ifs"
1421 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1424 AS="$ac_cv_prog_AS"
1425 if test -n "$AS"; then
1426 echo "$ac_t""$AS" 1>&6
1427 else
1428 echo "$ac_t""no" 1>&6
1433 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1434 set dummy ${ac_tool_prefix}ar; ac_word=$2
1435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1436 echo "configure:1437: checking for $ac_word" >&5
1437 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1439 else
1440 if test -n "$AR"; then
1441 ac_cv_prog_AR="$AR" # Let the user override the test.
1442 else
1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1444 ac_dummy="$PATH"
1445 for ac_dir in $ac_dummy; do
1446 test -z "$ac_dir" && ac_dir=.
1447 if test -f $ac_dir/$ac_word; then
1448 ac_cv_prog_AR="${ac_tool_prefix}ar"
1449 break
1451 done
1452 IFS="$ac_save_ifs"
1453 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1456 AR="$ac_cv_prog_AR"
1457 if test -n "$AR"; then
1458 echo "$ac_t""$AR" 1>&6
1459 else
1460 echo "$ac_t""no" 1>&6
1465 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1466 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472 if test -n "$RANLIB"; then
1473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1474 else
1475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1476 ac_dummy="$PATH"
1477 for ac_dir in $ac_dummy; do
1478 test -z "$ac_dir" && ac_dir=.
1479 if test -f $ac_dir/$ac_word; then
1480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1481 break
1483 done
1484 IFS="$ac_save_ifs"
1487 RANLIB="$ac_cv_prog_RANLIB"
1488 if test -n "$RANLIB"; then
1489 echo "$ac_t""$RANLIB" 1>&6
1490 else
1491 echo "$ac_t""no" 1>&6
1495 if test -z "$ac_cv_prog_RANLIB"; then
1496 if test -n "$ac_tool_prefix"; then
1497 # Extract the first word of "ranlib", so it can be a program name with args.
1498 set dummy ranlib; ac_word=$2
1499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1500 echo "configure:1501: checking for $ac_word" >&5
1501 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1503 else
1504 if test -n "$RANLIB"; then
1505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1506 else
1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1508 ac_dummy="$PATH"
1509 for ac_dir in $ac_dummy; do
1510 test -z "$ac_dir" && ac_dir=.
1511 if test -f $ac_dir/$ac_word; then
1512 ac_cv_prog_RANLIB="ranlib"
1513 break
1515 done
1516 IFS="$ac_save_ifs"
1517 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1520 RANLIB="$ac_cv_prog_RANLIB"
1521 if test -n "$RANLIB"; then
1522 echo "$ac_t""$RANLIB" 1>&6
1523 else
1524 echo "$ac_t""no" 1>&6
1527 else
1528 RANLIB=":"
1533 # Find a good install program. We prefer a C program (faster),
1534 # so one script is as good as another. But avoid the broken or
1535 # incompatible versions:
1536 # SysV /etc/install, /usr/sbin/install
1537 # SunOS /usr/etc/install
1538 # IRIX /sbin/install
1539 # AIX /bin/install
1540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1543 # ./install, which can be erroneously created by make from ./install.sh.
1544 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1545 echo "configure:1546: checking for a BSD compatible install" >&5
1546 if test -z "$INSTALL"; then
1547 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549 else
1550 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1551 for ac_dir in $PATH; do
1552 # Account for people who put trailing slashes in PATH elements.
1553 case "$ac_dir/" in
1554 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1558 # by default.
1559 for ac_prog in ginstall scoinst install; do
1560 if test -f $ac_dir/$ac_prog; then
1561 if test $ac_prog = install &&
1562 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1563 # AIX install. It has an incompatible calling convention.
1565 else
1566 ac_cv_path_install="$ac_dir/$ac_prog -c"
1567 break 2
1570 done
1572 esac
1573 done
1574 IFS="$ac_save_IFS"
1577 if test "${ac_cv_path_install+set}" = set; then
1578 INSTALL="$ac_cv_path_install"
1579 else
1580 # As a last resort, use the slow shell script. We don't cache a
1581 # path for INSTALL within a source directory, because that will
1582 # break other packages using the cache if that directory is
1583 # removed, or if the path is relative.
1584 INSTALL="$ac_install_sh"
1587 echo "$ac_t""$INSTALL" 1>&6
1589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1590 # It thinks the first close brace ends the variable substitution.
1591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1598 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1599 echo "configure:1600: checking whether to enable maintainer-specific portions of Makefiles" >&5
1600 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1601 if test "${enable_maintainer_mode+set}" = set; then
1602 enableval="$enable_maintainer_mode"
1603 USE_MAINTAINER_MODE=$enableval
1604 else
1605 USE_MAINTAINER_MODE=no
1608 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1611 if test $USE_MAINTAINER_MODE = yes; then
1612 MAINTAINER_MODE_TRUE=
1613 MAINTAINER_MODE_FALSE='#'
1614 else
1615 MAINTAINER_MODE_TRUE='#'
1616 MAINTAINER_MODE_FALSE=
1618 MAINT=$MAINTAINER_MODE_TRUE
1622 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1623 # at least currently, we never actually build a program, so we never
1624 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1625 # fails, because we are probably configuring with a cross compiler
1626 # which cant create executables. So we include AC_EXEEXT to keep
1627 # automake happy, but we dont execute it, since we dont care about
1628 # the result.
1629 if false; then
1630 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1631 # to nothing, so nothing would remain between `then' and `fi' if it
1632 # were not for the `:' below.
1636 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1637 echo "configure:1638: checking for executable suffix" >&5
1638 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1640 else
1641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1642 ac_cv_exeext=.exe
1643 else
1644 rm -f conftest*
1645 echo 'int main () { return 0; }' > conftest.$ac_ext
1646 ac_cv_exeext=
1647 if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1648 for file in conftest.*; do
1649 case $file in
1650 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1651 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1652 esac
1653 done
1654 else
1655 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1657 rm -f conftest*
1658 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1662 EXEEXT=""
1663 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1664 echo "$ac_t""${ac_cv_exeext}" 1>&6
1665 ac_exeext=$EXEEXT
1669 # configure.host sets the following important variables
1670 # libgcj_cflags - host specific C compiler flags
1671 # libgcj_cxxflags - host specific C++ compiler flags
1672 # libgcj_javaflags - host specific Java compiler flags
1674 libgcj_cflags=
1675 libgcj_cxxflags=
1676 libgcj_javaflags=
1678 . ${srcdir}/configure.host
1680 LIBGCJ_CFLAGS="${libgcj_cflags}"
1681 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1682 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1692 # Only use libltdl for native builds.
1693 if test -z "${with_cross_host}"; then
1694 case $enable_ltdl_convenience in
1695 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1696 "") enable_ltdl_convenience=yes
1697 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1698 esac
1699 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1700 INCLTDL='-I${top_srcdir}/''libltdl'
1703 DIRLTDL=libltdl
1704 cat >> confdefs.h <<\EOF
1705 #define USE_LTDL 1
1708 # Sigh. Libtool's macro doesn't do the right thing.
1709 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1710 # FIXME: this is a hack.
1711 sub_auxdir="`cd $ac_aux_dir && pwd`"
1712 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1717 # Check whether --enable-shared or --disable-shared was given.
1718 if test "${enable_shared+set}" = set; then
1719 enableval="$enable_shared"
1720 p=${PACKAGE-default}
1721 case $enableval in
1722 yes) enable_shared=yes ;;
1723 no) enable_shared=no ;;
1725 enable_shared=no
1726 # Look at the argument we got. We use all the common list separators.
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1728 for pkg in $enableval; do
1729 if test "X$pkg" = "X$p"; then
1730 enable_shared=yes
1732 done
1733 IFS="$ac_save_ifs"
1735 esac
1736 else
1737 enable_shared=yes
1740 # Check whether --enable-static or --disable-static was given.
1741 if test "${enable_static+set}" = set; then
1742 enableval="$enable_static"
1743 p=${PACKAGE-default}
1744 case $enableval in
1745 yes) enable_static=yes ;;
1746 no) enable_static=no ;;
1748 enable_static=no
1749 # Look at the argument we got. We use all the common list separators.
1750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1751 for pkg in $enableval; do
1752 if test "X$pkg" = "X$p"; then
1753 enable_static=yes
1755 done
1756 IFS="$ac_save_ifs"
1758 esac
1759 else
1760 enable_static=yes
1763 # Check whether --enable-fast-install or --disable-fast-install was given.
1764 if test "${enable_fast_install+set}" = set; then
1765 enableval="$enable_fast_install"
1766 p=${PACKAGE-default}
1767 case $enableval in
1768 yes) enable_fast_install=yes ;;
1769 no) enable_fast_install=no ;;
1771 enable_fast_install=no
1772 # Look at the argument we got. We use all the common list separators.
1773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1774 for pkg in $enableval; do
1775 if test "X$pkg" = "X$p"; then
1776 enable_fast_install=yes
1778 done
1779 IFS="$ac_save_ifs"
1781 esac
1782 else
1783 enable_fast_install=yes
1786 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1787 if test "${with_gnu_ld+set}" = set; then
1788 withval="$with_gnu_ld"
1789 test "$withval" = no || with_gnu_ld=yes
1790 else
1791 with_gnu_ld=no
1794 ac_prog=ld
1795 if test "$GCC" = yes; then
1796 # Check if gcc -print-prog-name=ld gives a path.
1797 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1798 echo "configure:1799: checking for ld used by GCC" >&5
1799 case $host in
1800 *-*-mingw*)
1801 # gcc leaves a trailing carriage return which upsets mingw
1802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1805 esac
1806 case $ac_prog in
1807 # Accept absolute paths.
1808 [\\/]* | [A-Za-z]:[\\/]*)
1809 re_direlt='/[^/][^/]*/\.\./'
1810 # Canonicalize the path of ld
1811 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1813 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1814 done
1815 test -z "$LD" && LD="$ac_prog"
1818 # If it fails, then pretend we aren't using GCC.
1819 ac_prog=ld
1822 # If it is relative, then search for the first ld in PATH.
1823 with_gnu_ld=unknown
1825 esac
1826 elif test "$with_gnu_ld" = yes; then
1827 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking for GNU ld" >&5
1829 else
1830 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1831 echo "configure:1832: checking for non-GNU ld" >&5
1833 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1835 else
1836 if test -z "$LD"; then
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1838 for ac_dir in $PATH; do
1839 test -z "$ac_dir" && ac_dir=.
1840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1841 lt_cv_path_LD="$ac_dir/$ac_prog"
1842 # Check to see if the program is GNU ld. I'd rather use --version,
1843 # but apparently some GNU ld's only accept -v.
1844 # Break only if it was the GNU/non-GNU ld that we prefer.
1845 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1846 test "$with_gnu_ld" != no && break
1847 else
1848 test "$with_gnu_ld" != yes && break
1851 done
1852 IFS="$ac_save_ifs"
1853 else
1854 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1858 LD="$lt_cv_path_LD"
1859 if test -n "$LD"; then
1860 echo "$ac_t""$LD" 1>&6
1861 else
1862 echo "$ac_t""no" 1>&6
1864 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1865 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1866 echo "configure:1867: checking if the linker ($LD) is GNU ld" >&5
1867 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1869 else
1870 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1871 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1872 lt_cv_prog_gnu_ld=yes
1873 else
1874 lt_cv_prog_gnu_ld=no
1878 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1879 with_gnu_ld=$lt_cv_prog_gnu_ld
1882 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $LD option to reload object files" >&5
1884 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887 lt_cv_ld_reload_flag='-r'
1890 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1891 reload_flag=$lt_cv_ld_reload_flag
1892 test -n "$reload_flag" && reload_flag=" $reload_flag"
1894 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1895 echo "configure:1896: checking for BSD-compatible nm" >&5
1896 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 if test -n "$NM"; then
1900 # Let the user override the test.
1901 lt_cv_path_NM="$NM"
1902 else
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1904 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1905 test -z "$ac_dir" && ac_dir=.
1906 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1907 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1908 # Check to see if the nm accepts a BSD-compat flag.
1909 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1910 # nm: unknown option "B" ignored
1911 # Tru64's nm complains that /dev/null is an invalid object file
1912 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1913 lt_cv_path_NM="$tmp_nm -B"
1914 break
1915 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1916 lt_cv_path_NM="$tmp_nm -p"
1917 break
1918 else
1919 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1920 continue # so that we can try to find one that supports BSD flags
1923 done
1924 IFS="$ac_save_ifs"
1925 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1929 NM="$lt_cv_path_NM"
1930 echo "$ac_t""$NM" 1>&6
1932 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1933 echo "configure:1934: checking how to recognise dependant libraries" >&5
1934 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1936 else
1937 lt_cv_file_magic_cmd='$MAGIC_CMD'
1938 lt_cv_file_magic_test_file=
1939 lt_cv_deplibs_check_method='unknown'
1940 # Need to set the preceding variable on all platforms that support
1941 # interlibrary dependencies.
1942 # 'none' -- dependencies not supported.
1943 # `unknown' -- same as none, but documents that we really don't know.
1944 # 'pass_all' -- all dependencies passed with no checks.
1945 # 'test_compile' -- check by making test program.
1946 # 'file_magic [regex]' -- check by looking for files in library path
1947 # which responds to the $file_magic_cmd with a given egrep regex.
1948 # If you have `file' or equivalent on your system and you're not sure
1949 # whether `pass_all' will *always* work, you probably want this one.
1951 case $host_os in
1952 aix*)
1953 lt_cv_deplibs_check_method=pass_all
1956 beos*)
1957 lt_cv_deplibs_check_method=pass_all
1960 bsdi4*)
1961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1962 lt_cv_file_magic_cmd='/usr/bin/file -L'
1963 lt_cv_file_magic_test_file=/shlib/libc.so
1966 cygwin* | mingw* |pw32*)
1967 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1968 lt_cv_file_magic_cmd='$OBJDUMP -f'
1971 darwin* | rhapsody*)
1972 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1973 lt_cv_file_magic_cmd='/usr/bin/file -L'
1974 case "$host_os" in
1975 rhapsody* | darwin1.012)
1976 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1978 *) # Darwin 1.3 on
1979 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1981 esac
1984 freebsd* )
1985 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1986 case $host_cpu in
1987 i*86 )
1988 # Not sure whether the presence of OpenBSD here was a mistake.
1989 # Let's accept both of them until this is cleared up.
1990 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1991 lt_cv_file_magic_cmd=/usr/bin/file
1992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1994 esac
1995 else
1996 lt_cv_deplibs_check_method=pass_all
2000 gnu*)
2001 lt_cv_deplibs_check_method=pass_all
2004 hpux10.20*|hpux11*)
2005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2006 lt_cv_file_magic_cmd=/usr/bin/file
2007 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2010 irix5* | irix6*)
2011 case $host_os in
2012 irix5*)
2013 # this will be overridden with pass_all, but let us keep it just in case
2014 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2017 case $LD in
2018 *-32|*"-32 ") libmagic=32-bit;;
2019 *-n32|*"-n32 ") libmagic=N32;;
2020 *-64|*"-64 ") libmagic=64-bit;;
2021 *) libmagic=never-match;;
2022 esac
2023 # this will be overridden with pass_all, but let us keep it just in case
2024 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2026 esac
2027 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2028 lt_cv_deplibs_check_method=pass_all
2031 # This must be Linux ELF.
2032 linux-gnu*)
2033 case $host_cpu in
2034 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2035 lt_cv_deplibs_check_method=pass_all ;;
2037 # glibc up to 2.1.1 does not perform some relocations on ARM
2038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2039 esac
2040 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2043 netbsd*)
2044 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2045 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2046 else
2047 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2051 newsos6)
2052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2053 lt_cv_file_magic_cmd=/usr/bin/file
2054 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2057 osf3* | osf4* | osf5*)
2058 # this will be overridden with pass_all, but let us keep it just in case
2059 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2060 lt_cv_file_magic_test_file=/shlib/libc.so
2061 lt_cv_deplibs_check_method=pass_all
2064 sco3.2v5*)
2065 lt_cv_deplibs_check_method=pass_all
2068 solaris*)
2069 lt_cv_deplibs_check_method=pass_all
2070 lt_cv_file_magic_test_file=/lib/libc.so
2073 sysv5uw[78]* | sysv4*uw2*)
2074 lt_cv_deplibs_check_method=pass_all
2077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2078 case $host_vendor in
2079 ncr)
2080 lt_cv_deplibs_check_method=pass_all
2082 motorola)
2083 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]'
2084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2086 esac
2088 esac
2092 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2093 file_magic_cmd=$lt_cv_file_magic_cmd
2094 deplibs_check_method=$lt_cv_deplibs_check_method
2096 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2097 echo "configure:2098: checking for object suffix" >&5
2098 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 rm -f conftest*
2102 echo 'int i = 1;' > conftest.$ac_ext
2103 if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2104 for ac_file in conftest.*; do
2105 case $ac_file in
2106 *.c) ;;
2107 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2108 esac
2109 done
2110 else
2111 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2113 rm -f conftest*
2116 echo "$ac_t""$ac_cv_objext" 1>&6
2117 OBJEXT=$ac_cv_objext
2118 ac_objext=$ac_cv_objext
2120 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2122 # Only perform the check for file, if the check method requires it
2123 case $deplibs_check_method in
2124 file_magic*)
2125 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2126 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2127 echo "configure:2128: checking for ${ac_tool_prefix}file" >&5
2128 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2130 else
2131 case $MAGIC_CMD in
2133 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2135 ?:/*)
2136 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2139 ac_save_MAGIC_CMD="$MAGIC_CMD"
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2141 ac_dummy="/usr/bin:$PATH"
2142 for ac_dir in $ac_dummy; do
2143 test -z "$ac_dir" && ac_dir=.
2144 if test -f $ac_dir/${ac_tool_prefix}file; then
2145 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2146 if test -n "$file_magic_test_file"; then
2147 case $deplibs_check_method in
2148 "file_magic "*)
2149 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2152 egrep "$file_magic_regex" > /dev/null; then
2154 else
2155 cat <<EOF 1>&2
2157 *** Warning: the command libtool uses to detect shared libraries,
2158 *** $file_magic_cmd, produces output that libtool cannot recognize.
2159 *** The result is that libtool may fail to recognize shared libraries
2160 *** as such. This will affect the creation of libtool libraries that
2161 *** depend on shared libraries, but programs linked with such libtool
2162 *** libraries will work regardless of this problem. Nevertheless, you
2163 *** may want to report the problem to your system manager and/or to
2164 *** bug-libtool@gnu.org
2167 fi ;;
2168 esac
2170 break
2172 done
2173 IFS="$ac_save_ifs"
2174 MAGIC_CMD="$ac_save_MAGIC_CMD"
2176 esac
2179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2180 if test -n "$MAGIC_CMD"; then
2181 echo "$ac_t""$MAGIC_CMD" 1>&6
2182 else
2183 echo "$ac_t""no" 1>&6
2186 if test -z "$lt_cv_path_MAGIC_CMD"; then
2187 if test -n "$ac_tool_prefix"; then
2188 echo $ac_n "checking for file""... $ac_c" 1>&6
2189 echo "configure:2190: checking for file" >&5
2190 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2192 else
2193 case $MAGIC_CMD in
2195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2197 ?:/*)
2198 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2201 ac_save_MAGIC_CMD="$MAGIC_CMD"
2202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2203 ac_dummy="/usr/bin:$PATH"
2204 for ac_dir in $ac_dummy; do
2205 test -z "$ac_dir" && ac_dir=.
2206 if test -f $ac_dir/file; then
2207 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2208 if test -n "$file_magic_test_file"; then
2209 case $deplibs_check_method in
2210 "file_magic "*)
2211 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2214 egrep "$file_magic_regex" > /dev/null; then
2216 else
2217 cat <<EOF 1>&2
2219 *** Warning: the command libtool uses to detect shared libraries,
2220 *** $file_magic_cmd, produces output that libtool cannot recognize.
2221 *** The result is that libtool may fail to recognize shared libraries
2222 *** as such. This will affect the creation of libtool libraries that
2223 *** depend on shared libraries, but programs linked with such libtool
2224 *** libraries will work regardless of this problem. Nevertheless, you
2225 *** may want to report the problem to your system manager and/or to
2226 *** bug-libtool@gnu.org
2229 fi ;;
2230 esac
2232 break
2234 done
2235 IFS="$ac_save_ifs"
2236 MAGIC_CMD="$ac_save_MAGIC_CMD"
2238 esac
2241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2242 if test -n "$MAGIC_CMD"; then
2243 echo "$ac_t""$MAGIC_CMD" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2248 else
2249 MAGIC_CMD=:
2255 esac
2257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 if test -n "$RANLIB"; then
2265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2266 else
2267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2268 ac_dummy="$PATH"
2269 for ac_dir in $ac_dummy; do
2270 test -z "$ac_dir" && ac_dir=.
2271 if test -f $ac_dir/$ac_word; then
2272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2273 break
2275 done
2276 IFS="$ac_save_ifs"
2279 RANLIB="$ac_cv_prog_RANLIB"
2280 if test -n "$RANLIB"; then
2281 echo "$ac_t""$RANLIB" 1>&6
2282 else
2283 echo "$ac_t""no" 1>&6
2287 if test -z "$ac_cv_prog_RANLIB"; then
2288 if test -n "$ac_tool_prefix"; then
2289 # Extract the first word of "ranlib", so it can be a program name with args.
2290 set dummy ranlib; ac_word=$2
2291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2292 echo "configure:2293: checking for $ac_word" >&5
2293 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2295 else
2296 if test -n "$RANLIB"; then
2297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2298 else
2299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2300 ac_dummy="$PATH"
2301 for ac_dir in $ac_dummy; do
2302 test -z "$ac_dir" && ac_dir=.
2303 if test -f $ac_dir/$ac_word; then
2304 ac_cv_prog_RANLIB="ranlib"
2305 break
2307 done
2308 IFS="$ac_save_ifs"
2309 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2312 RANLIB="$ac_cv_prog_RANLIB"
2313 if test -n "$RANLIB"; then
2314 echo "$ac_t""$RANLIB" 1>&6
2315 else
2316 echo "$ac_t""no" 1>&6
2319 else
2320 RANLIB=":"
2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}strip; ac_word=$2
2326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_word" >&5
2328 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330 else
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333 else
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2335 ac_dummy="$PATH"
2336 for ac_dir in $ac_dummy; do
2337 test -z "$ac_dir" && ac_dir=.
2338 if test -f $ac_dir/$ac_word; then
2339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2340 break
2342 done
2343 IFS="$ac_save_ifs"
2346 STRIP="$ac_cv_prog_STRIP"
2347 if test -n "$STRIP"; then
2348 echo "$ac_t""$STRIP" 1>&6
2349 else
2350 echo "$ac_t""no" 1>&6
2354 if test -z "$ac_cv_prog_STRIP"; then
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "strip", so it can be a program name with args.
2357 set dummy strip; ac_word=$2
2358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_word" >&5
2360 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2362 else
2363 if test -n "$STRIP"; then
2364 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2365 else
2366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2367 ac_dummy="$PATH"
2368 for ac_dir in $ac_dummy; do
2369 test -z "$ac_dir" && ac_dir=.
2370 if test -f $ac_dir/$ac_word; then
2371 ac_cv_prog_STRIP="strip"
2372 break
2374 done
2375 IFS="$ac_save_ifs"
2376 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2379 STRIP="$ac_cv_prog_STRIP"
2380 if test -n "$STRIP"; then
2381 echo "$ac_t""$STRIP" 1>&6
2382 else
2383 echo "$ac_t""no" 1>&6
2386 else
2387 STRIP=":"
2392 # Check for any special flags to pass to ltconfig.
2393 libtool_flags="--cache-file=$cache_file"
2394 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2395 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2396 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2397 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2398 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2399 libtool_flags="$libtool_flags --enable-dlopen"
2401 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2402 if test "${enable_libtool_lock+set}" = set; then
2403 enableval="$enable_libtool_lock"
2407 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2408 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2410 # Check whether --with-pic or --without-pic was given.
2411 if test "${with_pic+set}" = set; then
2412 withval="$with_pic"
2413 pic_mode="$withval"
2414 else
2415 pic_mode=default
2418 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2419 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2421 # Some flags need to be propagated to the compiler or linker for good
2422 # libtool support.
2423 case $host in
2424 *-*-irix6*)
2425 # Find out which ABI we are using.
2426 echo '#line 2427 "configure"' > conftest.$ac_ext
2427 if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2428 case `/usr/bin/file conftest.$ac_objext` in
2429 *32-bit*)
2430 LD="${LD-ld} -32"
2432 *N32*)
2433 LD="${LD-ld} -n32"
2435 *64-bit*)
2436 LD="${LD-ld} -64"
2438 esac
2440 rm -rf conftest*
2443 *-*-sco3.2v5*)
2444 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2445 SAVE_CFLAGS="$CFLAGS"
2446 CFLAGS="$CFLAGS -belf"
2447 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2448 echo "configure:2449: checking whether the C compiler needs -belf" >&5
2449 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2451 else
2453 ac_ext=c
2454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2458 cross_compiling=$ac_cv_prog_cc_cross
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2464 int main() {
2466 ; return 0; }
2468 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2469 rm -rf conftest*
2470 lt_cv_cc_needs_belf=yes
2471 else
2472 echo "configure: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 rm -rf conftest*
2475 lt_cv_cc_needs_belf=no
2477 rm -f conftest*
2478 ac_ext=c
2479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2483 cross_compiling=$ac_cv_prog_cc_cross
2487 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2488 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2489 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2490 CFLAGS="$SAVE_CFLAGS"
2495 esac
2497 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2498 echo "configure:2499: checking how to run the C++ preprocessor" >&5
2499 if test -z "$CXXCPP"; then
2500 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2502 else
2503 ac_ext=C
2504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505 ac_cpp='$CXXCPP $CPPFLAGS'
2506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508 cross_compiling=$ac_cv_prog_cxx_cross
2509 CXXCPP="${CXX-g++} -E"
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 #include <stdlib.h>
2515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2520 else
2521 echo "$ac_err" >&5
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 rm -rf conftest*
2525 CXXCPP=/lib/cpp
2527 rm -f conftest*
2528 ac_cv_prog_CXXCPP="$CXXCPP"
2529 ac_ext=c
2530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2534 cross_compiling=$ac_cv_prog_cc_cross
2537 CXXCPP="$ac_cv_prog_CXXCPP"
2538 echo "$ac_t""$CXXCPP" 1>&6
2541 # Save cache, so that ltconfig can load it
2542 cat > confcache <<\EOF
2543 # This file is a shell script that caches the results of configure
2544 # tests run on this system so they can be shared between configure
2545 # scripts and configure runs. It is not useful on other systems.
2546 # If it contains results you don't want to keep, you may remove or edit it.
2548 # By default, configure uses ./config.cache as the cache file,
2549 # creating it if it does not exist already. You can give configure
2550 # the --cache-file=FILE option to use a different cache file; that is
2551 # what configure does when it calls configure scripts in
2552 # subdirectories, so they share the cache.
2553 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2554 # config.status only pays attention to the cache file if you give it the
2555 # --recheck option to rerun configure.
2558 # The following way of writing the cache mishandles newlines in values,
2559 # but we know of no workaround that is simple, portable, and efficient.
2560 # So, don't put newlines in cache variables' values.
2561 # Ultrix sh set writes to stderr and can't be redirected directly,
2562 # and sets the high bit in the cache file unless we assign to the vars.
2563 (set) 2>&1 |
2564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2565 *ac_space=\ *)
2566 # `set' does not quote correctly, so add quotes (double-quote substitution
2567 # turns \\\\ into \\, and sed turns \\ into \).
2568 sed -n \
2569 -e "s/'/'\\\\''/g" \
2570 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2573 # `set' quotes correctly as required by POSIX, so do not add quotes.
2574 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2576 esac >> confcache
2577 if cmp -s $cache_file confcache; then
2579 else
2580 if test -w $cache_file; then
2581 echo "updating cache $cache_file"
2582 cat confcache > $cache_file
2583 else
2584 echo "not updating unwritable cache $cache_file"
2587 rm -f confcache
2590 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2591 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2592 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2593 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2594 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2595 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2596 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2597 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2598 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2599 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2601 # Reload cache, that may have been modified by ltconfig
2602 if test -r "$cache_file"; then
2603 echo "loading cache $cache_file"
2604 . $cache_file
2605 else
2606 echo "creating cache $cache_file"
2607 > $cache_file
2611 # This can be used to rebuild libtool when needed
2612 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2614 # Always use our own libtool.
2615 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2617 # Redirect the config.log output again, so that the ltconfig log is not
2618 # clobbered by the next message.
2619 exec 5>>./config.log
2623 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2624 lt_save_CC="$CC"
2625 lt_save_CFLAGS="$CFLAGS"
2626 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2627 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2628 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2629 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2630 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2631 deplibs_check_method="$deplibs_check_method" \
2632 file_magic_cmd="$file_magic_cmd" \
2633 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2634 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2635 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2636 CC="$lt_save_CC"
2637 CFLAGS="$lt_save_CFLAGS"
2639 # Redirect the config.log output again, so that the ltconfig log is not
2640 # clobbered by the next message.
2641 exec 5>>./config.log
2648 subdirs="$DIRLTDL"
2651 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2652 COMPPATH=.
2653 else
2654 COMPPATH=..
2660 if test -d $srcdir/testsuite; then
2661 TESTSUBDIR_TRUE=
2662 TESTSUBDIR_FALSE='#'
2663 else
2664 TESTSUBDIR_TRUE='#'
2665 TESTSUBDIR_FALSE=
2668 # Check whether --enable-fast-character or --disable-fast-character was given.
2669 if test "${enable_fast_character+set}" = set; then
2670 enableval="$enable_fast_character"
2671 # Nothing
2673 else
2674 cat >> confdefs.h <<\EOF
2675 #define COMPACT_CHARACTER 1
2681 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2682 if test "${enable_getenv_properties+set}" = set; then
2683 enableval="$enable_getenv_properties"
2688 if test -z "$enable_getenv_properties"; then
2689 enable_getenv_properties=${enable_getenv_properties_default-yes}
2691 if test "$enable_getenv_properties" = no; then
2692 cat >> confdefs.h <<\EOF
2693 #define DISABLE_GETENV_PROPERTIES 1
2699 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2700 if test "${enable_hash_synchronization+set}" = set; then
2701 enableval="$enable_hash_synchronization"
2706 if test -z "$enable_hash_synchronization"; then
2707 enable_hash_synchronization=$enable_hash_synchronization_default
2711 LIBGCJDEBUG="false"
2713 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2714 if test "${enable_libgcj_debug+set}" = set; then
2715 enableval="$enable_libgcj_debug"
2716 if test "$enable_libgcj_debug" = yes; then
2717 cat >> confdefs.h <<\EOF
2718 #define DEBUG 1
2721 LIBGCJDEBUG="true"
2726 # Check whether --enable-interpreter or --disable-interpreter was given.
2727 if test "${enable_interpreter+set}" = set; then
2728 enableval="$enable_interpreter"
2729 if test "$enable_interpreter" = yes; then
2730 # This can also be set in configure.host.
2731 libgcj_interpreter=yes
2732 elif test "$enable_interpreter" = no; then
2733 libgcj_interpreter=no
2738 if test "$libgcj_interpreter" = yes; then
2739 cat >> confdefs.h <<\EOF
2740 #define INTERPRETER 1
2745 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2746 echo "configure:2747: checking for exception model to use" >&5
2748 ac_ext=C
2749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2750 ac_cpp='$CXXCPP $CPPFLAGS'
2751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2753 cross_compiling=$ac_cv_prog_cxx_cross
2755 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2756 if test "${enable_sjlj_exceptions+set}" = set; then
2757 enableval="$enable_sjlj_exceptions"
2759 else
2760 cat > conftest.$ac_ext << EOF
2761 #line 2762 "configure"
2762 struct S { ~S(); };
2763 void bar();
2764 void foo()
2766 S s;
2767 bar();
2770 old_CXXFLAGS="$CXXFLAGS"
2771 CXXFLAGS=-S
2772 if { (eval echo configure:2773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2773 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2774 enable_sjlj_exceptions=yes
2775 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2776 enable_sjlj_exceptions=no
2779 CXXFLAGS="$old_CXXFLAGS"
2780 rm -f conftest*
2783 if test x$enable_sjlj_exceptions = xyes; then
2784 cat >> confdefs.h <<\EOF
2785 #define SJLJ_EXCEPTIONS 1
2788 ac_exception_model_name=sjlj
2789 elif test x$enable_sjlj_exceptions = xno; then
2790 ac_exception_model_name="call frame"
2791 else
2792 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2794 ac_ext=c
2795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2799 cross_compiling=$ac_cv_prog_cc_cross
2801 echo "$ac_t""$ac_exception_model_name" 1>&6
2803 # Check whether --enable-java-net or --disable-java-net was given.
2804 if test "${enable_java_net+set}" = set; then
2805 enableval="$enable_java_net"
2810 if test -z "$enable_java_net"; then
2811 enable_java_net=${enable_java_net_default-yes}
2813 if test "$enable_java_net" = no; then
2814 cat >> confdefs.h <<\EOF
2815 #define DISABLE_JAVA_NET 1
2820 # Check whether --with-libffi or --without-libffi was given.
2821 if test "${with_libffi+set}" = set; then
2822 withval="$with_libffi"
2824 else
2825 with_libffi=${with_libffi_default-yes}
2829 LIBFFI=
2830 LIBFFIINCS=
2831 if test "$with_libffi" != no; then
2832 cat >> confdefs.h <<\EOF
2833 #define USE_LIBFFI 1
2836 LIBFFI=../libffi/libfficonvenience.la
2837 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2842 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2843 if test "${enable_jvmpi+set}" = set; then
2844 enableval="$enable_jvmpi"
2849 if test "$enable_jvmpi" != no; then
2850 cat >> confdefs.h <<\EOF
2851 #define ENABLE_JVMPI 1
2856 TARGET_ECOS="no"
2857 # Check whether --with-ecos or --without-ecos was given.
2858 if test "${with_ecos+set}" = set; then
2859 withval="$with_ecos"
2860 TARGET_ECOS="$with_ecos"
2865 case "$TARGET_ECOS" in
2867 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2868 PROCESS=${PROCESS-Posix}
2871 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2872 PROCESS=Ecos
2873 cat >> confdefs.h <<\EOF
2874 #define ECOS 1
2878 esac
2880 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2881 echo "configure:2882: checking how to run the C preprocessor" >&5
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2884 CPP=
2886 if test -z "$CPP"; then
2887 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2889 else
2890 # This must be in double quotes, not single quotes, because CPP may get
2891 # substituted into the Makefile and "${CC-cc}" will confuse make.
2892 CPP="${CC-cc} -E"
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp.
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 #include <assert.h>
2899 Syntax Error
2901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2902 { (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2904 if test -z "$ac_err"; then
2906 else
2907 echo "$ac_err" >&5
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 rm -rf conftest*
2911 CPP="${CC-cc} -E -traditional-cpp"
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 #include <assert.h>
2916 Syntax Error
2918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2919 { (eval echo configure:2920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2921 if test -z "$ac_err"; then
2923 else
2924 echo "$ac_err" >&5
2925 echo "configure: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2927 rm -rf conftest*
2928 CPP="${CC-cc} -nologo -E"
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 #include <assert.h>
2933 Syntax Error
2935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2936 { (eval echo configure:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2938 if test -z "$ac_err"; then
2940 else
2941 echo "$ac_err" >&5
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 rm -rf conftest*
2945 CPP=/lib/cpp
2947 rm -f conftest*
2949 rm -f conftest*
2951 rm -f conftest*
2952 ac_cv_prog_CPP="$CPP"
2954 CPP="$ac_cv_prog_CPP"
2955 else
2956 ac_cv_prog_CPP="$CPP"
2958 echo "$ac_t""$CPP" 1>&6
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 #include <stdint.h>
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966 egrep "uint32_t" >/dev/null 2>&1; then
2967 rm -rf conftest*
2968 cat >> confdefs.h <<\EOF
2969 #define HAVE_INT32_DEFINED 1
2973 rm -f conftest*
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <inttypes.h>
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 egrep "uint32_t" >/dev/null 2>&1; then
2982 rm -rf conftest*
2983 cat >> confdefs.h <<\EOF
2984 #define HAVE_INT32_DEFINED 1
2988 rm -f conftest*
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2996 egrep "u_int32_t" >/dev/null 2>&1; then
2997 rm -rf conftest*
2998 cat >> confdefs.h <<\EOF
2999 #define HAVE_BSD_INT32_DEFINED 1
3003 rm -f conftest*
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <sys/config.h>
3010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3011 egrep "u_int32_t" >/dev/null 2>&1; then
3012 rm -rf conftest*
3013 cat >> confdefs.h <<\EOF
3014 #define HAVE_BSD_INT32_DEFINED 1
3018 rm -f conftest*
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3025 #include <time.h>
3027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "mktime" >/dev/null 2>&1; then
3029 rm -rf conftest*
3030 cat >> confdefs.h <<\EOF
3031 #define HAVE_MKTIME 1
3035 rm -f conftest*
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 #include <time.h>
3042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3043 egrep "localtime" >/dev/null 2>&1; then
3044 rm -rf conftest*
3045 cat >> confdefs.h <<\EOF
3046 #define HAVE_LOCALTIME 1
3050 rm -f conftest*
3053 test -d java || mkdir java
3054 test -d java/io || mkdir java/io
3055 test -d gnu || mkdir gnu
3058 test -d java/lang || mkdir java/lang
3062 SYSTEMSPEC=
3065 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3068 # Check whether --with-system-zlib or --without-system-zlib was given.
3069 if test "${with_system_zlib+set}" = set; then
3070 withval="$with_system_zlib"
3074 ZLIBSPEC=
3076 ZLIBTESTSPEC=
3079 libsubdir=.libs
3081 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3082 echo "configure:3083: checking for garbage collector to use" >&5
3083 # Check whether --enable-java-gc or --disable-java-gc was given.
3084 if test "${enable_java_gc+set}" = set; then
3085 enableval="$enable_java_gc"
3087 GC=$enableval
3088 else
3089 GC=boehm
3092 GCLIBS=
3093 GCINCS=
3094 GCDEPS=
3095 GCOBJS=
3096 GCSPEC=
3097 JC1GCSPEC=
3098 GCTESTSPEC=
3099 case "$GC" in
3100 boehm)
3101 echo "$ac_t""boehm" 1>&6
3102 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3103 # We include the path to the boehm-gc build directory.
3104 # See Makefile.am to understand why.
3105 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3106 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3107 GCSPEC='-lgcjgc'
3108 JC1GCSPEC='-fuse-boehm-gc'
3109 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3110 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3111 GCOBJS=boehm.lo
3112 GCHDR=boehm-gc.h
3113 cat >> confdefs.h <<\EOF
3114 #define HAVE_BOEHM_GC 1
3119 echo "$ac_t""none" 1>&6
3120 GCOBJS=nogc.lo
3121 GCHDR=no-gc.h
3124 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3126 esac
3137 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3138 echo "configure:3139: checking for thread model used by GCC" >&5
3139 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3140 echo "$ac_t""$THREADS" 1>&6
3142 case "$THREADS" in
3143 no | none | single)
3144 THREADS=none
3146 posix | pthreads)
3147 THREADS=posix
3148 case "$host" in
3149 *-*-linux*)
3150 cat >> confdefs.h <<\EOF
3151 #define LINUX_THREADS 1
3155 esac
3157 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3158 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3161 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3163 esac
3165 THREADLIBS=
3166 THREADINCS=
3167 THREADDEPS=
3168 THREADOBJS=
3169 THREADH=
3170 THREADSPEC=
3171 case "$THREADS" in
3172 posix)
3173 case "$host" in
3174 *-*-cygwin*)
3175 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3178 THREADLIBS=-lpthread
3179 THREADSPEC=-lpthread
3181 esac
3182 THREADOBJS=posix-threads.lo
3183 THREADH=posix-threads.h
3184 # MIT pthreads doesn't seem to have the mutexattr functions.
3185 # But for now we don't check for it. We just assume you aren't
3186 # using MIT pthreads.
3187 cat >> confdefs.h <<\EOF
3188 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3192 # If we're using the Boehm GC, then we happen to know that it
3193 # defines _REENTRANT, so we don't bother. Eww.
3194 if test "$GC" != boehm; then
3195 cat >> confdefs.h <<\EOF
3196 #define _REENTRANT 1
3200 cat >> confdefs.h <<\EOF
3201 #define _POSIX_PTHREAD_SEMANTICS 1
3206 none)
3207 THREADOBJS=no-threads.lo
3208 THREADH=no-threads.h
3210 esac
3218 HASH_SYNC_SPEC=
3219 # Hash synchronization is only useful with posix threads right now.
3220 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3221 HASH_SYNC_SPEC=-fhash-synchronization
3222 cat >> confdefs.h <<\EOF
3223 #define JV_HASH_SYNCHRONIZATION 1
3232 if test "$GCC" = yes; then
3233 USING_GCC_TRUE=
3234 USING_GCC_FALSE='#'
3235 else
3236 USING_GCC_TRUE='#'
3237 USING_GCC_FALSE=
3240 CANADIAN=no
3241 NULL_TARGET=no
3242 NATIVE=yes
3244 # We're in the tree with gcc, and need to include some of its headers.
3245 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3247 if test -n "${with_cross_host}"; then
3248 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3249 # may not work correctly, because the compiler may not be able to
3250 # link executables.
3252 # We assume newlib. This lets us hard-code the functions we know
3253 # we'll have.
3254 cat >> confdefs.h <<\EOF
3255 #define HAVE_MEMMOVE 1
3258 cat >> confdefs.h <<\EOF
3259 #define HAVE_MEMCPY 1
3262 cat >> confdefs.h <<\EOF
3263 #define HAVE_STRERROR 1
3266 cat >> confdefs.h <<\EOF
3267 #define HAVE_GMTIME_R 1
3270 cat >> confdefs.h <<\EOF
3271 #define HAVE_LOCALTIME_R 1
3274 cat >> confdefs.h <<\EOF
3275 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3278 cat >> confdefs.h <<\EOF
3279 #define HAVE_ALLOCA 1
3283 cat >> confdefs.h <<\EOF
3284 #define NO_GETUID 1
3288 ZLIBSPEC=-lzgcj
3289 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3291 # If Canadian cross, then don't pick up tools from the build
3292 # directory.
3293 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3294 CANADIAN=yes
3295 GCC_UNWIND_INCLUDE=
3296 GCJ="${target_alias}-gcj"
3298 NATIVE=no
3299 else
3300 for ac_func in strerror ioctl select fstat open fsync sleep
3302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_func" >&5
3304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3306 else
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 /* System header to define __stub macros and hopefully few prototypes,
3311 which can conflict with char $ac_func(); below. */
3312 #include <assert.h>
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3316 char $ac_func();
3318 int main() {
3320 /* The GNU C library defines this for functions which it implements
3321 to always fail with ENOSYS. Some functions are actually named
3322 something starting with __ and the normal name is an alias. */
3323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3324 choke me
3325 #else
3326 $ac_func();
3327 #endif
3329 ; return 0; }
3331 if { (eval echo configure:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3332 rm -rf conftest*
3333 eval "ac_cv_func_$ac_func=yes"
3334 else
3335 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3337 rm -rf conftest*
3338 eval "ac_cv_func_$ac_func=no"
3340 rm -f conftest*
3343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3344 echo "$ac_t""yes" 1>&6
3345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3346 cat >> confdefs.h <<EOF
3347 #define $ac_tr_func 1
3350 else
3351 echo "$ac_t""no" 1>&6
3353 done
3355 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3358 echo "configure:3359: checking for $ac_func" >&5
3359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3361 else
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3365 /* System header to define __stub macros and hopefully few prototypes,
3366 which can conflict with char $ac_func(); below. */
3367 #include <assert.h>
3368 /* Override any gcc2 internal prototype to avoid an error. */
3369 /* We use char because int might match the return type of a gcc2
3370 builtin and then its argument prototype would still apply. */
3371 char $ac_func();
3373 int main() {
3375 /* The GNU C library defines this for functions which it implements
3376 to always fail with ENOSYS. Some functions are actually named
3377 something starting with __ and the normal name is an alias. */
3378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3379 choke me
3380 #else
3381 $ac_func();
3382 #endif
3384 ; return 0; }
3386 if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3387 rm -rf conftest*
3388 eval "ac_cv_func_$ac_func=yes"
3389 else
3390 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3392 rm -rf conftest*
3393 eval "ac_cv_func_$ac_func=no"
3395 rm -f conftest*
3398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3399 echo "$ac_t""yes" 1>&6
3400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3401 cat >> confdefs.h <<EOF
3402 #define $ac_tr_func 1
3405 else
3406 echo "$ac_t""no" 1>&6
3408 done
3410 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3413 echo "configure:3414: checking for $ac_func" >&5
3414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3416 else
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 /* System header to define __stub macros and hopefully few prototypes,
3421 which can conflict with char $ac_func(); below. */
3422 #include <assert.h>
3423 /* Override any gcc2 internal prototype to avoid an error. */
3424 /* We use char because int might match the return type of a gcc2
3425 builtin and then its argument prototype would still apply. */
3426 char $ac_func();
3428 int main() {
3430 /* The GNU C library defines this for functions which it implements
3431 to always fail with ENOSYS. Some functions are actually named
3432 something starting with __ and the normal name is an alias. */
3433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3434 choke me
3435 #else
3436 $ac_func();
3437 #endif
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 eval "ac_cv_func_$ac_func=yes"
3444 else
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3447 rm -rf conftest*
3448 eval "ac_cv_func_$ac_func=no"
3450 rm -f conftest*
3453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3456 cat >> confdefs.h <<EOF
3457 #define $ac_tr_func 1
3460 else
3461 echo "$ac_t""no" 1>&6
3463 done
3465 for ac_func in nl_langinfo setlocale
3467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3468 echo "configure:3469: checking for $ac_func" >&5
3469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3471 else
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3475 /* System header to define __stub macros and hopefully few prototypes,
3476 which can conflict with char $ac_func(); below. */
3477 #include <assert.h>
3478 /* Override any gcc2 internal prototype to avoid an error. */
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
3481 char $ac_func();
3483 int main() {
3485 /* The GNU C library defines this for functions which it implements
3486 to always fail with ENOSYS. Some functions are actually named
3487 something starting with __ and the normal name is an alias. */
3488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3489 choke me
3490 #else
3491 $ac_func();
3492 #endif
3494 ; return 0; }
3496 if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3497 rm -rf conftest*
3498 eval "ac_cv_func_$ac_func=yes"
3499 else
3500 echo "configure: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3502 rm -rf conftest*
3503 eval "ac_cv_func_$ac_func=no"
3505 rm -f conftest*
3508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3509 echo "$ac_t""yes" 1>&6
3510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3511 cat >> confdefs.h <<EOF
3512 #define $ac_tr_func 1
3515 else
3516 echo "$ac_t""no" 1>&6
3518 done
3520 for ac_func in inet_aton inet_addr
3522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3523 echo "configure:3524: checking for $ac_func" >&5
3524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3526 else
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* System header to define __stub macros and hopefully few prototypes,
3531 which can conflict with char $ac_func(); below. */
3532 #include <assert.h>
3533 /* Override any gcc2 internal prototype to avoid an error. */
3534 /* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3536 char $ac_func();
3538 int main() {
3540 /* The GNU C library defines this for functions which it implements
3541 to always fail with ENOSYS. Some functions are actually named
3542 something starting with __ and the normal name is an alias. */
3543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3544 choke me
3545 #else
3546 $ac_func();
3547 #endif
3549 ; return 0; }
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3552 rm -rf conftest*
3553 eval "ac_cv_func_$ac_func=yes"
3554 else
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3557 rm -rf conftest*
3558 eval "ac_cv_func_$ac_func=no"
3560 rm -f conftest*
3563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3566 cat >> confdefs.h <<EOF
3567 #define $ac_tr_func 1
3569 break
3570 else
3571 echo "$ac_t""no" 1>&6
3573 done
3575 for ac_func in inet_pton uname inet_ntoa
3577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_func" >&5
3579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3581 else
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 /* System header to define __stub macros and hopefully few prototypes,
3586 which can conflict with char $ac_func(); below. */
3587 #include <assert.h>
3588 /* Override any gcc2 internal prototype to avoid an error. */
3589 /* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3591 char $ac_func();
3593 int main() {
3595 /* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 choke me
3600 #else
3601 $ac_func();
3602 #endif
3604 ; return 0; }
3606 if { (eval echo configure:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3607 rm -rf conftest*
3608 eval "ac_cv_func_$ac_func=yes"
3609 else
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3612 rm -rf conftest*
3613 eval "ac_cv_func_$ac_func=no"
3615 rm -f conftest*
3618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3621 cat >> confdefs.h <<EOF
3622 #define $ac_tr_func 1
3625 else
3626 echo "$ac_t""no" 1>&6
3628 done
3630 for ac_func in backtrace fork execvp pipe sigaction
3632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3633 echo "configure:3634: checking for $ac_func" >&5
3634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3636 else
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 /* System header to define __stub macros and hopefully few prototypes,
3641 which can conflict with char $ac_func(); below. */
3642 #include <assert.h>
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char $ac_func();
3648 int main() {
3650 /* The GNU C library defines this for functions which it implements
3651 to always fail with ENOSYS. Some functions are actually named
3652 something starting with __ and the normal name is an alias. */
3653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3654 choke me
3655 #else
3656 $ac_func();
3657 #endif
3659 ; return 0; }
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3662 rm -rf conftest*
3663 eval "ac_cv_func_$ac_func=yes"
3664 else
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 rm -rf conftest*
3668 eval "ac_cv_func_$ac_func=no"
3670 rm -f conftest*
3673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3674 echo "$ac_t""yes" 1>&6
3675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3676 cat >> confdefs.h <<EOF
3677 #define $ac_tr_func 1
3680 else
3681 echo "$ac_t""no" 1>&6
3683 done
3685 for ac_hdr in execinfo.h unistd.h dlfcn.h
3687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_hdr" >&5
3690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3692 else
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 #include <$ac_hdr>
3698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3699 { (eval echo configure:3700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3701 if test -z "$ac_err"; then
3702 rm -rf conftest*
3703 eval "ac_cv_header_$ac_safe=yes"
3704 else
3705 echo "$ac_err" >&5
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 rm -rf conftest*
3709 eval "ac_cv_header_$ac_safe=no"
3711 rm -f conftest*
3713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3716 cat >> confdefs.h <<EOF
3717 #define $ac_tr_hdr 1
3720 else
3721 echo "$ac_t""no" 1>&6
3723 done
3725 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3726 echo "configure:3727: checking for dladdr in -ldl" >&5
3727 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3730 else
3731 ac_save_LIBS="$LIBS"
3732 LIBS="-ldl $LIBS"
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 /* Override any gcc2 internal prototype to avoid an error. */
3737 /* We use char because int might match the return type of a gcc2
3738 builtin and then its argument prototype would still apply. */
3739 char dladdr();
3741 int main() {
3742 dladdr()
3743 ; return 0; }
3745 if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3746 rm -rf conftest*
3747 eval "ac_cv_lib_$ac_lib_var=yes"
3748 else
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3751 rm -rf conftest*
3752 eval "ac_cv_lib_$ac_lib_var=no"
3754 rm -f conftest*
3755 LIBS="$ac_save_LIBS"
3758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3759 echo "$ac_t""yes" 1>&6
3761 cat >> confdefs.h <<\EOF
3762 #define HAVE_DLADDR 1
3765 else
3766 echo "$ac_t""no" 1>&6
3769 for ac_file in /proc/self/exe
3772 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3773 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3774 echo "configure:3775: checking for $ac_file" >&5
3775 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3777 else
3778 if test "$cross_compiling" = yes; then
3779 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3780 else
3781 if test -r $ac_file; then
3782 eval "ac_cv_file_$ac_safe=yes"
3783 else
3784 eval "ac_cv_file_$ac_safe=no"
3788 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3789 echo "$ac_t""yes" 1>&6
3790 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3791 cat >> confdefs.h <<EOF
3792 #define $ac_tr_file 1
3795 cat >> confdefs.h <<\EOF
3796 #define HAVE_PROC_SELF_EXE 1
3799 else
3800 echo "$ac_t""no" 1>&6
3803 done
3808 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3809 if test "${with_libiconv_prefix+set}" = set; then
3810 withval="$with_libiconv_prefix"
3812 for dir in `echo "$withval" | tr : ' '`; do
3813 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3814 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
3815 done
3820 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3821 echo "configure:3822: checking for iconv" >&5
3822 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3824 else
3826 am_cv_func_iconv="no, consider installing GNU libiconv"
3827 am_cv_lib_iconv=no
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 #include <stdlib.h>
3832 #include <iconv.h>
3833 int main() {
3834 iconv_t cd = iconv_open("","");
3835 iconv(cd,NULL,NULL,NULL,NULL);
3836 iconv_close(cd);
3837 ; return 0; }
3839 if { (eval echo configure:3840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3840 rm -rf conftest*
3841 am_cv_func_iconv=yes
3842 else
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3846 rm -f conftest*
3847 if test "$am_cv_func_iconv" != yes; then
3848 am_save_LIBS="$LIBS"
3849 LIBS="$LIBS -liconv"
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 #include <stdlib.h>
3854 #include <iconv.h>
3855 int main() {
3856 iconv_t cd = iconv_open("","");
3857 iconv(cd,NULL,NULL,NULL,NULL);
3858 iconv_close(cd);
3859 ; return 0; }
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3862 rm -rf conftest*
3863 am_cv_lib_iconv=yes
3864 am_cv_func_iconv=yes
3865 else
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3869 rm -f conftest*
3870 LIBS="$am_save_LIBS"
3875 echo "$ac_t""$am_cv_func_iconv" 1>&6
3876 if test "$am_cv_func_iconv" = yes; then
3877 cat >> confdefs.h <<\EOF
3878 #define HAVE_ICONV 1
3881 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3882 echo "configure:3883: checking for iconv declaration" >&5
3883 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3885 else
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3891 #include <stdlib.h>
3892 #include <iconv.h>
3893 extern
3894 #ifdef __cplusplus
3896 #endif
3897 #if defined(__STDC__) || defined(__cplusplus)
3898 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3899 #else
3900 size_t iconv();
3901 #endif
3903 int main() {
3905 ; return 0; }
3907 if { (eval echo configure:3908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3908 rm -rf conftest*
3909 am_cv_proto_iconv_arg1=""
3910 else
3911 echo "configure: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3913 rm -rf conftest*
3914 am_cv_proto_iconv_arg1="const"
3916 rm -f conftest*
3917 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);"
3920 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3921 echo "$ac_t""${ac_t:-
3922 }$am_cv_proto_iconv" 1>&6
3923 cat >> confdefs.h <<EOF
3924 #define ICONV_CONST $am_cv_proto_iconv_arg1
3928 LIBICONV=
3929 if test "$am_cv_lib_iconv" = yes; then
3930 LIBICONV="-liconv"
3935 for ac_func in gethostbyname_r
3937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3938 echo "configure:3939: checking for $ac_func" >&5
3939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3941 else
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3945 /* System header to define __stub macros and hopefully few prototypes,
3946 which can conflict with char $ac_func(); below. */
3947 #include <assert.h>
3948 /* Override any gcc2 internal prototype to avoid an error. */
3949 /* We use char because int might match the return type of a gcc2
3950 builtin and then its argument prototype would still apply. */
3951 char $ac_func();
3953 int main() {
3955 /* The GNU C library defines this for functions which it implements
3956 to always fail with ENOSYS. Some functions are actually named
3957 something starting with __ and the normal name is an alias. */
3958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3959 choke me
3960 #else
3961 $ac_func();
3962 #endif
3964 ; return 0; }
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3967 rm -rf conftest*
3968 eval "ac_cv_func_$ac_func=yes"
3969 else
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 rm -rf conftest*
3973 eval "ac_cv_func_$ac_func=no"
3975 rm -f conftest*
3978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3979 echo "$ac_t""yes" 1>&6
3980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3981 cat >> confdefs.h <<EOF
3982 #define $ac_tr_func 1
3985 cat >> confdefs.h <<\EOF
3986 #define HAVE_GETHOSTBYNAME_R 1
3989 # There are two different kinds of gethostbyname_r.
3990 # We look for the one that returns `int'.
3991 # Hopefully this check is robust enough.
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 #include <netdb.h>
3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3999 rm -rf conftest*
4001 cat >> confdefs.h <<\EOF
4002 #define GETHOSTBYNAME_R_RETURNS_INT 1
4006 rm -f conftest*
4009 case " $GCINCS " in
4010 *" -D_REENTRANT "*) ;;
4012 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4013 echo "configure:4014: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4014 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4016 else
4018 ac_ext=C
4019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4020 ac_cpp='$CXXCPP $CPPFLAGS'
4021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4023 cross_compiling=$ac_cv_prog_cxx_cross
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 #include <netdb.h>
4029 int main() {
4030 gethostbyname_r("", 0, 0);
4031 ; return 0; }
4033 if { (eval echo configure:4034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4034 rm -rf conftest*
4035 libjava_cv_gethostbyname_r_needs_reentrant=no
4036 else
4037 echo "configure: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4039 rm -rf conftest*
4040 CPPFLAGS_SAVE="$CPPFLAGS"
4041 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 #include <netdb.h>
4046 int main() {
4047 gethostbyname_r("", 0, 0);
4048 ; return 0; }
4050 if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4051 rm -rf conftest*
4052 libjava_cv_gethostbyname_r_needs_reentrant=yes
4053 else
4054 echo "configure: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4056 rm -rf conftest*
4057 libjava_cv_gethostbyname_r_needs_reentrant=fail
4059 rm -f conftest*
4060 CPPFLAGS="$CPPFLAGS_SAVE"
4063 rm -f conftest*
4064 ac_ext=c
4065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4069 cross_compiling=$ac_cv_prog_cc_cross
4074 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4075 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4076 cat >> confdefs.h <<\EOF
4077 #define _REENTRANT 1
4082 esac
4084 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4085 echo "configure:4086: checking for struct hostent_data" >&5
4086 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088 else
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4093 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4094 # define _REENTRANT 1
4095 #endif
4096 #include <netdb.h>
4097 int main() {
4098 struct hostent_data data;
4099 ; return 0; }
4101 if { (eval echo configure:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4102 rm -rf conftest*
4103 libjava_cv_struct_hostent_data=yes
4104 else
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4107 rm -rf conftest*
4108 libjava_cv_struct_hostent_data=no
4110 rm -f conftest*
4113 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4114 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4115 cat >> confdefs.h <<\EOF
4116 #define HAVE_STRUCT_HOSTENT_DATA 1
4121 else
4122 echo "$ac_t""no" 1>&6
4124 done
4127 for ac_func in gethostbyaddr_r
4129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4130 echo "configure:4131: checking for $ac_func" >&5
4131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4133 else
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4137 /* System header to define __stub macros and hopefully few prototypes,
4138 which can conflict with char $ac_func(); below. */
4139 #include <assert.h>
4140 /* Override any gcc2 internal prototype to avoid an error. */
4141 /* We use char because int might match the return type of a gcc2
4142 builtin and then its argument prototype would still apply. */
4143 char $ac_func();
4145 int main() {
4147 /* The GNU C library defines this for functions which it implements
4148 to always fail with ENOSYS. Some functions are actually named
4149 something starting with __ and the normal name is an alias. */
4150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4151 choke me
4152 #else
4153 $ac_func();
4154 #endif
4156 ; return 0; }
4158 if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4159 rm -rf conftest*
4160 eval "ac_cv_func_$ac_func=yes"
4161 else
4162 echo "configure: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4164 rm -rf conftest*
4165 eval "ac_cv_func_$ac_func=no"
4167 rm -f conftest*
4170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4171 echo "$ac_t""yes" 1>&6
4172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4173 cat >> confdefs.h <<EOF
4174 #define $ac_tr_func 1
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_GETHOSTBYADDR_R 1
4181 # There are two different kinds of gethostbyaddr_r.
4182 # We look for the one that returns `int'.
4183 # Hopefully this check is robust enough.
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 #include <netdb.h>
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4191 rm -rf conftest*
4193 cat >> confdefs.h <<\EOF
4194 #define GETHOSTBYADDR_R_RETURNS_INT 1
4198 rm -f conftest*
4200 else
4201 echo "$ac_t""no" 1>&6
4203 done
4206 for ac_func in gethostname
4208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4209 echo "configure:4210: checking for $ac_func" >&5
4210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4212 else
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 /* System header to define __stub macros and hopefully few prototypes,
4217 which can conflict with char $ac_func(); below. */
4218 #include <assert.h>
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222 char $ac_func();
4224 int main() {
4226 /* The GNU C library defines this for functions which it implements
4227 to always fail with ENOSYS. Some functions are actually named
4228 something starting with __ and the normal name is an alias. */
4229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4230 choke me
4231 #else
4232 $ac_func();
4233 #endif
4235 ; return 0; }
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4238 rm -rf conftest*
4239 eval "ac_cv_func_$ac_func=yes"
4240 else
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4243 rm -rf conftest*
4244 eval "ac_cv_func_$ac_func=no"
4246 rm -f conftest*
4249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4252 cat >> confdefs.h <<EOF
4253 #define $ac_tr_func 1
4256 cat >> confdefs.h <<\EOF
4257 #define HAVE_GETHOSTNAME 1
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4263 #include <unistd.h>
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 egrep "gethostname" >/dev/null 2>&1; then
4267 rm -rf conftest*
4269 cat >> confdefs.h <<\EOF
4270 #define HAVE_GETHOSTNAME_DECL 1
4274 rm -f conftest*
4276 else
4277 echo "$ac_t""no" 1>&6
4279 done
4282 # Look for these functions in the thread library, but only bother
4283 # if using POSIX threads.
4284 if test "$THREADS" = posix; then
4285 save_LIBS="$LIBS"
4286 LIBS="$LIBS $THREADLIBS"
4287 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4288 # E.g., Solaris.
4289 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4292 echo "configure:4293: checking for $ac_func" >&5
4293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4295 else
4296 cat > conftest.$ac_ext <<EOF
4297 #line 4298 "configure"
4298 #include "confdefs.h"
4299 /* System header to define __stub macros and hopefully few prototypes,
4300 which can conflict with char $ac_func(); below. */
4301 #include <assert.h>
4302 /* Override any gcc2 internal prototype to avoid an error. */
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4305 char $ac_func();
4307 int main() {
4309 /* The GNU C library defines this for functions which it implements
4310 to always fail with ENOSYS. Some functions are actually named
4311 something starting with __ and the normal name is an alias. */
4312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4313 choke me
4314 #else
4315 $ac_func();
4316 #endif
4318 ; return 0; }
4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4321 rm -rf conftest*
4322 eval "ac_cv_func_$ac_func=yes"
4323 else
4324 echo "configure: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4326 rm -rf conftest*
4327 eval "ac_cv_func_$ac_func=no"
4329 rm -f conftest*
4332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4333 echo "$ac_t""yes" 1>&6
4334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4335 cat >> confdefs.h <<EOF
4336 #define $ac_tr_func 1
4339 else
4340 echo "$ac_t""no" 1>&6
4342 done
4345 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4346 # Solaris 7 the name librt is preferred.
4347 for ac_func in sched_yield
4349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4350 echo "configure:4351: checking for $ac_func" >&5
4351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4353 else
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* System header to define __stub macros and hopefully few prototypes,
4358 which can conflict with char $ac_func(); below. */
4359 #include <assert.h>
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4363 char $ac_func();
4365 int main() {
4367 /* The GNU C library defines this for functions which it implements
4368 to always fail with ENOSYS. Some functions are actually named
4369 something starting with __ and the normal name is an alias. */
4370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4371 choke me
4372 #else
4373 $ac_func();
4374 #endif
4376 ; return 0; }
4378 if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4379 rm -rf conftest*
4380 eval "ac_cv_func_$ac_func=yes"
4381 else
4382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
4384 rm -rf conftest*
4385 eval "ac_cv_func_$ac_func=no"
4387 rm -f conftest*
4390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4393 cat >> confdefs.h <<EOF
4394 #define $ac_tr_func 1
4397 else
4398 echo "$ac_t""no" 1>&6
4399 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4400 echo "configure:4401: checking for sched_yield in -lrt" >&5
4401 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4404 else
4405 ac_save_LIBS="$LIBS"
4406 LIBS="-lrt $LIBS"
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 /* Override any gcc2 internal prototype to avoid an error. */
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4413 char sched_yield();
4415 int main() {
4416 sched_yield()
4417 ; return 0; }
4419 if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4420 rm -rf conftest*
4421 eval "ac_cv_lib_$ac_lib_var=yes"
4422 else
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4425 rm -rf conftest*
4426 eval "ac_cv_lib_$ac_lib_var=no"
4428 rm -f conftest*
4429 LIBS="$ac_save_LIBS"
4432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4435 cat >> confdefs.h <<\EOF
4436 #define HAVE_SCHED_YIELD 1
4439 THREADLIBS="$THREADLIBS -lrt"
4440 THREADSPEC="$THREADSPEC -lrt"
4441 else
4442 echo "$ac_t""no" 1>&6
4444 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4445 echo "configure:4446: checking for sched_yield in -lposix4" >&5
4446 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4449 else
4450 ac_save_LIBS="$LIBS"
4451 LIBS="-lposix4 $LIBS"
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 /* Override any gcc2 internal prototype to avoid an error. */
4456 /* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
4458 char sched_yield();
4460 int main() {
4461 sched_yield()
4462 ; return 0; }
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4465 rm -rf conftest*
4466 eval "ac_cv_lib_$ac_lib_var=yes"
4467 else
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4470 rm -rf conftest*
4471 eval "ac_cv_lib_$ac_lib_var=no"
4473 rm -f conftest*
4474 LIBS="$ac_save_LIBS"
4477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4480 cat >> confdefs.h <<\EOF
4481 #define HAVE_SCHED_YIELD 1
4484 THREADLIBS="$THREADLIBS -lposix4"
4485 THREADSPEC="$THREADSPEC -lposix4"
4486 else
4487 echo "$ac_t""no" 1>&6
4493 done
4495 LIBS="$save_LIBS"
4497 # We can save a little space at runtime if the mutex has m_count
4498 # or __m_count. This is a nice hack for Linux.
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 #include <pthread.h>
4503 int main() {
4505 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4507 ; return 0; }
4509 if { (eval echo configure:4510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4510 rm -rf conftest*
4511 cat >> confdefs.h <<\EOF
4512 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4515 else
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4518 rm -rf conftest*
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 #include <pthread.h>
4524 int main() {
4526 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4528 ; return 0; }
4530 if { (eval echo configure:4531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4531 rm -rf conftest*
4532 cat >> confdefs.h <<\EOF
4533 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4536 else
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4540 rm -f conftest*
4542 rm -f conftest*
4545 # We require a way to get the time.
4546 time_found=no
4547 for ac_func in gettimeofday time ftime
4549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4550 echo "configure:4551: checking for $ac_func" >&5
4551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4553 else
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 /* System header to define __stub macros and hopefully few prototypes,
4558 which can conflict with char $ac_func(); below. */
4559 #include <assert.h>
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 /* We use char because int might match the return type of a gcc2
4562 builtin and then its argument prototype would still apply. */
4563 char $ac_func();
4565 int main() {
4567 /* The GNU C library defines this for functions which it implements
4568 to always fail with ENOSYS. Some functions are actually named
4569 something starting with __ and the normal name is an alias. */
4570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4571 choke me
4572 #else
4573 $ac_func();
4574 #endif
4576 ; return 0; }
4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4579 rm -rf conftest*
4580 eval "ac_cv_func_$ac_func=yes"
4581 else
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4584 rm -rf conftest*
4585 eval "ac_cv_func_$ac_func=no"
4587 rm -f conftest*
4590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4591 echo "$ac_t""yes" 1>&6
4592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4593 cat >> confdefs.h <<EOF
4594 #define $ac_tr_func 1
4596 time_found=yes
4597 else
4598 echo "$ac_t""no" 1>&6
4600 done
4602 if test "$time_found" = no; then
4603 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4606 for ac_func in memmove
4608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4609 echo "configure:4610: checking for $ac_func" >&5
4610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4612 else
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4616 /* System header to define __stub macros and hopefully few prototypes,
4617 which can conflict with char $ac_func(); below. */
4618 #include <assert.h>
4619 /* Override any gcc2 internal prototype to avoid an error. */
4620 /* We use char because int might match the return type of a gcc2
4621 builtin and then its argument prototype would still apply. */
4622 char $ac_func();
4624 int main() {
4626 /* The GNU C library defines this for functions which it implements
4627 to always fail with ENOSYS. Some functions are actually named
4628 something starting with __ and the normal name is an alias. */
4629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4630 choke me
4631 #else
4632 $ac_func();
4633 #endif
4635 ; return 0; }
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4638 rm -rf conftest*
4639 eval "ac_cv_func_$ac_func=yes"
4640 else
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4643 rm -rf conftest*
4644 eval "ac_cv_func_$ac_func=no"
4646 rm -f conftest*
4649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4652 cat >> confdefs.h <<EOF
4653 #define $ac_tr_func 1
4656 else
4657 echo "$ac_t""no" 1>&6
4659 done
4662 # We require memcpy.
4663 memcpy_found=no
4664 for ac_func in memcpy
4666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4667 echo "configure:4668: checking for $ac_func" >&5
4668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4670 else
4671 cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674 /* System header to define __stub macros and hopefully few prototypes,
4675 which can conflict with char $ac_func(); below. */
4676 #include <assert.h>
4677 /* Override any gcc2 internal prototype to avoid an error. */
4678 /* We use char because int might match the return type of a gcc2
4679 builtin and then its argument prototype would still apply. */
4680 char $ac_func();
4682 int main() {
4684 /* The GNU C library defines this for functions which it implements
4685 to always fail with ENOSYS. Some functions are actually named
4686 something starting with __ and the normal name is an alias. */
4687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4688 choke me
4689 #else
4690 $ac_func();
4691 #endif
4693 ; return 0; }
4695 if { (eval echo configure:4696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4696 rm -rf conftest*
4697 eval "ac_cv_func_$ac_func=yes"
4698 else
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 rm -rf conftest*
4702 eval "ac_cv_func_$ac_func=no"
4704 rm -f conftest*
4707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4708 echo "$ac_t""yes" 1>&6
4709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4710 cat >> confdefs.h <<EOF
4711 #define $ac_tr_func 1
4713 memcpy_found=yes
4714 else
4715 echo "$ac_t""no" 1>&6
4717 done
4719 if test "$memcpy_found" = no; then
4720 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4723 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4724 echo "configure:4725: checking for dlopen in -ldl" >&5
4725 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4727 echo $ac_n "(cached) $ac_c" 1>&6
4728 else
4729 ac_save_LIBS="$LIBS"
4730 LIBS="-ldl $LIBS"
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4734 /* Override any gcc2 internal prototype to avoid an error. */
4735 /* We use char because int might match the return type of a gcc2
4736 builtin and then its argument prototype would still apply. */
4737 char dlopen();
4739 int main() {
4740 dlopen()
4741 ; return 0; }
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4744 rm -rf conftest*
4745 eval "ac_cv_lib_$ac_lib_var=yes"
4746 else
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4749 rm -rf conftest*
4750 eval "ac_cv_lib_$ac_lib_var=no"
4752 rm -f conftest*
4753 LIBS="$ac_save_LIBS"
4756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4757 echo "$ac_t""yes" 1>&6
4758 cat >> confdefs.h <<\EOF
4759 #define HAVE_DLOPEN 1
4762 else
4763 echo "$ac_t""no" 1>&6
4767 # Some library-finding code we stole from Tcl.
4768 #--------------------------------------------------------------------
4769 # Check for the existence of the -lsocket and -lnsl libraries.
4770 # The order here is important, so that they end up in the right
4771 # order in the command line generated by make. Here are some
4772 # special considerations:
4773 # 1. Use "connect" and "accept" to check for -lsocket, and
4774 # "gethostbyname" to check for -lnsl.
4775 # 2. Use each function name only once: can't redo a check because
4776 # autoconf caches the results of the last check and won't redo it.
4777 # 3. Use -lnsl and -lsocket only if they supply procedures that
4778 # aren't already present in the normal libraries. This is because
4779 # IRIX 5.2 has libraries, but they aren't needed and they're
4780 # bogus: they goof up name resolution if used.
4781 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4782 # To get around this problem, check for both libraries together
4783 # if -lsocket doesn't work by itself.
4784 #--------------------------------------------------------------------
4786 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4787 echo "configure:4788: checking for socket libraries" >&5
4788 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4790 else
4791 gcj_cv_lib_sockets=
4792 gcj_checkBoth=0
4793 unset ac_cv_func_connect
4794 echo $ac_n "checking for connect""... $ac_c" 1>&6
4795 echo "configure:4796: checking for connect" >&5
4796 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4798 else
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 /* System header to define __stub macros and hopefully few prototypes,
4803 which can conflict with char connect(); below. */
4804 #include <assert.h>
4805 /* Override any gcc2 internal prototype to avoid an error. */
4806 /* We use char because int might match the return type of a gcc2
4807 builtin and then its argument prototype would still apply. */
4808 char connect();
4810 int main() {
4812 /* The GNU C library defines this for functions which it implements
4813 to always fail with ENOSYS. Some functions are actually named
4814 something starting with __ and the normal name is an alias. */
4815 #if defined (__stub_connect) || defined (__stub___connect)
4816 choke me
4817 #else
4818 connect();
4819 #endif
4821 ; return 0; }
4823 if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4824 rm -rf conftest*
4825 eval "ac_cv_func_connect=yes"
4826 else
4827 echo "configure: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4829 rm -rf conftest*
4830 eval "ac_cv_func_connect=no"
4832 rm -f conftest*
4835 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4836 echo "$ac_t""yes" 1>&6
4837 gcj_checkSocket=0
4838 else
4839 echo "$ac_t""no" 1>&6
4840 gcj_checkSocket=1
4843 if test "$gcj_checkSocket" = 1; then
4844 unset ac_cv_func_connect
4845 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4846 echo "configure:4847: checking for main in -lsocket" >&5
4847 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4850 else
4851 ac_save_LIBS="$LIBS"
4852 LIBS="-lsocket $LIBS"
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4857 int main() {
4858 main()
4859 ; return 0; }
4861 if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4862 rm -rf conftest*
4863 eval "ac_cv_lib_$ac_lib_var=yes"
4864 else
4865 echo "configure: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4867 rm -rf conftest*
4868 eval "ac_cv_lib_$ac_lib_var=no"
4870 rm -f conftest*
4871 LIBS="$ac_save_LIBS"
4874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4875 echo "$ac_t""yes" 1>&6
4876 gcj_cv_lib_sockets="-lsocket"
4877 else
4878 echo "$ac_t""no" 1>&6
4879 gcj_checkBoth=1
4883 if test "$gcj_checkBoth" = 1; then
4884 gcj_oldLibs=$LIBS
4885 LIBS="$LIBS -lsocket -lnsl"
4886 unset ac_cv_func_accept
4887 echo $ac_n "checking for accept""... $ac_c" 1>&6
4888 echo "configure:4889: checking for accept" >&5
4889 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4891 else
4892 cat > conftest.$ac_ext <<EOF
4893 #line 4894 "configure"
4894 #include "confdefs.h"
4895 /* System header to define __stub macros and hopefully few prototypes,
4896 which can conflict with char accept(); below. */
4897 #include <assert.h>
4898 /* Override any gcc2 internal prototype to avoid an error. */
4899 /* We use char because int might match the return type of a gcc2
4900 builtin and then its argument prototype would still apply. */
4901 char accept();
4903 int main() {
4905 /* The GNU C library defines this for functions which it implements
4906 to always fail with ENOSYS. Some functions are actually named
4907 something starting with __ and the normal name is an alias. */
4908 #if defined (__stub_accept) || defined (__stub___accept)
4909 choke me
4910 #else
4911 accept();
4912 #endif
4914 ; return 0; }
4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4917 rm -rf conftest*
4918 eval "ac_cv_func_accept=yes"
4919 else
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 rm -rf conftest*
4923 eval "ac_cv_func_accept=no"
4925 rm -f conftest*
4928 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4929 echo "$ac_t""yes" 1>&6
4930 gcj_checkNsl=0
4931 gcj_cv_lib_sockets="-lsocket -lnsl"
4932 else
4933 echo "$ac_t""no" 1>&6
4936 unset ac_cv_func_accept
4937 LIBS=$gcj_oldLibs
4939 unset ac_cv_func_gethostbyname
4940 gcj_oldLibs=$LIBS
4941 LIBS="$LIBS $gcj_cv_lib_sockets"
4942 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4943 echo "configure:4944: checking for gethostbyname" >&5
4944 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6
4946 else
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4950 /* System header to define __stub macros and hopefully few prototypes,
4951 which can conflict with char gethostbyname(); below. */
4952 #include <assert.h>
4953 /* Override any gcc2 internal prototype to avoid an error. */
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4956 char gethostbyname();
4958 int main() {
4960 /* The GNU C library defines this for functions which it implements
4961 to always fail with ENOSYS. Some functions are actually named
4962 something starting with __ and the normal name is an alias. */
4963 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4964 choke me
4965 #else
4966 gethostbyname();
4967 #endif
4969 ; return 0; }
4971 if { (eval echo configure:4972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4972 rm -rf conftest*
4973 eval "ac_cv_func_gethostbyname=yes"
4974 else
4975 echo "configure: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4977 rm -rf conftest*
4978 eval "ac_cv_func_gethostbyname=no"
4980 rm -f conftest*
4983 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4984 echo "$ac_t""yes" 1>&6
4986 else
4987 echo "$ac_t""no" 1>&6
4988 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4989 echo "configure:4990: checking for main in -lnsl" >&5
4990 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4992 echo $ac_n "(cached) $ac_c" 1>&6
4993 else
4994 ac_save_LIBS="$LIBS"
4995 LIBS="-lnsl $LIBS"
4996 cat > conftest.$ac_ext <<EOF
4997 #line 4998 "configure"
4998 #include "confdefs.h"
5000 int main() {
5001 main()
5002 ; return 0; }
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5005 rm -rf conftest*
5006 eval "ac_cv_lib_$ac_lib_var=yes"
5007 else
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5010 rm -rf conftest*
5011 eval "ac_cv_lib_$ac_lib_var=no"
5013 rm -f conftest*
5014 LIBS="$ac_save_LIBS"
5017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5018 echo "$ac_t""yes" 1>&6
5019 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5020 else
5021 echo "$ac_t""no" 1>&6
5026 unset ac_cv_func_gethostbyname
5027 LIBS=$gcj_oldLIBS
5031 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5032 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5034 if test "$with_system_zlib" = yes; then
5035 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5036 echo "configure:5037: checking for deflate in -lz" >&5
5037 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5040 else
5041 ac_save_LIBS="$LIBS"
5042 LIBS="-lz $LIBS"
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 /* Override any gcc2 internal prototype to avoid an error. */
5047 /* We use char because int might match the return type of a gcc2
5048 builtin and then its argument prototype would still apply. */
5049 char deflate();
5051 int main() {
5052 deflate()
5053 ; return 0; }
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5056 rm -rf conftest*
5057 eval "ac_cv_lib_$ac_lib_var=yes"
5058 else
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5061 rm -rf conftest*
5062 eval "ac_cv_lib_$ac_lib_var=no"
5064 rm -f conftest*
5065 LIBS="$ac_save_LIBS"
5068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5069 echo "$ac_t""yes" 1>&6
5070 ZLIBSPEC=-lz
5071 else
5072 echo "$ac_t""no" 1>&6
5073 ZLIBSPEC=-lzgcj
5076 else
5077 ZLIBSPEC=-lzgcj
5078 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
5081 # On Solaris, and maybe other architectures, the Boehm collector
5082 # requires -ldl.
5083 if test "$GC" = boehm; then
5084 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5085 echo "configure:5086: checking for main in -ldl" >&5
5086 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5089 else
5090 ac_save_LIBS="$LIBS"
5091 LIBS="-ldl $LIBS"
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5096 int main() {
5097 main()
5098 ; return 0; }
5100 if { (eval echo configure:5101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5101 rm -rf conftest*
5102 eval "ac_cv_lib_$ac_lib_var=yes"
5103 else
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5106 rm -rf conftest*
5107 eval "ac_cv_lib_$ac_lib_var=no"
5109 rm -f conftest*
5110 LIBS="$ac_save_LIBS"
5113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5114 echo "$ac_t""yes" 1>&6
5115 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5116 else
5117 echo "$ac_t""no" 1>&6
5122 if test -z "${with_multisubdir}"; then
5123 builddotdot=.
5124 else
5126 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5129 if test -x "${builddotdot}/../../gcc/gcj"; then
5130 dir="`cd ${builddotdot}/../../gcc && pwd`"
5131 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
5132 else
5133 CANADIAN=yes
5134 NULL_TARGET=yes
5135 GCJ="gcj -B`pwd`/"
5139 # Create it, so that compile/link tests don't fail
5140 test -f libgcj.spec || touch libgcj.spec
5142 # We must search the source tree for java.lang, since we still don't
5143 # have libgcj.jar nor java/lang/*.class
5144 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5145 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5147 # Since some classes depend on this one, we need its source available
5148 # before we can do any GCJ compilation test :-(
5149 if test ! -f gnu/classpath/Configuration.java; then
5150 test -d gnu || mkdir gnu
5151 test -d gnu/classpath || mkdir gnu/classpath
5152 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5153 < $srcdir/gnu/classpath/Configuration.java.in \
5154 > gnu/classpath/Configuration.java
5155 # We do not want to redirect the output of the grep below to /dev/null,
5156 # but we add /dev/null to the input list so that grep will print the
5157 # filename of Configuration.java in case it finds any matches.
5158 if grep @ gnu/classpath/Configuration.java /dev/null; then
5159 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5163 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5164 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5166 echo "configure:5167: checking for $ac_word" >&5
5167 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5168 echo $ac_n "(cached) $ac_c" 1>&6
5169 else
5170 if test -n "$GCJ"; then
5171 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5172 else
5173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5174 ac_dummy="$PATH"
5175 for ac_dir in $ac_dummy; do
5176 test -z "$ac_dir" && ac_dir=.
5177 if test -f $ac_dir/$ac_word; then
5178 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5179 break
5181 done
5182 IFS="$ac_save_ifs"
5185 GCJ="$ac_cv_prog_GCJ"
5186 if test -n "$GCJ"; then
5187 echo "$ac_t""$GCJ" 1>&6
5188 else
5189 echo "$ac_t""no" 1>&6
5193 if test -z "$ac_cv_prog_GCJ"; then
5194 if test -n "$ac_tool_prefix"; then
5195 # Extract the first word of "gcj", so it can be a program name with args.
5196 set dummy gcj; ac_word=$2
5197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5198 echo "configure:5199: checking for $ac_word" >&5
5199 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5201 else
5202 if test -n "$GCJ"; then
5203 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5204 else
5205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5206 ac_dummy="$PATH"
5207 for ac_dir in $ac_dummy; do
5208 test -z "$ac_dir" && ac_dir=.
5209 if test -f $ac_dir/$ac_word; then
5210 ac_cv_prog_GCJ="gcj"
5211 break
5213 done
5214 IFS="$ac_save_ifs"
5215 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5218 GCJ="$ac_cv_prog_GCJ"
5219 if test -n "$GCJ"; then
5220 echo "$ac_t""$GCJ" 1>&6
5221 else
5222 echo "$ac_t""no" 1>&6
5225 else
5226 GCJ="no"
5230 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5234 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5235 lt_save_CC="$CC"
5236 lt_save_CFLAGS="$CFLAGS"
5237 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5238 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5239 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5240 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5241 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5242 deplibs_check_method="$deplibs_check_method" \
5243 file_magic_cmd="$file_magic_cmd" \
5244 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5245 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5246 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5247 CC="$lt_save_CC"
5248 CFLAGS="$lt_save_CFLAGS"
5250 # Redirect the config.log output again, so that the ltconfig log is not
5251 # clobbered by the next message.
5252 exec 5>>./config.log
5257 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5259 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5260 echo "configure:5261: checking size of void *" >&5
5261 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5263 else
5264 if test "$cross_compiling" = yes; then
5265 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5266 else
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5270 #include <stdio.h>
5271 main()
5273 FILE *f=fopen("conftestval", "w");
5274 if (!f) exit(1);
5275 fprintf(f, "%d\n", sizeof(void *));
5276 exit(0);
5279 if { (eval echo configure:5280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5280 then
5281 ac_cv_sizeof_void_p=`cat conftestval`
5282 else
5283 echo "configure: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5285 rm -fr conftest*
5286 ac_cv_sizeof_void_p=0
5288 rm -fr conftest*
5292 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5293 cat >> confdefs.h <<EOF
5294 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5299 ZLIBS=
5300 ZDEPS=
5301 ZINCS=
5302 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5303 # We include the path to the zlib build directory.
5304 # See Makefile.am to understand why.
5305 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5306 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5307 ZINCS='-I$(top_srcdir)/../zlib'
5308 else
5309 ZLIBS="$ZLIBSPEC"
5319 if test "$CANADIAN" = yes; then
5320 CANADIAN_TRUE=
5321 CANADIAN_FALSE='#'
5322 else
5323 CANADIAN_TRUE='#'
5324 CANADIAN_FALSE=
5328 if test "$NULL_TARGET" = yes; then
5329 NULL_TARGET_TRUE=
5330 NULL_TARGET_FALSE='#'
5331 else
5332 NULL_TARGET_TRUE='#'
5333 NULL_TARGET_FALSE=
5337 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5338 NATIVE_TRUE=
5339 NATIVE_FALSE='#'
5340 else
5341 NATIVE_TRUE='#'
5342 NATIVE_FALSE=
5346 if test -z "$with_cross_host"; then
5347 USE_LIBDIR_TRUE=
5348 USE_LIBDIR_FALSE='#'
5349 else
5350 USE_LIBDIR_TRUE='#'
5351 USE_LIBDIR_FALSE=
5355 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5356 NEEDS_DATA_START_TRUE=
5357 NEEDS_DATA_START_FALSE='#'
5358 else
5359 NEEDS_DATA_START_TRUE='#'
5360 NEEDS_DATA_START_FALSE=
5364 # Determine gcj version number.
5366 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5368 cat >> confdefs.h <<EOF
5369 #define GCJVERSION "$gcjvers"
5376 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5377 echo "configure:5378: checking for g++ -ffloat-store bug" >&5
5378 save_CFLAGS="$CFLAGS"
5379 CFLAGS="-x c++ -O2 -ffloat-store"
5380 cat > conftest.$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5383 #include <math.h>
5384 int main() {
5386 ; return 0; }
5388 if { (eval echo configure:5389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5389 rm -rf conftest*
5390 echo "$ac_t""no" 1>&6
5391 else
5392 echo "configure: failed program was:" >&5
5393 cat conftest.$ac_ext >&5
5394 rm -rf conftest*
5395 cat >> confdefs.h <<\EOF
5396 #define __NO_MATH_INLINES 1
5399 echo "$ac_t""yes" 1>&6
5401 rm -f conftest*
5402 CFLAGS="$save_CFLAGS"
5404 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h langinfo.h locale.h
5406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5408 echo "configure:5409: checking for $ac_hdr" >&5
5409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5410 echo $ac_n "(cached) $ac_c" 1>&6
5411 else
5412 cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5415 #include <$ac_hdr>
5417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5418 { (eval echo configure:5419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5420 if test -z "$ac_err"; then
5421 rm -rf conftest*
5422 eval "ac_cv_header_$ac_safe=yes"
5423 else
5424 echo "$ac_err" >&5
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5427 rm -rf conftest*
5428 eval "ac_cv_header_$ac_safe=no"
5430 rm -f conftest*
5432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5433 echo "$ac_t""yes" 1>&6
5434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5435 cat >> confdefs.h <<EOF
5436 #define $ac_tr_hdr 1
5439 else
5440 echo "$ac_t""no" 1>&6
5442 done
5444 for ac_hdr in dirent.h
5446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5448 echo "configure:5449: checking for $ac_hdr" >&5
5449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5451 else
5452 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 #include <$ac_hdr>
5457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5458 { (eval echo configure:5459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5460 if test -z "$ac_err"; then
5461 rm -rf conftest*
5462 eval "ac_cv_header_$ac_safe=yes"
5463 else
5464 echo "$ac_err" >&5
5465 echo "configure: failed program was:" >&5
5466 cat conftest.$ac_ext >&5
5467 rm -rf conftest*
5468 eval "ac_cv_header_$ac_safe=no"
5470 rm -f conftest*
5472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5473 echo "$ac_t""yes" 1>&6
5474 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5475 cat >> confdefs.h <<EOF
5476 #define $ac_tr_hdr 1
5479 else
5480 echo "$ac_t""no" 1>&6
5482 done
5485 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5486 echo "configure:5487: checking for ANSI C header files" >&5
5487 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5489 else
5490 cat > conftest.$ac_ext <<EOF
5491 #line 5492 "configure"
5492 #include "confdefs.h"
5493 #include <stdlib.h>
5494 #include <stdarg.h>
5495 #include <string.h>
5496 #include <float.h>
5498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5499 { (eval echo configure:5500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5501 if test -z "$ac_err"; then
5502 rm -rf conftest*
5503 ac_cv_header_stdc=yes
5504 else
5505 echo "$ac_err" >&5
5506 echo "configure: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5508 rm -rf conftest*
5509 ac_cv_header_stdc=no
5511 rm -f conftest*
5513 if test $ac_cv_header_stdc = yes; then
5514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 #include <string.h>
5520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5521 egrep "memchr" >/dev/null 2>&1; then
5523 else
5524 rm -rf conftest*
5525 ac_cv_header_stdc=no
5527 rm -f conftest*
5531 if test $ac_cv_header_stdc = yes; then
5532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5533 cat > conftest.$ac_ext <<EOF
5534 #line 5535 "configure"
5535 #include "confdefs.h"
5536 #include <stdlib.h>
5538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 egrep "free" >/dev/null 2>&1; then
5541 else
5542 rm -rf conftest*
5543 ac_cv_header_stdc=no
5545 rm -f conftest*
5549 if test $ac_cv_header_stdc = yes; then
5550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5551 if test "$cross_compiling" = yes; then
5553 else
5554 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5557 #include <ctype.h>
5558 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5559 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5561 int main () { int i; for (i = 0; i < 256; i++)
5562 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5563 exit (0); }
5566 if { (eval echo configure:5567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5567 then
5569 else
5570 echo "configure: failed program was:" >&5
5571 cat conftest.$ac_ext >&5
5572 rm -fr conftest*
5573 ac_cv_header_stdc=no
5575 rm -fr conftest*
5581 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5582 if test $ac_cv_header_stdc = yes; then
5583 cat >> confdefs.h <<\EOF
5584 #define STDC_HEADERS 1
5589 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5590 echo "configure:5591: checking for ssize_t" >&5
5591 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5593 else
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 #include <sys/types.h>
5598 #if STDC_HEADERS
5599 #include <stdlib.h>
5600 #include <stddef.h>
5601 #endif
5603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5604 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5605 rm -rf conftest*
5606 ac_cv_type_ssize_t=yes
5607 else
5608 rm -rf conftest*
5609 ac_cv_type_ssize_t=no
5611 rm -f conftest*
5614 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5615 if test $ac_cv_type_ssize_t = no; then
5616 cat >> confdefs.h <<\EOF
5617 #define ssize_t int
5623 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5624 echo "configure:5625: checking for in_addr_t" >&5
5625 cat > conftest.$ac_ext <<EOF
5626 #line 5627 "configure"
5627 #include "confdefs.h"
5628 #include <sys/types.h>
5629 #if STDC_HEADERS
5630 #include <stdlib.h>
5631 #include <stddef.h>
5632 #endif
5633 #if HAVE_NETINET_IN_H
5634 #include <netinet/in.h>
5635 #endif
5636 int main() {
5637 in_addr_t foo;
5638 ; return 0; }
5640 if { (eval echo configure:5641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5641 rm -rf conftest*
5642 cat >> confdefs.h <<\EOF
5643 #define HAVE_IN_ADDR_T 1
5646 echo "$ac_t""yes" 1>&6
5647 else
5648 echo "configure: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5650 rm -rf conftest*
5651 echo "$ac_t""no" 1>&6
5653 rm -f conftest*
5655 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5656 echo "configure:5657: checking whether struct ip_mreq is in netinet/in.h" >&5
5657 cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5660 #include <netinet/in.h>
5661 int main() {
5662 struct ip_mreq mreq;
5663 ; return 0; }
5665 if { (eval echo configure:5666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5666 rm -rf conftest*
5667 cat >> confdefs.h <<\EOF
5668 #define HAVE_STRUCT_IP_MREQ 1
5671 echo "$ac_t""yes" 1>&6
5672 else
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 rm -rf conftest*
5676 echo "$ac_t""no" 1>&6
5678 rm -f conftest*
5680 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
5681 echo "configure:5682: checking whether struct ipv6_mreq is in netinet/in.h" >&5
5682 cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5685 #include <netinet/in.h>
5686 int main() {
5687 struct ipv6_mreq mreq6;
5688 ; return 0; }
5690 if { (eval echo configure:5691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5691 rm -rf conftest*
5692 cat >> confdefs.h <<\EOF
5693 #define HAVE_STRUCT_IPV6_MREQ 1
5696 echo "$ac_t""yes" 1>&6
5697 else
5698 echo "configure: failed program was:" >&5
5699 cat conftest.$ac_ext >&5
5700 rm -rf conftest*
5701 echo "$ac_t""no" 1>&6
5703 rm -f conftest*
5705 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5706 echo "configure:5707: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 #include <netinet/in.h>
5711 int main() {
5712 struct sockaddr_in6 addr6;
5713 ; return 0; }
5715 if { (eval echo configure:5716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5716 rm -rf conftest*
5717 cat >> confdefs.h <<\EOF
5718 #define HAVE_INET6 1
5721 echo "$ac_t""yes" 1>&6
5722 else
5723 echo "configure: failed program was:" >&5
5724 cat conftest.$ac_ext >&5
5725 rm -rf conftest*
5726 echo "$ac_t""no" 1>&6
5728 rm -f conftest*
5730 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5731 echo "configure:5732: checking for socklen_t in sys/socket.h" >&5
5732 cat > conftest.$ac_ext <<EOF
5733 #line 5734 "configure"
5734 #include "confdefs.h"
5735 #define _POSIX_PII_SOCKET
5736 #include <sys/types.h>
5737 #include <sys/socket.h>
5738 int main() {
5739 socklen_t x = 5;
5740 ; return 0; }
5742 if { (eval echo configure:5743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5743 rm -rf conftest*
5744 cat >> confdefs.h <<\EOF
5745 #define HAVE_SOCKLEN_T 1
5748 echo "$ac_t""yes" 1>&6
5749 else
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5752 rm -rf conftest*
5753 echo "$ac_t""no" 1>&6
5755 rm -f conftest*
5757 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5758 echo "configure:5759: checking for tm_gmtoff in struct tm" >&5
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762 #include <time.h>
5763 int main() {
5764 struct tm tim; tim.tm_gmtoff = 0;
5765 ; return 0; }
5767 if { (eval echo configure:5768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5768 rm -rf conftest*
5769 cat >> confdefs.h <<\EOF
5770 #define STRUCT_TM_HAS_GMTOFF 1
5773 echo "$ac_t""yes" 1>&6
5774 else
5775 echo "configure: failed program was:" >&5
5776 cat conftest.$ac_ext >&5
5777 rm -rf conftest*
5778 echo "$ac_t""no" 1>&6
5779 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5780 echo "configure:5781: checking for global timezone variable" >&5
5781 cat > conftest.$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5784 #include <time.h>
5785 int main() {
5786 long z2 = timezone;
5787 ; return 0; }
5789 if { (eval echo configure:5790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5790 rm -rf conftest*
5791 cat >> confdefs.h <<\EOF
5792 #define HAVE_TIMEZONE 1
5795 echo "$ac_t""yes" 1>&6
5796 else
5797 echo "configure: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5799 rm -rf conftest*
5800 echo "$ac_t""no" 1>&6
5802 rm -f conftest*
5804 rm -f conftest*
5806 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5807 # for constant arguments. Useless!
5808 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5809 echo "configure:5810: checking for working alloca.h" >&5
5810 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5812 else
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 #include <alloca.h>
5817 int main() {
5818 char *p = alloca(2 * sizeof(int));
5819 ; return 0; }
5821 if { (eval echo configure:5822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5822 rm -rf conftest*
5823 ac_cv_header_alloca_h=yes
5824 else
5825 echo "configure: failed program was:" >&5
5826 cat conftest.$ac_ext >&5
5827 rm -rf conftest*
5828 ac_cv_header_alloca_h=no
5830 rm -f conftest*
5833 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5834 if test $ac_cv_header_alloca_h = yes; then
5835 cat >> confdefs.h <<\EOF
5836 #define HAVE_ALLOCA_H 1
5841 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5842 echo "configure:5843: checking for alloca" >&5
5843 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5844 echo $ac_n "(cached) $ac_c" 1>&6
5845 else
5846 cat > conftest.$ac_ext <<EOF
5847 #line 5848 "configure"
5848 #include "confdefs.h"
5850 #ifdef __GNUC__
5851 # define alloca __builtin_alloca
5852 #else
5853 # ifdef _MSC_VER
5854 # include <malloc.h>
5855 # define alloca _alloca
5856 # else
5857 # if HAVE_ALLOCA_H
5858 # include <alloca.h>
5859 # else
5860 # ifdef _AIX
5861 #pragma alloca
5862 # else
5863 # ifndef alloca /* predefined by HP cc +Olibcalls */
5864 char *alloca ();
5865 # endif
5866 # endif
5867 # endif
5868 # endif
5869 #endif
5871 int main() {
5872 char *p = (char *) alloca(1);
5873 ; return 0; }
5875 if { (eval echo configure:5876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5876 rm -rf conftest*
5877 ac_cv_func_alloca_works=yes
5878 else
5879 echo "configure: failed program was:" >&5
5880 cat conftest.$ac_ext >&5
5881 rm -rf conftest*
5882 ac_cv_func_alloca_works=no
5884 rm -f conftest*
5887 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5888 if test $ac_cv_func_alloca_works = yes; then
5889 cat >> confdefs.h <<\EOF
5890 #define HAVE_ALLOCA 1
5895 if test $ac_cv_func_alloca_works = no; then
5896 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5897 # that cause trouble. Some versions do not even contain alloca or
5898 # contain a buggy version. If you still want to use their alloca,
5899 # use ar to extract alloca.o from them instead of compiling alloca.c.
5900 ALLOCA=alloca.${ac_objext}
5901 cat >> confdefs.h <<\EOF
5902 #define C_ALLOCA 1
5906 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5907 echo "configure:5908: checking whether alloca needs Cray hooks" >&5
5908 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5910 else
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 #if defined(CRAY) && ! defined(CRAY2)
5915 webecray
5916 #else
5917 wenotbecray
5918 #endif
5921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5922 egrep "webecray" >/dev/null 2>&1; then
5923 rm -rf conftest*
5924 ac_cv_os_cray=yes
5925 else
5926 rm -rf conftest*
5927 ac_cv_os_cray=no
5929 rm -f conftest*
5933 echo "$ac_t""$ac_cv_os_cray" 1>&6
5934 if test $ac_cv_os_cray = yes; then
5935 for ac_func in _getb67 GETB67 getb67; do
5936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5937 echo "configure:5938: checking for $ac_func" >&5
5938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5940 else
5941 cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 /* System header to define __stub macros and hopefully few prototypes,
5945 which can conflict with char $ac_func(); below. */
5946 #include <assert.h>
5947 /* Override any gcc2 internal prototype to avoid an error. */
5948 /* We use char because int might match the return type of a gcc2
5949 builtin and then its argument prototype would still apply. */
5950 char $ac_func();
5952 int main() {
5954 /* The GNU C library defines this for functions which it implements
5955 to always fail with ENOSYS. Some functions are actually named
5956 something starting with __ and the normal name is an alias. */
5957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5958 choke me
5959 #else
5960 $ac_func();
5961 #endif
5963 ; return 0; }
5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5966 rm -rf conftest*
5967 eval "ac_cv_func_$ac_func=yes"
5968 else
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5971 rm -rf conftest*
5972 eval "ac_cv_func_$ac_func=no"
5974 rm -f conftest*
5977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5978 echo "$ac_t""yes" 1>&6
5979 cat >> confdefs.h <<EOF
5980 #define CRAY_STACKSEG_END $ac_func
5983 break
5984 else
5985 echo "$ac_t""no" 1>&6
5988 done
5991 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5992 echo "configure:5993: checking stack direction for C alloca" >&5
5993 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5994 echo $ac_n "(cached) $ac_c" 1>&6
5995 else
5996 if test "$cross_compiling" = yes; then
5997 ac_cv_c_stack_direction=0
5998 else
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6002 find_stack_direction ()
6004 static char *addr = 0;
6005 auto char dummy;
6006 if (addr == 0)
6008 addr = &dummy;
6009 return find_stack_direction ();
6011 else
6012 return (&dummy > addr) ? 1 : -1;
6014 main ()
6016 exit (find_stack_direction() < 0);
6019 if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6020 then
6021 ac_cv_c_stack_direction=1
6022 else
6023 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6025 rm -fr conftest*
6026 ac_cv_c_stack_direction=-1
6028 rm -fr conftest*
6033 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6034 cat >> confdefs.h <<EOF
6035 #define STACK_DIRECTION $ac_cv_c_stack_direction
6041 for ac_prog in perl
6043 # Extract the first word of "$ac_prog", so it can be a program name with args.
6044 set dummy $ac_prog; ac_word=$2
6045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6046 echo "configure:6047: checking for $ac_word" >&5
6047 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6048 echo $ac_n "(cached) $ac_c" 1>&6
6049 else
6050 if test -n "$PERL"; then
6051 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6052 else
6053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6054 ac_dummy="$PATH"
6055 for ac_dir in $ac_dummy; do
6056 test -z "$ac_dir" && ac_dir=.
6057 if test -f $ac_dir/$ac_word; then
6058 ac_cv_prog_PERL="$ac_prog"
6059 break
6061 done
6062 IFS="$ac_save_ifs"
6065 PERL="$ac_cv_prog_PERL"
6066 if test -n "$PERL"; then
6067 echo "$ac_t""$PERL" 1>&6
6068 else
6069 echo "$ac_t""no" 1>&6
6072 test -n "$PERL" && break
6073 done
6074 test -n "$PERL" || PERL="false"
6077 SYSDEP_SOURCES=
6079 case "${host}" in
6080 i?86-*-linux*)
6081 SIGNAL_HANDLER=include/i386-signal.h
6083 sparc-sun-solaris*)
6084 SIGNAL_HANDLER=include/sparc-signal.h
6086 # ia64-*)
6087 # SYSDEP_SOURCES=sysdep/ia64.c
6088 # test -d sysdep || mkdir sysdep
6089 # ;;
6090 powerpc-*-linux*)
6091 SIGNAL_HANDLER=include/dwarf2-signal.h
6093 alpha*-*-linux*)
6094 SIGNAL_HANDLER=include/dwarf2-signal.h
6097 SIGNAL_HANDLER=include/default-signal.h
6099 esac
6101 # If we're using sjlj exceptions, forget what we just learned.
6102 if test "$enable_sjlj_exceptions" = yes; then
6103 SIGNAL_HANDLER=include/default-signal.h
6110 if test "${multilib}" = "yes"; then
6111 multilib_arg="--enable-multilib"
6112 else
6113 multilib_arg=
6116 # If we find X, set shell vars x_includes and x_libraries to the
6117 # paths, otherwise set no_x=yes.
6118 # Uses ac_ vars as temps to allow command line to override cache and checks.
6119 # --without-x overrides everything else, but does not touch the cache.
6120 echo $ac_n "checking for X""... $ac_c" 1>&6
6121 echo "configure:6122: checking for X" >&5
6123 # Check whether --with-x or --without-x was given.
6124 if test "${with_x+set}" = set; then
6125 withval="$with_x"
6129 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6130 if test "x$with_x" = xno; then
6131 # The user explicitly disabled X.
6132 have_x=disabled
6133 else
6134 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6135 # Both variables are already set.
6136 have_x=yes
6137 else
6138 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6139 echo $ac_n "(cached) $ac_c" 1>&6
6140 else
6141 # One or both of the vars are not set, and there is no cached value.
6142 ac_x_includes=NO ac_x_libraries=NO
6143 rm -fr conftestdir
6144 if mkdir conftestdir; then
6145 cd conftestdir
6146 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6147 cat > Imakefile <<'EOF'
6148 acfindx:
6149 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6151 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6152 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6153 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6154 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6155 for ac_extension in a so sl; do
6156 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6157 test -f $ac_im_libdir/libX11.$ac_extension; then
6158 ac_im_usrlibdir=$ac_im_libdir; break
6160 done
6161 # Screen out bogus values from the imake configuration. They are
6162 # bogus both because they are the default anyway, and because
6163 # using them would break gcc on systems where it needs fixed includes.
6164 case "$ac_im_incroot" in
6165 /usr/include) ;;
6166 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6167 esac
6168 case "$ac_im_usrlibdir" in
6169 /usr/lib | /lib) ;;
6170 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6171 esac
6173 cd ..
6174 rm -fr conftestdir
6177 if test "$ac_x_includes" = NO; then
6178 # Guess where to find include files, by looking for this one X11 .h file.
6179 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6181 # First, try using that file with no special directory specified.
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6185 #include <$x_direct_test_include>
6187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6188 { (eval echo configure:6189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6190 if test -z "$ac_err"; then
6191 rm -rf conftest*
6192 # We can compile using X headers with no special include directory.
6193 ac_x_includes=
6194 else
6195 echo "$ac_err" >&5
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6198 rm -rf conftest*
6199 # Look for the header file in a standard set of common directories.
6200 # Check X11 before X11Rn because it is often a symlink to the current release.
6201 for ac_dir in \
6202 /usr/X11/include \
6203 /usr/X11R6/include \
6204 /usr/X11R5/include \
6205 /usr/X11R4/include \
6207 /usr/include/X11 \
6208 /usr/include/X11R6 \
6209 /usr/include/X11R5 \
6210 /usr/include/X11R4 \
6212 /usr/local/X11/include \
6213 /usr/local/X11R6/include \
6214 /usr/local/X11R5/include \
6215 /usr/local/X11R4/include \
6217 /usr/local/include/X11 \
6218 /usr/local/include/X11R6 \
6219 /usr/local/include/X11R5 \
6220 /usr/local/include/X11R4 \
6222 /usr/X386/include \
6223 /usr/x386/include \
6224 /usr/XFree86/include/X11 \
6226 /usr/include \
6227 /usr/local/include \
6228 /usr/unsupported/include \
6229 /usr/athena/include \
6230 /usr/local/x11r5/include \
6231 /usr/lpp/Xamples/include \
6233 /usr/openwin/include \
6234 /usr/openwin/share/include \
6237 if test -r "$ac_dir/$x_direct_test_include"; then
6238 ac_x_includes=$ac_dir
6239 break
6241 done
6243 rm -f conftest*
6244 fi # $ac_x_includes = NO
6246 if test "$ac_x_libraries" = NO; then
6247 # Check for the libraries.
6249 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6250 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6252 # See if we find them without any special options.
6253 # Don't add to $LIBS permanently.
6254 ac_save_LIBS="$LIBS"
6255 LIBS="-l$x_direct_test_library $LIBS"
6256 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6260 int main() {
6261 ${x_direct_test_function}()
6262 ; return 0; }
6264 if { (eval echo configure:6265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6265 rm -rf conftest*
6266 LIBS="$ac_save_LIBS"
6267 # We can link X programs with no special library path.
6268 ac_x_libraries=
6269 else
6270 echo "configure: failed program was:" >&5
6271 cat conftest.$ac_ext >&5
6272 rm -rf conftest*
6273 LIBS="$ac_save_LIBS"
6274 # First see if replacing the include by lib works.
6275 # Check X11 before X11Rn because it is often a symlink to the current release.
6276 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6277 /usr/X11/lib \
6278 /usr/X11R6/lib \
6279 /usr/X11R5/lib \
6280 /usr/X11R4/lib \
6282 /usr/lib/X11 \
6283 /usr/lib/X11R6 \
6284 /usr/lib/X11R5 \
6285 /usr/lib/X11R4 \
6287 /usr/local/X11/lib \
6288 /usr/local/X11R6/lib \
6289 /usr/local/X11R5/lib \
6290 /usr/local/X11R4/lib \
6292 /usr/local/lib/X11 \
6293 /usr/local/lib/X11R6 \
6294 /usr/local/lib/X11R5 \
6295 /usr/local/lib/X11R4 \
6297 /usr/X386/lib \
6298 /usr/x386/lib \
6299 /usr/XFree86/lib/X11 \
6301 /usr/lib \
6302 /usr/local/lib \
6303 /usr/unsupported/lib \
6304 /usr/athena/lib \
6305 /usr/local/x11r5/lib \
6306 /usr/lpp/Xamples/lib \
6307 /lib/usr/lib/X11 \
6309 /usr/openwin/lib \
6310 /usr/openwin/share/lib \
6313 for ac_extension in a so sl; do
6314 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6315 ac_x_libraries=$ac_dir
6316 break 2
6318 done
6319 done
6321 rm -f conftest*
6322 fi # $ac_x_libraries = NO
6324 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6325 # Didn't find X anywhere. Cache the known absence of X.
6326 ac_cv_have_x="have_x=no"
6327 else
6328 # Record where we found X for the cache.
6329 ac_cv_have_x="have_x=yes \
6330 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6334 eval "$ac_cv_have_x"
6335 fi # $with_x != no
6337 if test "$have_x" != yes; then
6338 echo "$ac_t""$have_x" 1>&6
6339 no_x=yes
6340 else
6341 # If each of the values was on the command line, it overrides each guess.
6342 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6343 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6344 # Update the cache value to reflect the command line values.
6345 ac_cv_have_x="have_x=yes \
6346 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6347 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6350 if test "$no_x" = yes; then
6351 # Not all programs may use this symbol, but it does not hurt to define it.
6352 cat >> confdefs.h <<\EOF
6353 #define X_DISPLAY_MISSING 1
6356 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6357 else
6358 if test -n "$x_includes"; then
6359 X_CFLAGS="$X_CFLAGS -I$x_includes"
6362 # It would also be nice to do this for all -L options, not just this one.
6363 if test -n "$x_libraries"; then
6364 X_LIBS="$X_LIBS -L$x_libraries"
6365 # For Solaris; some versions of Sun CC require a space after -R and
6366 # others require no space. Words are not sufficient . . . .
6367 case "`(uname -sr) 2>/dev/null`" in
6368 "SunOS 5"*)
6369 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6370 echo "configure:6371: checking whether -R must be followed by a space" >&5
6371 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6372 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6376 int main() {
6378 ; return 0; }
6380 if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6381 rm -rf conftest*
6382 ac_R_nospace=yes
6383 else
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6386 rm -rf conftest*
6387 ac_R_nospace=no
6389 rm -f conftest*
6390 if test $ac_R_nospace = yes; then
6391 echo "$ac_t""no" 1>&6
6392 X_LIBS="$X_LIBS -R$x_libraries"
6393 else
6394 LIBS="$ac_xsave_LIBS -R $x_libraries"
6395 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure"
6397 #include "confdefs.h"
6399 int main() {
6401 ; return 0; }
6403 if { (eval echo configure:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6404 rm -rf conftest*
6405 ac_R_space=yes
6406 else
6407 echo "configure: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6409 rm -rf conftest*
6410 ac_R_space=no
6412 rm -f conftest*
6413 if test $ac_R_space = yes; then
6414 echo "$ac_t""yes" 1>&6
6415 X_LIBS="$X_LIBS -R $x_libraries"
6416 else
6417 echo "$ac_t""neither works" 1>&6
6420 LIBS="$ac_xsave_LIBS"
6421 esac
6424 # Check for system-dependent libraries X programs must link with.
6425 # Do this before checking for the system-independent R6 libraries
6426 # (-lICE), since we may need -lsocket or whatever for X linking.
6428 if test "$ISC" = yes; then
6429 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6430 else
6431 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6432 # libraries were built with DECnet support. And karl@cs.umb.edu says
6433 # the Alpha needs dnet_stub (dnet does not exist).
6434 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6435 echo "configure:6436: checking for dnet_ntoa in -ldnet" >&5
6436 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6438 echo $ac_n "(cached) $ac_c" 1>&6
6439 else
6440 ac_save_LIBS="$LIBS"
6441 LIBS="-ldnet $LIBS"
6442 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6445 /* Override any gcc2 internal prototype to avoid an error. */
6446 /* We use char because int might match the return type of a gcc2
6447 builtin and then its argument prototype would still apply. */
6448 char dnet_ntoa();
6450 int main() {
6451 dnet_ntoa()
6452 ; return 0; }
6454 if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6455 rm -rf conftest*
6456 eval "ac_cv_lib_$ac_lib_var=yes"
6457 else
6458 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6460 rm -rf conftest*
6461 eval "ac_cv_lib_$ac_lib_var=no"
6463 rm -f conftest*
6464 LIBS="$ac_save_LIBS"
6467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6468 echo "$ac_t""yes" 1>&6
6469 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6470 else
6471 echo "$ac_t""no" 1>&6
6474 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6475 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6476 echo "configure:6477: checking for dnet_ntoa in -ldnet_stub" >&5
6477 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6480 else
6481 ac_save_LIBS="$LIBS"
6482 LIBS="-ldnet_stub $LIBS"
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6489 char dnet_ntoa();
6491 int main() {
6492 dnet_ntoa()
6493 ; return 0; }
6495 if { (eval echo configure:6496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6496 rm -rf conftest*
6497 eval "ac_cv_lib_$ac_lib_var=yes"
6498 else
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6501 rm -rf conftest*
6502 eval "ac_cv_lib_$ac_lib_var=no"
6504 rm -f conftest*
6505 LIBS="$ac_save_LIBS"
6508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6509 echo "$ac_t""yes" 1>&6
6510 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6511 else
6512 echo "$ac_t""no" 1>&6
6517 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6518 # to get the SysV transport functions.
6519 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6520 # needs -lnsl.
6521 # The nsl library prevents programs from opening the X display
6522 # on Irix 5.2, according to dickey@clark.net.
6523 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6524 echo "configure:6525: checking for gethostbyname" >&5
6525 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6527 else
6528 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6531 /* System header to define __stub macros and hopefully few prototypes,
6532 which can conflict with char gethostbyname(); below. */
6533 #include <assert.h>
6534 /* Override any gcc2 internal prototype to avoid an error. */
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6537 char gethostbyname();
6539 int main() {
6541 /* The GNU C library defines this for functions which it implements
6542 to always fail with ENOSYS. Some functions are actually named
6543 something starting with __ and the normal name is an alias. */
6544 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6545 choke me
6546 #else
6547 gethostbyname();
6548 #endif
6550 ; return 0; }
6552 if { (eval echo configure:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6553 rm -rf conftest*
6554 eval "ac_cv_func_gethostbyname=yes"
6555 else
6556 echo "configure: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6558 rm -rf conftest*
6559 eval "ac_cv_func_gethostbyname=no"
6561 rm -f conftest*
6564 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6565 echo "$ac_t""yes" 1>&6
6567 else
6568 echo "$ac_t""no" 1>&6
6571 if test $ac_cv_func_gethostbyname = no; then
6572 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6573 echo "configure:6574: checking for gethostbyname in -lnsl" >&5
6574 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6577 else
6578 ac_save_LIBS="$LIBS"
6579 LIBS="-lnsl $LIBS"
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6586 char gethostbyname();
6588 int main() {
6589 gethostbyname()
6590 ; return 0; }
6592 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6593 rm -rf conftest*
6594 eval "ac_cv_lib_$ac_lib_var=yes"
6595 else
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6598 rm -rf conftest*
6599 eval "ac_cv_lib_$ac_lib_var=no"
6601 rm -f conftest*
6602 LIBS="$ac_save_LIBS"
6605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6606 echo "$ac_t""yes" 1>&6
6607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6608 else
6609 echo "$ac_t""no" 1>&6
6614 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6615 # socket/setsockopt and other routines are undefined under SCO ODT
6616 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6617 # on later versions), says simon@lia.di.epfl.ch: it contains
6618 # gethostby* variants that don't use the nameserver (or something).
6619 # -lsocket must be given before -lnsl if both are needed.
6620 # We assume that if connect needs -lnsl, so does gethostbyname.
6621 echo $ac_n "checking for connect""... $ac_c" 1>&6
6622 echo "configure:6623: checking for connect" >&5
6623 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6624 echo $ac_n "(cached) $ac_c" 1>&6
6625 else
6626 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6629 /* System header to define __stub macros and hopefully few prototypes,
6630 which can conflict with char connect(); below. */
6631 #include <assert.h>
6632 /* Override any gcc2 internal prototype to avoid an error. */
6633 /* We use char because int might match the return type of a gcc2
6634 builtin and then its argument prototype would still apply. */
6635 char connect();
6637 int main() {
6639 /* The GNU C library defines this for functions which it implements
6640 to always fail with ENOSYS. Some functions are actually named
6641 something starting with __ and the normal name is an alias. */
6642 #if defined (__stub_connect) || defined (__stub___connect)
6643 choke me
6644 #else
6645 connect();
6646 #endif
6648 ; return 0; }
6650 if { (eval echo configure:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6651 rm -rf conftest*
6652 eval "ac_cv_func_connect=yes"
6653 else
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6656 rm -rf conftest*
6657 eval "ac_cv_func_connect=no"
6659 rm -f conftest*
6662 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6663 echo "$ac_t""yes" 1>&6
6665 else
6666 echo "$ac_t""no" 1>&6
6669 if test $ac_cv_func_connect = no; then
6670 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6671 echo "configure:6672: checking for connect in -lsocket" >&5
6672 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6674 echo $ac_n "(cached) $ac_c" 1>&6
6675 else
6676 ac_save_LIBS="$LIBS"
6677 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.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 connect();
6686 int main() {
6687 connect()
6688 ; return 0; }
6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6691 rm -rf conftest*
6692 eval "ac_cv_lib_$ac_lib_var=yes"
6693 else
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6696 rm -rf conftest*
6697 eval "ac_cv_lib_$ac_lib_var=no"
6699 rm -f conftest*
6700 LIBS="$ac_save_LIBS"
6703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6704 echo "$ac_t""yes" 1>&6
6705 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6706 else
6707 echo "$ac_t""no" 1>&6
6712 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6713 echo $ac_n "checking for remove""... $ac_c" 1>&6
6714 echo "configure:6715: checking for remove" >&5
6715 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6716 echo $ac_n "(cached) $ac_c" 1>&6
6717 else
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6721 /* System header to define __stub macros and hopefully few prototypes,
6722 which can conflict with char remove(); below. */
6723 #include <assert.h>
6724 /* Override any gcc2 internal prototype to avoid an error. */
6725 /* We use char because int might match the return type of a gcc2
6726 builtin and then its argument prototype would still apply. */
6727 char remove();
6729 int main() {
6731 /* The GNU C library defines this for functions which it implements
6732 to always fail with ENOSYS. Some functions are actually named
6733 something starting with __ and the normal name is an alias. */
6734 #if defined (__stub_remove) || defined (__stub___remove)
6735 choke me
6736 #else
6737 remove();
6738 #endif
6740 ; return 0; }
6742 if { (eval echo configure:6743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6743 rm -rf conftest*
6744 eval "ac_cv_func_remove=yes"
6745 else
6746 echo "configure: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6748 rm -rf conftest*
6749 eval "ac_cv_func_remove=no"
6751 rm -f conftest*
6754 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6755 echo "$ac_t""yes" 1>&6
6757 else
6758 echo "$ac_t""no" 1>&6
6761 if test $ac_cv_func_remove = no; then
6762 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6763 echo "configure:6764: checking for remove in -lposix" >&5
6764 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6767 else
6768 ac_save_LIBS="$LIBS"
6769 LIBS="-lposix $LIBS"
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 /* Override any gcc2 internal prototype to avoid an error. */
6774 /* We use char because int might match the return type of a gcc2
6775 builtin and then its argument prototype would still apply. */
6776 char remove();
6778 int main() {
6779 remove()
6780 ; return 0; }
6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6783 rm -rf conftest*
6784 eval "ac_cv_lib_$ac_lib_var=yes"
6785 else
6786 echo "configure: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6788 rm -rf conftest*
6789 eval "ac_cv_lib_$ac_lib_var=no"
6791 rm -f conftest*
6792 LIBS="$ac_save_LIBS"
6795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6796 echo "$ac_t""yes" 1>&6
6797 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6798 else
6799 echo "$ac_t""no" 1>&6
6804 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6805 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6806 echo "configure:6807: checking for shmat" >&5
6807 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6809 else
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6813 /* System header to define __stub macros and hopefully few prototypes,
6814 which can conflict with char shmat(); below. */
6815 #include <assert.h>
6816 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6819 char shmat();
6821 int main() {
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_shmat) || defined (__stub___shmat)
6827 choke me
6828 #else
6829 shmat();
6830 #endif
6832 ; return 0; }
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6835 rm -rf conftest*
6836 eval "ac_cv_func_shmat=yes"
6837 else
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6840 rm -rf conftest*
6841 eval "ac_cv_func_shmat=no"
6843 rm -f conftest*
6846 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6847 echo "$ac_t""yes" 1>&6
6849 else
6850 echo "$ac_t""no" 1>&6
6853 if test $ac_cv_func_shmat = no; then
6854 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6855 echo "configure:6856: checking for shmat in -lipc" >&5
6856 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6858 echo $ac_n "(cached) $ac_c" 1>&6
6859 else
6860 ac_save_LIBS="$LIBS"
6861 LIBS="-lipc $LIBS"
6862 cat > conftest.$ac_ext <<EOF
6863 #line 6864 "configure"
6864 #include "confdefs.h"
6865 /* Override any gcc2 internal prototype to avoid an error. */
6866 /* We use char because int might match the return type of a gcc2
6867 builtin and then its argument prototype would still apply. */
6868 char shmat();
6870 int main() {
6871 shmat()
6872 ; return 0; }
6874 if { (eval echo configure:6875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6875 rm -rf conftest*
6876 eval "ac_cv_lib_$ac_lib_var=yes"
6877 else
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6880 rm -rf conftest*
6881 eval "ac_cv_lib_$ac_lib_var=no"
6883 rm -f conftest*
6884 LIBS="$ac_save_LIBS"
6887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6888 echo "$ac_t""yes" 1>&6
6889 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6890 else
6891 echo "$ac_t""no" 1>&6
6897 # Check for libraries that X11R6 Xt/Xaw programs need.
6898 ac_save_LDFLAGS="$LDFLAGS"
6899 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6900 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6901 # check for ICE first), but we must link in the order -lSM -lICE or
6902 # we get undefined symbols. So assume we have SM if we have ICE.
6903 # These have to be linked with before -lX11, unlike the other
6904 # libraries we check for below, so use a different variable.
6905 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6906 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6907 echo "configure:6908: checking for IceConnectionNumber in -lICE" >&5
6908 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6910 echo $ac_n "(cached) $ac_c" 1>&6
6911 else
6912 ac_save_LIBS="$LIBS"
6913 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 /* Override any gcc2 internal prototype to avoid an error. */
6918 /* We use char because int might match the return type of a gcc2
6919 builtin and then its argument prototype would still apply. */
6920 char IceConnectionNumber();
6922 int main() {
6923 IceConnectionNumber()
6924 ; return 0; }
6926 if { (eval echo configure:6927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6927 rm -rf conftest*
6928 eval "ac_cv_lib_$ac_lib_var=yes"
6929 else
6930 echo "configure: failed program was:" >&5
6931 cat conftest.$ac_ext >&5
6932 rm -rf conftest*
6933 eval "ac_cv_lib_$ac_lib_var=no"
6935 rm -f conftest*
6936 LIBS="$ac_save_LIBS"
6939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6940 echo "$ac_t""yes" 1>&6
6941 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6942 else
6943 echo "$ac_t""no" 1>&6
6946 LDFLAGS="$ac_save_LDFLAGS"
6951 # Check whether --enable-java-awt or --disable-java-awt was given.
6952 if test "${enable_java_awt+set}" = set; then
6953 enableval="$enable_java_awt"
6958 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6959 use_xlib_awt=""
6960 use_gtk_awt=""
6962 for peer in $peerlibs ; do
6963 case $peer in
6964 xlib)
6965 if test "$no_x" = yes; then
6966 echo "*** xlib peers requested but no X library available" 1>&2
6967 exit 1
6968 else
6969 use_xlib_awt="yes"
6972 gtk)
6973 # Nothing, yet...
6976 use_xlib_awt=
6977 use_gtk_awt=
6978 break
6981 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6982 exit 1
6983 esac
6984 done
6988 if test "$use_xlib_awt" = yes; then
6989 XLIB_AWT_TRUE=
6990 XLIB_AWT_FALSE='#'
6991 else
6992 XLIB_AWT_TRUE='#'
6993 XLIB_AWT_FALSE=
6997 if test "$use_gtk_awt" = yes; then
6998 GTK_AWT_TRUE=
6999 GTK_AWT_FALSE='#'
7000 else
7001 GTK_AWT_TRUE='#'
7002 GTK_AWT_FALSE=
7006 here=`pwd`
7009 # We get this from the environment.
7012 trap '' 1 2 15
7013 cat > confcache <<\EOF
7014 # This file is a shell script that caches the results of configure
7015 # tests run on this system so they can be shared between configure
7016 # scripts and configure runs. It is not useful on other systems.
7017 # If it contains results you don't want to keep, you may remove or edit it.
7019 # By default, configure uses ./config.cache as the cache file,
7020 # creating it if it does not exist already. You can give configure
7021 # the --cache-file=FILE option to use a different cache file; that is
7022 # what configure does when it calls configure scripts in
7023 # subdirectories, so they share the cache.
7024 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7025 # config.status only pays attention to the cache file if you give it the
7026 # --recheck option to rerun configure.
7029 # The following way of writing the cache mishandles newlines in values,
7030 # but we know of no workaround that is simple, portable, and efficient.
7031 # So, don't put newlines in cache variables' values.
7032 # Ultrix sh set writes to stderr and can't be redirected directly,
7033 # and sets the high bit in the cache file unless we assign to the vars.
7034 (set) 2>&1 |
7035 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7036 *ac_space=\ *)
7037 # `set' does not quote correctly, so add quotes (double-quote substitution
7038 # turns \\\\ into \\, and sed turns \\ into \).
7039 sed -n \
7040 -e "s/'/'\\\\''/g" \
7041 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7044 # `set' quotes correctly as required by POSIX, so do not add quotes.
7045 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7047 esac >> confcache
7048 if cmp -s $cache_file confcache; then
7050 else
7051 if test -w $cache_file; then
7052 echo "updating cache $cache_file"
7053 cat confcache > $cache_file
7054 else
7055 echo "not updating unwritable cache $cache_file"
7058 rm -f confcache
7060 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7062 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7063 # Let make expand exec_prefix.
7064 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7066 # Any assignment to VPATH causes Sun make to only execute
7067 # the first set of double-colon rules, so remove it if not needed.
7068 # If there is a colon in the path, we need to keep it.
7069 if test "x$srcdir" = x.; then
7070 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7073 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7075 DEFS=-DHAVE_CONFIG_H
7077 # Without the "./", some shells look in PATH for config.status.
7078 : ${CONFIG_STATUS=./config.status}
7080 echo creating $CONFIG_STATUS
7081 rm -f $CONFIG_STATUS
7082 cat > $CONFIG_STATUS <<EOF
7083 #! /bin/sh
7084 # Generated automatically by configure.
7085 # Run this file to recreate the current configuration.
7086 # This directory was configured as follows,
7087 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7089 # $0 $ac_configure_args
7091 # Compiler output produced by configure, useful for debugging
7092 # configure, is in ./config.log if it exists.
7094 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7095 for ac_option
7097 case "\$ac_option" in
7098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7099 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7100 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7101 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7102 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7103 exit 0 ;;
7104 -help | --help | --hel | --he | --h)
7105 echo "\$ac_cs_usage"; exit 0 ;;
7106 *) echo "\$ac_cs_usage"; exit 1 ;;
7107 esac
7108 done
7110 ac_given_srcdir=$srcdir
7111 ac_given_INSTALL="$INSTALL"
7113 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7115 cat >> $CONFIG_STATUS <<EOF
7117 # Protect against being on the right side of a sed subst in config.status.
7118 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7119 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7120 $ac_vpsub
7121 $extrasub
7122 s%@SHELL@%$SHELL%g
7123 s%@CFLAGS@%$CFLAGS%g
7124 s%@CPPFLAGS@%$CPPFLAGS%g
7125 s%@CXXFLAGS@%$CXXFLAGS%g
7126 s%@FFLAGS@%$FFLAGS%g
7127 s%@DEFS@%$DEFS%g
7128 s%@LDFLAGS@%$LDFLAGS%g
7129 s%@LIBS@%$LIBS%g
7130 s%@exec_prefix@%$exec_prefix%g
7131 s%@prefix@%$prefix%g
7132 s%@program_transform_name@%$program_transform_name%g
7133 s%@bindir@%$bindir%g
7134 s%@sbindir@%$sbindir%g
7135 s%@libexecdir@%$libexecdir%g
7136 s%@datadir@%$datadir%g
7137 s%@sysconfdir@%$sysconfdir%g
7138 s%@sharedstatedir@%$sharedstatedir%g
7139 s%@localstatedir@%$localstatedir%g
7140 s%@libdir@%$libdir%g
7141 s%@includedir@%$includedir%g
7142 s%@oldincludedir@%$oldincludedir%g
7143 s%@infodir@%$infodir%g
7144 s%@mandir@%$mandir%g
7145 s%@LN_S@%$LN_S%g
7146 s%@libgcj_basedir@%$libgcj_basedir%g
7147 s%@mkinstalldirs@%$mkinstalldirs%g
7148 s%@host@%$host%g
7149 s%@host_alias@%$host_alias%g
7150 s%@host_cpu@%$host_cpu%g
7151 s%@host_vendor@%$host_vendor%g
7152 s%@host_os@%$host_os%g
7153 s%@target@%$target%g
7154 s%@target_alias@%$target_alias%g
7155 s%@target_cpu@%$target_cpu%g
7156 s%@target_vendor@%$target_vendor%g
7157 s%@target_os@%$target_os%g
7158 s%@build@%$build%g
7159 s%@build_alias@%$build_alias%g
7160 s%@build_cpu@%$build_cpu%g
7161 s%@build_vendor@%$build_vendor%g
7162 s%@build_os@%$build_os%g
7163 s%@CC@%$CC%g
7164 s%@CXX@%$CXX%g
7165 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7166 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7167 s%@INSTALL_DATA@%$INSTALL_DATA%g
7168 s%@PACKAGE@%$PACKAGE%g
7169 s%@VERSION@%$VERSION%g
7170 s%@ACLOCAL@%$ACLOCAL%g
7171 s%@AUTOCONF@%$AUTOCONF%g
7172 s%@AUTOMAKE@%$AUTOMAKE%g
7173 s%@AUTOHEADER@%$AUTOHEADER%g
7174 s%@MAKEINFO@%$MAKEINFO%g
7175 s%@SET_MAKE@%$SET_MAKE%g
7176 s%@AS@%$AS%g
7177 s%@AR@%$AR%g
7178 s%@RANLIB@%$RANLIB%g
7179 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7180 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7181 s%@MAINT@%$MAINT%g
7182 s%@EXEEXT@%$EXEEXT%g
7183 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7184 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7185 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7186 s%@INCLTDL@%$INCLTDL%g
7187 s%@LIBLTDL@%$LIBLTDL%g
7188 s%@DIRLTDL@%$DIRLTDL%g
7189 s%@OBJEXT@%$OBJEXT%g
7190 s%@STRIP@%$STRIP%g
7191 s%@LIBTOOL@%$LIBTOOL%g
7192 s%@CXXCPP@%$CXXCPP%g
7193 s%@subdirs@%$subdirs%g
7194 s%@COMPPATH@%$COMPPATH%g
7195 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7196 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7197 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7198 s%@LIBFFI@%$LIBFFI%g
7199 s%@LIBFFIINCS@%$LIBFFIINCS%g
7200 s%@CPP@%$CPP%g
7201 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7202 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7203 s%@ZLIBSPEC@%$ZLIBSPEC%g
7204 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7205 s%@GCLIBS@%$GCLIBS%g
7206 s%@GCINCS@%$GCINCS%g
7207 s%@GCDEPS@%$GCDEPS%g
7208 s%@GCOBJS@%$GCOBJS%g
7209 s%@GCSPEC@%$GCSPEC%g
7210 s%@JC1GCSPEC@%$JC1GCSPEC%g
7211 s%@GCTESTSPEC@%$GCTESTSPEC%g
7212 s%@THREADLIBS@%$THREADLIBS%g
7213 s%@THREADINCS@%$THREADINCS%g
7214 s%@THREADDEPS@%$THREADDEPS%g
7215 s%@THREADOBJS@%$THREADOBJS%g
7216 s%@THREADSPEC@%$THREADSPEC%g
7217 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7218 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7219 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7220 s%@LIBICONV@%$LIBICONV%g
7221 s%@GCJ@%$GCJ%g
7222 s%@GCJFLAGS@%$GCJFLAGS%g
7223 s%@ZLIBS@%$ZLIBS%g
7224 s%@ZDEPS@%$ZDEPS%g
7225 s%@ZINCS@%$ZINCS%g
7226 s%@DIVIDESPEC@%$DIVIDESPEC%g
7227 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7228 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7229 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7230 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7231 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7232 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7233 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7234 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7235 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7236 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7237 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7238 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7239 s%@GCJVERSION@%$GCJVERSION%g
7240 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7241 s%@ALLOCA@%$ALLOCA%g
7242 s%@PERL@%$PERL%g
7243 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7244 s%@X_CFLAGS@%$X_CFLAGS%g
7245 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7246 s%@X_LIBS@%$X_LIBS%g
7247 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7248 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7249 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7250 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7251 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7252 s%@here@%$here%g
7254 CEOF
7257 cat >> $CONFIG_STATUS <<\EOF
7259 # Split the substitutions into bite-sized pieces for seds with
7260 # small command number limits, like on Digital OSF/1 and HP-UX.
7261 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7262 ac_file=1 # Number of current file.
7263 ac_beg=1 # First line for current file.
7264 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7265 ac_more_lines=:
7266 ac_sed_cmds=""
7267 while $ac_more_lines; do
7268 if test $ac_beg -gt 1; then
7269 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7270 else
7271 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7273 if test ! -s conftest.s$ac_file; then
7274 ac_more_lines=false
7275 rm -f conftest.s$ac_file
7276 else
7277 if test -z "$ac_sed_cmds"; then
7278 ac_sed_cmds="sed -f conftest.s$ac_file"
7279 else
7280 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7282 ac_file=`expr $ac_file + 1`
7283 ac_beg=$ac_end
7284 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7286 done
7287 if test -z "$ac_sed_cmds"; then
7288 ac_sed_cmds=cat
7292 cat >> $CONFIG_STATUS <<EOF
7294 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7296 cat >> $CONFIG_STATUS <<\EOF
7297 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7299 case "$ac_file" in
7300 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7301 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7302 *) ac_file_in="${ac_file}.in" ;;
7303 esac
7305 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7307 # Remove last slash and all that follows it. Not all systems have dirname.
7308 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7309 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7310 # The file is in a subdirectory.
7311 test ! -d "$ac_dir" && mkdir "$ac_dir"
7312 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7313 # A "../" for each directory in $ac_dir_suffix.
7314 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7315 else
7316 ac_dir_suffix= ac_dots=
7319 case "$ac_given_srcdir" in
7320 .) srcdir=.
7321 if test -z "$ac_dots"; then top_srcdir=.
7322 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7323 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7324 *) # Relative path.
7325 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7326 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7327 esac
7329 case "$ac_given_INSTALL" in
7330 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7331 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7332 esac
7334 echo creating "$ac_file"
7335 rm -f "$ac_file"
7336 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7337 case "$ac_file" in
7338 *Makefile*) ac_comsub="1i\\
7339 # $configure_input" ;;
7340 *) ac_comsub= ;;
7341 esac
7343 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7344 sed -e "$ac_comsub
7345 s%@configure_input@%$configure_input%g
7346 s%@srcdir@%$srcdir%g
7347 s%@top_srcdir@%$top_srcdir%g
7348 s%@INSTALL@%$INSTALL%g
7349 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7350 fi; done
7351 rm -f conftest.s*
7353 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7354 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7356 # ac_d sets the value in "#define NAME VALUE" lines.
7357 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7358 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7359 ac_dC='\3'
7360 ac_dD='%g'
7361 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7362 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7363 ac_uB='\([ ]\)%\1#\2define\3'
7364 ac_uC=' '
7365 ac_uD='\4%g'
7366 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7367 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7368 ac_eB='$%\1#\2define\3'
7369 ac_eC=' '
7370 ac_eD='%g'
7372 if test "${CONFIG_HEADERS+set}" != set; then
7374 cat >> $CONFIG_STATUS <<EOF
7375 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7377 cat >> $CONFIG_STATUS <<\EOF
7379 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7380 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7381 case "$ac_file" in
7382 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7383 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7384 *) ac_file_in="${ac_file}.in" ;;
7385 esac
7387 echo creating $ac_file
7389 rm -f conftest.frag conftest.in conftest.out
7390 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7391 cat $ac_file_inputs > conftest.in
7395 # Transform confdefs.h into a sed script conftest.vals that substitutes
7396 # the proper values into config.h.in to produce config.h. And first:
7397 # Protect against being on the right side of a sed subst in config.status.
7398 # Protect against being in an unquoted here document in config.status.
7399 rm -f conftest.vals
7400 cat > conftest.hdr <<\EOF
7401 s/[\\&%]/\\&/g
7402 s%[\\$`]%\\&%g
7403 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7404 s%ac_d%ac_u%gp
7405 s%ac_u%ac_e%gp
7407 sed -n -f conftest.hdr confdefs.h > conftest.vals
7408 rm -f conftest.hdr
7410 # This sed command replaces #undef with comments. This is necessary, for
7411 # example, in the case of _POSIX_SOURCE, which is predefined and required
7412 # on some systems where configure will not decide to define it.
7413 cat >> conftest.vals <<\EOF
7414 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7417 # Break up conftest.vals because some shells have a limit on
7418 # the size of here documents, and old seds have small limits too.
7420 rm -f conftest.tail
7421 while :
7423 ac_lines=`grep -c . conftest.vals`
7424 # grep -c gives empty output for an empty file on some AIX systems.
7425 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7426 # Write a limited-size here document to conftest.frag.
7427 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7428 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7429 echo 'CEOF
7430 sed -f conftest.frag conftest.in > conftest.out
7431 rm -f conftest.in
7432 mv conftest.out conftest.in
7433 ' >> $CONFIG_STATUS
7434 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7435 rm -f conftest.vals
7436 mv conftest.tail conftest.vals
7437 done
7438 rm -f conftest.vals
7440 cat >> $CONFIG_STATUS <<\EOF
7441 rm -f conftest.frag conftest.h
7442 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7443 cat conftest.in >> conftest.h
7444 rm -f conftest.in
7445 if cmp -s $ac_file conftest.h 2>/dev/null; then
7446 echo "$ac_file is unchanged"
7447 rm -f conftest.h
7448 else
7449 # Remove last slash and all that follows it. Not all systems have dirname.
7450 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7451 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7452 # The file is in a subdirectory.
7453 test ! -d "$ac_dir" && mkdir "$ac_dir"
7455 rm -f $ac_file
7456 mv conftest.h $ac_file
7458 fi; done
7462 cat >> $CONFIG_STATUS <<EOF
7463 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7464 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
7467 cat >> $CONFIG_STATUS <<\EOF
7468 srcdir=$ac_given_srcdir
7469 while test -n "$ac_sources"; do
7470 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7471 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7473 echo "linking $srcdir/$ac_source to $ac_dest"
7475 if test ! -r $srcdir/$ac_source; then
7476 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7478 rm -f $ac_dest
7480 # Make relative symlinks.
7481 # Remove last slash and all that follows it. Not all systems have dirname.
7482 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7483 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7484 # The dest file is in a subdirectory.
7485 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7486 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7487 # A "../" for each directory in $ac_dest_dir_suffix.
7488 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7489 else
7490 ac_dest_dir_suffix= ac_dots=
7493 case "$srcdir" in
7494 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7495 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7496 esac
7498 # Make a symlink if possible; otherwise try a hard link.
7499 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7500 ln $srcdir/$ac_source $ac_dest; then :
7501 else
7502 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7504 done
7506 cat >> $CONFIG_STATUS <<EOF
7508 srcdir=${srcdir}
7509 host=${host}
7510 target=${target}
7511 with_multisubdir=${with_multisubdir}
7512 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7513 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7514 libgcj_basedir=${libgcj_basedir}
7515 CC="${CC}"
7516 CXX="${CXX}"
7519 cat >> $CONFIG_STATUS <<\EOF
7520 am_indx=1
7521 for am_file in include/config.h gcj/libgcj-config.h; do
7522 case " $CONFIG_HEADERS " in
7523 *" $am_file "*)
7524 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7526 esac
7527 am_indx=`expr "$am_indx" + 1`
7528 done
7529 # Only add multilib support code if we just rebuilt top-level Makefile.
7530 case " $CONFIG_FILES " in
7531 *" Makefile "*)
7532 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7534 esac
7536 # Make subdirectories and `.d' files. Look in both srcdir and
7537 # builddir for the .java files.
7538 h=`pwd`
7539 : > deps.mk
7540 ( (cd $srcdir && find . -name '*.java' -print) ;
7541 find . -name '*.java' -print) | \
7542 fgrep -v testsuite | \
7543 sed -e 's/\.java/.d/' | \
7544 while read f; do
7545 echo "include $f" >> deps.mk
7546 test -f $f || {
7548 d=`echo $f | sed -e 's,/[^/]*$,,'`
7550 $libgcj_basedir/../mkinstalldirs $d
7551 echo > $f
7553 done
7555 exit 0
7557 chmod +x $CONFIG_STATUS
7558 rm -fr confdefs* $ac_clean_files
7559 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7561 if test "$no_recursion" != yes; then
7563 # Remove --cache-file and --srcdir arguments so they do not pile up.
7564 ac_sub_configure_args=
7565 ac_prev=
7566 for ac_arg in $ac_configure_args; do
7567 if test -n "$ac_prev"; then
7568 ac_prev=
7569 continue
7571 case "$ac_arg" in
7572 -cache-file | --cache-file | --cache-fil | --cache-fi \
7573 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7574 ac_prev=cache_file ;;
7575 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7576 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7578 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7579 ac_prev=srcdir ;;
7580 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7582 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7583 esac
7584 done
7586 for ac_config_dir in $DIRLTDL; do
7588 # Do not complain, so a configure script can configure whichever
7589 # parts of a large source tree are present.
7590 if test ! -d $srcdir/$ac_config_dir; then
7591 continue
7594 echo configuring in $ac_config_dir
7596 case "$srcdir" in
7597 .) ;;
7599 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7600 else
7601 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7604 esac
7606 ac_popdir=`pwd`
7607 cd $ac_config_dir
7609 # A "../" for each directory in /$ac_config_dir.
7610 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7612 case "$srcdir" in
7613 .) # No --srcdir option. We are building in place.
7614 ac_sub_srcdir=$srcdir ;;
7615 /*) # Absolute path.
7616 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7617 *) # Relative path.
7618 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7619 esac
7621 # Check for guested configure; otherwise get Cygnus style configure.
7622 if test -f $ac_sub_srcdir/configure; then
7623 ac_sub_configure=$ac_sub_srcdir/configure
7624 elif test -f $ac_sub_srcdir/configure.in; then
7625 ac_sub_configure=$ac_configure
7626 else
7627 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7628 ac_sub_configure=
7631 # The recursion is here.
7632 if test -n "$ac_sub_configure"; then
7634 # Make the cache file name correct relative to the subdirectory.
7635 case "$cache_file" in
7636 /*) ac_sub_cache_file=$cache_file ;;
7637 *) # Relative path.
7638 ac_sub_cache_file="$ac_dots$cache_file" ;;
7639 esac
7640 case "$ac_given_INSTALL" in
7641 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7642 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7643 esac
7645 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7646 # The eval makes quoting arguments work.
7647 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7648 then :
7649 else
7650 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
7654 cd $ac_popdir
7655 done