source: trunk/src/gcc/libjava/configure@ 1392

Last change on this file since 1392 was 1124, checked in by bird, 22 years ago

Regenerated with new autoconf (forced to use stable).

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