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