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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --with-newlib Configuring with newlib"
22 --enable-multilib build many library versions (default)"
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
29 --enable-static[=PKGS] build static libraries [default=yes]"
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
35 --disable-libtool-lock avoid locking (might break parallel builds)"
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --without-libffi don't use libffi"
55 --disable-jvmpi disable JVMPI support"
57 --with-ecos enable runtime eCos target support"
59 --with-system-zlib use installed libz"
61 --with-x use the X Window System"
63 --enable-java-awt list of AWT peer implementations to be built"
65 --enable-java-gc=TYPE choose garbage collector [boehm]"
67 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
69 --disable-gtktest do not try to compile and run a test GTK+ program"
71 --disable-glibtest do not try to compile and run a test GLIB program"
73 --with-libart-prefix=PFX Prefix where LIBART is installed (optional)"
75 --with-libart-exec-prefix=PFX Exec prefix where LIBART is installed (optional)"
77 --disable-libarttest Do not try to compile and run a test LIBART program"
79 # Initialize some variables set by options.
80 # The variables have the same names as the options, with
81 # dashes changed to underlines.
83 cache_file
=.
/config.cache
92 program_transform_name
=s
,x
,x
,
100 bindir
='${exec_prefix}/bin'
101 sbindir
='${exec_prefix}/sbin'
102 libexecdir
='${exec_prefix}/libexec'
103 datadir
='${prefix}/share'
104 sysconfdir
='${prefix}/etc'
105 sharedstatedir
='${prefix}/com'
106 localstatedir
='${prefix}/var'
107 libdir
='${exec_prefix}/lib'
108 includedir
='${prefix}/include'
109 oldincludedir
='/usr/include'
110 infodir
='${prefix}/info'
111 mandir
='${prefix}/man'
113 # Initialize some other variables.
116 SHELL
=${CONFIG_SHELL-/bin/sh}
117 # Maximum number of lines to put in a shell here document.
124 # If the previous option needs an argument, assign it.
125 if test -n "$ac_prev"; then
126 eval "$ac_prev=\$ac_option"
132 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
136 # Accept the important Cygnus configure options, so we can diagnose typos.
140 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
142 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
143 bindir
="$ac_optarg" ;;
145 -build |
--build |
--buil |
--bui |
--bu)
147 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
148 build
="$ac_optarg" ;;
150 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
151 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
152 ac_prev
=cache_file
;;
153 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
154 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
155 cache_file
="$ac_optarg" ;;
157 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
159 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
161 datadir
="$ac_optarg" ;;
163 -disable-* |
--disable-*)
164 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}=no" ;;
172 -enable-* |
--enable-*)
173 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}='$ac_optarg'" ;;
185 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
186 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
187 |
--exec |
--exe |
--ex)
188 ac_prev
=exec_prefix
;;
189 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
190 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
191 |
--exec=* |
--exe=* |
--ex=*)
192 exec_prefix
="$ac_optarg" ;;
194 -gas |
--gas |
--ga |
--g)
195 # Obsolete; use --with-gas.
198 -help |
--help |
--hel |
--he)
199 # Omit some internal or obsolete options to make the list less imposing.
200 # This message is too long to be a string in the A/UX 3.1 sh.
202 Usage: configure [options] [host]
203 Options: [defaults in brackets after descriptions]
205 --cache-file=FILE cache test results in FILE
206 --help print this message
207 --no-create do not create output files
208 --quiet, --silent do not print \`checking...' messages
209 --version print the version of autoconf that created configure
210 Directory and file names:
211 --prefix=PREFIX install architecture-independent files in PREFIX
213 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 --bindir=DIR user executables in DIR [EPREFIX/bin]
216 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
217 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
218 --datadir=DIR read-only architecture-independent data in DIR
220 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
221 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
224 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
225 --includedir=DIR C header files in DIR [PREFIX/include]
226 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
227 --infodir=DIR info documentation in DIR [PREFIX/info]
228 --mandir=DIR man documentation in DIR [PREFIX/man]
229 --srcdir=DIR find the sources in DIR [configure dir or ..]
230 --program-prefix=PREFIX prepend PREFIX to installed program names
231 --program-suffix=SUFFIX append SUFFIX to installed program names
232 --program-transform-name=PROGRAM
233 run sed PROGRAM on installed program names
237 --build=BUILD configure for building on BUILD [BUILD=HOST]
238 --host=HOST configure for HOST [guessed]
239 --target=TARGET configure for TARGET [TARGET=HOST]
240 Features and packages:
241 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
242 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
243 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
244 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
245 --x-includes=DIR X include files are in DIR
246 --x-libraries=DIR X library files are in DIR
248 if test -n "$ac_help"; then
249 echo "--enable and --with options recognized:$ac_help"
253 -host |
--host |
--hos |
--ho)
255 -host=* |
--host=* |
--hos=* |
--ho=*)
258 -includedir |
--includedir |
--includedi |
--included |
--include \
259 |
--includ |
--inclu |
--incl |
--inc)
260 ac_prev
=includedir
;;
261 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
262 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
263 includedir
="$ac_optarg" ;;
265 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
267 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
268 infodir
="$ac_optarg" ;;
270 -libdir |
--libdir |
--libdi |
--libd)
272 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
273 libdir
="$ac_optarg" ;;
275 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
276 |
--libexe |
--libex |
--libe)
277 ac_prev
=libexecdir
;;
278 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
279 |
--libexe=* |
--libex=* |
--libe=*)
280 libexecdir
="$ac_optarg" ;;
282 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
283 |
--localstate |
--localstat |
--localsta |
--localst \
284 |
--locals |
--local |
--loca |
--loc |
--lo)
285 ac_prev
=localstatedir
;;
286 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
287 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
288 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
289 localstatedir
="$ac_optarg" ;;
291 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
293 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
294 mandir
="$ac_optarg" ;;
297 # Obsolete; use --without-fp.
300 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
304 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
305 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
308 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
309 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
310 |
--oldin |
--oldi |
--old |
--ol |
--o)
311 ac_prev
=oldincludedir
;;
312 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
313 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
314 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
315 oldincludedir
="$ac_optarg" ;;
317 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
319 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
320 prefix
="$ac_optarg" ;;
322 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
323 |
--program-pre |
--program-pr |
--program-p)
324 ac_prev
=program_prefix
;;
325 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
326 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
327 program_prefix
="$ac_optarg" ;;
329 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
330 |
--program-suf |
--program-su |
--program-s)
331 ac_prev
=program_suffix
;;
332 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
333 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
334 program_suffix
="$ac_optarg" ;;
336 -program-transform-name |
--program-transform-name \
337 |
--program-transform-nam |
--program-transform-na \
338 |
--program-transform-n |
--program-transform- \
339 |
--program-transform |
--program-transfor \
340 |
--program-transfo |
--program-transf \
341 |
--program-trans |
--program-tran \
342 |
--progr-tra |
--program-tr |
--program-t)
343 ac_prev
=program_transform_name
;;
344 -program-transform-name=* |
--program-transform-name=* \
345 |
--program-transform-nam=* |
--program-transform-na=* \
346 |
--program-transform-n=* |
--program-transform-=* \
347 |
--program-transform=* |
--program-transfor=* \
348 |
--program-transfo=* |
--program-transf=* \
349 |
--program-trans=* |
--program-tran=* \
350 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
351 program_transform_name
="$ac_optarg" ;;
353 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
354 |
-silent |
--silent |
--silen |
--sile |
--sil)
357 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
359 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
361 sbindir
="$ac_optarg" ;;
363 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
364 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
365 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
367 ac_prev
=sharedstatedir
;;
368 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
369 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
370 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
372 sharedstatedir
="$ac_optarg" ;;
374 -site |
--site |
--sit)
376 -site=* |
--site=* |
--sit=*)
379 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
381 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
382 srcdir
="$ac_optarg" ;;
384 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
385 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
386 ac_prev
=sysconfdir
;;
387 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
388 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
389 sysconfdir
="$ac_optarg" ;;
391 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
393 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
394 target
="$ac_optarg" ;;
396 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
399 -version |
--version |
--versio |
--versi |
--vers)
400 echo "configure generated by autoconf version 2.13"
404 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package
=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}='$ac_optarg'" ;;
416 -without-* |
--without-*)
417 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package
=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}=no" ;;
426 # Obsolete; use --with-x.
429 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
430 |
--x-incl |
--x-inc |
--x-in |
--x-i)
431 ac_prev
=x_includes
;;
432 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
433 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
434 x_includes
="$ac_optarg" ;;
436 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
437 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
438 ac_prev
=x_libraries
;;
439 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
440 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
441 x_libraries
="$ac_optarg" ;;
443 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
447 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 if test "x$nonopt" != xNONE
; then
451 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
459 if test -n "$ac_prev"; then
460 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465 # File descriptor usage:
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
491 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
492 |
--no-cr |
--no-c) ;;
493 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
494 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
495 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
497 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
502 # Only set these to C if already set. These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
507 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
509 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest
* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file
=java
/lang
/System.java
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522 ac_srcdir_defaulted
=yes
523 # Try the directory containing this script, then its parent.
525 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
528 if test ! -r $srcdir/$ac_unique_file; then
532 ac_srcdir_defaulted
=no
534 if test ! -r $srcdir/$ac_unique_file; then
535 if test "$ac_srcdir_defaulted" = yes; then
536 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$CONFIG_SITE"; then
545 if test "x$prefix" != xNONE
; then
546 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
548 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551 for ac_site_file
in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
562 echo "creating cache $cache_file"
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp
='$CPP $CPPFLAGS'
569 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling
=$ac_cv_prog_cc_cross
575 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
584 ac_n
= ac_c
='\c' ac_t
=
589 # This works around the fact that libtool configuration may change LD
590 # for this particular configuration, but some shells, instead of
591 # keeping the changes in LD private, export them just because LD is
593 ORIGINAL_LD_FOR_MULTILIBS
=$LD
595 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
596 echo "configure:597: checking whether ln -s works" >&5
597 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
598 echo $ac_n "(cached) $ac_c" 1>&6
601 if ln -s X conftestdata
2>/dev
/null
604 ac_cv_prog_LN_S
="ln -s"
609 LN_S
="$ac_cv_prog_LN_S"
610 if test "$ac_cv_prog_LN_S" = "ln -s"; then
611 echo "$ac_t""yes" 1>&6
613 echo "$ac_t""no" 1>&6
617 # Check whether --with-target-subdir or --without-target-subdir was given.
618 if test "${with_target_subdir+set}" = set; then
619 withval
="$with_target_subdir"
623 # Check whether --with-cross-host or --without-cross-host was given.
624 if test "${with_cross_host+set}" = set; then
625 withval
="$with_cross_host"
630 # Check whether --with-newlib or --without-newlib was given.
631 if test "${with_newlib+set}" = set; then
632 withval
="$with_newlib"
637 # Find a good install program. We prefer a C program (faster),
638 # so one script is as good as another. But avoid the broken or
639 # incompatible versions:
640 # SysV /etc/install, /usr/sbin/install
641 # SunOS /usr/etc/install
644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
647 # ./install, which can be erroneously created by make from ./install.sh.
648 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
649 echo "configure:650: checking for a BSD compatible install" >&5
650 if test -z "$INSTALL"; then
651 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
652 echo $ac_n "(cached) $ac_c" 1>&6
654 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
655 for ac_dir
in $PATH; do
656 # Account for people who put trailing slashes in PATH elements.
658 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
660 # OSF1 and SCO ODT 3.0 have their own names for install.
661 # Don't use installbsd from OSF since it installs stuff as root
663 for ac_prog
in ginstall scoinst
install; do
664 if test -f $ac_dir/$ac_prog; then
665 if test $ac_prog = install &&
666 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
667 # AIX install. It has an incompatible calling convention.
670 ac_cv_path_install
="$ac_dir/$ac_prog -c"
681 if test "${ac_cv_path_install+set}" = set; then
682 INSTALL
="$ac_cv_path_install"
684 # As a last resort, use the slow shell script. We don't cache a
685 # path for INSTALL within a source directory, because that will
686 # break other packages using the cache if that directory is
687 # removed, or if the path is relative.
688 INSTALL
="$ac_install_sh"
691 echo "$ac_t""$INSTALL" 1>&6
693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
694 # It thinks the first close brace ends the variable substitution.
695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
699 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
701 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
702 echo "configure:703: checking whether build environment is sane" >&5
705 echo timestamp
> conftestfile
706 # Do `set' in a subshell so we don't clobber the current shell's
707 # arguments. Must try -L first in case configure is actually a
708 # symlink; some systems play weird games with the mod time of symlinks
709 # (eg FreeBSD returns the mod time of the symlink's containing
712 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
713 if test "$*" = "X"; then
715 set X
`ls -t $srcdir/configure conftestfile`
717 if test "$*" != "X $srcdir/configure conftestfile" \
718 && test "$*" != "X conftestfile $srcdir/configure"; then
720 # If neither matched, then we have a broken ls. This can happen
721 # if, for instance, CONFIG_SHELL is bash and it inherits a
722 # broken ls alias from the environment. This has actually
723 # happened. Such a system could not be considered "sane".
724 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
725 alias in your environment" 1>&2; exit 1; }
728 test "$2" = conftestfile
734 { echo "configure: error: newly created file is older than distributed files!
735 Check your system clock" 1>&2; exit 1; }
738 echo "$ac_t""yes" 1>&6
739 if test "$program_transform_name" = s
,x
,x
,; then
740 program_transform_name
=
742 # Double any \ or $. echo might interpret backslashes.
743 cat <<\EOF_SED
> conftestsed
744 s
,\\,\\\\,g
; s
,\$
,$$
,g
746 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
749 test "$program_prefix" != NONE
&&
750 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
751 # Use a double $ so make ignores it.
752 test "$program_suffix" != NONE
&&
753 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
755 # sed with no file args requires a program.
756 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
758 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
759 echo "configure:760: checking whether ${MAKE-make} sets \${MAKE}" >&5
760 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
761 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 cat > conftestmake
<<\EOF
766 @
echo 'ac_maketemp="${MAKE}"'
768 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
769 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
770 if test -n "$ac_maketemp"; then
771 eval ac_cv_prog_make_
${ac_make}_set
=yes
773 eval ac_cv_prog_make_
${ac_make}_set
=no
777 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
778 echo "$ac_t""yes" 1>&6
781 echo "$ac_t""no" 1>&6
782 SET_MAKE
="MAKE=${MAKE-make}"
785 if test $host != $build; then
786 ac_tool_prefix
=${host_alias}-
791 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
792 echo "configure:793: checking for Cygwin environment" >&5
793 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 cat > conftest.
$ac_ext <<EOF
797 #line 798 "configure"
798 #include "confdefs.h"
803 #define __CYGWIN__ __CYGWIN32__
808 if { (eval echo configure
:809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
812 echo "configure: failed program was:" >&5
813 cat conftest.
$ac_ext >&5
821 echo "$ac_t""$ac_cv_cygwin" 1>&6
823 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
824 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
825 echo "configure:826: checking for mingw32 environment" >&5
826 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 cat > conftest.
$ac_ext <<EOF
830 #line 831 "configure"
831 #include "confdefs.h"
837 if { (eval echo configure
:838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
841 echo "configure: failed program was:" >&5
842 cat conftest.
$ac_ext >&5
850 echo "$ac_t""$ac_cv_mingw32" 1>&6
852 test "$ac_cv_mingw32" = yes && MINGW32
=yes
854 # Check whether --enable-multilib or --disable-multilib was given.
855 if test "${enable_multilib+set}" = set; then
856 enableval
="$enable_multilib"
857 case "${enableval}" in
860 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
867 # When building with srcdir == objdir, links to the source files will
868 # be created in directories within the target_subdir. We have to
869 # adjust toplevel_srcdir accordingly, so that configure finds
870 # install-sh and other auxiliary files that live in the top-level
872 if test "${srcdir}" = "."; then
873 if test -z "${with_target_subdir}"; then
876 if test "${with_target_subdir}" != "."; then
877 toprel
="${with_multisrctop}../.."
879 toprel
="${with_multisrctop}.."
886 libgcj_basedir
=$srcdir/$toprel/.
/libjava
890 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
891 if test -f $ac_dir/install-sh
; then
893 ac_install_sh
="$ac_aux_dir/install-sh -c"
895 elif test -f $ac_dir/install.sh
; then
897 ac_install_sh
="$ac_aux_dir/install.sh -c"
901 if test -z "$ac_aux_dir"; then
902 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
904 ac_config_guess=$ac_aux_dir/config.guess
905 ac_config_sub=$ac_aux_dir/config.sub
906 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
909 # This overrides the previous occurrence for automake, but not for
910 # autoconf, which is exactly what we want.
912 for ac_dir in .. $srcdir/..; do
913 if test -f $ac_dir/install-sh; then
915 ac_install_sh="$ac_aux_dir/install-sh
-c"
917 elif test -f $ac_dir/install.sh; then
919 ac_install_sh="$ac_aux_dir/install.sh
-c"
923 if test -z "$ac_aux_dir"; then
924 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
926 ac_config_guess=$ac_aux_dir/config.guess
927 ac_config_sub=$ac_aux_dir/config.sub
928 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
932 # This works around an automake problem.
933 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs
"
937 # Do some error checking and defaulting for the host and target type.
939 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
942 # 1. You are not allowed to specify --host, --target, and nonopt at the
944 # 2. Host defaults to nonopt.
945 # 3. If nonopt is not specified, then host defaults to the current host,
946 # as determined by config.guess.
947 # 4. Target and build default to nonopt.
948 # 5. If nonopt is not specified, then target and build default to host.
950 # The aliases save the names the user supplied, while $host etc.
951 # will get canonicalized.
952 case $host---$target---$nonopt in
953 NONE---*---* | *---NONE---* | *---*---NONE) ;;
954 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
958 # Make sure we can run config.sub.
959 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
960 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
963 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
964 echo "configure
:965: checking
host system
type" >&5
967 case "$host_alias" in
971 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
972 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
974 *) host_alias=$nonopt ;;
978 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
979 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
980 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
981 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
982 echo "$ac_t""$host" 1>&6
984 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
985 echo "configure
:986: checking target system
type" >&5
988 case "$target_alias" in
991 NONE) target_alias=$host_alias ;;
992 *) target_alias=$nonopt ;;
996 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
997 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
998 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
999 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1000 echo "$ac_t""$target" 1>&6
1002 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1003 echo "configure
:1004: checking build system
type" >&5
1006 case "$build_alias" in
1009 NONE) build_alias=$host_alias ;;
1010 *) build_alias=$nonopt ;;
1014 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1015 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1016 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1017 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1018 echo "$ac_t""$build" 1>&6
1020 test "$host_alias" != "$target_alias" &&
1021 test "$program_prefix$program_suffix$program_transform_name" = \
1023 program_prefix=${target_alias}-
1029 # Extract the first word of "gcc
", so it can be a program name with args.
1030 set dummy gcc; ac_word=$2
1031 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1032 echo "configure
:1033: checking
for $ac_word" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1034 echo $ac_n "(cached
) $ac_c" 1>&6
1036 if test -n "$CC"; then
1037 ac_cv_prog_CC="$CC" # Let the user override the test.
1039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1041 for ac_dir in $ac_dummy; do
1042 test -z "$ac_dir" && ac_dir=.
1043 if test -f $ac_dir/$ac_word; then
1052 if test -n "$CC"; then
1053 echo "$ac_t""$CC" 1>&6
1055 echo "$ac_t""no
" 1>&6
1058 if test -z "$CC"; then
1059 # Extract the first word of "cc
", so it can be a program name with args.
1060 set dummy cc; ac_word=$2
1061 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1062 echo "configure
:1063: checking
for $ac_word" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1064 echo $ac_n "(cached
) $ac_c" 1>&6
1066 if test -n "$CC"; then
1067 ac_cv_prog_CC="$CC" # Let the user override the test.
1069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1072 for ac_dir in $ac_dummy; do
1073 test -z "$ac_dir" && ac_dir=.
1074 if test -f $ac_dir/$ac_word; then
1075 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1076 ac_prog_rejected=yes
1084 if test $ac_prog_rejected = yes; then
1085 # We found a bogon in the path, so make sure we never use it.
1086 set dummy $ac_cv_prog_CC
1088 if test $# -gt 0; then
1089 # We chose a different compiler from the bogus one.
1090 # However, it has the same basename, so the bogon will be chosen
1091 # first if we set CC to just the basename; use the full file name.
1093 set dummy "$ac_dir/$ac_word" "$@
"
1101 if test -n "$CC"; then
1102 echo "$ac_t""$CC" 1>&6
1104 echo "$ac_t""no
" 1>&6
1107 if test -z "$CC"; then
1108 case "`uname -s`" in
1110 # Extract the first word of "cl
", so it can be a program name with args.
1111 set dummy cl; ac_word=$2
1112 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1113 echo "configure
:1114: checking
for $ac_word" >&5
1114 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1115 echo $ac_n "(cached
) $ac_c" 1>&6
1117 if test -n "$CC"; then
1118 ac_cv_prog_CC="$CC" # Let the user override the test.
1120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1122 for ac_dir in $ac_dummy; do
1123 test -z "$ac_dir" && ac_dir=.
1124 if test -f $ac_dir/$ac_word; then
1133 if test -n "$CC"; then
1134 echo "$ac_t""$CC" 1>&6
1136 echo "$ac_t""no
" 1>&6
1141 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1145 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1146 echo "configure
:1147: checking whether we are using GNU C
" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1148 echo $ac_n "(cached
) $ac_c" 1>&6
1150 cat > conftest.c <<EOF
1155 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1162 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1164 if test $ac_cv_prog_gcc = yes; then
1170 ac_test_CFLAGS="${CFLAGS+set}"
1171 ac_save_CFLAGS="$CFLAGS"
1173 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1174 echo "configure
:1175: checking whether
${CC-cc} accepts
-g" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1176 echo $ac_n "(cached
) $ac_c" 1>&6
1178 echo 'void f(){}' > conftest.c
1179 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1188 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1189 if test "$ac_test_CFLAGS" = set; then
1190 CFLAGS="$ac_save_CFLAGS"
1191 elif test $ac_cv_prog_cc_g = yes; then
1192 if test "$GCC" = yes; then
1198 if test "$GCC" = yes; then
1206 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1207 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1208 # different definition of CXX than other directories, since we don't
1209 # depend on libstdc++-v3 having already been built.
1213 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1214 # flags that come in CXX while configuring libjava. They're different
1215 # from those used for all other target libraries. If CXX is set in
1216 # the environment, respect that here.
1218 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1220 # Extract the first word of "$ac_prog", so it can be a program name with args.
1221 set dummy $ac_prog; ac_word=$2
1222 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1223 echo "configure
:1224: checking
for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1225 echo $ac_n "(cached
) $ac_c" 1>&6
1227 if test -n "$glibjava_CXX"; then
1228 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1232 for ac_dir in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir=.
1234 if test -f $ac_dir/$ac_word; then
1235 ac_cv_prog_glibjava_CXX="$ac_prog"
1242 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1243 if test -n "$glibjava_CXX"; then
1244 echo "$ac_t""$glibjava_CXX" 1>&6
1246 echo "$ac_t""no
" 1>&6
1249 test -n "$glibjava_CXX" && break
1251 test -n "$glibjava_CXX" || glibjava_CXX="gcc
"
1255 test -z "$glibjava_CXX" && { echo "configure
: error
: no acceptable c
++ found
in \
$PATH" 1>&2; exit 1; }
1257 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1258 echo "configure
:1259: checking whether we are using GNU C
++" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1260 echo $ac_n "(cached
) $ac_c" 1>&6
1262 cat > conftest.C <<EOF
1267 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1274 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1276 if test $ac_cv_prog_gxx = yes; then
1278 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1279 ac_save_CXXFLAGS="$CXXFLAGS"
1281 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1282 echo "configure
:1283: checking whether
${CXX-g++} accepts
-g" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1284 echo $ac_n "(cached
) $ac_c" 1>&6
1286 echo 'void f(){}' > conftest.cc
1287 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1288 ac_cv_prog_cxx_g=yes
1296 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1297 if test "$ac_test_CXXFLAGS" = set; then
1298 CXXFLAGS="$ac_save_CXXFLAGS"
1299 elif test $ac_cv_prog_cxx_g = yes; then
1306 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1316 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1317 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1319 cat >> confdefs.h <<EOF
1320 #define PACKAGE "$PACKAGE"
1323 cat >> confdefs.h <<EOF
1324 #define VERSION "$VERSION"
1329 missing_dir=`cd $ac_aux_dir && pwd`
1330 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
1331 echo "configure
:1332: checking
for working aclocal
" >&5
1332 # Run test in a subshell; some versions of sh will print an error if
1333 # an executable is not found, even if stderr is redirected.
1334 # Redirect stdin to placate older versions of autoconf. Sigh.
1335 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1337 echo "$ac_t""found
" 1>&6
1339 ACLOCAL="$missing_dir/missing aclocal
"
1340 echo "$ac_t""missing
" 1>&6
1343 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1344 echo "configure
:1345: checking
for working autoconf
" >&5
1345 # Run test in a subshell; some versions of sh will print an error if
1346 # an executable is not found, even if stderr is redirected.
1347 # Redirect stdin to placate older versions of autoconf. Sigh.
1348 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1350 echo "$ac_t""found
" 1>&6
1352 AUTOCONF="$missing_dir/missing autoconf
"
1353 echo "$ac_t""missing
" 1>&6
1356 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
1357 echo "configure
:1358: checking
for working automake
" >&5
1358 # Run test in a subshell; some versions of sh will print an error if
1359 # an executable is not found, even if stderr is redirected.
1360 # Redirect stdin to placate older versions of autoconf. Sigh.
1361 if (automake --version) < /dev/null > /dev/null 2>&1; then
1363 echo "$ac_t""found
" 1>&6
1365 AUTOMAKE="$missing_dir/missing automake
"
1366 echo "$ac_t""missing
" 1>&6
1369 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1370 echo "configure
:1371: checking
for working autoheader
" >&5
1371 # Run test in a subshell; some versions of sh will print an error if
1372 # an executable is not found, even if stderr is redirected.
1373 # Redirect stdin to placate older versions of autoconf. Sigh.
1374 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1375 AUTOHEADER=autoheader
1376 echo "$ac_t""found
" 1>&6
1378 AUTOHEADER="$missing_dir/missing autoheader
"
1379 echo "$ac_t""missing
" 1>&6
1382 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1383 echo "configure
:1384: checking
for working makeinfo
" >&5
1384 # Run test in a subshell; some versions of sh will print an error if
1385 # an executable is not found, even if stderr is redirected.
1386 # Redirect stdin to placate older versions of autoconf. Sigh.
1387 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1389 echo "$ac_t""found
" 1>&6
1391 MAKEINFO="$missing_dir/missing makeinfo
"
1392 echo "$ac_t""missing
" 1>&6
1397 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1398 # run it explicitly here, it will be run implicitly before
1399 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1400 # be run before AC_CANONICAL_HOST.
1401 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1402 echo "configure
:1403: checking build system
type" >&5
1405 case "$build_alias" in
1408 NONE) build_alias=$host_alias ;;
1409 *) build_alias=$nonopt ;;
1413 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1414 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1417 echo "$ac_t""$build" 1>&6
1420 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1421 set dummy ${ac_tool_prefix}as; ac_word=$2
1422 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1423 echo "configure
:1424: checking
for $ac_word" >&5
1424 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1425 echo $ac_n "(cached
) $ac_c" 1>&6
1427 if test -n "$AS"; then
1428 ac_cv_prog_AS="$AS" # Let the user override the test.
1430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1432 for ac_dir in $ac_dummy; do
1433 test -z "$ac_dir" && ac_dir=.
1434 if test -f $ac_dir/$ac_word; then
1435 ac_cv_prog_AS="${ac_tool_prefix}as
"
1440 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1444 if test -n "$AS"; then
1445 echo "$ac_t""$AS" 1>&6
1447 echo "$ac_t""no
" 1>&6
1452 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1453 set dummy ${ac_tool_prefix}ar; ac_word=$2
1454 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1455 echo "configure
:1456: checking
for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1457 echo $ac_n "(cached
) $ac_c" 1>&6
1459 if test -n "$AR"; then
1460 ac_cv_prog_AR="$AR" # Let the user override the test.
1462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1464 for ac_dir in $ac_dummy; do
1465 test -z "$ac_dir" && ac_dir=.
1466 if test -f $ac_dir/$ac_word; then
1467 ac_cv_prog_AR="${ac_tool_prefix}ar"
1472 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1476 if test -n "$AR"; then
1477 echo "$ac_t""$AR" 1>&6
1479 echo "$ac_t""no
" 1>&6
1484 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1485 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1486 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1487 echo "configure
:1488: checking
for $ac_word" >&5
1488 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1489 echo $ac_n "(cached
) $ac_c" 1>&6
1491 if test -n "$RANLIB"; then
1492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1496 for ac_dir in $ac_dummy; do
1497 test -z "$ac_dir" && ac_dir=.
1498 if test -f $ac_dir/$ac_word; then
1499 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1506 RANLIB="$ac_cv_prog_RANLIB"
1507 if test -n "$RANLIB"; then
1508 echo "$ac_t""$RANLIB" 1>&6
1510 echo "$ac_t""no
" 1>&6
1514 if test -z "$ac_cv_prog_RANLIB"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "ranlib
", so it can be a program name with args.
1517 set dummy ranlib; ac_word=$2
1518 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1519 echo "configure
:1520: checking
for $ac_word" >&5
1520 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1521 echo $ac_n "(cached
) $ac_c" 1>&6
1523 if test -n "$RANLIB"; then
1524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1528 for ac_dir in $ac_dummy; do
1529 test -z "$ac_dir" && ac_dir=.
1530 if test -f $ac_dir/$ac_word; then
1531 ac_cv_prog_RANLIB="ranlib
"
1536 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1539 RANLIB="$ac_cv_prog_RANLIB"
1540 if test -n "$RANLIB"; then
1541 echo "$ac_t""$RANLIB" 1>&6
1543 echo "$ac_t""no
" 1>&6
1552 # Find a good install program. We prefer a C program (faster),
1553 # so one script is as good as another. But avoid the broken or
1554 # incompatible versions:
1555 # SysV /etc/install, /usr/sbin/install
1556 # SunOS /usr/etc/install
1557 # IRIX /sbin/install
1559 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1560 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1561 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1562 # ./install, which can be erroneously created by make from ./install.sh.
1563 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1564 echo "configure
:1565: checking
for a BSD compatible
install" >&5
1565 if test -z "$INSTALL"; then
1566 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1567 echo $ac_n "(cached
) $ac_c" 1>&6
1569 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1570 for ac_dir in $PATH; do
1571 # Account for people who put trailing slashes in PATH elements.
1573 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1575 # OSF1 and SCO ODT 3.0 have their own names for install.
1576 # Don't use installbsd from OSF since it installs stuff as root
1578 for ac_prog in ginstall scoinst install; do
1579 if test -f $ac_dir/$ac_prog; then
1580 if test $ac_prog = install &&
1581 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1582 # AIX install. It has an incompatible calling convention.
1585 ac_cv_path_install="$ac_dir/$ac_prog -c"
1596 if test "${ac_cv_path_install+set}" = set; then
1597 INSTALL="$ac_cv_path_install"
1599 # As a last resort, use the slow shell script. We don't cache a
1600 # path for INSTALL within a source directory, because that will
1601 # break other packages using the cache if that directory is
1602 # removed, or if the path is relative.
1603 INSTALL="$ac_install_sh"
1606 echo "$ac_t""$INSTALL" 1>&6
1608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1609 # It thinks the first close brace ends the variable substitution.
1610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1617 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1618 echo "configure
:1619: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1619 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1620 if test "${enable_maintainer_mode+set}" = set; then
1621 enableval="$enable_maintainer_mode"
1622 USE_MAINTAINER_MODE=$enableval
1624 USE_MAINTAINER_MODE=no
1627 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1630 if test $USE_MAINTAINER_MODE = yes; then
1631 MAINTAINER_MODE_TRUE=
1632 MAINTAINER_MODE_FALSE='#'
1634 MAINTAINER_MODE_TRUE='#'
1635 MAINTAINER_MODE_FALSE=
1637 MAINT=$MAINTAINER_MODE_TRUE
1643 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1644 echo "configure
:1645: checking
for executable suffix
" >&5
1645 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1646 echo $ac_n "(cached
) $ac_c" 1>&6
1648 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1652 echo 'int main () { return 0; }' > conftest.$ac_ext
1654 if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1655 for file in conftest.*; do
1657 *.c | *.o | *.obj) ;;
1658 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1662 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1665 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1670 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1671 echo "$ac_t""${ac_cv_exeext}" 1>&6
1675 # configure.host sets the following important variables
1676 # libgcj_cflags - host specific C compiler flags
1677 # libgcj_cxxflags - host specific C++ compiler flags
1678 # libgcj_javaflags - host specific Java compiler flags
1684 . ${srcdir}/configure.host
1686 LIBGCJ_CFLAGS="${libgcj_cflags}"
1687 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1688 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1698 # Only use libltdl for native builds.
1699 if test -z "${with_cross_host}"; then
1700 case $enable_ltdl_convenience in
1701 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1702 "") enable_ltdl_convenience=yes
1703 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1705 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1706 INCLTDL='-I${top_srcdir}/''libltdl'
1710 cat >> confdefs.h <<\EOF
1714 # Sigh. Libtool's macro doesn't do the right thing.
1715 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1716 # FIXME: this is a hack.
1717 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1718 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1723 # Check whether --enable-shared or --disable-shared was given.
1724 if test "${enable_shared+set}" = set; then
1725 enableval="$enable_shared"
1726 p=${PACKAGE-default}
1728 yes) enable_shared=yes ;;
1729 no) enable_shared=no ;;
1732 # Look at the argument we got. We use all the common list separators.
1733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1734 for pkg in $enableval; do
1735 if test "X
$pkg" = "X
$p"; then
1746 # Check whether --enable-static or --disable-static was given.
1747 if test "${enable_static+set}" = set; then
1748 enableval="$enable_static"
1749 p=${PACKAGE-default}
1751 yes) enable_static=yes ;;
1752 no) enable_static=no ;;
1755 # Look at the argument we got. We use all the common list separators.
1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1757 for pkg in $enableval; do
1758 if test "X
$pkg" = "X
$p"; then
1769 # Check whether --enable-fast-install or --disable-fast-install was given.
1770 if test "${enable_fast_install+set}" = set; then
1771 enableval="$enable_fast_install"
1772 p=${PACKAGE-default}
1774 yes) enable_fast_install=yes ;;
1775 no) enable_fast_install=no ;;
1777 enable_fast_install=no
1778 # Look at the argument we got. We use all the common list separators.
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1780 for pkg in $enableval; do
1781 if test "X
$pkg" = "X
$p"; then
1782 enable_fast_install=yes
1789 enable_fast_install=yes
1792 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1793 if test "${with_gnu_ld+set}" = set; then
1794 withval="$with_gnu_ld"
1795 test "$withval" = no || with_gnu_ld=yes
1801 if test "$GCC" = yes; then
1802 # Check if gcc -print-prog-name=ld gives a path.
1803 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1804 echo "configure
:1805: checking
for ld used by GCC
" >&5
1807 # gcc leaves a trailing carriage return which upsets mingw
1808 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1810 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1813 # Accept absolute paths.
1814 [\\/]* | [A-Za-z]:[\\/]*)
1815 re_direlt='/[^/][^/]*/\.\./'
1816 # Canonicalize the path of ld
1817 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1818 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1819 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1821 test -z "$LD" && LD="$ac_prog"
1824 # If it fails, then pretend we aren't using GCC.
1828 # If it is relative, then search for the first ld in PATH.
1832 elif test "$with_gnu_ld" = yes; then
1833 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1834 echo "configure
:1835: checking
for GNU ld
" >&5
1836 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1837 echo "configure
:1838: checking
for non-GNU ld
" >&5
1839 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1840 echo $ac_n "(cached
) $ac_c" 1>&6
1842 if test -z "$LD"; then
1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1844 for ac_dir in $PATH; do
1845 test -z "$ac_dir" && ac_dir=.
1846 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1847 lt_cv_path_LD="$ac_dir/$ac_prog"
1848 # Check to see if the program is GNU ld. I'd rather use --version,
1849 # but apparently some GNU ld's only accept -v.
1850 # Break only if it was the GNU/non-GNU ld that we prefer.
1851 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1852 test "$with_gnu_ld" != no && break
1854 test "$with_gnu_ld" != yes && break
1860 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1865 if test -n "$LD"; then
1866 echo "$ac_t""$LD" 1>&6
1868 echo "$ac_t""no
" 1>&6
1870 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1871 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1872 echo "configure
:1873: checking
if the linker
($LD) is GNU ld
" >&5
1873 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1874 echo $ac_n "(cached
) $ac_c" 1>&6
1876 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1877 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1878 lt_cv_prog_gnu_ld=yes
1880 lt_cv_prog_gnu_ld=no
1884 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1885 with_gnu_ld=$lt_cv_prog_gnu_ld
1888 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1889 echo "configure
:1890: checking
for $LD option to reload object files
" >&5
1890 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1891 echo $ac_n "(cached
) $ac_c" 1>&6
1893 lt_cv_ld_reload_flag='-r'
1896 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1897 reload_flag=$lt_cv_ld_reload_flag
1898 test -n "$reload_flag" && reload_flag=" $reload_flag"
1900 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1901 echo "configure
:1902: checking
for BSD-compatible nm
" >&5
1902 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1903 echo $ac_n "(cached
) $ac_c" 1>&6
1905 if test -n "$NM"; then
1906 # Let the user override the test.
1909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1910 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1911 test -z "$ac_dir" && ac_dir=.
1912 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1913 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1914 # Check to see if the nm accepts a BSD-compat flag.
1915 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1916 # nm: unknown option "B
" ignored
1917 # Tru64's nm complains that /dev/null is an invalid object file
1918 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1919 lt_cv_path_NM="$tmp_nm -B"
1921 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1922 lt_cv_path_NM="$tmp_nm -p"
1925 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1926 continue # so that we can try to find one that supports BSD flags
1931 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1936 echo "$ac_t""$NM" 1>&6
1938 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1939 echo "configure
:1940: checking how to recognise dependant libraries
" >&5
1940 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1941 echo $ac_n "(cached
) $ac_c" 1>&6
1943 lt_cv_file_magic_cmd='$MAGIC_CMD'
1944 lt_cv_file_magic_test_file=
1945 lt_cv_deplibs_check_method='unknown'
1946 # Need to set the preceding variable on all platforms that support
1947 # interlibrary dependencies.
1948 # 'none' -- dependencies not supported.
1949 # `unknown' -- same as none, but documents that we really don't know.
1950 # 'pass_all' -- all dependencies passed with no checks.
1951 # 'test_compile' -- check by making test program.
1952 # 'file_magic [regex]' -- check by looking for files in library path
1953 # which responds to the $file_magic_cmd with a given egrep regex.
1954 # If you have `file' or equivalent on your system and you're not sure
1955 # whether `pass_all' will *always* work, you probably want this one.
1959 lt_cv_deplibs_check_method=pass_all
1963 lt_cv_deplibs_check_method=pass_all
1967 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1968 lt_cv_file_magic_cmd='/usr/bin/file -L'
1969 lt_cv_file_magic_test_file=/shlib/libc.so
1972 cygwin* | mingw* |pw32*)
1973 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1974 lt_cv_file_magic_cmd='$OBJDUMP -f'
1977 darwin* | rhapsody*)
1978 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1979 lt_cv_file_magic_cmd='/usr/bin/file -L'
1981 rhapsody* | darwin1.012)
1982 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1985 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1991 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1994 # Not sure whether the presence of OpenBSD here was a mistake.
1995 # Let's accept both of them until this is cleared up.
1996 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1997 lt_cv_file_magic_cmd=/usr/bin/file
1998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2002 lt_cv_deplibs_check_method=pass_all
2007 lt_cv_deplibs_check_method=pass_all
2013 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2014 lt_cv_file_magic_cmd=/usr/bin/file
2015 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2019 lt_cv_file_magic_cmd=/usr/bin/file
2020 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2028 # this will be overridden with pass_all, but let us keep it just in case
2029 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2033 *-32|*"-32 ") libmagic=32-bit;;
2034 *-n32|*"-n32 ") libmagic=N32;;
2035 *-64|*"-64 ") libmagic=64-bit;;
2036 *) libmagic=never-match;;
2038 # this will be overridden with pass_all, but let us keep it just in case
2039 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2042 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2043 lt_cv_deplibs_check_method=pass_all
2046 # This must be Linux ELF.
2049 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2050 lt_cv_deplibs_check_method=pass_all ;;
2052 # glibc up to 2.1.1 does not perform some relocations on ARM
2053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2055 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2059 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2060 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2062 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2068 lt_cv_file_magic_cmd=/usr/bin/file
2069 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2072 osf3* | osf4* | osf5*)
2073 # this will be overridden with pass_all, but let us keep it just in case
2074 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2075 lt_cv_file_magic_test_file=/shlib/libc.so
2076 lt_cv_deplibs_check_method=pass_all
2080 lt_cv_deplibs_check_method=pass_all
2084 lt_cv_deplibs_check_method=pass_all
2085 lt_cv_file_magic_test_file=/lib/libc.so
2088 sysv5uw[78]* | sysv4*uw2*)
2089 lt_cv_deplibs_check_method=pass_all
2092 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2093 case $host_vendor in
2095 lt_cv_deplibs_check_method=pass_all
2098 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]'
2099 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2107 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2108 file_magic_cmd=$lt_cv_file_magic_cmd
2109 deplibs_check_method=$lt_cv_deplibs_check_method
2111 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2112 echo "configure
:2113: checking
for object suffix
" >&5
2113 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2114 echo $ac_n "(cached
) $ac_c" 1>&6
2117 echo 'int i = 1;' > conftest.$ac_ext
2118 if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2119 for ac_file in conftest.*; do
2122 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2126 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2131 echo "$ac_t""$ac_cv_objext" 1>&6
2132 OBJEXT=$ac_cv_objext
2133 ac_objext=$ac_cv_objext
2135 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2137 # Only perform the check for file, if the check method requires it
2138 case $deplibs_check_method in
2140 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2141 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2142 echo "configure
:2143: checking
for ${ac_tool_prefix}file" >&5
2143 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2144 echo $ac_n "(cached
) $ac_c" 1>&6
2148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2151 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2154 ac_save_MAGIC_CMD="$MAGIC_CMD"
2155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2156 ac_dummy="/usr
/bin
:$PATH"
2157 for ac_dir in $ac_dummy; do
2158 test -z "$ac_dir" && ac_dir=.
2159 if test -f $ac_dir/${ac_tool_prefix}file; then
2160 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2161 if test -n "$file_magic_test_file"; then
2162 case $deplibs_check_method in
2164 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2167 egrep "$file_magic_regex" > /dev/null; then
2172 *** Warning: the command libtool uses to detect shared libraries,
2173 *** $file_magic_cmd, produces output that libtool cannot recognize.
2174 *** The result is that libtool may fail to recognize shared libraries
2175 *** as such. This will affect the creation of libtool libraries that
2176 *** depend on shared libraries, but programs linked with such libtool
2177 *** libraries will work regardless of this problem. Nevertheless, you
2178 *** may want to report the problem to your system manager and/or to
2179 *** bug-libtool@gnu.org
2189 MAGIC_CMD="$ac_save_MAGIC_CMD"
2194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2195 if test -n "$MAGIC_CMD"; then
2196 echo "$ac_t""$MAGIC_CMD" 1>&6
2198 echo "$ac_t""no
" 1>&6
2201 if test -z "$lt_cv_path_MAGIC_CMD"; then
2202 if test -n "$ac_tool_prefix"; then
2203 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2204 echo "configure
:2205: checking
for file" >&5
2205 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2206 echo $ac_n "(cached
) $ac_c" 1>&6
2210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2213 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2216 ac_save_MAGIC_CMD="$MAGIC_CMD"
2217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2218 ac_dummy="/usr
/bin
:$PATH"
2219 for ac_dir in $ac_dummy; do
2220 test -z "$ac_dir" && ac_dir=.
2221 if test -f $ac_dir/file; then
2222 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2223 if test -n "$file_magic_test_file"; then
2224 case $deplibs_check_method in
2226 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2228 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2229 egrep "$file_magic_regex" > /dev/null; then
2234 *** Warning: the command libtool uses to detect shared libraries,
2235 *** $file_magic_cmd, produces output that libtool cannot recognize.
2236 *** The result is that libtool may fail to recognize shared libraries
2237 *** as such. This will affect the creation of libtool libraries that
2238 *** depend on shared libraries, but programs linked with such libtool
2239 *** libraries will work regardless of this problem. Nevertheless, you
2240 *** may want to report the problem to your system manager and/or to
2241 *** bug-libtool@gnu.org
2251 MAGIC_CMD="$ac_save_MAGIC_CMD"
2256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2257 if test -n "$MAGIC_CMD"; then
2258 echo "$ac_t""$MAGIC_CMD" 1>&6
2260 echo "$ac_t""no
" 1>&6
2272 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2274 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2275 echo "configure
:2276: checking
for $ac_word" >&5
2276 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2277 echo $ac_n "(cached
) $ac_c" 1>&6
2279 if test -n "$RANLIB"; then
2280 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2284 for ac_dir in $ac_dummy; do
2285 test -z "$ac_dir" && ac_dir=.
2286 if test -f $ac_dir/$ac_word; then
2287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2294 RANLIB="$ac_cv_prog_RANLIB"
2295 if test -n "$RANLIB"; then
2296 echo "$ac_t""$RANLIB" 1>&6
2298 echo "$ac_t""no
" 1>&6
2302 if test -z "$ac_cv_prog_RANLIB"; then
2303 if test -n "$ac_tool_prefix"; then
2304 # Extract the first word of "ranlib
", so it can be a program name with args.
2305 set dummy ranlib; ac_word=$2
2306 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2307 echo "configure
:2308: checking
for $ac_word" >&5
2308 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2309 echo $ac_n "(cached
) $ac_c" 1>&6
2311 if test -n "$RANLIB"; then
2312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2316 for ac_dir in $ac_dummy; do
2317 test -z "$ac_dir" && ac_dir=.
2318 if test -f $ac_dir/$ac_word; then
2319 ac_cv_prog_RANLIB="ranlib
"
2324 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2327 RANLIB="$ac_cv_prog_RANLIB"
2328 if test -n "$RANLIB"; then
2329 echo "$ac_t""$RANLIB" 1>&6
2331 echo "$ac_t""no
" 1>&6
2339 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2340 set dummy ${ac_tool_prefix}strip; ac_word=$2
2341 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2342 echo "configure
:2343: checking
for $ac_word" >&5
2343 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2344 echo $ac_n "(cached
) $ac_c" 1>&6
2346 if test -n "$STRIP"; then
2347 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2351 for ac_dir in $ac_dummy; do
2352 test -z "$ac_dir" && ac_dir=.
2353 if test -f $ac_dir/$ac_word; then
2354 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2361 STRIP="$ac_cv_prog_STRIP"
2362 if test -n "$STRIP"; then
2363 echo "$ac_t""$STRIP" 1>&6
2365 echo "$ac_t""no
" 1>&6
2369 if test -z "$ac_cv_prog_STRIP"; then
2370 if test -n "$ac_tool_prefix"; then
2371 # Extract the first word of "strip
", so it can be a program name with args.
2372 set dummy strip; ac_word=$2
2373 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2374 echo "configure
:2375: checking
for $ac_word" >&5
2375 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2376 echo $ac_n "(cached
) $ac_c" 1>&6
2378 if test -n "$STRIP"; then
2379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2383 for ac_dir in $ac_dummy; do
2384 test -z "$ac_dir" && ac_dir=.
2385 if test -f $ac_dir/$ac_word; then
2386 ac_cv_prog_STRIP="strip
"
2391 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2394 STRIP="$ac_cv_prog_STRIP"
2395 if test -n "$STRIP"; then
2396 echo "$ac_t""$STRIP" 1>&6
2398 echo "$ac_t""no
" 1>&6
2407 # Check for any special flags to pass to ltconfig.
2408 libtool_flags="--cache-file=$cache_file"
2409 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2410 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2411 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2412 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2413 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2414 libtool_flags="$libtool_flags --enable-dlopen"
2416 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2417 if test "${enable_libtool_lock+set}" = set; then
2418 enableval="$enable_libtool_lock"
2422 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2423 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2425 # Check whether --with-pic or --without-pic was given.
2426 if test "${with_pic+set}" = set; then
2433 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2434 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2436 # Some flags need to be propagated to the compiler or linker for good
2440 # Find out which ABI we are using.
2441 echo '#line 2442 "configure
"' > conftest.$ac_ext
2442 if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2443 if test "$lt_cv_prog_gnu_ld" = yes; then
2444 case `/usr/bin/file conftest.$ac_objext` in
2446 LD="${LD-ld} -melf32bsmip"
2449 LD="${LD-ld} -melf32bmipn32"
2452 LD="${LD-ld} -melf64bmip"
2456 case `/usr/bin/file conftest.$ac_objext` in
2473 # Find out which ABI we are using.
2474 echo 'int i;' > conftest.$ac_ext
2475 if { (eval echo configure:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2476 case "`/usr/bin/file conftest.o`" in
2488 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2489 # Find out which ABI we are using.
2490 echo 'int i;' > conftest.$ac_ext
2491 if { (eval echo configure:2492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2492 case "`/usr/bin/file conftest.o`" in
2496 LD="${LD-ld} -m elf_i386
"
2499 LD="${LD-ld} -m elf32ppclinux
"
2502 LD="${LD-ld} -m elf_s390
"
2505 LD="${LD-ld} -m elf32_sparc
"
2512 LD="${LD-ld} -m elf_x86_64
"
2514 ppc*-*linux*|powerpc*-*linux*)
2515 LD="${LD-ld} -m elf64ppc
"
2518 LD="${LD-ld} -m elf64_s390
"
2521 LD="${LD-ld} -m elf64_sparc
"
2531 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2532 SAVE_CFLAGS="$CFLAGS"
2533 CFLAGS="$CFLAGS -belf"
2534 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2535 echo "configure
:2536: checking whether the C compiler needs
-belf" >&5
2536 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2537 echo $ac_n "(cached
) $ac_c" 1>&6
2541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2542 ac_cpp='$CPP $CPPFLAGS'
2543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2545 cross_compiling=$ac_cv_prog_cc_cross
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure
"
2549 #include "confdefs.h
"
2555 if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2557 lt_cv_cc_needs_belf=yes
2559 echo "configure
: failed program was
:" >&5
2560 cat conftest.$ac_ext >&5
2562 lt_cv_cc_needs_belf=no
2566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2570 cross_compiling=$ac_cv_prog_cc_cross
2574 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2575 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2577 CFLAGS="$SAVE_CFLAGS"
2584 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2585 echo "configure
:2586: checking how to run the C
++ preprocessor
" >&5
2586 if test -z "$CXXCPP"; then
2587 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2588 echo $ac_n "(cached
) $ac_c" 1>&6
2591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2592 ac_cpp='$CXXCPP $CPPFLAGS'
2593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2595 cross_compiling=$ac_cv_prog_cxx_cross
2596 CXXCPP="${CXX-g++} -E"
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure
"
2599 #include "confdefs.h
"
2602 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2603 { (eval echo configure:2604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2605 if test -z "$ac_err"; then
2609 echo "configure
: failed program was
:" >&5
2610 cat conftest.$ac_ext >&5
2615 ac_cv_prog_CXXCPP="$CXXCPP"
2617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2621 cross_compiling=$ac_cv_prog_cc_cross
2624 CXXCPP="$ac_cv_prog_CXXCPP"
2625 echo "$ac_t""$CXXCPP" 1>&6
2628 # Save cache, so that ltconfig can load it
2629 cat > confcache <<\EOF
2630 # This file is a shell script that caches the results of configure
2631 # tests run on this system so they can be shared between configure
2632 # scripts and configure runs. It is not useful on other systems.
2633 # If it contains results you don't want to keep, you may remove or edit it.
2635 # By default, configure uses ./config.cache as the cache file,
2636 # creating it if it does not exist already. You can give configure
2637 # the --cache-file=FILE option to use a different cache file; that is
2638 # what configure does when it calls configure scripts in
2639 # subdirectories, so they share the cache.
2640 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2641 # config.status only pays attention to the cache file if you give it the
2642 # --recheck option to rerun configure.
2645 # The following way of writing the cache mishandles newlines in values,
2646 # but we know of no workaround that is simple, portable, and efficient.
2647 # So, don't put newlines in cache variables' values.
2648 # Ultrix sh set writes to stderr and can't be redirected directly,
2649 # and sets the high bit in the cache file unless we assign to the vars.
2651 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2653 # `set' does not quote correctly, so add quotes (double-quote substitution
2654 # turns \\\\ into \\, and sed turns \\ into \).
2656 -e "s
/'/'\\\\''/g
" \
2657 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2660 # `set' quotes correctly as required by POSIX, so do not add quotes.
2661 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2664 if cmp -s $cache_file confcache; then
2667 if test -w $cache_file; then
2668 echo "updating cache
$cache_file"
2669 cat confcache > $cache_file
2671 echo "not updating unwritable cache
$cache_file"
2677 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2678 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2679 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2680 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2681 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2682 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2683 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2684 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2685 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2686 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2688 # Reload cache, that may have been modified by ltconfig
2689 if test -r "$cache_file"; then
2690 echo "loading cache
$cache_file"
2693 echo "creating cache
$cache_file"
2698 # This can be used to rebuild libtool when needed
2699 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2701 # Always use our own libtool.
2702 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2704 # Redirect the config.log output again, so that the ltconfig log is not
2705 # clobbered by the next message.
2706 exec 5>>./config.log
2710 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2712 lt_save_CFLAGS="$CFLAGS"
2713 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2714 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2715 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2716 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2717 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2718 deplibs_check_method="$deplibs_check_method" \
2719 file_magic_cmd="$file_magic_cmd" \
2720 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2721 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2722 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2724 CFLAGS="$lt_save_CFLAGS"
2726 # Redirect the config.log output again, so that the ltconfig log is not
2727 # clobbered by the next message.
2728 exec 5>>./config.log
2738 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2747 if test -d $srcdir/testsuite; then
2749 TESTSUBDIR_FALSE='#'
2755 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2756 if test "${enable_getenv_properties+set}" = set; then
2757 enableval="$enable_getenv_properties"
2762 if test -z "$enable_getenv_properties"; then
2763 enable_getenv_properties=${enable_getenv_properties_default-yes}
2765 if test "$enable_getenv_properties" = no; then
2766 cat >> confdefs.h <<\EOF
2767 #define DISABLE_GETENV_PROPERTIES 1
2772 if test -z "$enable_main_args"; then
2773 enable_main_args=${enable_main_args_default-yes}
2775 if test "$enable_main_args" = no; then
2776 cat >> confdefs.h <<\EOF
2777 #define DISABLE_MAIN_ARGS 1
2783 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2784 if test "${enable_hash_synchronization+set}" = set; then
2785 enableval="$enable_hash_synchronization"
2790 if test -z "$enable_hash_synchronization"; then
2791 enable_hash_synchronization=$enable_hash_synchronization_default
2794 if test "${slow_pthread_self}" = "yes"; then
2795 cat >> confdefs.h <<\EOF
2796 #define SLOW_PTHREAD_SELF 1
2804 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2805 if test "${enable_libgcj_debug+set}" = set; then
2806 enableval="$enable_libgcj_debug"
2807 if test "$enable_libgcj_debug" = yes; then
2808 cat >> confdefs.h <<\EOF
2817 # Check whether --enable-interpreter or --disable-interpreter was given.
2818 if test "${enable_interpreter+set}" = set; then
2819 enableval="$enable_interpreter"
2820 if test "$enable_interpreter" = yes; then
2821 # This can also be set in configure.host.
2822 libgcj_interpreter=yes
2823 elif test "$enable_interpreter" = no; then
2824 libgcj_interpreter=no
2829 if test "$libgcj_interpreter" = yes; then
2830 cat >> confdefs.h <<\EOF
2831 #define INTERPRETER 1
2835 INTERPRETER="$libgcj_interpreter"
2838 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2839 echo "configure
:2840: checking
for exception model to use
" >&5
2842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2843 ac_cpp='$CXXCPP $CPPFLAGS'
2844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2846 cross_compiling=$ac_cv_prog_cxx_cross
2848 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2849 if test "${enable_sjlj_exceptions+set}" = set; then
2850 enableval="$enable_sjlj_exceptions"
2853 cat > conftest.$ac_ext << EOF
2854 #line 2855 "configure
"
2863 old_CXXFLAGS="$CXXFLAGS"
2865 if { (eval echo configure:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2866 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2867 enable_sjlj_exceptions=yes
2868 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2869 enable_sjlj_exceptions=no
2872 CXXFLAGS="$old_CXXFLAGS"
2876 if test x$enable_sjlj_exceptions = xyes; then
2877 cat >> confdefs.h <<\EOF
2878 #define SJLJ_EXCEPTIONS 1
2881 ac_exception_model_name=sjlj
2882 elif test x$enable_sjlj_exceptions = xno; then
2883 ac_exception_model_name="call frame
"
2885 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2892 cross_compiling=$ac_cv_prog_cc_cross
2894 echo "$ac_t""$ac_exception_model_name" 1>&6
2896 # If we are non using SJLJ exceptions, and this host does not have support
2897 # for unwinding from a signal handler, enable checked dereferences and divides.
2898 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2899 CHECKREFSPEC=-fcheck-references
2900 DIVIDESPEC=-fuse-divide-subroutine
2904 # Check whether --enable-java-net or --disable-java-net was given.
2905 if test "${enable_java_net+set}" = set; then
2906 enableval="$enable_java_net"
2911 if test -z "$enable_java_net"; then
2912 enable_java_net=${enable_java_net_default-yes}
2914 if test "$enable_java_net" = no; then
2915 cat >> confdefs.h <<\EOF
2916 #define DISABLE_JAVA_NET 1
2921 # Check whether --with-libffi or --without-libffi was given.
2922 if test "${with_libffi+set}" = set; then
2923 withval="$with_libffi"
2926 with_libffi=${with_libffi_default-yes}
2932 if test "$with_libffi" != no; then
2933 cat >> confdefs.h <<\EOF
2934 #define USE_LIBFFI 1
2937 LIBFFI=../libffi/libffi_convenience.la
2938 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2943 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2944 if test "${enable_jvmpi+set}" = set; then
2945 enableval="$enable_jvmpi"
2950 if test "$enable_jvmpi" != no; then
2951 cat >> confdefs.h <<\EOF
2952 #define ENABLE_JVMPI 1
2957 TARGET_ECOS=${PROCESS-"no"}
2958 # Check whether --with-ecos or --without-ecos was given.
2959 if test "${with_ecos+set}" = set; then
2960 withval="$with_ecos"
2961 TARGET_ECOS="$with_ecos"
2967 case "$TARGET_ECOS" in
2972 PLATFORMOBJS=win32.lo
2975 echo $ac_n "checking whether
'ld' is
at least
2.13""...
$ac_c" 1>&6
2976 echo "configure
:2977: checking whether
'ld' is
at least
2.13" >&5
2977 LD_PROG=`$CC --print-prog-name=ld`
2978 LD_VERSION=`$LD_PROG --version`
2979 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
2980 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
2981 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
2984 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
2988 if test "x
$LD_OK" != x; then
2989 echo "$ac_t""yes; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
2991 echo "$ac_t""no
; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
2992 echo "configure
: warning
: ld
<2.13 detected
; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack...
" 1>&2
2993 cat >> confdefs.h <<\EOF
2994 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3002 PLATFORMOBJS=posix.lo
3010 cat >> confdefs.h <<\EOF
3014 PLATFORMOBJS=posix.lo
3021 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
3022 echo "configure
:3023: checking how to run the C preprocessor
" >&5
3023 # On Suns, sometimes $CPP names a directory.
3024 if test -n "$CPP" && test -d "$CPP"; then
3027 if test -z "$CPP"; then
3028 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3029 echo $ac_n "(cached
) $ac_c" 1>&6
3031 # This must be in double quotes, not single quotes, because CPP may get
3032 # substituted into the Makefile and "${CC-cc}" will confuse make.
3034 # On the NeXT, cc -E runs the code through the compiler's parser,
3035 # not just through cpp.
3036 cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure
"
3038 #include "confdefs.h
"
3042 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3043 { (eval echo configure:3044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3045 if test -z "$ac_err"; then
3049 echo "configure
: failed program was
:" >&5
3050 cat conftest.$ac_ext >&5
3052 CPP="${CC-cc} -E -traditional-cpp"
3053 cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure
"
3055 #include "confdefs.h
"
3059 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3060 { (eval echo configure:3061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3062 if test -z "$ac_err"; then
3066 echo "configure
: failed program was
:" >&5
3067 cat conftest.$ac_ext >&5
3069 CPP="${CC-cc} -nologo -E"
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure
"
3072 #include "confdefs.h
"
3076 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3077 { (eval echo configure:3078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3079 if test -z "$ac_err"; then
3083 echo "configure
: failed program was
:" >&5
3084 cat conftest.$ac_ext >&5
3093 ac_cv_prog_CPP="$CPP"
3095 CPP="$ac_cv_prog_CPP"
3097 ac_cv_prog_CPP="$CPP"
3099 echo "$ac_t""$CPP" 1>&6
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure
"
3103 #include "confdefs.h
"
3106 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3107 egrep "uint32_t
" >/dev/null 2>&1; then
3109 cat >> confdefs.h <<\EOF
3110 #define HAVE_INT32_DEFINED 1
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure
"
3118 #include "confdefs.h
"
3119 #include <inttypes.h>
3121 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3122 egrep "uint32_t
" >/dev/null 2>&1; then
3124 cat >> confdefs.h <<\EOF
3125 #define HAVE_INT32_DEFINED 1
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure
"
3133 #include "confdefs.h
"
3134 #include <sys/types.h>
3136 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3137 egrep "u_int32_t
" >/dev/null 2>&1; then
3139 cat >> confdefs.h <<\EOF
3140 #define HAVE_BSD_INT32_DEFINED 1
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure
"
3148 #include "confdefs.h
"
3149 #include <sys/config.h>
3151 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3152 egrep "u_int32_t
" >/dev/null 2>&1; then
3154 cat >> confdefs.h <<\EOF
3155 #define HAVE_BSD_INT32_DEFINED 1
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure
"
3165 #include "confdefs.h
"
3168 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3169 egrep "mktime
" >/dev/null 2>&1; then
3171 cat >> confdefs.h <<\EOF
3172 #define HAVE_MKTIME 1
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure
"
3180 #include "confdefs.h
"
3183 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3184 egrep "localtime
" >/dev/null 2>&1; then
3186 cat >> confdefs.h <<\EOF
3187 #define HAVE_LOCALTIME 1
3194 test -d java || mkdir java
3195 test -d java/io || mkdir java/io
3196 test -d gnu || mkdir gnu
3200 test -d java/lang || mkdir java/lang
3204 test -d java/net || mkdir java/net
3212 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3220 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs
-rpath `${PWDCMD-pwd}`/.libs
"
3223 # Check whether --with-system-zlib or --without-system-zlib was given.
3224 if test "${with_system_zlib+set}" = set; then
3225 withval="$with_system_zlib"
3234 # If we find X, set shell vars x_includes and x_libraries to the
3235 # paths, otherwise set no_x=yes.
3236 # Uses ac_ vars as temps to allow command line to override cache and checks.
3237 # --without-x overrides everything else, but does not touch the cache.
3238 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
3239 echo "configure
:3240: checking
for X
" >&5
3241 # Check whether --with-x or --without-x was given.
3242 if test "${with_x+set}" = set; then
3247 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3248 if test "x
$with_x" = xno; then
3249 # The user explicitly disabled X.
3252 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
3253 # Both variables are already set.
3256 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3257 echo $ac_n "(cached
) $ac_c" 1>&6
3259 # One or both of the vars are not set, and there is no cached value.
3260 ac_x_includes=NO ac_x_libraries=NO
3262 if mkdir conftestdir; then
3264 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3265 cat > Imakefile <<'EOF'
3267 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3269 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3270 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
3271 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3272 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3273 for ac_extension in a so sl; do
3274 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3275 test -f $ac_im_libdir/libX11.$ac_extension; then
3276 ac_im_usrlibdir=$ac_im_libdir; break
3279 # Screen out bogus values from the imake configuration. They are
3280 # bogus both because they are the default anyway, and because
3281 # using them would break gcc on systems where it needs fixed includes.
3282 case "$ac_im_incroot" in
3284 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
3286 case "$ac_im_usrlibdir" in
3288 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3295 if test "$ac_x_includes" = NO; then
3296 # Guess where to find include files, by looking for this one X11 .h file.
3297 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3299 # First, try using that file with no special directory specified.
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure
"
3302 #include "confdefs.h
"
3303 #include <$x_direct_test_include>
3305 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3306 { (eval echo configure:3307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3308 if test -z "$ac_err"; then
3310 # We can compile using X headers with no special include directory.
3314 echo "configure
: failed program was
:" >&5
3315 cat conftest.$ac_ext >&5
3317 # Look for the header file in a standard set of common directories.
3318 # Check X11 before X11Rn because it is often a symlink to the current release.
3321 /usr/X11R6/include \
3322 /usr/X11R5/include \
3323 /usr/X11R4/include \
3326 /usr/include/X11R6 \
3327 /usr/include/X11R5 \
3328 /usr/include/X11R4 \
3330 /usr/local/X11/include \
3331 /usr/local/X11R6/include \
3332 /usr/local/X11R5/include \
3333 /usr/local/X11R4/include \
3335 /usr/local/include/X11 \
3336 /usr/local/include/X11R6 \
3337 /usr/local/include/X11R5 \
3338 /usr/local/include/X11R4 \
3342 /usr/XFree86/include/X11 \
3345 /usr/local/include \
3346 /usr/unsupported/include \
3347 /usr/athena/include \
3348 /usr/local/x11r5/include \
3349 /usr/lpp/Xamples/include \
3351 /usr/openwin/include \
3352 /usr/openwin/share/include \
3355 if test -r "$ac_dir/$x_direct_test_include"; then
3356 ac_x_includes=$ac_dir
3362 fi # $ac_x_includes = NO
3364 if test "$ac_x_libraries" = NO; then
3365 # Check for the libraries.
3367 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3368 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3370 # See if we find them without any special options.
3371 # Don't add to $LIBS permanently.
3372 ac_save_LIBS="$LIBS"
3373 LIBS="-l$x_direct_test_library $LIBS"
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure
"
3376 #include "confdefs.h
"
3379 ${x_direct_test_function}()
3382 if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3384 LIBS="$ac_save_LIBS"
3385 # We can link X programs with no special library path.
3388 echo "configure
: failed program was
:" >&5
3389 cat conftest.$ac_ext >&5
3391 LIBS="$ac_save_LIBS"
3392 # First see if replacing the include by lib works.
3393 # Check X11 before X11Rn because it is often a symlink to the current release.
3394 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3405 /usr/local/X11/lib \
3406 /usr/local/X11R6/lib \
3407 /usr/local/X11R5/lib \
3408 /usr/local/X11R4/lib \
3410 /usr/local/lib/X11 \
3411 /usr/local/lib/X11R6 \
3412 /usr/local/lib/X11R5 \
3413 /usr/local/lib/X11R4 \
3417 /usr/XFree86/lib/X11 \
3421 /usr/unsupported/lib \
3423 /usr/local/x11r5/lib \
3424 /usr/lpp/Xamples/lib \
3428 /usr/openwin/share/lib \
3431 for ac_extension in a so sl; do
3432 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3433 ac_x_libraries=$ac_dir
3440 fi # $ac_x_libraries = NO
3442 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3443 # Didn't find X anywhere. Cache the known absence of X.
3444 ac_cv_have_x="have_x
=no
"
3446 # Record where we found X for the cache.
3447 ac_cv_have_x="have_x
=yes \
3448 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
3452 eval "$ac_cv_have_x"
3455 if test "$have_x" != yes; then
3456 echo "$ac_t""$have_x" 1>&6
3459 # If each of the values was on the command line, it overrides each guess.
3460 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
3461 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3462 # Update the cache value to reflect the command line values.
3463 ac_cv_have_x="have_x
=yes \
3464 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
3465 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
3468 if test "$no_x" = yes; then
3469 # Not all programs may use this symbol, but it does not hurt to define it.
3470 cat >> confdefs.h <<\EOF
3471 #define X_DISPLAY_MISSING 1
3474 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3476 if test -n "$x_includes"; then
3477 X_CFLAGS="$X_CFLAGS -I$x_includes"
3480 # It would also be nice to do this for all -L options, not just this one.
3481 if test -n "$x_libraries"; then
3482 X_LIBS="$X_LIBS -L$x_libraries"
3483 # For Solaris; some versions of Sun CC require a space after -R and
3484 # others require no space. Words are not sufficient . . . .
3485 case "`(uname -sr) 2>/dev/null`" in
3487 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
3488 echo "configure
:3489: checking whether
-R must be followed by a space
" >&5
3489 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure
"
3492 #include "confdefs.h
"
3498 if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3502 echo "configure
: failed program was
:" >&5
3503 cat conftest.$ac_ext >&5
3508 if test $ac_R_nospace = yes; then
3509 echo "$ac_t""no
" 1>&6
3510 X_LIBS="$X_LIBS -R$x_libraries"
3512 LIBS="$ac_xsave_LIBS -R $x_libraries"
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure
"
3515 #include "confdefs.h
"
3521 if { (eval echo configure:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3525 echo "configure
: failed program was
:" >&5
3526 cat conftest.$ac_ext >&5
3531 if test $ac_R_space = yes; then
3532 echo "$ac_t""yes" 1>&6
3533 X_LIBS="$X_LIBS -R $x_libraries"
3535 echo "$ac_t""neither works
" 1>&6
3538 LIBS="$ac_xsave_LIBS"
3542 # Check for system-dependent libraries X programs must link with.
3543 # Do this before checking for the system-independent R6 libraries
3544 # (-lICE), since we may need -lsocket or whatever for X linking.
3546 if test "$ISC" = yes; then
3547 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3549 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3550 # libraries were built with DECnet support. And karl@cs.umb.edu says
3551 # the Alpha needs dnet_stub (dnet does not exist).
3552 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
3553 echo "configure
:3554: checking
for dnet_ntoa
in -ldnet" >&5
3554 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3556 echo $ac_n "(cached
) $ac_c" 1>&6
3558 ac_save_LIBS="$LIBS"
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure
"
3562 #include "confdefs.h
"
3563 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3572 if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3574 eval "ac_cv_lib_
$ac_lib_var=yes"
3576 echo "configure
: failed program was
:" >&5
3577 cat conftest.$ac_ext >&5
3579 eval "ac_cv_lib_
$ac_lib_var=no
"
3582 LIBS="$ac_save_LIBS"
3585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3586 echo "$ac_t""yes" 1>&6
3587 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3589 echo "$ac_t""no
" 1>&6
3592 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3593 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
3594 echo "configure
:3595: checking
for dnet_ntoa
in -ldnet_stub" >&5
3595 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3597 echo $ac_n "(cached
) $ac_c" 1>&6
3599 ac_save_LIBS="$LIBS"
3600 LIBS="-ldnet_stub $LIBS"
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure
"
3603 #include "confdefs.h
"
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3613 if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3615 eval "ac_cv_lib_
$ac_lib_var=yes"
3617 echo "configure
: failed program was
:" >&5
3618 cat conftest.$ac_ext >&5
3620 eval "ac_cv_lib_
$ac_lib_var=no
"
3623 LIBS="$ac_save_LIBS"
3626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3627 echo "$ac_t""yes" 1>&6
3628 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3630 echo "$ac_t""no
" 1>&6
3635 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3636 # to get the SysV transport functions.
3637 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3639 # The nsl library prevents programs from opening the X display
3640 # on Irix 5.2, according to dickey@clark.net.
3641 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
3642 echo "configure
:3643: checking
for gethostbyname
" >&5
3643 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3644 echo $ac_n "(cached
) $ac_c" 1>&6
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure
"
3648 #include "confdefs.h
"
3649 /* System header to define __stub macros and hopefully few prototypes,
3650 which can conflict with char gethostbyname(); below. */
3652 /* Override any gcc2 internal prototype to avoid an error. */
3653 /* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3655 char gethostbyname();
3659 /* The GNU C library defines this for functions which it implements
3660 to always fail with ENOSYS. Some functions are actually named
3661 something starting with __ and the normal name is an alias. */
3662 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3670 if { (eval echo configure:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3672 eval "ac_cv_func_gethostbyname
=yes"
3674 echo "configure
: failed program was
:" >&5
3675 cat conftest.$ac_ext >&5
3677 eval "ac_cv_func_gethostbyname
=no
"
3682 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3686 echo "$ac_t""no
" 1>&6
3689 if test $ac_cv_func_gethostbyname = no; then
3690 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
3691 echo "configure
:3692: checking
for gethostbyname
in -lnsl" >&5
3692 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3694 echo $ac_n "(cached
) $ac_c" 1>&6
3696 ac_save_LIBS="$LIBS"
3698 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure
"
3700 #include "confdefs.h
"
3701 /* Override any gcc2 internal prototype to avoid an error. */
3702 /* We use char because int might match the return type of a gcc2
3703 builtin and then its argument prototype would still apply. */
3704 char gethostbyname();
3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3712 eval "ac_cv_lib_
$ac_lib_var=yes"
3714 echo "configure
: failed program was
:" >&5
3715 cat conftest.$ac_ext >&5
3717 eval "ac_cv_lib_
$ac_lib_var=no
"
3720 LIBS="$ac_save_LIBS"
3723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3724 echo "$ac_t""yes" 1>&6
3725 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3727 echo "$ac_t""no
" 1>&6
3732 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3733 # socket/setsockopt and other routines are undefined under SCO ODT
3734 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3735 # on later versions), says simon@lia.di.epfl.ch: it contains
3736 # gethostby* variants that don't use the nameserver (or something).
3737 # -lsocket must be given before -lnsl if both are needed.
3738 # We assume that if connect needs -lnsl, so does gethostbyname.
3739 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
3740 echo "configure
:3741: checking
for connect
" >&5
3741 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3742 echo $ac_n "(cached
) $ac_c" 1>&6
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure
"
3746 #include "confdefs.h
"
3747 /* System header to define __stub macros and hopefully few prototypes,
3748 which can conflict with char connect(); below. */
3750 /* Override any gcc2 internal prototype to avoid an error. */
3751 /* We use char because int might match the return type of a gcc2
3752 builtin and then its argument prototype would still apply. */
3757 /* The GNU C library defines this for functions which it implements
3758 to always fail with ENOSYS. Some functions are actually named
3759 something starting with __ and the normal name is an alias. */
3760 #if defined (__stub_connect) || defined (__stub___connect)
3768 if { (eval echo configure:3769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3770 eval "ac_cv_func_connect
=yes"
3772 echo "configure
: failed program was
:" >&5
3773 cat conftest.$ac_ext >&5
3775 eval "ac_cv_func_connect
=no
"
3780 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3781 echo "$ac_t""yes" 1>&6
3784 echo "$ac_t""no
" 1>&6
3787 if test $ac_cv_func_connect = no; then
3788 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
3789 echo "configure
:3790: checking
for connect
in -lsocket" >&5
3790 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3792 echo $ac_n "(cached
) $ac_c" 1>&6
3794 ac_save_LIBS="$LIBS"
3795 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure
"
3798 #include "confdefs.h
"
3799 /* Override any gcc2 internal prototype to avoid an error. */
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3810 eval "ac_cv_lib_
$ac_lib_var=yes"
3812 echo "configure
: failed program was
:" >&5
3813 cat conftest.$ac_ext >&5
3815 eval "ac_cv_lib_
$ac_lib_var=no
"
3818 LIBS="$ac_save_LIBS"
3821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3823 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3825 echo "$ac_t""no
" 1>&6
3830 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3831 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
3832 echo "configure
:3833: checking
for remove
" >&5
3833 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3834 echo $ac_n "(cached
) $ac_c" 1>&6
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure
"
3838 #include "confdefs.h
"
3839 /* System header to define __stub macros and hopefully few prototypes,
3840 which can conflict with char remove(); below. */
3842 /* Override any gcc2 internal prototype to avoid an error. */
3843 /* We use char because int might match the return type of a gcc2
3844 builtin and then its argument prototype would still apply. */
3849 /* The GNU C library defines this for functions which it implements
3850 to always fail with ENOSYS. Some functions are actually named
3851 something starting with __ and the normal name is an alias. */
3852 #if defined (__stub_remove) || defined (__stub___remove)
3860 if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3862 eval "ac_cv_func_remove
=yes"
3864 echo "configure
: failed program was
:" >&5
3865 cat conftest.$ac_ext >&5
3867 eval "ac_cv_func_remove
=no
"
3872 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3873 echo "$ac_t""yes" 1>&6
3876 echo "$ac_t""no
" 1>&6
3879 if test $ac_cv_func_remove = no; then
3880 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
3881 echo "configure
:3882: checking
for remove
in -lposix" >&5
3882 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3884 echo $ac_n "(cached
) $ac_c" 1>&6
3886 ac_save_LIBS="$LIBS"
3887 LIBS="-lposix $LIBS"
3888 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure
"
3890 #include "confdefs.h
"
3891 /* Override any gcc2 internal prototype to avoid an error. */
3892 /* We use char because int might match the return type of a gcc2
3893 builtin and then its argument prototype would still apply. */
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3902 eval "ac_cv_lib_
$ac_lib_var=yes"
3904 echo "configure
: failed program was
:" >&5
3905 cat conftest.$ac_ext >&5
3907 eval "ac_cv_lib_
$ac_lib_var=no
"
3910 LIBS="$ac_save_LIBS"
3913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3914 echo "$ac_t""yes" 1>&6
3915 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3917 echo "$ac_t""no
" 1>&6
3922 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3923 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
3924 echo "configure
:3925: checking
for shmat
" >&5
3925 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3926 echo $ac_n "(cached
) $ac_c" 1>&6
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure
"
3930 #include "confdefs.h
"
3931 /* System header to define __stub macros and hopefully few prototypes,
3932 which can conflict with char shmat(); below. */
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3941 /* The GNU C library defines this for functions which it implements
3942 to always fail with ENOSYS. Some functions are actually named
3943 something starting with __ and the normal name is an alias. */
3944 #if defined (__stub_shmat) || defined (__stub___shmat)
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3954 eval "ac_cv_func_shmat
=yes"
3956 echo "configure
: failed program was
:" >&5
3957 cat conftest.$ac_ext >&5
3959 eval "ac_cv_func_shmat
=no
"
3964 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3968 echo "$ac_t""no
" 1>&6
3971 if test $ac_cv_func_shmat = no; then
3972 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
3973 echo "configure
:3974: checking
for shmat
in -lipc" >&5
3974 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3976 echo $ac_n "(cached
) $ac_c" 1>&6
3978 ac_save_LIBS="$LIBS"
3980 cat > conftest.$ac_ext <<EOF
3981 #line 3982 "configure
"
3982 #include "confdefs.h
"
3983 /* Override any gcc2 internal prototype to avoid an error. */
3984 /* We use char because int might match the return type of a gcc2
3985 builtin and then its argument prototype would still apply. */
3992 if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3994 eval "ac_cv_lib_
$ac_lib_var=yes"
3996 echo "configure
: failed program was
:" >&5
3997 cat conftest.$ac_ext >&5
3999 eval "ac_cv_lib_
$ac_lib_var=no
"
4002 LIBS="$ac_save_LIBS"
4005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4006 echo "$ac_t""yes" 1>&6
4007 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4009 echo "$ac_t""no
" 1>&6
4015 # Check for libraries that X11R6 Xt/Xaw programs need.
4016 ac_save_LDFLAGS="$LDFLAGS"
4017 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4018 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4019 # check for ICE first), but we must link in the order -lSM -lICE or
4020 # we get undefined symbols. So assume we have SM if we have ICE.
4021 # These have to be linked with before -lX11, unlike the other
4022 # libraries we check for below, so use a different variable.
4023 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4024 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
4025 echo "configure
:4026: checking
for IceConnectionNumber
in -lICE" >&5
4026 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4028 echo $ac_n "(cached
) $ac_c" 1>&6
4030 ac_save_LIBS="$LIBS"
4031 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure
"
4034 #include "confdefs.h
"
4035 /* Override any gcc2 internal prototype to avoid an error. */
4036 /* We use char because int might match the return type of a gcc2
4037 builtin and then its argument prototype would still apply. */
4038 char IceConnectionNumber();
4041 IceConnectionNumber()
4044 if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4046 eval "ac_cv_lib_
$ac_lib_var=yes"
4048 echo "configure
: failed program was
:" >&5
4049 cat conftest.$ac_ext >&5
4051 eval "ac_cv_lib_
$ac_lib_var=no
"
4054 LIBS="$ac_save_LIBS"
4057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4058 echo "$ac_t""yes" 1>&6
4059 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4061 echo "$ac_t""no
" 1>&6
4064 LDFLAGS="$ac_save_LDFLAGS"
4069 # Check whether --enable-java-awt or --disable-java-awt was given.
4070 if test "${enable_java_awt+set}" = set; then
4071 enableval="$enable_java_awt"
4076 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4079 # The default toolkit to use is the first one specified.
4083 for peer in $peerlibs ; do
4086 if test "$no_x" = yes; then
4087 echo "*** xlib peers requested but no X library available
" 1>&2
4091 if test -z "$TOOLKIT"; then
4092 TOOLKIT=gnu.awt.xlib.XToolkit
4097 if test "$no_x" = yes; then
4098 echo "*** xlib peers requested but no X library available
" 1>&2
4102 if test -z "$TOOLKIT"; then
4103 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4105 test -d jniinclude || mkdir jniinclude
4114 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
4121 if test "$use_xlib_awt" = yes; then
4130 if test "$use_gtk_awt" = yes; then
4141 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
4142 echo "configure
:4143: checking
for garbage collector to use
" >&5
4143 # Check whether --enable-java-gc or --disable-java-gc was given.
4144 if test "${enable_java_gc+set}" = set; then
4145 enableval="$enable_java_gc"
4161 echo "$ac_t""boehm
" 1>&6
4162 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4163 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
4164 JC1GCSPEC='-fuse-boehm-gc'
4165 GCTESTSPEC="-L`${PWDCMD-pwd}`/..
/boehm-gc
/.libs
-rpath `${PWDCMD-pwd}`/..
/boehm-gc
/.libs
"
4167 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
4170 cat >> confdefs.h <<\EOF
4171 #define HAVE_BOEHM_GC 1
4176 echo "$ac_t""none
" 1>&6
4181 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
4194 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
4195 echo "configure
:4196: checking
for thread model used by GCC
" >&5
4196 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4197 echo "$ac_t""$THREADS" 1>&6
4207 cat >> confdefs.h <<\EOF
4208 #define LINUX_THREADS 1
4216 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4217 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
4220 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
4235 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4240 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4241 # merely adds pthread_* functions) but it does have a -pthread switch
4242 # which is required at link-time to select -lc_r *instead* of -lc.
4243 THREADLDFLAGS=-pthread
4244 # Don't set THREADSPEC here as might be expected since -pthread is
4245 # not processed when found within a spec file, it must come from
4246 # the command line. For now, the user must provide the -pthread
4247 # switch to link code compiled with gcj. In future, consider adding
4248 # support for weak references to pthread_* functions ala gthr.h API.
4249 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4252 # FreeBSD 5 implements a model much closer to other modern UNIX
4253 # which support threads. However, it still does not support
4255 THREADLDFLAGS=-pthread
4259 THREADLIBS=-lpthread
4260 THREADSPEC=-lpthread
4263 THREADOBJS=posix-threads.lo
4264 THREADH=posix-threads.h
4265 # MIT pthreads doesn't seem to have the mutexattr functions.
4266 # But for now we don't check for it. We just assume you aren't
4267 # using MIT pthreads.
4268 cat >> confdefs.h <<\EOF
4269 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4273 # If we're using the Boehm GC, then we happen to know that it
4274 # defines _REENTRANT, so we don't bother. Eww.
4275 if test "$GC" != boehm; then
4276 cat >> confdefs.h <<\EOF
4277 #define _REENTRANT 1
4281 cat >> confdefs.h <<\EOF
4282 #define _POSIX_PTHREAD_SEMANTICS 1
4288 THREADOBJS=win32-threads.lo
4289 THREADH=win32-threads.h
4293 THREADOBJS=no-threads.lo
4294 THREADH=no-threads.h
4305 if test -d sysdep; then true; else mkdir sysdep; fi
4309 # Hash synchronization is only useful with posix threads right now.
4310 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none
"; then
4311 HASH_SYNC_SPEC=-fhash-synchronization
4312 cat >> confdefs.h <<\EOF
4313 #define JV_HASH_SYNCHRONIZATION 1
4322 if test "$GCC" = yes; then
4334 # We're in the tree with gcc, and need to include some of its headers.
4335 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4337 # Figure out where generated headers like libgcj-config.h get installed.
4338 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4339 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4340 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4341 tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
4345 if test "x
${with_newlib}" = "xyes
"; then
4346 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4347 # may not work correctly, because the compiler may not be able to
4350 # We assume newlib. This lets us hard-code the functions we know
4352 cat >> confdefs.h <<\EOF
4353 #define HAVE_MEMMOVE 1
4356 cat >> confdefs.h <<\EOF
4357 #define HAVE_MEMCPY 1
4360 cat >> confdefs.h <<\EOF
4361 #define HAVE_STRERROR 1
4364 cat >> confdefs.h <<\EOF
4368 cat >> confdefs.h <<\EOF
4369 #define HAVE_GMTIME_R 1
4372 cat >> confdefs.h <<\EOF
4373 #define HAVE_LOCALTIME_R 1
4376 cat >> confdefs.h <<\EOF
4377 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4380 cat >> confdefs.h <<\EOF
4381 #define HAVE_ALLOCA 1
4385 cat >> confdefs.h <<\EOF
4390 # If Canadian cross, then don't pick up tools from the build
4392 if test x"$build" != x"$with_cross_host" \
4393 && test x"$build" != x"$target"; then
4396 GCJ="${target_alias}-gcj"
4401 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4403 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4404 echo "configure
:4405: checking
for $ac_func" >&5
4405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4406 echo $ac_n "(cached
) $ac_c" 1>&6
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure
"
4410 #include "confdefs.h
"
4411 /* System header to define __stub macros and hopefully few prototypes,
4412 which can conflict with char $ac_func(); below. */
4414 /* Override any gcc2 internal prototype to avoid an error. */
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4421 /* The GNU C library defines this for functions which it implements
4422 to always fail with ENOSYS. Some functions are actually named
4423 something starting with __ and the normal name is an alias. */
4424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4432 if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4434 eval "ac_cv_func_
$ac_func=yes"
4436 echo "configure
: failed program was
:" >&5
4437 cat conftest.$ac_ext >&5
4439 eval "ac_cv_func_
$ac_func=no
"
4444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4445 echo "$ac_t""yes" 1>&6
4446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4447 cat >> confdefs.h <<EOF
4448 #define $ac_tr_func 1
4452 echo "$ac_t""no
" 1>&6
4456 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4458 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4459 echo "configure
:4460: checking
for $ac_func" >&5
4460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4461 echo $ac_n "(cached
) $ac_c" 1>&6
4463 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure
"
4465 #include "confdefs.h
"
4466 /* System header to define __stub macros and hopefully few prototypes,
4467 which can conflict with char $ac_func(); below. */
4469 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */
4476 /* The GNU C library defines this for functions which it implements
4477 to always fail with ENOSYS. Some functions are actually named
4478 something starting with __ and the normal name is an alias. */
4479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4489 eval "ac_cv_func_
$ac_func=yes"
4491 echo "configure
: failed program was
:" >&5
4492 cat conftest.$ac_ext >&5
4494 eval "ac_cv_func_
$ac_func=no
"
4499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4502 cat >> confdefs.h <<EOF
4503 #define $ac_tr_func 1
4507 echo "$ac_t""no
" 1>&6
4511 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4513 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4514 echo "configure
:4515: checking
for $ac_func" >&5
4515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4516 echo $ac_n "(cached
) $ac_c" 1>&6
4518 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure
"
4520 #include "confdefs.h
"
4521 /* System header to define __stub macros and hopefully few prototypes,
4522 which can conflict with char $ac_func(); below. */
4524 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4531 /* The GNU C library defines this for functions which it implements
4532 to always fail with ENOSYS. Some functions are actually named
4533 something starting with __ and the normal name is an alias. */
4534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4544 eval "ac_cv_func_
$ac_func=yes"
4546 echo "configure
: failed program was
:" >&5
4547 cat conftest.$ac_ext >&5
4549 eval "ac_cv_func_
$ac_func=no
"
4554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4555 echo "$ac_t""yes" 1>&6
4556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4557 cat >> confdefs.h <<EOF
4558 #define $ac_tr_func 1
4562 echo "$ac_t""no
" 1>&6
4566 for ac_func in nl_langinfo setlocale
4568 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4569 echo "configure
:4570: checking
for $ac_func" >&5
4570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4571 echo $ac_n "(cached
) $ac_c" 1>&6
4573 cat > conftest.$ac_ext <<EOF
4574 #line 4575 "configure
"
4575 #include "confdefs.h
"
4576 /* System header to define __stub macros and hopefully few prototypes,
4577 which can conflict with char $ac_func(); below. */
4579 /* Override any gcc2 internal prototype to avoid an error. */
4580 /* We use char because int might match the return type of a gcc2
4581 builtin and then its argument prototype would still apply. */
4586 /* The GNU C library defines this for functions which it implements
4587 to always fail with ENOSYS. Some functions are actually named
4588 something starting with __ and the normal name is an alias. */
4589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4599 eval "ac_cv_func_
$ac_func=yes"
4601 echo "configure
: failed program was
:" >&5
4602 cat conftest.$ac_ext >&5
4604 eval "ac_cv_func_
$ac_func=no
"
4609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4610 echo "$ac_t""yes" 1>&6
4611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4612 cat >> confdefs.h <<EOF
4613 #define $ac_tr_func 1
4617 echo "$ac_t""no
" 1>&6
4621 for ac_func in inet_aton inet_addr
4623 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4624 echo "configure
:4625: checking
for $ac_func" >&5
4625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4626 echo $ac_n "(cached
) $ac_c" 1>&6
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure
"
4630 #include "confdefs.h
"
4631 /* System header to define __stub macros and hopefully few prototypes,
4632 which can conflict with char $ac_func(); below. */
4634 /* Override any gcc2 internal prototype to avoid an error. */
4635 /* We use char because int might match the return type of a gcc2
4636 builtin and then its argument prototype would still apply. */
4641 /* The GNU C library defines this for functions which it implements
4642 to always fail with ENOSYS. Some functions are actually named
4643 something starting with __ and the normal name is an alias. */
4644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4652 if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4654 eval "ac_cv_func_
$ac_func=yes"
4656 echo "configure
: failed program was
:" >&5
4657 cat conftest.$ac_ext >&5
4659 eval "ac_cv_func_
$ac_func=no
"
4664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4665 echo "$ac_t""yes" 1>&6
4666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4667 cat >> confdefs.h <<EOF
4668 #define $ac_tr_func 1
4672 echo "$ac_t""no
" 1>&6
4676 for ac_func in inet_pton uname inet_ntoa
4678 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4679 echo "configure
:4680: checking
for $ac_func" >&5
4680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4681 echo $ac_n "(cached
) $ac_c" 1>&6
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure
"
4685 #include "confdefs.h
"
4686 /* System header to define __stub macros and hopefully few prototypes,
4687 which can conflict with char $ac_func(); below. */
4689 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4696 /* The GNU C library defines this for functions which it implements
4697 to always fail with ENOSYS. Some functions are actually named
4698 something starting with __ and the normal name is an alias. */
4699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4709 eval "ac_cv_func_
$ac_func=yes"
4711 echo "configure
: failed program was
:" >&5
4712 cat conftest.$ac_ext >&5
4714 eval "ac_cv_func_
$ac_func=no
"
4719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4720 echo "$ac_t""yes" 1>&6
4721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4722 cat >> confdefs.h <<EOF
4723 #define $ac_tr_func 1
4727 echo "$ac_t""no
" 1>&6
4731 for ac_func in fork execvp pipe sigaction ftruncate
4733 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4734 echo "configure
:4735: checking
for $ac_func" >&5
4735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4736 echo $ac_n "(cached
) $ac_c" 1>&6
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure
"
4740 #include "confdefs.h
"
4741 /* System header to define __stub macros and hopefully few prototypes,
4742 which can conflict with char $ac_func(); below. */
4744 /* Override any gcc2 internal prototype to avoid an error. */
4745 /* We use char because int might match the return type of a gcc2
4746 builtin and then its argument prototype would still apply. */
4751 /* The GNU C library defines this for functions which it implements
4752 to always fail with ENOSYS. Some functions are actually named
4753 something starting with __ and the normal name is an alias. */
4754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4764 eval "ac_cv_func_
$ac_func=yes"
4766 echo "configure
: failed program was
:" >&5
4767 cat conftest.$ac_ext >&5
4769 eval "ac_cv_func_
$ac_func=no
"
4774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4775 echo "$ac_t""yes" 1>&6
4776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4777 cat >> confdefs.h <<EOF
4778 #define $ac_tr_func 1
4782 echo "$ac_t""no
" 1>&6
4786 for ac_hdr in execinfo.h unistd.h dlfcn.h
4788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4789 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
4790 echo "configure
:4791: checking
for $ac_hdr" >&5
4791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4792 echo $ac_n "(cached
) $ac_c" 1>&6
4794 cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure
"
4796 #include "confdefs.h
"
4799 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4800 { (eval echo configure:4801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4802 if test -z "$ac_err"; then
4804 eval "ac_cv_header_
$ac_safe=yes"
4807 echo "configure
: failed program was
:" >&5
4808 cat conftest.$ac_ext >&5
4810 eval "ac_cv_header_
$ac_safe=no
"
4814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4817 cat >> confdefs.h <<EOF
4818 #define $ac_tr_hdr 1
4822 echo "$ac_t""no
" 1>&6
4826 echo $ac_n "checking
for backtrace
""...
$ac_c" 1>&6
4827 echo "configure
:4828: checking
for backtrace
" >&5
4828 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
4829 echo $ac_n "(cached
) $ac_c" 1>&6
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure
"
4833 #include "confdefs.h
"
4834 /* System header to define __stub macros and hopefully few prototypes,
4835 which can conflict with char backtrace(); below. */
4837 /* Override any gcc2 internal prototype to avoid an error. */
4838 /* We use char because int might match the return type of a gcc2
4839 builtin and then its argument prototype would still apply. */
4844 /* The GNU C library defines this for functions which it implements
4845 to always fail with ENOSYS. Some functions are actually named
4846 something starting with __ and the normal name is an alias. */
4847 #if defined (__stub_backtrace) || defined (__stub___backtrace)
4855 if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4857 eval "ac_cv_func_backtrace
=yes"
4859 echo "configure
: failed program was
:" >&5
4860 cat conftest.$ac_ext >&5
4862 eval "ac_cv_func_backtrace
=no
"
4867 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4872 # Has broken backtrace()
4875 cat >> confdefs.h <<\EOF
4876 #define HAVE_BACKTRACE 1
4883 echo "$ac_t""no
" 1>&6
4887 # Has backtrace() defined in libgcj itself
4888 cat >> confdefs.h <<\EOF
4889 #define HAVE_BACKTRACE 1
4898 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
4899 echo "configure
:4900: checking
for dladdr
in -ldl" >&5
4900 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
4901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4902 echo $ac_n "(cached
) $ac_c" 1>&6
4904 ac_save_LIBS="$LIBS"
4906 cat > conftest.$ac_ext <<EOF
4907 #line 4908 "configure
"
4908 #include "confdefs.h
"
4909 /* Override any gcc2 internal prototype to avoid an error. */
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4920 eval "ac_cv_lib_
$ac_lib_var=yes"
4922 echo "configure
: failed program was
:" >&5
4923 cat conftest.$ac_ext >&5
4925 eval "ac_cv_lib_
$ac_lib_var=no
"
4928 LIBS="$ac_save_LIBS"
4931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4932 echo "$ac_t""yes" 1>&6
4934 cat >> confdefs.h <<\EOF
4935 #define HAVE_DLADDR 1
4939 echo "$ac_t""no
" 1>&6
4942 if test x"$build" = x"$host"; then
4943 for ac_file in /proc/self/exe
4946 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
4947 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
4948 echo "configure
:4949: checking
for $ac_file" >&5
4949 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
4950 echo $ac_n "(cached
) $ac_c" 1>&6
4952 if test "$cross_compiling" = yes; then
4953 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
4955 if test -r $ac_file; then
4956 eval "ac_cv_file_
$ac_safe=yes"
4958 eval "ac_cv_file_
$ac_safe=no
"
4962 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
4963 echo "$ac_t""yes" 1>&6
4964 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4965 cat >> confdefs.h <<EOF
4966 #define $ac_tr_file 1
4969 cat >> confdefs.h <<\EOF
4970 #define HAVE_PROC_SELF_EXE 1
4974 echo "$ac_t""no
" 1>&6
4982 cat >> confdefs.h <<\EOF
4983 #define HAVE_PROC_SELF_EXE 1
4992 am_cv_lib_iconv_ldpath=
4993 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4994 if test "${with_libiconv_prefix+set}" = set; then
4995 withval="$with_libiconv_prefix"
4997 for dir in `echo "$withval" | tr : ' '`; do
4998 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
4999 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib
"; fi
5005 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
5006 echo "configure
:5007: checking
for iconv" >&5
5007 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5008 echo $ac_n "(cached
) $ac_c" 1>&6
5011 am_cv_func_iconv="no
, consider installing GNU libiconv
"
5013 cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure
"
5015 #include "confdefs.h
"
5019 iconv_t cd = iconv_open("","");
5020 iconv(cd,NULL,NULL,NULL,NULL);
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5026 am_cv_func_iconv=yes
5028 echo "configure
: failed program was
:" >&5
5029 cat conftest.$ac_ext >&5
5032 if test "$am_cv_func_iconv" != yes; then
5033 am_save_LIBS="$LIBS"
5034 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5035 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure
"
5037 #include "confdefs.h
"
5041 iconv_t cd = iconv_open("","");
5042 iconv(cd,NULL,NULL,NULL,NULL);
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5049 am_cv_func_iconv=yes
5051 echo "configure
: failed program was
:" >&5
5052 cat conftest.$ac_ext >&5
5055 LIBS="$am_save_LIBS"
5060 echo "$ac_t""$am_cv_func_iconv" 1>&6
5061 if test "$am_cv_func_iconv" = yes; then
5062 cat >> confdefs.h <<\EOF
5063 #define HAVE_ICONV 1
5066 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
5067 echo "configure
:5068: checking
for iconv declaration
" >&5
5068 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5069 echo $ac_n "(cached
) $ac_c" 1>&6
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure
"
5074 #include "confdefs.h
"
5082 #if defined(__STDC__) || defined(__cplusplus)
5083 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5092 if { (eval echo configure:5093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5094 am_cv_proto_iconv_arg1=""
5096 echo "configure
: failed program was
:" >&5
5097 cat conftest.$ac_ext >&5
5099 am_cv_proto_iconv_arg1="const
"
5102 am_cv_proto_iconv="extern size_t
iconv (iconv_t
cd, $am_cv_proto_iconv_arg1 char
* *inbuf
, size_t
*inbytesleft
, char
* *outbuf
, size_t
*outbytesleft
);"
5105 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5106 echo "$ac_t""$
{ac_t
:-
5107 }$am_cv_proto_iconv" 1>&6
5108 cat >> confdefs.h <<EOF
5109 #define ICONV_CONST $am_cv_proto_iconv_arg1
5114 if test "$am_cv_lib_iconv" = yes; then
5115 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5119 if test $ac_cv_header_locale_h = yes; then
5120 echo $ac_n "checking
for LC_MESSAGES
""...
$ac_c" 1>&6
5121 echo "configure
:5122: checking
for LC_MESSAGES
" >&5
5122 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5123 echo $ac_n "(cached
) $ac_c" 1>&6
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure
"
5127 #include "confdefs.h
"
5133 if { (eval echo configure:5134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5135 am_cv_val_LC_MESSAGES=yes
5137 echo "configure
: failed program was
:" >&5
5138 cat conftest.$ac_ext >&5
5140 am_cv_val_LC_MESSAGES=no
5145 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5146 if test $am_cv_val_LC_MESSAGES = yes; then
5147 cat >> confdefs.h <<\EOF
5148 #define HAVE_LC_MESSAGES 1
5153 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
5154 echo "configure
:5155: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
5155 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5156 echo $ac_n "(cached
) $ac_c" 1>&6
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure
"
5160 #include "confdefs.h
"
5161 #include <sys/types.h>
5164 struct tm *tp; tp->tm_sec;
5167 if { (eval echo configure:5168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5169 ac_cv_struct_tm=time.h
5171 echo "configure
: failed program was
:" >&5
5172 cat conftest.$ac_ext >&5
5174 ac_cv_struct_tm=sys/time.h
5179 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5180 if test $ac_cv_struct_tm = sys/time.h; then
5181 cat >> confdefs.h <<\EOF
5182 #define TM_IN_SYS_TIME 1
5187 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
5188 echo "configure
:5189: checking
for tm_zone
in struct tm
" >&5
5189 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5190 echo $ac_n "(cached
) $ac_c" 1>&6
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure
"
5194 #include "confdefs.h
"
5195 #include <sys/types.h>
5196 #include <$ac_cv_struct_tm>
5198 struct tm tm; tm.tm_zone;
5201 if { (eval echo configure:5202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5203 ac_cv_struct_tm_zone=yes
5205 echo "configure
: failed program was
:" >&5
5206 cat conftest.$ac_ext >&5
5208 ac_cv_struct_tm_zone=no
5213 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5214 if test "$ac_cv_struct_tm_zone" = yes; then
5215 cat >> confdefs.h <<\EOF
5216 #define HAVE_TM_ZONE 1
5220 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
5221 echo "configure
:5222: checking
for tzname
" >&5
5222 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5223 echo $ac_n "(cached
) $ac_c" 1>&6
5225 cat > conftest.$ac_ext <<EOF
5226 #line 5227 "configure
"
5227 #include "confdefs.h
"
5229 #ifndef tzname /* For SGI. */
5230 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5238 ac_cv_var_tzname=yes
5240 echo "configure
: failed program was
:" >&5
5241 cat conftest.$ac_ext >&5
5248 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5249 if test $ac_cv_var_tzname = yes; then
5250 cat >> confdefs.h <<\EOF
5251 #define HAVE_TZNAME 1
5258 for ac_func in gethostbyname_r
5260 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5261 echo "configure
:5262: checking
for $ac_func" >&5
5262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5263 echo $ac_n "(cached
) $ac_c" 1>&6
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure
"
5267 #include "confdefs.h
"
5268 /* System header to define __stub macros and hopefully few prototypes,
5269 which can conflict with char $ac_func(); below. */
5271 /* Override any gcc2 internal prototype to avoid an error. */
5272 /* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5278 /* The GNU C library defines this for functions which it implements
5279 to always fail with ENOSYS. Some functions are actually named
5280 something starting with __ and the normal name is an alias. */
5281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5289 if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5291 eval "ac_cv_func_
$ac_func=yes"
5293 echo "configure
: failed program was
:" >&5
5294 cat conftest.$ac_ext >&5
5296 eval "ac_cv_func_
$ac_func=no
"
5301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5302 echo "$ac_t""yes" 1>&6
5303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5304 cat >> confdefs.h <<EOF
5305 #define $ac_tr_func 1
5308 cat >> confdefs.h <<\EOF
5309 #define HAVE_GETHOSTBYNAME_R 1
5312 # There are two different kinds of gethostbyname_r.
5313 # We look for the one that returns `int'.
5314 # Hopefully this check is robust enough.
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure
"
5317 #include "confdefs.h
"
5320 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5321 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
5324 cat >> confdefs.h <<\EOF
5325 #define GETHOSTBYNAME_R_RETURNS_INT 1
5333 *" -D_REENTRANT "*) ;;
5335 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
5336 echo "configure
:5337: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
5337 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5338 echo $ac_n "(cached
) $ac_c" 1>&6
5342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5343 ac_cpp='$CXXCPP $CPPFLAGS'
5344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5346 cross_compiling=$ac_cv_prog_cxx_cross
5348 cat > conftest.$ac_ext <<EOF
5349 #line 5350 "configure
"
5350 #include "confdefs.h
"
5353 gethostbyname_r("", 0, 0);
5356 if { (eval echo configure:5357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5358 libjava_cv_gethostbyname_r_needs_reentrant=no
5360 echo "configure
: failed program was
:" >&5
5361 cat conftest.$ac_ext >&5
5363 CPPFLAGS_SAVE="$CPPFLAGS"
5364 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5365 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure
"
5367 #include "confdefs.h
"
5370 gethostbyname_r("", 0, 0);
5373 if { (eval echo configure:5374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5375 libjava_cv_gethostbyname_r_needs_reentrant=yes
5377 echo "configure
: failed program was
:" >&5
5378 cat conftest.$ac_ext >&5
5380 libjava_cv_gethostbyname_r_needs_reentrant=fail
5383 CPPFLAGS="$CPPFLAGS_SAVE"
5388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5389 ac_cpp='$CPP $CPPFLAGS'
5390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5392 cross_compiling=$ac_cv_prog_cc_cross
5397 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5398 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5399 cat >> confdefs.h <<\EOF
5400 #define _REENTRANT 1
5407 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
5408 echo "configure
:5409: checking
for struct hostent_data
" >&5
5409 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5410 echo $ac_n "(cached
) $ac_c" 1>&6
5412 cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure
"
5414 #include "confdefs.h
"
5416 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5417 # define _REENTRANT 1
5421 struct hostent_data data;
5424 if { (eval echo configure:5425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5426 libjava_cv_struct_hostent_data=yes
5428 echo "configure
: failed program was
:" >&5
5429 cat conftest.$ac_ext >&5
5431 libjava_cv_struct_hostent_data=no
5436 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5437 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
5438 cat >> confdefs.h <<\EOF
5439 #define HAVE_STRUCT_HOSTENT_DATA 1
5445 echo "$ac_t""no
" 1>&6
5450 # FIXME: libjava source code expects to find a prototype for
5451 # gethostbyaddr_r in netdb.h. The outer check ensures that
5452 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5453 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5454 # linkage check is enough, yet C++ code requires proper prototypes.)
5455 cat > conftest.$ac_ext <<EOF
5456 #line 5457 "configure
"
5457 #include "confdefs.h
"
5460 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5461 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
5464 for ac_func in gethostbyaddr_r
5466 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5467 echo "configure
:5468: checking
for $ac_func" >&5
5468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5469 echo $ac_n "(cached
) $ac_c" 1>&6
5471 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure
"
5473 #include "confdefs.h
"
5474 /* System header to define __stub macros and hopefully few prototypes,
5475 which can conflict with char $ac_func(); below. */
5477 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5484 /* The GNU C library defines this for functions which it implements
5485 to always fail with ENOSYS. Some functions are actually named
5486 something starting with __ and the normal name is an alias. */
5487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5495 if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5497 eval "ac_cv_func_
$ac_func=yes"
5499 echo "configure
: failed program was
:" >&5
5500 cat conftest.$ac_ext >&5
5502 eval "ac_cv_func_
$ac_func=no
"
5507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5508 echo "$ac_t""yes" 1>&6
5509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5510 cat >> confdefs.h <<EOF
5511 #define $ac_tr_func 1
5514 cat >> confdefs.h <<\EOF
5515 #define HAVE_GETHOSTBYADDR_R 1
5518 # There are two different kinds of gethostbyaddr_r.
5519 # We look for the one that returns `int'.
5520 # Hopefully this check is robust enough.
5521 cat > conftest.$ac_ext <<EOF
5522 #line 5523 "configure
"
5523 #include "confdefs.h
"
5526 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5527 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
5530 cat >> confdefs.h <<\EOF
5531 #define GETHOSTBYADDR_R_RETURNS_INT 1
5538 echo "$ac_t""no
" 1>&6
5546 for ac_func in gethostname
5548 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5549 echo "configure
:5550: checking
for $ac_func" >&5
5550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5551 echo $ac_n "(cached
) $ac_c" 1>&6
5553 cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure
"
5555 #include "confdefs.h
"
5556 /* System header to define __stub macros and hopefully few prototypes,
5557 which can conflict with char $ac_func(); below. */
5559 /* Override any gcc2 internal prototype to avoid an error. */
5560 /* We use char because int might match the return type of a gcc2
5561 builtin and then its argument prototype would still apply. */
5566 /* The GNU C library defines this for functions which it implements
5567 to always fail with ENOSYS. Some functions are actually named
5568 something starting with __ and the normal name is an alias. */
5569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5579 eval "ac_cv_func_
$ac_func=yes"
5581 echo "configure
: failed program was
:" >&5
5582 cat conftest.$ac_ext >&5
5584 eval "ac_cv_func_
$ac_func=no
"
5589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5590 echo "$ac_t""yes" 1>&6
5591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5592 cat >> confdefs.h <<EOF
5593 #define $ac_tr_func 1
5596 cat >> confdefs.h <<\EOF
5597 #define HAVE_GETHOSTNAME 1
5600 cat > conftest.$ac_ext <<EOF
5601 #line 5602 "configure
"
5602 #include "confdefs.h
"
5605 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5606 egrep "gethostname
" >/dev/null 2>&1; then
5609 cat >> confdefs.h <<\EOF
5610 #define HAVE_GETHOSTNAME_DECL 1
5617 echo "$ac_t""no
" 1>&6
5622 for ac_func in usleep
5624 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5625 echo "configure
:5626: checking
for $ac_func" >&5
5626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5627 echo $ac_n "(cached
) $ac_c" 1>&6
5629 cat > conftest.$ac_ext <<EOF
5630 #line 5631 "configure
"
5631 #include "confdefs.h
"
5632 /* System header to define __stub macros and hopefully few prototypes,
5633 which can conflict with char $ac_func(); below. */
5635 /* Override any gcc2 internal prototype to avoid an error. */
5636 /* We use char because int might match the return type of a gcc2
5637 builtin and then its argument prototype would still apply. */
5642 /* The GNU C library defines this for functions which it implements
5643 to always fail with ENOSYS. Some functions are actually named
5644 something starting with __ and the normal name is an alias. */
5645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5653 if { (eval echo configure:5654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5655 eval "ac_cv_func_
$ac_func=yes"
5657 echo "configure
: failed program was
:" >&5
5658 cat conftest.$ac_ext >&5
5660 eval "ac_cv_func_
$ac_func=no
"
5665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5666 echo "$ac_t""yes" 1>&6
5667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5668 cat >> confdefs.h <<EOF
5669 #define $ac_tr_func 1
5672 cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure
"
5674 #include "confdefs.h
"
5677 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5678 egrep "usleep" >/dev/null 2>&1; then
5681 cat >> confdefs.h <<\EOF
5682 #define HAVE_USLEEP_DECL 1
5689 echo "$ac_t""no
" 1>&6
5694 # Look for these functions in the thread library, but only bother
5695 # if using POSIX threads.
5696 if test "$THREADS" = posix; then
5698 LIBS="$LIBS $THREADLIBS"
5699 # Some POSIX thread systems don't have pthread_mutexattr_settype.
5701 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
5703 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5704 echo "configure
:5705: checking
for $ac_func" >&5
5705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5706 echo $ac_n "(cached
) $ac_c" 1>&6
5708 cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure
"
5710 #include "confdefs.h
"
5711 /* System header to define __stub macros and hopefully few prototypes,
5712 which can conflict with char $ac_func(); below. */
5714 /* Override any gcc2 internal prototype to avoid an error. */
5715 /* We use char because int might match the return type of a gcc2
5716 builtin and then its argument prototype would still apply. */
5721 /* The GNU C library defines this for functions which it implements
5722 to always fail with ENOSYS. Some functions are actually named
5723 something starting with __ and the normal name is an alias. */
5724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5732 if { (eval echo configure:5733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5734 eval "ac_cv_func_
$ac_func=yes"
5736 echo "configure
: failed program was
:" >&5
5737 cat conftest.$ac_ext >&5
5739 eval "ac_cv_func_
$ac_func=no
"
5744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5745 echo "$ac_t""yes" 1>&6
5746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5747 cat >> confdefs.h <<EOF
5748 #define $ac_tr_func 1
5752 echo "$ac_t""no
" 1>&6
5757 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
5758 # Solaris 7 the name librt is preferred.
5759 for ac_func in sched_yield
5761 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5762 echo "configure
:5763: checking
for $ac_func" >&5
5763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5764 echo $ac_n "(cached
) $ac_c" 1>&6
5766 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure
"
5768 #include "confdefs.h
"
5769 /* System header to define __stub macros and hopefully few prototypes,
5770 which can conflict with char $ac_func(); below. */
5772 /* Override any gcc2 internal prototype to avoid an error. */
5773 /* We use char because int might match the return type of a gcc2
5774 builtin and then its argument prototype would still apply. */
5779 /* The GNU C library defines this for functions which it implements
5780 to always fail with ENOSYS. Some functions are actually named
5781 something starting with __ and the normal name is an alias. */
5782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5790 if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5792 eval "ac_cv_func_
$ac_func=yes"
5794 echo "configure
: failed program was
:" >&5
5795 cat conftest.$ac_ext >&5
5797 eval "ac_cv_func_
$ac_func=no
"
5802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5803 echo "$ac_t""yes" 1>&6
5804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5805 cat >> confdefs.h <<EOF
5806 #define $ac_tr_func 1
5810 echo "$ac_t""no
" 1>&6
5811 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
5812 echo "configure
:5813: checking
for sched_yield
in -lrt" >&5
5813 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5815 echo $ac_n "(cached
) $ac_c" 1>&6
5817 ac_save_LIBS="$LIBS"
5819 cat > conftest.$ac_ext <<EOF
5820 #line 5821 "configure
"
5821 #include "confdefs.h
"
5822 /* Override any gcc2 internal prototype to avoid an error. */
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5831 if { (eval echo configure:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5833 eval "ac_cv_lib_
$ac_lib_var=yes"
5835 echo "configure
: failed program was
:" >&5
5836 cat conftest.$ac_ext >&5
5838 eval "ac_cv_lib_
$ac_lib_var=no
"
5841 LIBS="$ac_save_LIBS"
5844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5845 echo "$ac_t""yes" 1>&6
5847 cat >> confdefs.h <<\EOF
5848 #define HAVE_SCHED_YIELD 1
5851 THREADLIBS="$THREADLIBS -lrt"
5852 THREADSPEC="$THREADSPEC -lrt"
5854 echo "$ac_t""no
" 1>&6
5856 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
5857 echo "configure
:5858: checking
for sched_yield
in -lposix4" >&5
5858 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
5859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5860 echo $ac_n "(cached
) $ac_c" 1>&6
5862 ac_save_LIBS="$LIBS"
5863 LIBS="-lposix4 $LIBS"
5864 cat > conftest.$ac_ext <<EOF
5865 #line 5866 "configure
"
5866 #include "confdefs.h
"
5867 /* Override any gcc2 internal prototype to avoid an error. */
5868 /* We use char because int might match the return type of a gcc2
5869 builtin and then its argument prototype would still apply. */
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5878 eval "ac_cv_lib_
$ac_lib_var=yes"
5880 echo "configure
: failed program was
:" >&5
5881 cat conftest.$ac_ext >&5
5883 eval "ac_cv_lib_
$ac_lib_var=no
"
5886 LIBS="$ac_save_LIBS"
5889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5890 echo "$ac_t""yes" 1>&6
5892 cat >> confdefs.h <<\EOF
5893 #define HAVE_SCHED_YIELD 1
5896 THREADLIBS="$THREADLIBS -lposix4"
5897 THREADSPEC="$THREADSPEC -lposix4"
5899 echo "$ac_t""no
" 1>&6
5909 # We can save a little space at runtime if the mutex has m_count
5910 # or __m_count. This is a nice hack for Linux.
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure
"
5913 #include "confdefs.h
"
5914 #include <pthread.h>
5917 extern pthread_mutex_t *mutex; int q = mutex->m_count;
5921 if { (eval echo configure:5922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5923 cat >> confdefs.h <<\EOF
5924 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
5928 echo "configure
: failed program was
:" >&5
5929 cat conftest.$ac_ext >&5
5932 cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure
"
5934 #include "confdefs.h
"
5935 #include <pthread.h>
5938 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
5942 if { (eval echo configure:5943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5944 cat >> confdefs.h <<\EOF
5945 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
5949 echo "configure
: failed program was
:" >&5
5950 cat conftest.$ac_ext >&5
5957 # We require a way to get the time.
5959 for ac_func in gettimeofday time ftime
5961 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5962 echo "configure
:5963: checking
for $ac_func" >&5
5963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5964 echo $ac_n "(cached
) $ac_c" 1>&6
5966 cat > conftest.$ac_ext <<EOF
5967 #line 5968 "configure
"
5968 #include "confdefs.h
"
5969 /* System header to define __stub macros and hopefully few prototypes,
5970 which can conflict with char $ac_func(); below. */
5972 /* Override any gcc2 internal prototype to avoid an error. */
5973 /* We use char because int might match the return type of a gcc2
5974 builtin and then its argument prototype would still apply. */
5979 /* The GNU C library defines this for functions which it implements
5980 to always fail with ENOSYS. Some functions are actually named
5981 something starting with __ and the normal name is an alias. */
5982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5992 eval "ac_cv_func_
$ac_func=yes"
5994 echo "configure
: failed program was
:" >&5
5995 cat conftest.$ac_ext >&5
5997 eval "ac_cv_func_
$ac_func=no
"
6002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6003 echo "$ac_t""yes" 1>&6
6004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6005 cat >> confdefs.h <<EOF
6006 #define $ac_tr_func 1
6010 echo "$ac_t""no
" 1>&6
6014 if test "$time_found" = no; then
6015 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
6018 for ac_func in memmove
6020 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6021 echo "configure
:6022: checking
for $ac_func" >&5
6022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6023 echo $ac_n "(cached
) $ac_c" 1>&6
6025 cat > conftest.$ac_ext <<EOF
6026 #line 6027 "configure
"
6027 #include "confdefs.h
"
6028 /* System header to define __stub macros and hopefully few prototypes,
6029 which can conflict with char $ac_func(); below. */
6031 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6038 /* The GNU C library defines this for functions which it implements
6039 to always fail with ENOSYS. Some functions are actually named
6040 something starting with __ and the normal name is an alias. */
6041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6051 eval "ac_cv_func_
$ac_func=yes"
6053 echo "configure
: failed program was
:" >&5
6054 cat conftest.$ac_ext >&5
6056 eval "ac_cv_func_
$ac_func=no
"
6061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6064 cat >> confdefs.h <<EOF
6065 #define $ac_tr_func 1
6069 echo "$ac_t""no
" 1>&6
6074 # We require memcpy.
6076 for ac_func in memcpy
6078 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6079 echo "configure
:6080: checking
for $ac_func" >&5
6080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6081 echo $ac_n "(cached
) $ac_c" 1>&6
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure
"
6085 #include "confdefs.h
"
6086 /* System header to define __stub macros and hopefully few prototypes,
6087 which can conflict with char $ac_func(); below. */
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6096 /* The GNU C library defines this for functions which it implements
6097 to always fail with ENOSYS. Some functions are actually named
6098 something starting with __ and the normal name is an alias. */
6099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6109 eval "ac_cv_func_
$ac_func=yes"
6111 echo "configure
: failed program was
:" >&5
6112 cat conftest.$ac_ext >&5
6114 eval "ac_cv_func_
$ac_func=no
"
6119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6120 echo "$ac_t""yes" 1>&6
6121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6122 cat >> confdefs.h <<EOF
6123 #define $ac_tr_func 1
6127 echo "$ac_t""no
" 1>&6
6131 if test "$memcpy_found" = no; then
6132 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
6135 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
6136 echo "configure
:6137: checking
for dlopen
in -ldl" >&5
6137 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6139 echo $ac_n "(cached
) $ac_c" 1>&6
6141 ac_save_LIBS="$LIBS"
6143 cat > conftest.$ac_ext <<EOF
6144 #line 6145 "configure
"
6145 #include "confdefs.h
"
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6157 eval "ac_cv_lib_
$ac_lib_var=yes"
6159 echo "configure
: failed program was
:" >&5
6160 cat conftest.$ac_ext >&5
6162 eval "ac_cv_lib_
$ac_lib_var=no
"
6165 LIBS="$ac_save_LIBS"
6168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6171 cat >> confdefs.h <<\EOF
6172 #define HAVE_DLOPEN 1
6176 echo "$ac_t""no
" 1>&6
6180 # Some library-finding code we stole from Tcl.
6181 #--------------------------------------------------------------------
6182 # Check for the existence of the -lsocket and -lnsl libraries.
6183 # The order here is important, so that they end up in the right
6184 # order in the command line generated by make. Here are some
6185 # special considerations:
6186 # 1. Use "connect
" and "accept
" to check for -lsocket, and
6187 # "gethostbyname
" to check for -lnsl.
6188 # 2. Use each function name only once: can't redo a check because
6189 # autoconf caches the results of the last check and won't redo it.
6190 # 3. Use -lnsl and -lsocket only if they supply procedures that
6191 # aren't already present in the normal libraries. This is because
6192 # IRIX 5.2 has libraries, but they aren't needed and they're
6193 # bogus: they goof up name resolution if used.
6194 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6195 # To get around this problem, check for both libraries together
6196 # if -lsocket doesn't work by itself.
6197 #--------------------------------------------------------------------
6199 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
6200 echo "configure
:6201: checking
for socket libraries
" >&5
6201 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6202 echo $ac_n "(cached
) $ac_c" 1>&6
6206 unset ac_cv_func_connect
6207 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6208 echo "configure
:6209: checking
for connect
" >&5
6209 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6210 echo $ac_n "(cached
) $ac_c" 1>&6
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure
"
6214 #include "confdefs.h
"
6215 /* System header to define __stub macros and hopefully few prototypes,
6216 which can conflict with char connect(); below. */
6218 /* Override any gcc2 internal prototype to avoid an error. */
6219 /* We use char because int might match the return type of a gcc2
6220 builtin and then its argument prototype would still apply. */
6225 /* The GNU C library defines this for functions which it implements
6226 to always fail with ENOSYS. Some functions are actually named
6227 something starting with __ and the normal name is an alias. */
6228 #if defined (__stub_connect) || defined (__stub___connect)
6236 if { (eval echo configure:6237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6238 eval "ac_cv_func_connect
=yes"
6240 echo "configure
: failed program was
:" >&5
6241 cat conftest.$ac_ext >&5
6243 eval "ac_cv_func_connect
=no
"
6248 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6249 echo "$ac_t""yes" 1>&6
6252 echo "$ac_t""no
" 1>&6
6256 if test "$gcj_checkSocket" = 1; then
6257 unset ac_cv_func_connect
6258 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
6259 echo "configure
:6260: checking
for main
in -lsocket" >&5
6260 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6262 echo $ac_n "(cached
) $ac_c" 1>&6
6264 ac_save_LIBS="$LIBS"
6265 LIBS="-lsocket $LIBS"
6266 cat > conftest.$ac_ext <<EOF
6267 #line 6268 "configure
"
6268 #include "confdefs.h
"
6274 if { (eval echo configure:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6276 eval "ac_cv_lib_
$ac_lib_var=yes"
6278 echo "configure
: failed program was
:" >&5
6279 cat conftest.$ac_ext >&5
6281 eval "ac_cv_lib_
$ac_lib_var=no
"
6284 LIBS="$ac_save_LIBS"
6287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6288 echo "$ac_t""yes" 1>&6
6289 gcj_cv_lib_sockets="-lsocket"
6291 echo "$ac_t""no
" 1>&6
6296 if test "$gcj_checkBoth" = 1; then
6298 LIBS="$LIBS -lsocket -lnsl"
6299 unset ac_cv_func_accept
6300 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
6301 echo "configure
:6302: checking
for accept
" >&5
6302 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6303 echo $ac_n "(cached
) $ac_c" 1>&6
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure
"
6307 #include "confdefs.h
"
6308 /* System header to define __stub macros and hopefully few prototypes,
6309 which can conflict with char accept(); below. */
6311 /* Override any gcc2 internal prototype to avoid an error. */
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6318 /* The GNU C library defines this for functions which it implements
6319 to always fail with ENOSYS. Some functions are actually named
6320 something starting with __ and the normal name is an alias. */
6321 #if defined (__stub_accept) || defined (__stub___accept)
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6331 eval "ac_cv_func_accept
=yes"
6333 echo "configure
: failed program was
:" >&5
6334 cat conftest.$ac_ext >&5
6336 eval "ac_cv_func_accept
=no
"
6341 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6342 echo "$ac_t""yes" 1>&6
6344 gcj_cv_lib_sockets="-lsocket -lnsl"
6346 echo "$ac_t""no
" 1>&6
6349 unset ac_cv_func_accept
6352 unset ac_cv_func_gethostbyname
6354 LIBS="$LIBS $gcj_cv_lib_sockets"
6355 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6356 echo "configure
:6357: checking
for gethostbyname
" >&5
6357 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6358 echo $ac_n "(cached
) $ac_c" 1>&6
6360 cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure
"
6362 #include "confdefs.h
"
6363 /* System header to define __stub macros and hopefully few prototypes,
6364 which can conflict with char gethostbyname(); below. */
6366 /* Override any gcc2 internal prototype to avoid an error. */
6367 /* We use char because int might match the return type of a gcc2
6368 builtin and then its argument prototype would still apply. */
6369 char gethostbyname();
6373 /* The GNU C library defines this for functions which it implements
6374 to always fail with ENOSYS. Some functions are actually named
6375 something starting with __ and the normal name is an alias. */
6376 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6384 if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6386 eval "ac_cv_func_gethostbyname
=yes"
6388 echo "configure
: failed program was
:" >&5
6389 cat conftest.$ac_ext >&5
6391 eval "ac_cv_func_gethostbyname
=no
"
6396 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6397 echo "$ac_t""yes" 1>&6
6400 echo "$ac_t""no
" 1>&6
6401 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
6402 echo "configure
:6403: checking
for main
in -lnsl" >&5
6403 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6405 echo $ac_n "(cached
) $ac_c" 1>&6
6407 ac_save_LIBS="$LIBS"
6409 cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure
"
6411 #include "confdefs.h
"
6417 if { (eval echo configure:6418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6419 eval "ac_cv_lib_
$ac_lib_var=yes"
6421 echo "configure
: failed program was
:" >&5
6422 cat conftest.$ac_ext >&5
6424 eval "ac_cv_lib_
$ac_lib_var=no
"
6427 LIBS="$ac_save_LIBS"
6430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6431 echo "$ac_t""yes" 1>&6
6432 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6434 echo "$ac_t""no
" 1>&6
6439 unset ac_cv_func_gethostbyname
6444 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6445 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6447 if test "$with_system_zlib" = yes; then
6448 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
6449 echo "configure
:6450: checking
for deflate
in -lz" >&5
6450 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6452 echo $ac_n "(cached
) $ac_c" 1>&6
6454 ac_save_LIBS="$LIBS"
6456 cat > conftest.$ac_ext <<EOF
6457 #line 6458 "configure
"
6458 #include "confdefs.h
"
6459 /* Override any gcc2 internal prototype to avoid an error. */
6460 /* We use char because int might match the return type of a gcc2
6461 builtin and then its argument prototype would still apply. */
6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6470 eval "ac_cv_lib_
$ac_lib_var=yes"
6472 echo "configure
: failed program was
:" >&5
6473 cat conftest.$ac_ext >&5
6475 eval "ac_cv_lib_
$ac_lib_var=no
"
6478 LIBS="$ac_save_LIBS"
6481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6485 echo "$ac_t""no
" 1>&6
6491 # Test for Gtk stuff, if asked for.
6492 if test "$use_gtk_awt" = yes; then
6493 # Check whether --enable-gtktest or --disable-gtktest was given.
6494 if test "${enable_gtktest+set}" = set; then
6495 enableval="$enable_gtktest"
6502 pkg_config_args=gtk+-2.0
6507 pkg_config_args="$pkg_config_args gthread-2.0
"
6514 # Extract the first word of "pkg-config
", so it can be a program name with args.
6515 set dummy pkg-config; ac_word=$2
6516 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6517 echo "configure
:6518: checking
for $ac_word" >&5
6518 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6519 echo $ac_n "(cached
) $ac_c" 1>&6
6521 case "$PKG_CONFIG" in
6523 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6526 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6531 for ac_dir in $ac_dummy; do
6532 test -z "$ac_dir" && ac_dir=.
6533 if test -f $ac_dir/$ac_word; then
6534 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6539 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
6543 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6544 if test -n "$PKG_CONFIG"; then
6545 echo "$ac_t""$PKG_CONFIG" 1>&6
6547 echo "$ac_t""no
" 1>&6
6551 if test x$PKG_CONFIG != xno ; then
6552 if pkg-config --atleast-pkgconfig-version 0.7 ; then
6555 echo *** pkg-config too old; version 0.7 or better required.
6563 min_gtk_version=2.0.0
6564 echo $ac_n "checking
for GTK
+ - version
>= $min_gtk_version""...
$ac_c" 1>&6
6565 echo "configure
:6566: checking
for GTK
+ - version
>= $min_gtk_version" >&5
6567 if test x$PKG_CONFIG != xno ; then
6568 ## don't try to run the test against uninstalled libtool libs
6569 if $PKG_CONFIG --uninstalled $pkg_config_args; then
6570 echo "Will use uninstalled version of GTK
+ found
in PKG_CONFIG_PATH
"
6574 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
6581 if test x"$no_gtk" = x ; then
6582 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
6583 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
6584 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6585 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6586 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6587 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6588 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6589 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6590 if test "x
$enable_gtktest" = "xyes
" ; then
6591 ac_save_CFLAGS="$CFLAGS"
6592 ac_save_LIBS="$LIBS"
6593 CFLAGS="$CFLAGS $GTK_CFLAGS"
6594 LIBS="$GTK_LIBS $LIBS"
6596 if test "$cross_compiling" = yes; then
6597 echo $ac_n "cross compiling
; assumed OK...
$ac_c"
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure
"
6601 #include "confdefs.h
"
6603 #include <gtk/gtk.h>
6610 int major, minor, micro;
6613 system ("touch conf.gtktest
");
6615 /* HP/UX 9 (%@#!) writes to sscanf strings */
6616 tmp_version = g_strdup("$min_gtk_version");
6617 if (sscanf(tmp_version, "%d.
%d.
%d
", &major, &minor, µ) != 3) {
6618 printf("%s
, bad version string
\n", "$min_gtk_version");
6622 if ((gtk_major_version != $gtk_config_major_version) ||
6623 (gtk_minor_version != $gtk_config_minor_version) ||
6624 (gtk_micro_version != $gtk_config_micro_version))
6626 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned
%d.
%d.
%d
, but GTK
+ (%d.
%d.
%d
)\n",
6627 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
6628 gtk_major_version, gtk_minor_version, gtk_micro_version);
6629 printf ("*** was found
! If pkg-config was correct
, then it is best
\n");
6630 printf ("*** to remove the old version of GTK
+. You may also be able to fix the error
\n");
6631 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable
, or by editing
\n");
6632 printf("*** /etc
/ld.so.conf. Make sure you have run ldconfig
if that is
\n");
6633 printf("*** required on your system.
\n");
6634 printf("*** If pkg-config was wrong
, set the environment variable PKG_CONFIG_PATH
\n");
6635 printf("*** to point to the correct configuration files
\n");
6637 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
6638 (gtk_minor_version != GTK_MINOR_VERSION) ||
6639 (gtk_micro_version != GTK_MICRO_VERSION))
6641 printf("*** GTK
+ header files
(version
%d.
%d.
%d
) do not match
\n",
6642 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6643 printf("*** library
(version
%d.
%d.
%d
)\n",
6644 gtk_major_version, gtk_minor_version, gtk_micro_version);
6648 if ((gtk_major_version > major) ||
6649 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6650 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
6656 printf("\n*** An old version of GTK
+ (%d.
%d.
%d
) was found.
\n",
6657 gtk_major_version, gtk_minor_version, gtk_micro_version);
6658 printf("*** You need a version of GTK
+ newer than
%d.
%d.
%d. The latest version of
\n",
6659 major, minor, micro);
6660 printf("*** GTK
+ is always available from
ftp://ftp.gtk.org.
\n");
6662 printf("*** If you have already installed a sufficiently new version
, this error
\n");
6663 printf("*** probably means that the wrong copy of the pkg-config shell
script is
\n");
6664 printf("*** being found. The easiest way to fix this is to remove the old version
\n");
6665 printf("*** of GTK
+, but you can also
set the PKG_CONFIG environment to point to the
\n");
6666 printf("*** correct copy of pkg-config.
(In this
case, you will have to
\n");
6667 printf("*** modify your LD_LIBRARY_PATH enviroment variable
, or edit
/etc
/ld.so.conf
\n");
6668 printf("*** so that the correct libraries are found
at run-time
))\n");
6675 if { (eval echo configure:6676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6679 echo "configure
: failed program was
:" >&5
6680 cat conftest.$ac_ext >&5
6687 CFLAGS="$ac_save_CFLAGS"
6688 LIBS="$ac_save_LIBS"
6691 if test "x
$no_gtk" = x ; then
6692 echo "$ac_t""yes (version
$gtk_config_major_version.
$gtk_config_minor_version.
$gtk_config_micro_version)" 1>&6
6695 echo "$ac_t""no
" 1>&6
6696 if test "$PKG_CONFIG" = "no
" ; then
6697 echo "*** A new enough version of pkg-config was not found.
"
6698 echo "*** See http
://pkgconfig.sourceforge.net
"
6700 if test -f conf.gtktest ; then
6703 echo "*** Could not run GTK
+ test program
, checking why...
"
6704 ac_save_CFLAGS="$CFLAGS"
6705 ac_save_LIBS="$LIBS"
6706 CFLAGS="$CFLAGS $GTK_CFLAGS"
6707 LIBS="$LIBS $GTK_LIBS"
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure
"
6710 #include "confdefs.h
"
6712 #include <gtk/gtk.h>
6716 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721 echo "*** The
test program compiled
, but did not run. This usually means
"
6722 echo "*** that the run-time linker is not finding GTK
+ or finding the wrong
"
6723 echo "*** version of GTK
+. If it is not finding GTK
+, you
'll need to set your"
6724 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6725 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6726 echo "*** is required on your system"
6728 echo "*** If you have an old version installed, it is best to remove it, although"
6729 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6731 echo "configure: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6734 echo "*** The test program failed to compile or link. See the file config.log for the"
6735 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
6738 CFLAGS="$ac_save_CFLAGS"
6739 LIBS="$ac_save_LIBS"
6750 # Check whether --enable-glibtest or --disable-glibtest was given.
6751 if test "${enable_glibtest+set}" = set; then
6752 enableval="$enable_glibtest"
6759 pkg_config_args=glib-2.0
6760 for module in . gthread
6764 pkg_config_args="$pkg_config_args gmodule-2.0"
6767 pkg_config_args="$pkg_config_args gobject-2.0"
6770 pkg_config_args="$pkg_config_args gthread-2.0"
6775 # Extract the first word of "pkg-config", so it can be a program name with args.
6776 set dummy pkg-config; ac_word=$2
6777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6778 echo "configure:6779: checking for $ac_word" >&5
6779 if eval "test \"`echo '$
''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6780 echo $ac_n "(cached) $ac_c" 1>&6
6782 case "$PKG_CONFIG" in
6784 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6787 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6792 for ac_dir in $ac_dummy; do
6793 test -z "$ac_dir" && ac_dir=.
6794 if test -f $ac_dir/$ac_word; then
6795 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6800 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6804 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6805 if test -n "$PKG_CONFIG"; then
6806 echo "$ac_t""$PKG_CONFIG" 1>&6
6808 echo "$ac_t""no" 1>&6
6814 if test x$PKG_CONFIG != xno ; then
6815 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
6818 echo *** pkg-config too old; version 0.7 or better required.
6826 min_glib_version=2.0.0
6827 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
6828 echo "configure:6829: checking for GLIB - version >= $min_glib_version" >&5
6830 if test x$PKG_CONFIG != xno ; then
6831 ## don't try to run the
test against uninstalled libtool libs
6832 if $PKG_CONFIG --uninstalled $pkg_config_args; then
6833 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
6837 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
6844 if test x
"$no_glib" = x
; then
6845 GLIB_GENMARSHAL
=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
6846 GOBJECT_QUERY
=`$PKG_CONFIG --variable=gobject_query glib-2.0`
6847 GLIB_MKENUMS
=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
6849 GLIB_CFLAGS
=`$PKG_CONFIG --cflags $pkg_config_args`
6850 GLIB_LIBS
=`$PKG_CONFIG --libs $pkg_config_args`
6851 glib_config_major_version
=`$PKG_CONFIG --modversion glib-2.0 | \
6852 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6853 glib_config_minor_version
=`$PKG_CONFIG --modversion glib-2.0 | \
6854 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6855 glib_config_micro_version
=`$PKG_CONFIG --modversion glib-2.0 | \
6856 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6857 if test "x$enable_glibtest" = "xyes" ; then
6858 ac_save_CFLAGS
="$CFLAGS"
6859 ac_save_LIBS
="$LIBS"
6860 CFLAGS
="$CFLAGS $GLIB_CFLAGS"
6861 LIBS
="$GLIB_LIBS $LIBS"
6863 if test "$cross_compiling" = yes; then
6864 echo $ac_n "cross compiling; assumed OK... $ac_c"
6866 cat > conftest.
$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6877 int major, minor, micro;
6880 system ("touch conf.glibtest");
6882 /* HP/UX 9 (%@#!) writes to sscanf strings */
6883 tmp_version = g_strdup("$min_glib_version");
6884 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
6885 printf("%s, bad version string\n", "$min_glib_version");
6889 if ((glib_major_version != $glib_config_major_version) ||
6890 (glib_minor_version != $glib_config_minor_version) ||
6891 (glib_micro_version != $glib_config_micro_version))
6893 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
6894 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
6895 glib_major_version, glib_minor_version, glib_micro_version);
6896 printf ("*** was found! If pkg-config was correct, then it is best\n");
6897 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
6898 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6899 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6900 printf("*** required on your system.\n");
6901 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
6902 printf("*** to point to the correct configuration files\n");
6904 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
6905 (glib_minor_version != GLIB_MINOR_VERSION) ||
6906 (glib_micro_version != GLIB_MICRO_VERSION))
6908 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
6909 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
6910 printf("*** library (version %d.%d.%d)\n",
6911 glib_major_version, glib_minor_version, glib_micro_version);
6915 if ((glib_major_version > major) ||
6916 ((glib_major_version == major) && (glib_minor_version > minor)) ||
6917 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
6923 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
6924 glib_major_version, glib_minor_version, glib_micro_version);
6925 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
6926 major, minor, micro);
6927 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
6929 printf("*** If you have already installed a sufficiently new version, this error\n");
6930 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
6931 printf("*** being found. The easiest way to fix this is to remove the old version\n");
6932 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
6933 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
6934 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6935 printf("*** so that the correct libraries are found at run-time))\n");
6942 if { (eval echo configure
:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6946 echo "configure: failed program was:" >&5
6947 cat conftest.
$ac_ext >&5
6954 CFLAGS
="$ac_save_CFLAGS"
6955 LIBS
="$ac_save_LIBS"
6958 if test "x$no_glib" = x
; then
6959 echo "$ac_t""yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" 1>&6
6962 echo "$ac_t""no" 1>&6
6963 if test "$PKG_CONFIG" = "no" ; then
6964 echo "*** A new enough version of pkg-config was not found."
6965 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
6967 if test -f conf.glibtest
; then
6970 echo "*** Could not run GLIB test program, checking why..."
6971 ac_save_CFLAGS
="$CFLAGS"
6972 ac_save_LIBS
="$LIBS"
6973 CFLAGS
="$CFLAGS $GLIB_CFLAGS"
6974 LIBS
="$LIBS $GLIB_LIBS"
6975 cat > conftest.
$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6983 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
6986 if { (eval echo configure
:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6988 echo "*** The test program compiled, but did not run. This usually means"
6989 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
6990 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
6991 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6992 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6993 echo "*** is required on your system"
6995 echo "*** If you have an old version installed, it is best to remove it, although"
6996 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6998 echo "configure: failed program was:" >&5
6999 cat conftest.
$ac_ext >&5
7001 echo "*** The test program failed to compile or link. See the file config.log for the"
7002 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
7005 CFLAGS
="$ac_save_CFLAGS"
7006 LIBS
="$ac_save_LIBS"
7023 enable_libarttest
=no
7024 # Check whether --with-libart-prefix or --without-libart-prefix was given.
7025 if test "${with_libart_prefix+set}" = set; then
7026 withval
="$with_libart_prefix"
7027 libart_prefix
="$withval"
7032 # Check whether --with-libart-exec-prefix or --without-libart-exec-prefix was given.
7033 if test "${with_libart_exec_prefix+set}" = set; then
7034 withval
="$with_libart_exec_prefix"
7035 libart_exec_prefix
="$withval"
7037 libart_exec_prefix
=""
7040 # Check whether --enable-libarttest or --disable-libarttest was given.
7041 if test "${enable_libarttest+set}" = set; then
7042 enableval
="$enable_libarttest"
7045 enable_libarttest
=yes
7049 if test x
$libart_exec_prefix != x
; then
7050 libart_args
="$libart_args --exec-prefix=$libart_exec_prefix"
7051 if test x
${LIBART_CONFIG+set} != xset
; then
7052 LIBART_CONFIG
=$libart_exec_prefix/bin
/libart-config
7055 if test x
$libart_prefix != x
; then
7056 libart_args
="$libart_args --prefix=$libart_prefix"
7057 if test x
${LIBART_CONFIG+set} != xset
; then
7058 LIBART_CONFIG
=$libart_prefix/bin
/libart-config
7062 # Extract the first word of "libart-config", so it can be a program name with args.
7063 set dummy libart-config
; ac_word
=$2
7064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7065 echo "configure:7066: checking for $ac_word" >&5
7066 if eval "test \"`echo '$''{'ac_cv_path_LIBART_CONFIG'+set}'`\" = set"; then
7067 echo $ac_n "(cached) $ac_c" 1>&6
7069 case "$LIBART_CONFIG" in
7071 ac_cv_path_LIBART_CONFIG
="$LIBART_CONFIG" # Let the user override the test with a path.
7074 ac_cv_path_LIBART_CONFIG
="$LIBART_CONFIG" # Let the user override the test with a dos path.
7077 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7079 for ac_dir
in $ac_dummy; do
7080 test -z "$ac_dir" && ac_dir
=.
7081 if test -f $ac_dir/$ac_word; then
7082 ac_cv_path_LIBART_CONFIG
="$ac_dir/$ac_word"
7087 test -z "$ac_cv_path_LIBART_CONFIG" && ac_cv_path_LIBART_CONFIG
="no"
7091 LIBART_CONFIG
="$ac_cv_path_LIBART_CONFIG"
7092 if test -n "$LIBART_CONFIG"; then
7093 echo "$ac_t""$LIBART_CONFIG" 1>&6
7095 echo "$ac_t""no" 1>&6
7098 min_libart_version
=2.1.0
7099 echo $ac_n "checking for LIBART - version >= $min_libart_version""... $ac_c" 1>&6
7100 echo "configure:7101: checking for LIBART - version >= $min_libart_version" >&5
7102 if test "$LIBART_CONFIG" = "no" ; then
7105 LIBART_CFLAGS
=`$LIBART_CONFIG $libartconf_args --cflags`
7106 LIBART_LIBS
=`$LIBART_CONFIG $libartconf_args --libs`
7108 libart_major_version
=`$LIBART_CONFIG $libart_args --version | \
7109 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7110 libart_minor_version
=`$LIBART_CONFIG $libart_args --version | \
7111 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7112 libart_micro_version
=`$LIBART_CONFIG $libart_config_args --version | \
7113 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7114 if test "x$enable_libarttest" = "xyes" ; then
7115 ac_save_CFLAGS
="$CFLAGS"
7116 ac_save_LIBS
="$LIBS"
7117 CFLAGS
="$CFLAGS $LIBART_CFLAGS"
7118 LIBS
="$LIBS $LIBART_LIBS"
7119 rm -f conf.libarttest
7120 if test "$cross_compiling" = yes; then
7121 echo $ac_n "cross compiling; assumed OK... $ac_c"
7123 cat > conftest.
$ac_ext <<EOF
7124 #line 7125 "configure"
7125 #include "confdefs.h"
7130 #include <libart_lgpl/libart.h>
7133 my_strdup (char *str)
7139 new_str = malloc ((strlen (str) + 1) * sizeof(char));
7140 strcpy (new_str, str);
7150 int major, minor, micro;
7153 system ("touch conf.libarttest");
7155 /* HP/UX 9 (%@#!) writes to sscanf strings */
7156 tmp_version = my_strdup("$min_libart_version");
7157 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7158 printf("%s, bad version string\n", "$min_libart_version");
7162 if (($libart_major_version > major) ||
7163 (($libart_major_version == major) && ($libart_minor_version > minor)) ||
7164 (($libart_major_version == major) && ($libart_minor_version == minor) && ($libart_micro_version >= micro)))
7170 printf("\n*** 'libart-config --version' returned %d.%d.%d, but the minimum version\n", $libart_major_version, $libart_minor_version, $libart_micro_version);
7171 printf("*** of LIBART required is %d.%d.%d. If libart-config is correct, then it is\n", major, minor, micro);
7172 printf("*** best to upgrade to the required version.\n");
7173 printf("*** If libart-config was wrong, set the environment variable LIBART_CONFIG\n");
7174 printf("*** to point to the correct copy of libart-config, and remove the file\n");
7175 printf("*** config.cache before re-running configure\n");
7182 if { (eval echo configure
:7183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7186 echo "configure: failed program was:" >&5
7187 cat conftest.
$ac_ext >&5
7194 CFLAGS
="$ac_save_CFLAGS"
7195 LIBS
="$ac_save_LIBS"
7198 if test "x$no_libart" = x
; then
7199 echo "$ac_t""yes" 1>&6
7202 echo "$ac_t""no" 1>&6
7203 if test "$LIBART_CONFIG" = "no" ; then
7204 echo "*** The libart-config script installed by LIBART could not be found"
7205 echo "*** If LIBART was installed in PREFIX, make sure PREFIX/bin is in"
7206 echo "*** your path, or set the LIBART_CONFIG environment variable to the"
7207 echo "*** full path to libart-config."
7209 if test -f conf.libarttest
; then
7212 echo "*** Could not run LIBART test program, checking why..."
7213 CFLAGS
="$CFLAGS $LIBART_CFLAGS"
7214 LIBS
="$LIBS $LIBART_LIBS"
7215 cat > conftest.
$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7220 #include <libart_lgpl/libart.h>
7226 if { (eval echo configure
:7227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7228 echo "*** The test program compiled, but did not run. This usually means"
7229 echo "*** that the run-time linker is not finding LIBART or finding the wrong"
7230 echo "*** version of LIBART. If it is not finding LIBART, you'll need to set your"
7231 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7232 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7233 echo "*** is required on your system"
7235 echo "*** If you have an old version installed, it is best to remove it, although"
7236 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7238 echo "configure: failed program was:" >&5
7239 cat conftest.
$ac_ext >&5
7241 echo "*** The test program failed to compile or link. See the file config.log for the"
7242 echo "*** exact error that occured. This usually means LIBART was incorrectly installed"
7243 echo "*** or that you have moved LIBART since it was installed. In the latter case, you"
7244 echo "*** may want to edit the libart-config script: $LIBART_CONFIG"
7247 CFLAGS
="$ac_save_CFLAGS"
7248 LIBS
="$ac_save_LIBS"
7257 rm -f conf.libarttest
7261 # On Solaris, and maybe other architectures, the Boehm collector
7263 if test "$GC" = boehm
; then
7264 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
7265 echo "configure:7266: checking for main in -ldl" >&5
7266 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
7267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7268 echo $ac_n "(cached) $ac_c" 1>&6
7270 ac_save_LIBS
="$LIBS"
7272 cat > conftest.
$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7280 if { (eval echo configure
:7281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7282 eval "ac_cv_lib_$ac_lib_var=yes"
7284 echo "configure: failed program was:" >&5
7285 cat conftest.
$ac_ext >&5
7287 eval "ac_cv_lib_$ac_lib_var=no"
7290 LIBS
="$ac_save_LIBS"
7293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7294 echo "$ac_t""yes" 1>&6
7295 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
7297 echo "$ac_t""no" 1>&6
7302 if test -z "${with_multisubdir}"; then
7306 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7309 if test -x "${builddotdot}/../../gcc/gcj"; then
7310 dir
="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7311 GCJ
="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/"
7315 GCJ
="gcj -B`${PWDCMD-pwd}`/"
7319 # Create it, so that compile/link tests don't fail
7320 test -f libgcj.spec ||
touch libgcj.spec
7322 # We must search the source tree for java.lang, since we still don't
7323 # have libgcj.jar nor java/lang/*.class
7324 GCJ_SAVE_CPPFLAGS
=$CPPFLAGS
7325 CPPFLAGS
="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7327 # Since some classes depend on this one, we need its source available
7328 # before we can do any GCJ compilation test :-(
7329 if test ! -f gnu
/classpath
/Configuration.java
; then
7330 test -d gnu || mkdir gnu
7331 test -d gnu
/classpath || mkdir gnu
/classpath
7332 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7333 -e 's,@TOOLKIT@,$TOOLKIT,' \
7334 < $srcdir/gnu
/classpath
/Configuration.java.
in \
7335 > gnu
/classpath
/Configuration.java
7336 # We do not want to redirect the output of the grep below to /dev/null,
7337 # but we add /dev/null to the input list so that grep will print the
7338 # filename of Configuration.java in case it finds any matches.
7339 if grep @ gnu
/classpath
/Configuration.java
/dev
/null
; then
7340 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
7344 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
7345 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
7346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7347 echo "configure:7348: checking for $ac_word" >&5
7348 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7349 echo $ac_n "(cached) $ac_c" 1>&6
7351 if test -n "$GCJ"; then
7352 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
7354 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7356 for ac_dir
in $ac_dummy; do
7357 test -z "$ac_dir" && ac_dir
=.
7358 if test -f $ac_dir/$ac_word; then
7359 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
7366 GCJ
="$ac_cv_prog_GCJ"
7367 if test -n "$GCJ"; then
7368 echo "$ac_t""$GCJ" 1>&6
7370 echo "$ac_t""no" 1>&6
7374 if test -z "$ac_cv_prog_GCJ"; then
7375 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "gcj", so it can be a program name with args.
7377 set dummy gcj
; ac_word
=$2
7378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7379 echo "configure:7380: checking for $ac_word" >&5
7380 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7381 echo $ac_n "(cached) $ac_c" 1>&6
7383 if test -n "$GCJ"; then
7384 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
7386 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7388 for ac_dir
in $ac_dummy; do
7389 test -z "$ac_dir" && ac_dir
=.
7390 if test -f $ac_dir/$ac_word; then
7391 ac_cv_prog_GCJ
="gcj"
7396 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ
="no"
7399 GCJ
="$ac_cv_prog_GCJ"
7400 if test -n "$GCJ"; then
7401 echo "$ac_t""$GCJ" 1>&6
7403 echo "$ac_t""no" 1>&6
7411 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
7415 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
7417 lt_save_CFLAGS
="$CFLAGS"
7418 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="$CPPFLAGS" \
7419 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
7420 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
7421 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
7422 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
7423 deplibs_check_method
="$deplibs_check_method" \
7424 file_magic_cmd
="$file_magic_cmd" \
7425 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
7426 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
7427 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
7429 CFLAGS
="$lt_save_CFLAGS"
7431 # Redirect the config.log output again, so that the ltconfig log is not
7432 # clobbered by the next message.
7433 exec 5>>.
/config.log
7438 CPPFLAGS
=$GCJ_SAVE_CPPFLAGS
7440 echo $ac_n "checking size of void *""... $ac_c" 1>&6
7441 echo "configure:7442: checking size of void *" >&5
7442 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7443 echo $ac_n "(cached) $ac_c" 1>&6
7445 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7446 cat > conftest.
$ac_ext <<EOF
7447 #line 7448 "configure"
7448 #include "confdefs.h"
7449 #include "confdefs.h"
7450 #include <sys/types.h>
7454 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7457 if { (eval echo configure
:7458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7459 ac_cv_sizeof_void_p
=$ac_size
7461 echo "configure: failed program was:" >&5
7462 cat conftest.
$ac_ext >&5
7465 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
7470 if test x
$ac_cv_sizeof_void_p = x
; then
7471 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
7473 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7474 cat >> confdefs.h
<<EOF
7475 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7484 if test -z "$ZLIBSPEC"; then
7485 # Use zlib from the GCC tree.
7486 ZINCS
='-I$(top_srcdir)/../zlib'
7487 ZLIBS
=..
/zlib
/libzgcj_convenience.la
7490 SYS_ZLIBS
="$ZLIBSPEC"
7502 if test "$CANADIAN" = yes; then
7511 if test "$NULL_TARGET" = yes; then
7513 NULL_TARGET_FALSE
='#'
7515 NULL_TARGET_TRUE
='#'
7520 if test "$NATIVE" = yes ||
test "$NULL_TARGET" = yes; then
7529 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7530 NEEDS_DATA_START_TRUE
=
7531 NEEDS_DATA_START_FALSE
='#'
7533 NEEDS_DATA_START_TRUE
='#'
7534 NEEDS_DATA_START_FALSE
=
7538 if test -n "$with_cross_host" &&
7539 test x
"$with_cross_host" != x
"no"; then
7540 toolexecdir
='$(exec_prefix)/$(target_alias)'
7541 toolexecmainlibdir
='$(toolexecdir)/lib'
7543 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
7544 toolexecmainlibdir
='$(libdir)'
7546 multi_os_directory
=`$CC -print-multi-os-directory`
7547 case $multi_os_directory in
7548 .
) toolexeclibdir
=$toolexecmainlibdir ;; # Avoid trailing /.
7549 *) toolexeclibdir
=$toolexecmainlibdir/$multi_os_directory ;;
7555 # Determine gcj version number.
7557 gcjversion
=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7559 GCJVERSION
=$gcjversion
7561 cat >> confdefs.h
<<EOF
7562 #define GCJVERSION "$GCJVERSION"
7566 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
7567 echo "configure:7568: checking for g++ -ffloat-store bug" >&5
7568 save_CFLAGS
="$CFLAGS"
7569 CFLAGS
="-x c++ -O2 -ffloat-store"
7570 cat > conftest.
$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7578 if { (eval echo configure
:7579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7580 echo "$ac_t""no" 1>&6
7582 echo "configure: failed program was:" >&5
7583 cat conftest.
$ac_ext >&5
7585 cat >> confdefs.h
<<\EOF
7586 #define __NO_MATH_INLINES 1
7589 echo "$ac_t""yes" 1>&6
7592 CFLAGS
="$save_CFLAGS"
7594 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 net
/if.h
pwd.h sys
/config.h stdint.h langinfo.h locale.h
7596 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7598 echo "configure:7599: checking for $ac_hdr" >&5
7599 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7600 echo $ac_n "(cached) $ac_c" 1>&6
7602 cat > conftest.
$ac_ext <<EOF
7603 #line 7604 "configure"
7604 #include "confdefs.h"
7607 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7608 { (eval echo configure
:7609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7609 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7610 if test -z "$ac_err"; then
7612 eval "ac_cv_header_$ac_safe=yes"
7615 echo "configure: failed program was:" >&5
7616 cat conftest.
$ac_ext >&5
7618 eval "ac_cv_header_$ac_safe=no"
7622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7623 echo "$ac_t""yes" 1>&6
7624 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7625 cat >> confdefs.h
<<EOF
7626 #define $ac_tr_hdr 1
7630 echo "$ac_t""no" 1>&6
7634 for ac_hdr
in dirent.h
7636 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7638 echo "configure:7639: checking for $ac_hdr" >&5
7639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7640 echo $ac_n "(cached) $ac_c" 1>&6
7642 cat > conftest.
$ac_ext <<EOF
7643 #line 7644 "configure"
7644 #include "confdefs.h"
7647 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7648 { (eval echo configure
:7649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7649 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7650 if test -z "$ac_err"; then
7652 eval "ac_cv_header_$ac_safe=yes"
7655 echo "configure: failed program was:" >&5
7656 cat conftest.
$ac_ext >&5
7658 eval "ac_cv_header_$ac_safe=no"
7662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7663 echo "$ac_t""yes" 1>&6
7664 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7665 cat >> confdefs.h
<<EOF
7666 #define $ac_tr_hdr 1
7670 echo "$ac_t""no" 1>&6
7674 for ac_hdr
in inttypes.h
7676 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7678 echo "configure:7679: checking for $ac_hdr" >&5
7679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7682 cat > conftest.
$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7687 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7688 { (eval echo configure
:7689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7689 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7690 if test -z "$ac_err"; then
7692 eval "ac_cv_header_$ac_safe=yes"
7695 echo "configure: failed program was:" >&5
7696 cat conftest.
$ac_ext >&5
7698 eval "ac_cv_header_$ac_safe=no"
7702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7703 echo "$ac_t""yes" 1>&6
7704 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7705 cat >> confdefs.h
<<EOF
7706 #define $ac_tr_hdr 1
7709 cat >> confdefs.h
<<\EOF
7710 #define HAVE_INTTYPES_H 1
7713 cat >> confdefs.h
<<\EOF
7714 #define JV_HAVE_INTTYPES_H 1
7719 echo "$ac_t""no" 1>&6
7723 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7724 echo "configure:7725: checking for sys/wait.h that is POSIX.1 compatible" >&5
7725 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7726 echo $ac_n "(cached) $ac_c" 1>&6
7728 cat > conftest.
$ac_ext <<EOF
7729 #line 7730 "configure"
7730 #include "confdefs.h"
7731 #include <sys/types.h>
7732 #include <sys/wait.h>
7734 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7737 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7742 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7745 if { (eval echo configure
:7746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7747 ac_cv_header_sys_wait_h
=yes
7749 echo "configure: failed program was:" >&5
7750 cat conftest.
$ac_ext >&5
7752 ac_cv_header_sys_wait_h
=no
7757 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7758 if test $ac_cv_header_sys_wait_h = yes; then
7759 cat >> confdefs.h
<<\EOF
7760 #define HAVE_SYS_WAIT_H 1
7766 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7767 echo "configure:7768: checking for ANSI C header files" >&5
7768 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7769 echo $ac_n "(cached) $ac_c" 1>&6
7771 cat > conftest.
$ac_ext <<EOF
7772 #line 7773 "configure"
7773 #include "confdefs.h"
7779 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7780 { (eval echo configure
:7781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7781 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7782 if test -z "$ac_err"; then
7784 ac_cv_header_stdc
=yes
7787 echo "configure: failed program was:" >&5
7788 cat conftest.
$ac_ext >&5
7790 ac_cv_header_stdc
=no
7794 if test $ac_cv_header_stdc = yes; then
7795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7796 cat > conftest.
$ac_ext <<EOF
7797 #line 7798 "configure"
7798 #include "confdefs.h"
7801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7802 egrep "memchr" >/dev
/null
2>&1; then
7806 ac_cv_header_stdc
=no
7812 if test $ac_cv_header_stdc = yes; then
7813 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7814 cat > conftest.
$ac_ext <<EOF
7815 #line 7816 "configure"
7816 #include "confdefs.h"
7819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7820 egrep "free" >/dev
/null
2>&1; then
7824 ac_cv_header_stdc
=no
7830 if test $ac_cv_header_stdc = yes; then
7831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7832 if test "$cross_compiling" = yes; then
7835 cat > conftest.
$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7839 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7840 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7842 int main () { int i; for (i = 0; i < 256; i++)
7843 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7847 if { (eval echo configure
:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7851 echo "configure: failed program was:" >&5
7852 cat conftest.
$ac_ext >&5
7854 ac_cv_header_stdc
=no
7862 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7863 if test $ac_cv_header_stdc = yes; then
7864 cat >> confdefs.h
<<\EOF
7865 #define STDC_HEADERS 1
7870 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
7871 echo "configure:7872: checking for ssize_t" >&5
7872 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7873 echo $ac_n "(cached) $ac_c" 1>&6
7875 cat > conftest.
$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 #include <sys/types.h>
7884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7885 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7887 ac_cv_type_ssize_t
=yes
7890 ac_cv_type_ssize_t
=no
7895 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7896 if test $ac_cv_type_ssize_t = no
; then
7897 cat >> confdefs.h
<<\EOF
7904 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
7905 echo "configure:7906: checking for in_addr_t" >&5
7906 cat > conftest.
$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7909 #include <sys/types.h>
7914 #if HAVE_NETINET_IN_H
7915 #include <netinet/in.h>
7921 if { (eval echo configure
:7922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7923 cat >> confdefs.h
<<\EOF
7924 #define HAVE_IN_ADDR_T 1
7927 echo "$ac_t""yes" 1>&6
7929 echo "configure: failed program was:" >&5
7930 cat conftest.
$ac_ext >&5
7932 echo "$ac_t""no" 1>&6
7936 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
7937 echo "configure:7938: checking whether struct ip_mreq is in netinet/in.h" >&5
7938 cat > conftest.
$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7941 #include <netinet/in.h>
7943 struct ip_mreq mreq;
7946 if { (eval echo configure
:7947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7948 cat >> confdefs.h
<<\EOF
7949 #define HAVE_STRUCT_IP_MREQ 1
7952 echo "$ac_t""yes" 1>&6
7954 echo "configure: failed program was:" >&5
7955 cat conftest.
$ac_ext >&5
7957 echo "$ac_t""no" 1>&6
7961 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
7962 echo "configure:7963: checking whether struct ipv6_mreq is in netinet/in.h" >&5
7963 cat > conftest.
$ac_ext <<EOF
7964 #line 7965 "configure"
7965 #include "confdefs.h"
7966 #include <netinet/in.h>
7968 struct ipv6_mreq mreq6;
7971 if { (eval echo configure
:7972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7973 cat >> confdefs.h
<<\EOF
7974 #define HAVE_STRUCT_IPV6_MREQ 1
7977 echo "$ac_t""yes" 1>&6
7979 echo "configure: failed program was:" >&5
7980 cat conftest.
$ac_ext >&5
7982 echo "$ac_t""no" 1>&6
7986 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
7987 echo "configure:7988: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
7988 cat > conftest.
$ac_ext <<EOF
7989 #line 7990 "configure"
7990 #include "confdefs.h"
7991 #include <netinet/in.h>
7993 struct sockaddr_in6 addr6;
7996 if { (eval echo configure
:7997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7998 cat >> confdefs.h
<<\EOF
7999 #define HAVE_INET6 1
8002 echo "$ac_t""yes" 1>&6
8004 echo "configure: failed program was:" >&5
8005 cat conftest.
$ac_ext >&5
8007 echo "$ac_t""no" 1>&6
8011 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
8012 echo "configure:8013: checking for socklen_t in sys/socket.h" >&5
8013 cat > conftest.
$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 #define _POSIX_PII_SOCKET
8017 #include <sys/types.h>
8018 #include <sys/socket.h>
8023 if { (eval echo configure
:8024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8025 cat >> confdefs.h
<<\EOF
8026 #define HAVE_SOCKLEN_T 1
8029 echo "$ac_t""yes" 1>&6
8031 echo "configure: failed program was:" >&5
8032 cat conftest.
$ac_ext >&5
8034 echo "$ac_t""no" 1>&6
8038 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
8039 echo "configure:8040: checking for tm_gmtoff in struct tm" >&5
8040 cat > conftest.
$ac_ext <<EOF
8041 #line 8042 "configure"
8042 #include "confdefs.h"
8045 struct tm tim; tim.tm_gmtoff = 0;
8048 if { (eval echo configure
:8049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8050 cat >> confdefs.h
<<\EOF
8051 #define STRUCT_TM_HAS_GMTOFF 1
8054 echo "$ac_t""yes" 1>&6
8056 echo "configure: failed program was:" >&5
8057 cat conftest.
$ac_ext >&5
8059 echo "$ac_t""no" 1>&6
8060 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
8061 echo "configure:8062: checking for global timezone variable" >&5
8062 cat > conftest.
$ac_ext <<EOF
8063 #line 8064 "configure"
8064 #include "confdefs.h"
8067 void i(){long z2 = 2*timezone;}
8070 if { (eval echo configure
:8071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8072 cat >> confdefs.h
<<\EOF
8073 #define HAVE_TIMEZONE 1
8076 echo "$ac_t""yes" 1>&6
8078 echo "configure: failed program was:" >&5
8079 cat conftest.
$ac_ext >&5
8081 echo "$ac_t""no" 1>&6
8082 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
8083 echo "configure:8084: checking for global _timezone variable" >&5
8084 cat > conftest.
$ac_ext <<EOF
8085 #line 8086 "configure"
8086 #include "confdefs.h"
8089 long z2 = _timezone;
8092 if { (eval echo configure
:8093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8094 cat >> confdefs.h
<<\EOF
8095 #define HAVE_UNDERSCORE_TIMEZONE 1
8098 echo "$ac_t""yes" 1>&6
8100 echo "configure: failed program was:" >&5
8101 cat conftest.
$ac_ext >&5
8103 echo "$ac_t""no" 1>&6
8111 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8112 # for constant arguments. Useless!
8113 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8114 echo "configure:8115: checking for working alloca.h" >&5
8115 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8116 echo $ac_n "(cached) $ac_c" 1>&6
8118 cat > conftest.
$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8123 char *p = alloca(2 * sizeof(int));
8126 if { (eval echo configure
:8127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8128 ac_cv_header_alloca_h
=yes
8130 echo "configure: failed program was:" >&5
8131 cat conftest.
$ac_ext >&5
8133 ac_cv_header_alloca_h
=no
8138 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8139 if test $ac_cv_header_alloca_h = yes; then
8140 cat >> confdefs.h
<<\EOF
8141 #define HAVE_ALLOCA_H 1
8146 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8147 echo "configure:8148: checking for alloca" >&5
8148 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8151 cat > conftest.
$ac_ext <<EOF
8152 #line 8153 "configure"
8153 #include "confdefs.h"
8156 # define alloca __builtin_alloca
8159 # include <malloc.h>
8160 # define alloca _alloca
8163 # include <alloca.h>
8168 # ifndef alloca /* predefined by HP cc +Olibcalls */
8177 char *p = (char *) alloca(1);
8180 if { (eval echo configure
:8181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8182 ac_cv_func_alloca_works
=yes
8184 echo "configure: failed program was:" >&5
8185 cat conftest.
$ac_ext >&5
8187 ac_cv_func_alloca_works
=no
8192 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8193 if test $ac_cv_func_alloca_works = yes; then
8194 cat >> confdefs.h
<<\EOF
8195 #define HAVE_ALLOCA 1
8200 if test $ac_cv_func_alloca_works = no
; then
8201 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8202 # that cause trouble. Some versions do not even contain alloca or
8203 # contain a buggy version. If you still want to use their alloca,
8204 # use ar to extract alloca.o from them instead of compiling alloca.c.
8205 ALLOCA
=alloca.
${ac_objext}
8206 cat >> confdefs.h
<<\EOF
8211 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8212 echo "configure:8213: checking whether alloca needs Cray hooks" >&5
8213 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
8216 cat > conftest.
$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8219 #if defined(CRAY) && ! defined(CRAY2)
8226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8227 egrep "webecray" >/dev
/null
2>&1; then
8238 echo "$ac_t""$ac_cv_os_cray" 1>&6
8239 if test $ac_cv_os_cray = yes; then
8240 for ac_func
in _getb67 GETB67 getb67
; do
8241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8242 echo "configure:8243: checking for $ac_func" >&5
8243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8244 echo $ac_n "(cached) $ac_c" 1>&6
8246 cat > conftest.
$ac_ext <<EOF
8247 #line 8248 "configure"
8248 #include "confdefs.h"
8249 /* System header to define __stub macros and hopefully few prototypes,
8250 which can conflict with char $ac_func(); below. */
8252 /* Override any gcc2 internal prototype to avoid an error. */
8253 /* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8259 /* The GNU C library defines this for functions which it implements
8260 to always fail with ENOSYS. Some functions are actually named
8261 something starting with __ and the normal name is an alias. */
8262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8270 if { (eval echo configure
:8271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8272 eval "ac_cv_func_$ac_func=yes"
8274 echo "configure: failed program was:" >&5
8275 cat conftest.
$ac_ext >&5
8277 eval "ac_cv_func_$ac_func=no"
8282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8283 echo "$ac_t""yes" 1>&6
8284 cat >> confdefs.h
<<EOF
8285 #define CRAY_STACKSEG_END $ac_func
8290 echo "$ac_t""no" 1>&6
8296 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8297 echo "configure:8298: checking stack direction for C alloca" >&5
8298 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8301 if test "$cross_compiling" = yes; then
8302 ac_cv_c_stack_direction
=0
8304 cat > conftest.
$ac_ext <<EOF
8305 #line 8306 "configure"
8306 #include "confdefs.h"
8307 find_stack_direction ()
8309 static char *addr = 0;
8314 return find_stack_direction ();
8317 return (&dummy > addr) ? 1 : -1;
8321 exit (find_stack_direction() < 0);
8324 if { (eval echo configure
:8325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8326 ac_cv_c_stack_direction
=1
8328 echo "configure: failed program was:" >&5
8329 cat conftest.
$ac_ext >&5
8331 ac_cv_c_stack_direction
=-1
8338 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8339 cat >> confdefs.h
<<EOF
8340 #define STACK_DIRECTION $ac_cv_c_stack_direction
8345 for ac_hdr
in unistd.h
8347 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8349 echo "configure:8350: checking for $ac_hdr" >&5
8350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8353 cat > conftest.
$ac_ext <<EOF
8354 #line 8355 "configure"
8355 #include "confdefs.h"
8358 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8359 { (eval echo configure
:8360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8360 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8361 if test -z "$ac_err"; then
8363 eval "ac_cv_header_$ac_safe=yes"
8366 echo "configure: failed program was:" >&5
8367 cat conftest.
$ac_ext >&5
8369 eval "ac_cv_header_$ac_safe=no"
8373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8374 echo "$ac_t""yes" 1>&6
8375 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8376 cat >> confdefs.h
<<EOF
8377 #define $ac_tr_hdr 1
8381 echo "$ac_t""no" 1>&6
8385 for ac_func
in getpagesize
8387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8388 echo "configure:8389: checking for $ac_func" >&5
8389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8392 cat > conftest.
$ac_ext <<EOF
8393 #line 8394 "configure"
8394 #include "confdefs.h"
8395 /* System header to define __stub macros and hopefully few prototypes,
8396 which can conflict with char $ac_func(); below. */
8398 /* Override any gcc2 internal prototype to avoid an error. */
8399 /* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8405 /* The GNU C library defines this for functions which it implements
8406 to always fail with ENOSYS. Some functions are actually named
8407 something starting with __ and the normal name is an alias. */
8408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8416 if { (eval echo configure
:8417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8418 eval "ac_cv_func_$ac_func=yes"
8420 echo "configure: failed program was:" >&5
8421 cat conftest.
$ac_ext >&5
8423 eval "ac_cv_func_$ac_func=no"
8428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8429 echo "$ac_t""yes" 1>&6
8430 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8431 cat >> confdefs.h
<<EOF
8432 #define $ac_tr_func 1
8436 echo "$ac_t""no" 1>&6
8440 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8441 echo "configure:8442: checking for working mmap" >&5
8442 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8443 echo $ac_n "(cached) $ac_c" 1>&6
8445 if test "$cross_compiling" = yes; then
8446 ac_cv_func_mmap_fixed_mapped
=no
8448 cat > conftest.
$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8452 /* Thanks to Mike Haertel and Jim Avera for this test.
8453 Here is a matrix of mmap possibilities:
8454 mmap private not fixed
8455 mmap private fixed at somewhere currently unmapped
8456 mmap private fixed at somewhere already mapped
8457 mmap shared not fixed
8458 mmap shared fixed at somewhere currently unmapped
8459 mmap shared fixed at somewhere already mapped
8460 For private mappings, we should verify that changes cannot be read()
8461 back from the file, nor mmap's back from the file at a different
8462 address. (There have been systems where private was not correctly
8463 implemented like the infamous i386 svr4.0, and systems where the
8464 VM page cache was not coherent with the filesystem buffer cache
8465 like early versions of FreeBSD and possibly contemporary NetBSD.)
8466 For shared mappings, we should conversely verify that changes get
8467 propogated back to all the places they're supposed to be.
8469 Grep wants private fixed already mapped.
8470 The main things grep needs to know about mmap are:
8471 * does it exist and is it safe to write into the mmap'd area
8472 * how to use it (BSD variants) */
8473 #include <sys/types.h>
8475 #include <sys/mman.h>
8477 /* This mess was copied from the GNU getpagesize.h. */
8478 #ifndef HAVE_GETPAGESIZE
8479 # ifdef HAVE_UNISTD_H
8480 # include <unistd.h>
8483 /* Assume that all systems that can run configure have sys/param.h. */
8484 # ifndef HAVE_SYS_PARAM_H
8485 # define HAVE_SYS_PARAM_H 1
8488 # ifdef _SC_PAGESIZE
8489 # define getpagesize() sysconf(_SC_PAGESIZE)
8490 # else /* no _SC_PAGESIZE */
8491 # ifdef HAVE_SYS_PARAM_H
8492 # include <sys/param.h>
8493 # ifdef EXEC_PAGESIZE
8494 # define getpagesize() EXEC_PAGESIZE
8495 # else /* no EXEC_PAGESIZE */
8497 # define getpagesize() NBPG * CLSIZE
8500 # endif /* no CLSIZE */
8501 # else /* no NBPG */
8503 # define getpagesize() NBPC
8504 # else /* no NBPC */
8506 # define getpagesize() PAGESIZE
8507 # endif /* PAGESIZE */
8508 # endif /* no NBPC */
8509 # endif /* no NBPG */
8510 # endif /* no EXEC_PAGESIZE */
8511 # else /* no HAVE_SYS_PARAM_H */
8512 # define getpagesize() 8192 /* punt totally */
8513 # endif /* no HAVE_SYS_PARAM_H */
8514 # endif /* no _SC_PAGESIZE */
8516 #endif /* no HAVE_GETPAGESIZE */
8519 extern "C" { void *malloc(unsigned); }
8527 char *data, *data2, *data3;
8531 pagesize = getpagesize();
8534 * First, make a file with some known garbage in it.
8536 data = malloc(pagesize);
8539 for (i = 0; i < pagesize; ++i)
8540 *(data + i) = rand();
8542 fd = creat("conftestmmap", 0600);
8545 if (write(fd, data, pagesize) != pagesize)
8550 * Next, try to mmap the file at a fixed address which
8551 * already has something else allocated at it. If we can,
8552 * also make sure that we see the same garbage.
8554 fd = open("conftestmmap", O_RDWR);
8557 data2 = malloc(2 * pagesize);
8560 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8561 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8562 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8564 for (i = 0; i < pagesize; ++i)
8565 if (*(data + i) != *(data2 + i))
8569 * Finally, make sure that changes to the mapped area
8570 * do not percolate back to the file as seen by read().
8571 * (This is a bug on some variants of i386 svr4.0.)
8573 for (i = 0; i < pagesize; ++i)
8574 *(data2 + i) = *(data2 + i) + 1;
8575 data3 = malloc(pagesize);
8578 if (read(fd, data3, pagesize) != pagesize)
8580 for (i = 0; i < pagesize; ++i)
8581 if (*(data + i) != *(data3 + i))
8584 unlink("conftestmmap");
8589 if { (eval echo configure
:8590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8591 ac_cv_func_mmap_fixed_mapped
=yes
8593 echo "configure: failed program was:" >&5
8594 cat conftest.
$ac_ext >&5
8596 ac_cv_func_mmap_fixed_mapped
=no
8603 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8604 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8605 cat >> confdefs.h
<<\EOF
8614 # Extract the first word of "$ac_prog", so it can be a program name with args.
8615 set dummy
$ac_prog; ac_word
=$2
8616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8617 echo "configure:8618: checking for $ac_word" >&5
8618 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8619 echo $ac_n "(cached) $ac_c" 1>&6
8621 if test -n "$PERL"; then
8622 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
8624 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8626 for ac_dir
in $ac_dummy; do
8627 test -z "$ac_dir" && ac_dir
=.
8628 if test -f $ac_dir/$ac_word; then
8629 ac_cv_prog_PERL
="$ac_prog"
8636 PERL
="$ac_cv_prog_PERL"
8637 if test -n "$PERL"; then
8638 echo "$ac_t""$PERL" 1>&6
8640 echo "$ac_t""no" 1>&6
8643 test -n "$PERL" && break
8645 test -n "$PERL" || PERL
="false"
8652 SIGNAL_HANDLER
=include
/i386-signal.h
8654 sparc
*-sun-solaris*)
8655 SIGNAL_HANDLER
=include
/sparc-signal.h
8658 # SYSDEP_SOURCES=sysdep/ia64.c
8659 # test -d sysdep || mkdir sysdep
8662 SIGNAL_HANDLER
=include
/dwarf2-signal.h
8665 SIGNAL_HANDLER
=include
/powerpc-signal.h
8668 SIGNAL_HANDLER
=include
/dwarf2-signal.h
8671 SIGNAL_HANDLER
=include
/s390-signal.h
8674 SIGNAL_HANDLER
=include
/x86_64-signal.h
8677 SIGNAL_HANDLER
=include
/dwarf2-signal.h
8679 sh-
*-linux* | sh
[34]*-*-linux*)
8680 SIGNAL_HANDLER
=include
/dwarf2-signal.h
8683 SIGNAL_HANDLER
=include
/win32-signal.h
8686 SIGNAL_HANDLER
=include
/default-signal.h
8690 # If we're using sjlj exceptions, forget what we just learned.
8691 if test "$enable_sjlj_exceptions" = yes; then
8692 SIGNAL_HANDLER
=include
/default-signal.h
8695 # Define here any compiler flags that you need in order to make backtrace() work.
8699 BACKTRACESPEC
=-fno-omit-frame-pointer
8708 if test "${multilib}" = "yes"; then
8709 multilib_arg
="--enable-multilib"
8716 here
=`${PWDCMD-pwd}`
8719 # We get this from the environment.
8723 cat > confcache
<<\EOF
8724 # This file is a shell script that caches the results of configure
8725 # tests run on this system so they can be shared between configure
8726 # scripts and configure runs. It is not useful on other systems.
8727 # If it contains results you don't want to keep, you may remove or edit it.
8729 # By default, configure uses ./config.cache as the cache file,
8730 # creating it if it does not exist already. You can give configure
8731 # the --cache-file=FILE option to use a different cache file; that is
8732 # what configure does when it calls configure scripts in
8733 # subdirectories, so they share the cache.
8734 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8735 # config.status only pays attention to the cache file if you give it the
8736 # --recheck option to rerun configure.
8739 # The following way of writing the cache mishandles newlines in values,
8740 # but we know of no workaround that is simple, portable, and efficient.
8741 # So, don't put newlines in cache variables' values.
8742 # Ultrix sh set writes to stderr and can't be redirected directly,
8743 # and sets the high bit in the cache file unless we assign to the vars.
8745 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8747 # `set' does not quote correctly, so add quotes (double-quote substitution
8748 # turns \\\\ into \\, and sed turns \\ into \).
8750 -e "s/'/'\\\\''/g" \
8751 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8754 # `set' quotes correctly as required by POSIX, so do not add quotes.
8755 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8758 if cmp -s $cache_file confcache
; then
8761 if test -w $cache_file; then
8762 echo "updating cache $cache_file"
8763 cat confcache
> $cache_file
8765 echo "not updating unwritable cache $cache_file"
8770 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8772 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8773 # Let make expand exec_prefix.
8774 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8776 # Any assignment to VPATH causes Sun make to only execute
8777 # the first set of double-colon rules, so remove it if not needed.
8778 # If there is a colon in the path, we need to keep it.
8779 if test "x$srcdir" = x.
; then
8780 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8783 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8785 DEFS
=-DHAVE_CONFIG_H
8787 # Without the "./", some shells look in PATH for config.status.
8788 : ${CONFIG_STATUS=./config.status}
8790 echo creating
$CONFIG_STATUS
8791 rm -f $CONFIG_STATUS
8792 cat > $CONFIG_STATUS <<EOF
8794 # Generated automatically by configure.
8795 # Run this file to recreate the current configuration.
8796 # This directory was configured as follows,
8797 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8799 # $0 $ac_configure_args
8801 # Compiler output produced by configure, useful for debugging
8802 # configure, is in ./config.log if it exists.
8804 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8807 case "\$ac_option" in
8808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8809 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8810 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8811 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8812 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8814 -help | --help | --hel | --he | --h)
8815 echo "\$ac_cs_usage"; exit 0 ;;
8816 *) echo "\$ac_cs_usage"; exit 1 ;;
8820 ac_given_srcdir=$srcdir
8821 ac_given_INSTALL="$INSTALL"
8823 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8825 cat >> $CONFIG_STATUS <<EOF
8827 # Protect against being on the right side of a sed subst in config.status.
8828 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8829 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8833 s%@CFLAGS@%$CFLAGS%g
8834 s%@CPPFLAGS@%$CPPFLAGS%g
8835 s%@CXXFLAGS@%$CXXFLAGS%g
8836 s%@FFLAGS@%$FFLAGS%g
8838 s%@LDFLAGS@%$LDFLAGS%g
8840 s%@exec_prefix@%$exec_prefix%g
8841 s%@prefix@%$prefix%g
8842 s%@program_transform_name@%$program_transform_name%g
8843 s%@bindir@%$bindir%g
8844 s%@sbindir@%$sbindir%g
8845 s%@libexecdir@%$libexecdir%g
8846 s%@datadir@%$datadir%g
8847 s%@sysconfdir@%$sysconfdir%g
8848 s%@sharedstatedir@%$sharedstatedir%g
8849 s%@localstatedir@%$localstatedir%g
8850 s%@libdir@%$libdir%g
8851 s%@includedir@%$includedir%g
8852 s%@oldincludedir@%$oldincludedir%g
8853 s%@infodir@%$infodir%g
8854 s%@mandir@%$mandir%g
8856 s%@libgcj_basedir@%$libgcj_basedir%g
8857 s%@mkinstalldirs@%$mkinstalldirs%g
8859 s%@host_alias@%$host_alias%g
8860 s%@host_cpu@%$host_cpu%g
8861 s%@host_vendor@%$host_vendor%g
8862 s%@host_os@%$host_os%g
8863 s%@target@%$target%g
8864 s%@target_alias@%$target_alias%g
8865 s%@target_cpu@%$target_cpu%g
8866 s%@target_vendor@%$target_vendor%g
8867 s%@target_os@%$target_os%g
8869 s%@build_alias@%$build_alias%g
8870 s%@build_cpu@%$build_cpu%g
8871 s%@build_vendor@%$build_vendor%g
8872 s%@build_os@%$build_os%g
8874 s%@glibjava_CXX@%$glibjava_CXX%g
8876 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8877 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8878 s%@INSTALL_DATA@%$INSTALL_DATA%g
8879 s%@PACKAGE@%$PACKAGE%g
8880 s%@VERSION@%$VERSION%g
8881 s%@ACLOCAL@%$ACLOCAL%g
8882 s%@AUTOCONF@%$AUTOCONF%g
8883 s%@AUTOMAKE@%$AUTOMAKE%g
8884 s%@AUTOHEADER@%$AUTOHEADER%g
8885 s%@MAKEINFO@%$MAKEINFO%g
8886 s%@SET_MAKE@%$SET_MAKE%g
8889 s%@RANLIB@%$RANLIB%g
8890 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8891 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8893 s%@EXEEXT@%$EXEEXT%g
8894 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
8895 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
8896 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
8897 s%@INCLTDL@%$INCLTDL%g
8898 s%@LIBLTDL@%$LIBLTDL%g
8899 s%@DIRLTDL@%$DIRLTDL%g
8900 s%@OBJEXT@%$OBJEXT%g
8902 s%@LIBTOOL@%$LIBTOOL%g
8903 s%@CXXCPP@%$CXXCPP%g
8904 s%@subdirs@%$subdirs%g
8905 s%@COMPPATH@%$COMPPATH%g
8906 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
8907 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
8908 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
8909 s%@INTERPRETER@%$INTERPRETER%g
8910 s%@LIBFFI@%$LIBFFI%g
8911 s%@LIBFFIINCS@%$LIBFFIINCS%g
8912 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
8914 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
8915 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
8916 s%@ZLIBSPEC@%$ZLIBSPEC%g
8917 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
8918 s%@X_CFLAGS@%$X_CFLAGS%g
8919 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8920 s%@X_LIBS@%$X_LIBS%g
8921 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8922 s%@TOOLKIT@%$TOOLKIT%g
8923 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
8924 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
8925 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
8926 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
8927 s%@GCLIBS@%$GCLIBS%g
8928 s%@GCINCS@%$GCINCS%g
8929 s%@GCDEPS@%$GCDEPS%g
8930 s%@GCOBJS@%$GCOBJS%g
8931 s%@GCSPEC@%$GCSPEC%g
8932 s%@JC1GCSPEC@%$JC1GCSPEC%g
8933 s%@GCTESTSPEC@%$GCTESTSPEC%g
8934 s%@THREADLIBS@%$THREADLIBS%g
8935 s%@THREADINCS@%$THREADINCS%g
8936 s%@THREADDEPS@%$THREADDEPS%g
8937 s%@THREADOBJS@%$THREADOBJS%g
8938 s%@THREADSPEC@%$THREADSPEC%g
8939 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
8940 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
8941 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
8942 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
8943 s%@tool_include_dir@%$tool_include_dir%g
8944 s%@gcc_version@%$gcc_version%g
8945 s%@LIBICONV@%$LIBICONV%g
8946 s%@PKG_CONFIG@%$PKG_CONFIG%g
8947 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8948 s%@GTK_LIBS@%$GTK_LIBS%g
8949 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8950 s%@GLIB_LIBS@%$GLIB_LIBS%g
8951 s%@GLIB_GENMARSHAL@%$GLIB_GENMARSHAL%g
8952 s%@GOBJECT_QUERY@%$GOBJECT_QUERY%g
8953 s%@GLIB_MKENUMS@%$GLIB_MKENUMS%g
8954 s%@LIBART_CONFIG@%$LIBART_CONFIG%g
8955 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
8956 s%@LIBART_LIBS@%$LIBART_LIBS%g
8958 s%@GCJFLAGS@%$GCJFLAGS%g
8960 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
8962 s%@DIVIDESPEC@%$DIVIDESPEC%g
8963 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
8964 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
8965 s%@IEEESPEC@%$IEEESPEC%g
8966 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
8967 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
8968 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
8969 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
8970 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
8971 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
8972 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
8973 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
8974 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
8975 s%@toolexecdir@%$toolexecdir%g
8976 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
8977 s%@toolexeclibdir@%$toolexeclibdir%g
8978 s%@GCJVERSION@%$GCJVERSION%g
8979 s%@ALLOCA@%$ALLOCA%g
8981 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
8982 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
8988 cat >> $CONFIG_STATUS <<\EOF
8990 # Split the substitutions into bite-sized pieces for seds with
8991 # small command number limits, like on Digital OSF/1 and HP-UX.
8992 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8993 ac_file
=1 # Number of current file.
8994 ac_beg
=1 # First line for current file.
8995 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8998 while $ac_more_lines; do
8999 if test $ac_beg -gt 1; then
9000 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9002 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9004 if test ! -s conftest.s
$ac_file; then
9006 rm -f conftest.s
$ac_file
9008 if test -z "$ac_sed_cmds"; then
9009 ac_sed_cmds
="sed -f conftest.s$ac_file"
9011 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9013 ac_file
=`expr $ac_file + 1`
9015 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9018 if test -z "$ac_sed_cmds"; then
9023 cat >> $CONFIG_STATUS <<EOF
9025 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
9027 cat >> $CONFIG_STATUS <<\EOF
9028 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9029 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9031 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9032 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9033 *) ac_file_in
="${ac_file}.in" ;;
9036 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9038 # Remove last slash and all that follows it. Not all systems have dirname.
9039 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9040 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9041 # The file is in a subdirectory.
9042 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9043 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9044 # A "../" for each directory in $ac_dir_suffix.
9045 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9047 ac_dir_suffix
= ac_dots
=
9050 case "$ac_given_srcdir" in
9052 if test -z "$ac_dots"; then top_srcdir
=.
9053 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9054 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9056 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9057 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9060 case "$ac_given_INSTALL" in
9061 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9062 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9065 echo creating
"$ac_file"
9067 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9069 *Makefile
*) ac_comsub
="1i\\
9070 # $configure_input" ;;
9074 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9076 s%@configure_input@%$configure_input%g
9077 s%@srcdir@%$srcdir%g
9078 s%@top_srcdir@%$top_srcdir%g
9079 s%@INSTALL@%$INSTALL%g
9080 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9084 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9085 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9087 # ac_d sets the value in "#define NAME VALUE" lines.
9088 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9089 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9092 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9093 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9094 ac_uB
='\([ ]\)%\1#\2define\3'
9097 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9098 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9099 ac_eB
='$%\1#\2define\3'
9103 if test "${CONFIG_HEADERS+set}" != set; then
9105 cat >> $CONFIG_STATUS <<EOF
9106 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
9108 cat >> $CONFIG_STATUS <<\EOF
9110 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9111 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9113 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9114 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9115 *) ac_file_in
="${ac_file}.in" ;;
9118 echo creating
$ac_file
9120 rm -f conftest.frag conftest.
in conftest.out
9121 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9122 cat $ac_file_inputs > conftest.
in
9126 # Transform confdefs.h into a sed script conftest.vals that substitutes
9127 # the proper values into config.h.in to produce config.h. And first:
9128 # Protect against being on the right side of a sed subst in config.status.
9129 # Protect against being in an unquoted here document in config.status.
9131 cat > conftest.hdr
<<\EOF
9134 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9138 sed -n -f conftest.hdr confdefs.h > conftest.vals
9141 # This sed command replaces #undef with comments. This is necessary, for
9142 # example, in the case of _POSIX_SOURCE, which is predefined and required
9143 # on some systems where configure will not decide to define it.
9144 cat >> conftest.vals <<\EOF
9145 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9148 # Break up conftest.vals because some shells have a limit on
9149 # the size of here documents, and old seds have small limits too.
9154 ac_lines=`grep -c . conftest.vals
`
9155 # grep -c gives empty output for an empty file on some AIX systems.
9156 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9157 # Write a limited-size here document to conftest.frag.
9158 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9159 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9161 sed -f conftest.frag conftest.in > conftest.out
9163 mv conftest.out conftest.in
9165 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9167 mv conftest.tail conftest.vals
9171 cat >> $CONFIG_STATUS <<\EOF
9172 rm -f conftest.frag conftest.h
9173 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9174 cat conftest.in >> conftest.h
9176 if cmp -s $ac_file conftest.h 2>/dev/null; then
9177 echo "$ac_file is unchanged"
9180 # Remove last slash and all that follows it. Not all systems have dirname.
9181 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9182 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9183 # The file is in a subdirectory.
9184 test ! -d "$ac_dir" && mkdir "$ac_dir"
9187 mv conftest.h $ac_file
9193 cat >> $CONFIG_STATUS <<EOF
9194 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc java/net/natInetAddress${PLATFORMNET}.cc java/net/natNetworkInterface${PLATFORMNET}.cc java/net/natPlainSocketImpl${PLATFORMNET}.cc java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
9195 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc java/net/natInetAddress.cc java/net/natNetworkInterface.cc java/net/natPlainSocketImpl.cc java/net/natPlainDatagramSocketImpl.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
9198 cat >> $CONFIG_STATUS <<\EOF
9199 srcdir=$ac_given_srcdir
9200 while test -n "$ac_sources"; do
9201 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9202 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9204 echo "linking $srcdir/$ac_source to $ac_dest"
9206 if test ! -r $srcdir/$ac_source; then
9207 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9211 # Make relative symlinks.
9212 # Remove last slash and all that follows it. Not all systems have dirname.
9213 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9214 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9215 # The dest file is in a subdirectory.
9216 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9217 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9218 # A "../" for each directory in $ac_dest_dir_suffix.
9219 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9221 ac_dest_dir_suffix= ac_dots=
9225 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9226 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9229 # Make a symlink if possible; otherwise try a hard link.
9230 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9231 ln $srcdir/$ac_source $ac_dest; then :
9233 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9237 cat >> $CONFIG_STATUS <<EOF
9242 with_multisubdir=${with_multisubdir}
9243 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9244 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9245 libgcj_basedir=${libgcj_basedir}
9248 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9251 cat >> $CONFIG_STATUS <<\EOF
9253 for am_file in include/config.h gcj/libgcj-config.h; do
9254 case " $CONFIG_HEADERS " in
9256 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9259 am_indx=`expr "$am_indx" + 1`
9261 # Only add multilib support code if we just rebuilt top-level Makefile.
9262 case " $CONFIG_FILES " in
9264 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9265 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9269 # Make subdirectories and `.d
' files. Look in both srcdir and
9270 # builddir for the .java files.
9273 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) ;
9274 find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) | \
9275 fgrep -v testsuite | \
9276 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/'\;'s
/\.c
/.d
/' | \
9278 echo "include $f" >> deps.mk
9281 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
9283 if test ! -d $d; then
9284 $libgcj_basedir/../mkinstalldirs $d
9292 chmod +x $CONFIG_STATUS
9293 rm -fr confdefs* $ac_clean_files
9294 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9296 if test "$no_recursion" != yes; then
9298 # Remove --cache-file and --srcdir arguments so they do not pile up.
9299 ac_sub_configure_args=
9301 for ac_arg in $ac_configure_args; do
9302 if test -n "$ac_prev"; then
9307 -cache-file | --cache-file | --cache-fil | --cache-fi \
9308 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9309 ac_prev=cache_file ;;
9310 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9311 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9313 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9315 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9317 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9321 for ac_config_dir in $DIRLTDL; do
9323 # Do not complain, so a configure script can configure whichever
9324 # parts of a large source tree are present.
9325 if test ! -d $srcdir/$ac_config_dir; then
9329 echo configuring in $ac_config_dir
9334 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9336 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9344 # A "../" for each directory in /$ac_config_dir.
9345 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
9348 .) # No --srcdir option. We are building in place.
9349 ac_sub_srcdir=$srcdir ;;
9350 /*) # Absolute path.
9351 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9353 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9356 # Check for guested configure; otherwise get Cygnus style configure.
9357 if test -f $ac_sub_srcdir/configure; then
9358 ac_sub_configure=$ac_sub_srcdir/configure
9359 elif test -f $ac_sub_srcdir/configure.in; then
9360 ac_sub_configure=$ac_configure
9362 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9366 # The recursion is here.
9367 if test -n "$ac_sub_configure"; then
9369 # Make the cache file name correct relative to the subdirectory.
9370 case "$cache_file" in
9371 /*) ac_sub_cache_file=$cache_file ;;
9373 ac_sub_cache_file="$ac_dots$cache_file" ;;
9375 case "$ac_given_INSTALL" in
9376 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9377 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9380 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9381 # The eval makes quoting arguments work.
9382 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9385 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }