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