OSDN Git Service

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