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