OSDN Git Service

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