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-version-specific-runtime-libs
23 specify that runtime libraries should be installed in a compiler-specific
26 --enable-multilib build many library versions (default)"
28 --enable-maintainer-mode enable make rules and dependencies not useful
29 (and sometimes confusing) to the casual installer"
31 --enable-shared[=PKGS] build shared libraries [default=yes]"
33 --enable-static[=PKGS] build static libraries [default=yes]"
35 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
37 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
39 --disable-libtool-lock avoid locking (might break parallel builds)"
41 --with-pic try to use only PIC/non-PIC objects [default=use both]"
43 --disable-getenv-properties
44 don't set system properties from GCJ_PROPERTIES"
46 --enable-hash-synchronization
47 use global hash table for monitor locks"
49 --enable-libgcj-multifile
50 allow compilation of several files at once"
52 --with-win32-nlsapi=ansi, unicows or unicode
53 native MinGW libgcj Win32 OS API [ansi]"
55 --enable-libgcj-debug enable runtime debugging code"
57 --enable-interpreter enable interpreter"
59 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
61 --disable-java-net disable java.net"
63 --without-libffi don't use libffi"
65 --disable-jvmpi disable JVMPI support"
67 --with-ecos enable runtime eCos target support"
69 --with-system-zlib use installed libz"
71 --with-x use the X Window System"
73 --enable-java-awt list of AWT peer implementations to be built"
75 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK"
77 --enable-java-gc=TYPE choose garbage collector [boehm]"
79 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
85 cache_file
=.
/config.cache
94 program_transform_name
=s
,x
,x
,
102 bindir
='${exec_prefix}/bin'
103 sbindir
='${exec_prefix}/sbin'
104 libexecdir
='${exec_prefix}/libexec'
105 datadir
='${prefix}/share'
106 sysconfdir
='${prefix}/etc'
107 sharedstatedir
='${prefix}/com'
108 localstatedir
='${prefix}/var'
109 libdir
='${exec_prefix}/lib'
110 includedir
='${prefix}/include'
111 oldincludedir
='/usr/include'
112 infodir
='${prefix}/info'
113 mandir
='${prefix}/man'
115 # Initialize some other variables.
118 SHELL
=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
134 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 # Accept the important Cygnus configure options, so we can diagnose typos.
142 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
144 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
145 bindir
="$ac_optarg" ;;
147 -build |
--build |
--buil |
--bui |
--bu)
149 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
150 build
="$ac_optarg" ;;
152 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
153 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
154 ac_prev
=cache_file
;;
155 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
156 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
157 cache_file
="$ac_optarg" ;;
159 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
161 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
163 datadir
="$ac_optarg" ;;
165 -disable-* |
--disable-*)
166 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* |
--enable-*)
175 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
188 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
189 |
--exec |
--exe |
--ex)
190 ac_prev
=exec_prefix
;;
191 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
192 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
193 |
--exec=* |
--exe=* |
--ex=*)
194 exec_prefix
="$ac_optarg" ;;
196 -gas |
--gas |
--ga |
--g)
197 # Obsolete; use --with-gas.
200 -help |
--help |
--hel |
--he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
255 -host |
--host |
--hos |
--ho)
257 -host=* |
--host=* |
--hos=* |
--ho=*)
260 -includedir |
--includedir |
--includedi |
--included |
--include \
261 |
--includ |
--inclu |
--incl |
--inc)
262 ac_prev
=includedir
;;
263 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
264 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
265 includedir
="$ac_optarg" ;;
267 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
269 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
270 infodir
="$ac_optarg" ;;
272 -libdir |
--libdir |
--libdi |
--libd)
274 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
275 libdir
="$ac_optarg" ;;
277 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
278 |
--libexe |
--libex |
--libe)
279 ac_prev
=libexecdir
;;
280 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
281 |
--libexe=* |
--libex=* |
--libe=*)
282 libexecdir
="$ac_optarg" ;;
284 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
285 |
--localstate |
--localstat |
--localsta |
--localst \
286 |
--locals |
--local |
--loca |
--loc |
--lo)
287 ac_prev
=localstatedir
;;
288 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
289 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
290 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
291 localstatedir
="$ac_optarg" ;;
293 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
295 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
296 mandir
="$ac_optarg" ;;
299 # Obsolete; use --without-fp.
302 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
306 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
307 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
310 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
311 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
312 |
--oldin |
--oldi |
--old |
--ol |
--o)
313 ac_prev
=oldincludedir
;;
314 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
315 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
316 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
317 oldincludedir
="$ac_optarg" ;;
319 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
321 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
322 prefix
="$ac_optarg" ;;
324 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
325 |
--program-pre |
--program-pr |
--program-p)
326 ac_prev
=program_prefix
;;
327 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
328 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
329 program_prefix
="$ac_optarg" ;;
331 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
332 |
--program-suf |
--program-su |
--program-s)
333 ac_prev
=program_suffix
;;
334 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
335 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
336 program_suffix
="$ac_optarg" ;;
338 -program-transform-name |
--program-transform-name \
339 |
--program-transform-nam |
--program-transform-na \
340 |
--program-transform-n |
--program-transform- \
341 |
--program-transform |
--program-transfor \
342 |
--program-transfo |
--program-transf \
343 |
--program-trans |
--program-tran \
344 |
--progr-tra |
--program-tr |
--program-t)
345 ac_prev
=program_transform_name
;;
346 -program-transform-name=* |
--program-transform-name=* \
347 |
--program-transform-nam=* |
--program-transform-na=* \
348 |
--program-transform-n=* |
--program-transform-=* \
349 |
--program-transform=* |
--program-transfor=* \
350 |
--program-transfo=* |
--program-transf=* \
351 |
--program-trans=* |
--program-tran=* \
352 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
353 program_transform_name
="$ac_optarg" ;;
355 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
356 |
-silent |
--silent |
--silen |
--sile |
--sil)
359 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
361 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
363 sbindir
="$ac_optarg" ;;
365 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
366 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
367 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
369 ac_prev
=sharedstatedir
;;
370 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
371 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
372 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
374 sharedstatedir
="$ac_optarg" ;;
376 -site |
--site |
--sit)
378 -site=* |
--site=* |
--sit=*)
381 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
383 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
384 srcdir
="$ac_optarg" ;;
386 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
387 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
388 ac_prev
=sysconfdir
;;
389 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
390 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
391 sysconfdir
="$ac_optarg" ;;
393 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
395 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
396 target
="$ac_optarg" ;;
398 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
401 -version |
--version |
--versio |
--versi |
--vers)
402 echo "configure generated by autoconf version 2.13"
406 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package
=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* |
--without-*)
419 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
432 |
--x-incl |
--x-inc |
--x-in |
--x-i)
433 ac_prev
=x_includes
;;
434 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
435 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
436 x_includes
="$ac_optarg" ;;
438 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
439 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
440 ac_prev
=x_libraries
;;
441 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
442 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
443 x_libraries
="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE
; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
493 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
494 |
--no-cr |
--no-c) ;;
495 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
496 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
497 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest
* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file
=java
/lang
/System.java
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted
=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted
=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE
; then
548 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
550 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file
in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
564 echo "creating cache $cache_file"
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp
='$CPP $CPPFLAGS'
571 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling
=$ac_cv_prog_cc_cross
577 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
586 ac_n
= ac_c
='\c' ac_t
=
591 # Check whether --with-target-subdir or --without-target-subdir was given.
592 if test "${with_target_subdir+set}" = set; then
593 withval
="$with_target_subdir"
599 # When building with srcdir == objdir, links to the source files will
600 # be created in directories within the target_subdir. We have to
601 # adjust toplevel_srcdir accordingly, so that configure finds
602 # install-sh and other auxiliary files that live in the top-level
604 if test "${srcdir}" = "."; then
605 if test -z "${with_target_subdir}"; then
608 if test "${with_target_subdir}" != "."; then
609 toprel
="${with_multisrctop}../.."
611 toprel
="${with_multisrctop}.."
618 libgcj_basedir
=$srcdir/$toprel/.
/libjava
622 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
623 if test -f $ac_dir/install-sh
; then
625 ac_install_sh
="$ac_aux_dir/install-sh -c"
627 elif test -f $ac_dir/install.sh
; then
629 ac_install_sh
="$ac_aux_dir/install.sh -c"
633 if test -z "$ac_aux_dir"; then
634 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
636 ac_config_guess=$ac_aux_dir/config.guess
637 ac_config_sub=$ac_aux_dir/config.sub
638 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
641 # This overrides the previous occurrence for automake, but not for
642 # autoconf, which is exactly what we want.
644 for ac_dir in .. $srcdir/..; do
645 if test -f $ac_dir/install-sh; then
647 ac_install_sh="$ac_aux_dir/install-sh
-c"
649 elif test -f $ac_dir/install.sh; then
651 ac_install_sh="$ac_aux_dir/install.sh
-c"
655 if test -z "$ac_aux_dir"; then
656 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
658 ac_config_guess=$ac_aux_dir/config.guess
659 ac_config_sub=$ac_aux_dir/config.sub
660 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
665 # Do some error checking and defaulting for the host and target type.
667 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 # 1. You are not allowed to specify --host, --target, and nonopt at the
672 # 2. Host defaults to nonopt.
673 # 3. If nonopt is not specified, then host defaults to the current host,
674 # as determined by config.guess.
675 # 4. Target and build default to nonopt.
676 # 5. If nonopt is not specified, then target and build default to host.
678 # The aliases save the names the user supplied, while $host etc.
679 # will get canonicalized.
680 case $host---$target---$nonopt in
681 NONE---*---* | *---NONE---* | *---*---NONE) ;;
682 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
686 # Make sure we can run config.sub.
687 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
688 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
691 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
692 echo "configure
:693: checking
host system
type" >&5
695 case "$host_alias" in
699 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
700 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
702 *) host_alias=$nonopt ;;
706 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
707 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$host" 1>&6
712 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
713 echo "configure
:714: checking target system
type" >&5
716 case "$target_alias" in
719 NONE) target_alias=$host_alias ;;
720 *) target_alias=$nonopt ;;
724 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
725 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$target" 1>&6
730 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
731 echo "configure
:732: checking build system
type" >&5
734 case "$build_alias" in
737 NONE) build_alias=$host_alias ;;
738 *) build_alias=$nonopt ;;
742 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
743 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
744 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
745 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo "$ac_t""$build" 1>&6
748 test "$host_alias" != "$target_alias" &&
749 test "$program_prefix$program_suffix$program_transform_name" = \
751 program_prefix=${target_alias}-
753 case ${build_alias} in
754 "") build_noncanonical=${build} ;;
755 *) build_noncanonical=${build_alias} ;;
758 case ${host_alias} in
759 "") host_noncanonical=${build_noncanonical} ;;
760 *) host_noncanonical=${host_alias} ;;
763 case ${target_alias} in
764 "") target_noncanonical=${host_noncanonical} ;;
765 *) target_noncanonical=${target_alias} ;;
771 # This works around the fact that libtool configuration may change LD
772 # for this particular configuration, but some shells, instead of
773 # keeping the changes in LD private, export them just because LD is
775 ORIGINAL_LD_FOR_MULTILIBS=$LD
777 echo $ac_n "checking whether
ln -s works
""...
$ac_c" 1>&6
778 echo "configure
:779: checking whether
ln -s works
" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
780 echo $ac_n "(cached
) $ac_c" 1>&6
783 if ln -s X conftestdata 2>/dev/null
786 ac_cv_prog_LN_S="ln -s"
791 LN_S="$ac_cv_prog_LN_S"
792 if test "$ac_cv_prog_LN_S" = "ln -s"; then
793 echo "$ac_t""yes" 1>&6
795 echo "$ac_t""no
" 1>&6
799 # This works around an automake problem.
800 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs
"
803 # Check whether --with-cross-host or --without-cross-host was given.
804 if test "${with_cross_host+set}" = set; then
805 withval="$with_cross_host"
810 # Check whether --with-newlib or --without-newlib was given.
811 if test "${with_newlib+set}" = set; then
812 withval="$with_newlib"
817 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
818 if test "${enable_version_specific_runtime_libs+set}" = set; then
819 enableval="$enable_version_specific_runtime_libs"
821 yes) version_specific_libs=yes ;;
822 no) version_specific_libs=no ;;
823 *) { echo "configure
: error
: Unknown argument to enable
/disable version-specific libs
" 1>&2; exit 1; };;
826 version_specific_libs=no
831 # Check whether --enable-multilib or --disable-multilib was given.
832 if test "${enable_multilib+set}" = set; then
833 enableval="$enable_multilib"
834 case "${enableval}" in
837 *) { echo "configure
: error
: bad value
${enableval} for multilib option
" 1>&2; exit 1; } ;;
846 # Extract the first word of "gcc
", so it can be a program name with args.
847 set dummy gcc; ac_word=$2
848 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
849 echo "configure
:850: checking
for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached
) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
869 if test -n "$CC"; then
870 echo "$ac_t""$CC" 1>&6
872 echo "$ac_t""no
" 1>&6
875 if test -z "$CC"; then
876 # Extract the first word of "cc
", so it can be a program name with args.
877 set dummy cc; ac_word=$2
878 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
879 echo "configure
:880: checking
for $ac_word" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
881 echo $ac_n "(cached
) $ac_c" 1>&6
883 if test -n "$CC"; then
884 ac_cv_prog_CC="$CC" # Let the user override the test.
886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
889 for ac_dir in $ac_dummy; do
890 test -z "$ac_dir" && ac_dir=.
891 if test -f $ac_dir/$ac_word; then
892 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
901 if test $ac_prog_rejected = yes; then
902 # We found a bogon in the path, so make sure we never use it.
903 set dummy $ac_cv_prog_CC
905 if test $# -gt 0; then
906 # We chose a different compiler from the bogus one.
907 # However, it has the same basename, so the bogon will be chosen
908 # first if we set CC to just the basename; use the full file name.
910 set dummy "$ac_dir/$ac_word" "$@
"
918 if test -n "$CC"; then
919 echo "$ac_t""$CC" 1>&6
921 echo "$ac_t""no
" 1>&6
924 if test -z "$CC"; then
927 # Extract the first word of "cl
", so it can be a program name with args.
928 set dummy cl; ac_word=$2
929 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
930 echo "configure
:931: checking
for $ac_word" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
932 echo $ac_n "(cached
) $ac_c" 1>&6
934 if test -n "$CC"; then
935 ac_cv_prog_CC="$CC" # Let the user override the test.
937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
939 for ac_dir in $ac_dummy; do
940 test -z "$ac_dir" && ac_dir=.
941 if test -f $ac_dir/$ac_word; then
950 if test -n "$CC"; then
951 echo "$ac_t""$CC" 1>&6
953 echo "$ac_t""no
" 1>&6
958 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
962 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
963 echo "configure
:964: checking whether we are using GNU C
" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
965 echo $ac_n "(cached
) $ac_c" 1>&6
967 cat > conftest.c <<EOF
972 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
979 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
981 if test $ac_cv_prog_gcc = yes; then
987 ac_test_CFLAGS="${CFLAGS+set}"
988 ac_save_CFLAGS="$CFLAGS"
990 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
991 echo "configure
:992: checking whether
${CC-cc} accepts
-g" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
993 echo $ac_n "(cached
) $ac_c" 1>&6
995 echo 'void f(){}' > conftest.c
996 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1005 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1006 if test "$ac_test_CFLAGS" = set; then
1007 CFLAGS="$ac_save_CFLAGS"
1008 elif test $ac_cv_prog_cc_g = yes; then
1009 if test "$GCC" = yes; then
1015 if test "$GCC" = yes; then
1023 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1024 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1025 # different definition of CXX than other directories, since we don't
1026 # depend on libstdc++-v3 having already been built.
1030 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1031 # flags that come in CXX while configuring libjava. They're different
1032 # from those used for all other target libraries. If CXX is set in
1033 # the environment, respect that here.
1035 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1037 # Extract the first word of "$ac_prog", so it can be a program name with args.
1038 set dummy $ac_prog; ac_word=$2
1039 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1040 echo "configure
:1041: checking
for $ac_word" >&5
1041 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1042 echo $ac_n "(cached
) $ac_c" 1>&6
1044 if test -n "$glibjava_CXX"; then
1045 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1052 ac_cv_prog_glibjava_CXX="$ac_prog"
1059 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1060 if test -n "$glibjava_CXX"; then
1061 echo "$ac_t""$glibjava_CXX" 1>&6
1063 echo "$ac_t""no
" 1>&6
1066 test -n "$glibjava_CXX" && break
1068 test -n "$glibjava_CXX" || glibjava_CXX="gcc
"
1072 test -z "$glibjava_CXX" && { echo "configure
: error
: no acceptable c
++ found
in \
$PATH" 1>&2; exit 1; }
1074 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1075 echo "configure
:1076: checking whether we are using GNU C
++" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1077 echo $ac_n "(cached
) $ac_c" 1>&6
1079 cat > conftest.C <<EOF
1084 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1091 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1093 if test $ac_cv_prog_gxx = yes; then
1095 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1096 ac_save_CXXFLAGS="$CXXFLAGS"
1098 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1099 echo "configure
:1100: checking whether
${CXX-g++} accepts
-g" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1101 echo $ac_n "(cached
) $ac_c" 1>&6
1103 echo 'void f(){}' > conftest.cc
1104 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1105 ac_cv_prog_cxx_g=yes
1113 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1114 if test "$ac_test_CXXFLAGS" = set; then
1115 CXXFLAGS="$ac_save_CXXFLAGS"
1116 elif test $ac_cv_prog_cxx_g = yes; then
1123 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1128 # Find a good install program. We prefer a C program (faster),
1129 # so one script is as good as another. But avoid the broken or
1130 # incompatible versions:
1131 # SysV /etc/install, /usr/sbin/install
1132 # SunOS /usr/etc/install
1133 # IRIX /sbin/install
1135 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1138 # ./install, which can be erroneously created by make from ./install.sh.
1139 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1140 echo "configure
:1141: checking
for a BSD compatible
install" >&5
1141 if test -z "$INSTALL"; then
1142 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1143 echo $ac_n "(cached
) $ac_c" 1>&6
1145 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1146 for ac_dir in $PATH; do
1147 # Account for people who put trailing slashes in PATH elements.
1149 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1151 # OSF1 and SCO ODT 3.0 have their own names for install.
1152 # Don't use installbsd from OSF since it installs stuff as root
1154 for ac_prog in ginstall scoinst install; do
1155 if test -f $ac_dir/$ac_prog; then
1156 if test $ac_prog = install &&
1157 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1158 # AIX install. It has an incompatible calling convention.
1161 ac_cv_path_install="$ac_dir/$ac_prog -c"
1172 if test "${ac_cv_path_install+set}" = set; then
1173 INSTALL="$ac_cv_path_install"
1175 # As a last resort, use the slow shell script. We don't cache a
1176 # path for INSTALL within a source directory, because that will
1177 # break other packages using the cache if that directory is
1178 # removed, or if the path is relative.
1179 INSTALL="$ac_install_sh"
1182 echo "$ac_t""$INSTALL" 1>&6
1184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1185 # It thinks the first close brace ends the variable substitution.
1186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1190 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1192 echo $ac_n "checking whether build environment is sane
""...
$ac_c" 1>&6
1193 echo "configure
:1194: checking whether build environment is sane
" >&5
1196 echo timestamp > conftestfile
1197 # Do `set' in a subshell so we don't clobber the current shell's
1198 # arguments. Must try -L first in case configure is actually a
1199 # symlink; some systems play weird games with the mod time of symlinks
1200 # (eg FreeBSD returns the mod time of the symlink's containing
1203 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1204 if test "$
*" = "X
"; then
1206 set X `ls -t $srcdir/configure conftestfile`
1208 if test "$
*" != "X
$srcdir/configure conftestfile
" \
1209 && test "$
*" != "X conftestfile
$srcdir/configure
"; then
1211 # If neither matched, then we have a broken ls. This can happen
1212 # if, for instance, CONFIG_SHELL is bash and it inherits a
1213 # broken ls alias from the environment. This has actually
1214 # happened. Such a system could not be considered "sane
".
1215 { echo "configure
: error
: ls -t appears to fail. Make sure there is not a broken
1216 alias in your environment
" 1>&2; exit 1; }
1219 test "$2" = conftestfile
1225 { echo "configure
: error
: newly created
file is older than distributed files
!
1226 Check your system
clock" 1>&2; exit 1; }
1229 echo "$ac_t""yes" 1>&6
1230 if test "$program_transform_name" = s,x,x,; then
1231 program_transform_name=
1233 # Double any \ or $. echo might interpret backslashes.
1234 cat <<\EOF_SED > conftestsed
1235 s,\\,\\\\,g; s,\$,$$,g
1237 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1240 test "$program_prefix" != NONE &&
1241 program_transform_name="s
,^
,${program_prefix},; $program_transform_name"
1242 # Use a double $ so make ignores it.
1243 test "$program_suffix" != NONE &&
1244 program_transform_name="s
,\$\$
,${program_suffix},; $program_transform_name"
1246 # sed with no file args requires a program.
1247 test "$program_transform_name" = "" && program_transform_name="s
,x
,x
,"
1249 echo $ac_n "checking whether
${MAKE-make} sets \
${MAKE}""...
$ac_c" 1>&6
1250 echo "configure
:1251: checking whether
${MAKE-make} sets \
${MAKE}" >&5
1251 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1252 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1253 echo $ac_n "(cached
) $ac_c" 1>&6
1255 cat > conftestmake <<\EOF
1257 @echo 'ac_maketemp="${MAKE}"'
1259 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
1260 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1261 if test -n "$ac_maketemp"; then
1262 eval ac_cv_prog_make_${ac_make}_set=yes
1264 eval ac_cv_prog_make_${ac_make}_set=no
1268 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1269 echo "$ac_t""yes" 1>&6
1272 echo "$ac_t""no
" 1>&6
1273 SET_MAKE="MAKE
=${MAKE-make}"
1281 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1282 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1284 cat >> confdefs.h <<EOF
1285 #define PACKAGE "$PACKAGE"
1288 cat >> confdefs.h <<EOF
1289 #define VERSION "$VERSION"
1294 missing_dir=`cd $ac_aux_dir && pwd`
1295 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
1296 echo "configure
:1297: checking
for working aclocal
" >&5
1297 # Run test in a subshell; some versions of sh will print an error if
1298 # an executable is not found, even if stderr is redirected.
1299 # Redirect stdin to placate older versions of autoconf. Sigh.
1300 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1302 echo "$ac_t""found
" 1>&6
1304 ACLOCAL="$missing_dir/missing aclocal
"
1305 echo "$ac_t""missing
" 1>&6
1308 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1309 echo "configure
:1310: checking
for working autoconf
" >&5
1310 # Run test in a subshell; some versions of sh will print an error if
1311 # an executable is not found, even if stderr is redirected.
1312 # Redirect stdin to placate older versions of autoconf. Sigh.
1313 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1315 echo "$ac_t""found
" 1>&6
1317 AUTOCONF="$missing_dir/missing autoconf
"
1318 echo "$ac_t""missing
" 1>&6
1321 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
1322 echo "configure
:1323: checking
for working automake
" >&5
1323 # Run test in a subshell; some versions of sh will print an error if
1324 # an executable is not found, even if stderr is redirected.
1325 # Redirect stdin to placate older versions of autoconf. Sigh.
1326 if (automake --version) < /dev/null > /dev/null 2>&1; then
1328 echo "$ac_t""found
" 1>&6
1330 AUTOMAKE="$missing_dir/missing automake
"
1331 echo "$ac_t""missing
" 1>&6
1334 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1335 echo "configure
:1336: checking
for working autoheader
" >&5
1336 # Run test in a subshell; some versions of sh will print an error if
1337 # an executable is not found, even if stderr is redirected.
1338 # Redirect stdin to placate older versions of autoconf. Sigh.
1339 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1340 AUTOHEADER=autoheader
1341 echo "$ac_t""found
" 1>&6
1343 AUTOHEADER="$missing_dir/missing autoheader
"
1344 echo "$ac_t""missing
" 1>&6
1347 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1348 echo "configure
:1349: checking
for working makeinfo
" >&5
1349 # Run test in a subshell; some versions of sh will print an error if
1350 # an executable is not found, even if stderr is redirected.
1351 # Redirect stdin to placate older versions of autoconf. Sigh.
1352 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1354 echo "$ac_t""found
" 1>&6
1356 MAKEINFO="$missing_dir/missing makeinfo
"
1357 echo "$ac_t""missing
" 1>&6
1362 if test $host != $build; then
1363 ac_tool_prefix=${host_alias}-
1368 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1369 set dummy ${ac_tool_prefix}as; ac_word=$2
1370 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1371 echo "configure
:1372: checking
for $ac_word" >&5
1372 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1373 echo $ac_n "(cached
) $ac_c" 1>&6
1375 if test -n "$AS"; then
1376 ac_cv_prog_AS="$AS" # Let the user override the test.
1378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1380 for ac_dir in $ac_dummy; do
1381 test -z "$ac_dir" && ac_dir=.
1382 if test -f $ac_dir/$ac_word; then
1383 ac_cv_prog_AS="${ac_tool_prefix}as
"
1388 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1392 if test -n "$AS"; then
1393 echo "$ac_t""$AS" 1>&6
1395 echo "$ac_t""no
" 1>&6
1400 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}ar; ac_word=$2
1402 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1403 echo "configure
:1404: checking
for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1405 echo $ac_n "(cached
) $ac_c" 1>&6
1407 if test -n "$AR"; then
1408 ac_cv_prog_AR="$AR" # Let the user override the test.
1410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1412 for ac_dir in $ac_dummy; do
1413 test -z "$ac_dir" && ac_dir=.
1414 if test -f $ac_dir/$ac_word; then
1415 ac_cv_prog_AR="${ac_tool_prefix}ar"
1420 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1424 if test -n "$AR"; then
1425 echo "$ac_t""$AR" 1>&6
1427 echo "$ac_t""no
" 1>&6
1432 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1434 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1435 echo "configure
:1436: checking
for $ac_word" >&5
1436 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1437 echo $ac_n "(cached
) $ac_c" 1>&6
1439 if test -n "$RANLIB"; then
1440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1444 for ac_dir in $ac_dummy; do
1445 test -z "$ac_dir" && ac_dir=.
1446 if test -f $ac_dir/$ac_word; then
1447 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1454 RANLIB="$ac_cv_prog_RANLIB"
1455 if test -n "$RANLIB"; then
1456 echo "$ac_t""$RANLIB" 1>&6
1458 echo "$ac_t""no
" 1>&6
1462 if test -z "$ac_cv_prog_RANLIB"; then
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "ranlib
", so it can be a program name with args.
1465 set dummy ranlib; ac_word=$2
1466 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1467 echo "configure
:1468: checking
for $ac_word" >&5
1468 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1469 echo $ac_n "(cached
) $ac_c" 1>&6
1471 if test -n "$RANLIB"; then
1472 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1476 for ac_dir in $ac_dummy; do
1477 test -z "$ac_dir" && ac_dir=.
1478 if test -f $ac_dir/$ac_word; then
1479 ac_cv_prog_RANLIB="ranlib
"
1484 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1487 RANLIB="$ac_cv_prog_RANLIB"
1488 if test -n "$RANLIB"; then
1489 echo "$ac_t""$RANLIB" 1>&6
1491 echo "$ac_t""no
" 1>&6
1500 # Find a good install program. We prefer a C program (faster),
1501 # so one script is as good as another. But avoid the broken or
1502 # incompatible versions:
1503 # SysV /etc/install, /usr/sbin/install
1504 # SunOS /usr/etc/install
1505 # IRIX /sbin/install
1507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1510 # ./install, which can be erroneously created by make from ./install.sh.
1511 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1512 echo "configure
:1513: checking
for a BSD compatible
install" >&5
1513 if test -z "$INSTALL"; then
1514 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1515 echo $ac_n "(cached
) $ac_c" 1>&6
1517 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1518 for ac_dir in $PATH; do
1519 # Account for people who put trailing slashes in PATH elements.
1521 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1523 # OSF1 and SCO ODT 3.0 have their own names for install.
1524 # Don't use installbsd from OSF since it installs stuff as root
1526 for ac_prog in ginstall scoinst install; do
1527 if test -f $ac_dir/$ac_prog; then
1528 if test $ac_prog = install &&
1529 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1530 # AIX install. It has an incompatible calling convention.
1533 ac_cv_path_install="$ac_dir/$ac_prog -c"
1544 if test "${ac_cv_path_install+set}" = set; then
1545 INSTALL="$ac_cv_path_install"
1547 # As a last resort, use the slow shell script. We don't cache a
1548 # path for INSTALL within a source directory, because that will
1549 # break other packages using the cache if that directory is
1550 # removed, or if the path is relative.
1551 INSTALL="$ac_install_sh"
1554 echo "$ac_t""$INSTALL" 1>&6
1556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1557 # It thinks the first close brace ends the variable substitution.
1558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1565 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1566 echo "configure
:1567: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1567 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1568 if test "${enable_maintainer_mode+set}" = set; then
1569 enableval="$enable_maintainer_mode"
1570 USE_MAINTAINER_MODE=$enableval
1572 USE_MAINTAINER_MODE=no
1575 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1578 if test $USE_MAINTAINER_MODE = yes; then
1579 MAINTAINER_MODE_TRUE=
1580 MAINTAINER_MODE_FALSE='#'
1582 MAINTAINER_MODE_TRUE='#'
1583 MAINTAINER_MODE_FALSE=
1585 MAINT=$MAINTAINER_MODE_TRUE
1589 echo $ac_n "checking
for Cygwin environment
""...
$ac_c" 1>&6
1590 echo "configure
:1591: checking
for Cygwin environment
" >&5
1591 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1592 echo $ac_n "(cached
) $ac_c" 1>&6
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure
"
1596 #include "confdefs.h
"
1601 #define __CYGWIN__ __CYGWIN32__
1606 if { (eval echo configure:1607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 echo "configure
: failed program was
:" >&5
1611 cat conftest.$ac_ext >&5
1619 echo "$ac_t""$ac_cv_cygwin" 1>&6
1621 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1622 echo $ac_n "checking
for mingw32 environment
""...
$ac_c" 1>&6
1623 echo "configure
:1624: checking
for mingw32 environment
" >&5
1624 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1625 echo $ac_n "(cached
) $ac_c" 1>&6
1627 cat > conftest.$ac_ext <<EOF
1628 #line 1629 "configure
"
1629 #include "confdefs.h
"
1635 if { (eval echo configure:1636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1639 echo "configure
: failed program was
:" >&5
1640 cat conftest.$ac_ext >&5
1648 echo "$ac_t""$ac_cv_mingw32" 1>&6
1650 test "$ac_cv_mingw32" = yes && MINGW32=yes
1653 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1654 echo "configure
:1655: checking
for executable suffix
" >&5
1655 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1656 echo $ac_n "(cached
) $ac_c" 1>&6
1658 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1662 echo 'int main () { return 0; }' > conftest.$ac_ext
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1665 for file in conftest.*; do
1667 *.c | *.o | *.obj) ;;
1668 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1672 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1675 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1680 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1681 echo "$ac_t""${ac_cv_exeext}" 1>&6
1685 # configure.host sets the following important variables
1686 # libgcj_cflags - host specific C compiler flags
1687 # libgcj_cxxflags - host specific C++ compiler flags
1688 # libgcj_javaflags - host specific Java compiler flags
1694 . ${srcdir}/configure.host
1696 LIBGCJ_CFLAGS="${libgcj_cflags}"
1697 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1698 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1707 # Only use libltdl for non-newlib builds.
1708 if test "x
${with_newlib}" = "x
" || test "x
${with_newlib}" = "xno
"; then
1709 case $enable_ltdl_convenience in
1710 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1711 "") enable_ltdl_convenience=yes
1712 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1714 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1715 INCLTDL='-I${top_srcdir}/''libltdl'
1719 cat >> confdefs.h <<\EOF
1723 # Sigh. Libtool's macro doesn't do the right thing.
1724 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1725 # FIXME: this is a hack.
1726 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1727 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1732 # Check whether --enable-shared or --disable-shared was given.
1733 if test "${enable_shared+set}" = set; then
1734 enableval="$enable_shared"
1735 p=${PACKAGE-default}
1737 yes) enable_shared=yes ;;
1738 no) enable_shared=no ;;
1741 # Look at the argument we got. We use all the common list separators.
1742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1743 for pkg in $enableval; do
1744 if test "X
$pkg" = "X
$p"; then
1755 # Check whether --enable-static or --disable-static was given.
1756 if test "${enable_static+set}" = set; then
1757 enableval="$enable_static"
1758 p=${PACKAGE-default}
1760 yes) enable_static=yes ;;
1761 no) enable_static=no ;;
1764 # Look at the argument we got. We use all the common list separators.
1765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1766 for pkg in $enableval; do
1767 if test "X
$pkg" = "X
$p"; then
1778 # Check whether --enable-fast-install or --disable-fast-install was given.
1779 if test "${enable_fast_install+set}" = set; then
1780 enableval="$enable_fast_install"
1781 p=${PACKAGE-default}
1783 yes) enable_fast_install=yes ;;
1784 no) enable_fast_install=no ;;
1786 enable_fast_install=no
1787 # Look at the argument we got. We use all the common list separators.
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1789 for pkg in $enableval; do
1790 if test "X
$pkg" = "X
$p"; then
1791 enable_fast_install=yes
1798 enable_fast_install=yes
1801 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1802 if test "${with_gnu_ld+set}" = set; then
1803 withval="$with_gnu_ld"
1804 test "$withval" = no || with_gnu_ld=yes
1810 if test "$GCC" = yes; then
1811 # Check if gcc -print-prog-name=ld gives a path.
1812 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1813 echo "configure
:1814: checking
for ld used by GCC
" >&5
1816 # gcc leaves a trailing carriage return which upsets mingw
1817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1822 # Accept absolute paths.
1823 [\\/]* | [A-Za-z]:[\\/]*)
1824 re_direlt='/[^/][^/]*/\.\./'
1825 # Canonicalize the path of ld
1826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1828 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1830 test -z "$LD" && LD="$ac_prog"
1833 # If it fails, then pretend we aren't using GCC.
1837 # If it is relative, then search for the first ld in PATH.
1841 elif test "$with_gnu_ld" = yes; then
1842 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1843 echo "configure
:1844: checking
for GNU ld
" >&5
1845 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1846 echo "configure
:1847: checking
for non-GNU ld
" >&5
1848 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1849 echo $ac_n "(cached
) $ac_c" 1>&6
1851 if test -z "$LD"; then
1852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1853 for ac_dir in $PATH; do
1854 test -z "$ac_dir" && ac_dir=.
1855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1856 lt_cv_path_LD="$ac_dir/$ac_prog"
1857 # Check to see if the program is GNU ld. I'd rather use --version,
1858 # but apparently some GNU ld's only accept -v.
1859 # Break only if it was the GNU/non-GNU ld that we prefer.
1860 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1861 test "$with_gnu_ld" != no && break
1863 test "$with_gnu_ld" != yes && break
1869 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1874 if test -n "$LD"; then
1875 echo "$ac_t""$LD" 1>&6
1877 echo "$ac_t""no
" 1>&6
1879 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1880 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1881 echo "configure
:1882: checking
if the linker
($LD) is GNU ld
" >&5
1882 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1883 echo $ac_n "(cached
) $ac_c" 1>&6
1885 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1886 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1887 lt_cv_prog_gnu_ld=yes
1889 lt_cv_prog_gnu_ld=no
1893 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1894 with_gnu_ld=$lt_cv_prog_gnu_ld
1897 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1898 echo "configure
:1899: checking
for $LD option to reload object files
" >&5
1899 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1900 echo $ac_n "(cached
) $ac_c" 1>&6
1902 lt_cv_ld_reload_flag='-r'
1905 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1906 reload_flag=$lt_cv_ld_reload_flag
1907 test -n "$reload_flag" && reload_flag=" $reload_flag"
1909 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1910 echo "configure
:1911: checking
for BSD-compatible nm
" >&5
1911 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1912 echo $ac_n "(cached
) $ac_c" 1>&6
1914 if test -n "$NM"; then
1915 # Let the user override the test.
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1919 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1920 test -z "$ac_dir" && ac_dir=.
1921 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1922 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1923 # Check to see if the nm accepts a BSD-compat flag.
1924 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1925 # nm: unknown option "B
" ignored
1926 # Tru64's nm complains that /dev/null is an invalid object file
1927 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1928 lt_cv_path_NM="$tmp_nm -B"
1930 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1931 lt_cv_path_NM="$tmp_nm -p"
1934 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1935 continue # so that we can try to find one that supports BSD flags
1940 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1945 echo "$ac_t""$NM" 1>&6
1947 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1948 echo "configure
:1949: checking how to recognise dependant libraries
" >&5
1949 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1950 echo $ac_n "(cached
) $ac_c" 1>&6
1952 lt_cv_file_magic_cmd='$MAGIC_CMD'
1953 lt_cv_file_magic_test_file=
1954 lt_cv_deplibs_check_method='unknown'
1955 # Need to set the preceding variable on all platforms that support
1956 # interlibrary dependencies.
1957 # 'none' -- dependencies not supported.
1958 # `unknown' -- same as none, but documents that we really don't know.
1959 # 'pass_all' -- all dependencies passed with no checks.
1960 # 'test_compile' -- check by making test program.
1961 # 'file_magic [regex]' -- check by looking for files in library path
1962 # which responds to the $file_magic_cmd with a given egrep regex.
1963 # If you have `file' or equivalent on your system and you're not sure
1964 # whether `pass_all' will *always* work, you probably want this one.
1968 lt_cv_deplibs_check_method=pass_all
1972 lt_cv_deplibs_check_method=pass_all
1976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1977 lt_cv_file_magic_cmd='/usr/bin/file -L'
1978 lt_cv_file_magic_test_file=/shlib/libc.so
1981 cygwin* | mingw* |pw32*)
1982 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1983 lt_cv_file_magic_cmd='$OBJDUMP -f'
1986 darwin* | rhapsody*)
1987 # this will be overwritten by pass_all, but leave it in just in case
1988 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1989 lt_cv_file_magic_cmd='/usr/bin/file -L'
1991 rhapsody* | darwin1.012)
1992 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1995 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1998 lt_cv_deplibs_check_method=pass_all
2001 freebsd* | kfreebsd*-gnu)
2002 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2005 # Not sure whether the presence of OpenBSD here was a mistake.
2006 # Let's accept both of them until this is cleared up.
2007 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2008 lt_cv_file_magic_cmd=/usr/bin/file
2009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2013 lt_cv_deplibs_check_method=pass_all
2018 lt_cv_deplibs_check_method=pass_all
2024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2025 lt_cv_file_magic_cmd=/usr/bin/file
2026 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2030 lt_cv_file_magic_cmd=/usr/bin/file
2031 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2039 # this will be overridden with pass_all, but let us keep it just in case
2040 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2044 *-32|*"-32 ") libmagic=32-bit;;
2045 *-n32|*"-n32 ") libmagic=N32;;
2046 *-64|*"-64 ") libmagic=64-bit;;
2047 *) libmagic=never-match;;
2049 # this will be overridden with pass_all, but let us keep it just in case
2050 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2053 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2054 lt_cv_deplibs_check_method=pass_all
2057 # This must be Linux ELF.
2060 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
2061 lt_cv_deplibs_check_method=pass_all ;;
2063 # glibc up to 2.1.1 does not perform some relocations on ARM
2064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2066 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2069 netbsd* | knetbsd*-gnu)
2070 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2071 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2073 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2079 lt_cv_file_magic_cmd=/usr/bin/file
2080 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2083 osf3* | osf4* | osf5*)
2084 # this will be overridden with pass_all, but let us keep it just in case
2085 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2086 lt_cv_file_magic_test_file=/shlib/libc.so
2087 lt_cv_deplibs_check_method=pass_all
2091 lt_cv_deplibs_check_method=pass_all
2095 lt_cv_deplibs_check_method=pass_all
2096 lt_cv_file_magic_test_file=/lib/libc.so
2099 sysv5uw[78]* | sysv4*uw2*)
2100 lt_cv_deplibs_check_method=pass_all
2103 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2104 case $host_vendor in
2106 lt_cv_deplibs_check_method=pass_all
2109 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]'
2110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2118 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2119 file_magic_cmd=$lt_cv_file_magic_cmd
2120 deplibs_check_method=$lt_cv_deplibs_check_method
2122 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2123 echo "configure
:2124: checking
for object suffix
" >&5
2124 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2125 echo $ac_n "(cached
) $ac_c" 1>&6
2128 echo 'int i = 1;' > conftest.$ac_ext
2129 if { (eval echo configure:2130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2130 for ac_file in conftest.*; do
2133 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2137 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2142 echo "$ac_t""$ac_cv_objext" 1>&6
2143 OBJEXT=$ac_cv_objext
2144 ac_objext=$ac_cv_objext
2146 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2148 # Only perform the check for file, if the check method requires it
2149 case $deplibs_check_method in
2151 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2152 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2153 echo "configure
:2154: checking
for ${ac_tool_prefix}file" >&5
2154 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2155 echo $ac_n "(cached
) $ac_c" 1>&6
2159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2165 ac_save_MAGIC_CMD="$MAGIC_CMD"
2166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2167 ac_dummy="/usr
/bin
:$PATH"
2168 for ac_dir in $ac_dummy; do
2169 test -z "$ac_dir" && ac_dir=.
2170 if test -f $ac_dir/${ac_tool_prefix}file; then
2171 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2172 if test -n "$file_magic_test_file"; then
2173 case $deplibs_check_method in
2175 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2178 egrep "$file_magic_regex" > /dev/null; then
2183 *** Warning: the command libtool uses to detect shared libraries,
2184 *** $file_magic_cmd, produces output that libtool cannot recognize.
2185 *** The result is that libtool may fail to recognize shared libraries
2186 *** as such. This will affect the creation of libtool libraries that
2187 *** depend on shared libraries, but programs linked with such libtool
2188 *** libraries will work regardless of this problem. Nevertheless, you
2189 *** may want to report the problem to your system manager and/or to
2190 *** bug-libtool@gnu.org
2200 MAGIC_CMD="$ac_save_MAGIC_CMD"
2205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2206 if test -n "$MAGIC_CMD"; then
2207 echo "$ac_t""$MAGIC_CMD" 1>&6
2209 echo "$ac_t""no
" 1>&6
2212 if test -z "$lt_cv_path_MAGIC_CMD"; then
2213 if test -n "$ac_tool_prefix"; then
2214 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2215 echo "configure
:2216: checking
for file" >&5
2216 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2217 echo $ac_n "(cached
) $ac_c" 1>&6
2221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2224 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2227 ac_save_MAGIC_CMD="$MAGIC_CMD"
2228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2229 ac_dummy="/usr
/bin
:$PATH"
2230 for ac_dir in $ac_dummy; do
2231 test -z "$ac_dir" && ac_dir=.
2232 if test -f $ac_dir/file; then
2233 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2234 if test -n "$file_magic_test_file"; then
2235 case $deplibs_check_method in
2237 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2240 egrep "$file_magic_regex" > /dev/null; then
2245 *** Warning: the command libtool uses to detect shared libraries,
2246 *** $file_magic_cmd, produces output that libtool cannot recognize.
2247 *** The result is that libtool may fail to recognize shared libraries
2248 *** as such. This will affect the creation of libtool libraries that
2249 *** depend on shared libraries, but programs linked with such libtool
2250 *** libraries will work regardless of this problem. Nevertheless, you
2251 *** may want to report the problem to your system manager and/or to
2252 *** bug-libtool@gnu.org
2262 MAGIC_CMD="$ac_save_MAGIC_CMD"
2267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2268 if test -n "$MAGIC_CMD"; then
2269 echo "$ac_t""$MAGIC_CMD" 1>&6
2271 echo "$ac_t""no
" 1>&6
2283 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2285 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2286 echo "configure
:2287: checking
for $ac_word" >&5
2287 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2288 echo $ac_n "(cached
) $ac_c" 1>&6
2290 if test -n "$RANLIB"; then
2291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2295 for ac_dir in $ac_dummy; do
2296 test -z "$ac_dir" && ac_dir=.
2297 if test -f $ac_dir/$ac_word; then
2298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2305 RANLIB="$ac_cv_prog_RANLIB"
2306 if test -n "$RANLIB"; then
2307 echo "$ac_t""$RANLIB" 1>&6
2309 echo "$ac_t""no
" 1>&6
2313 if test -z "$ac_cv_prog_RANLIB"; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "ranlib
", so it can be a program name with args.
2316 set dummy ranlib; ac_word=$2
2317 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2318 echo "configure
:2319: checking
for $ac_word" >&5
2319 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2320 echo $ac_n "(cached
) $ac_c" 1>&6
2322 if test -n "$RANLIB"; then
2323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2327 for ac_dir in $ac_dummy; do
2328 test -z "$ac_dir" && ac_dir=.
2329 if test -f $ac_dir/$ac_word; then
2330 ac_cv_prog_RANLIB="ranlib
"
2335 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2338 RANLIB="$ac_cv_prog_RANLIB"
2339 if test -n "$RANLIB"; then
2340 echo "$ac_t""$RANLIB" 1>&6
2342 echo "$ac_t""no
" 1>&6
2350 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2351 set dummy ${ac_tool_prefix}strip; ac_word=$2
2352 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2353 echo "configure
:2354: checking
for $ac_word" >&5
2354 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2355 echo $ac_n "(cached
) $ac_c" 1>&6
2357 if test -n "$STRIP"; then
2358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2362 for ac_dir in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir=.
2364 if test -f $ac_dir/$ac_word; then
2365 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2372 STRIP="$ac_cv_prog_STRIP"
2373 if test -n "$STRIP"; then
2374 echo "$ac_t""$STRIP" 1>&6
2376 echo "$ac_t""no
" 1>&6
2380 if test -z "$ac_cv_prog_STRIP"; then
2381 if test -n "$ac_tool_prefix"; then
2382 # Extract the first word of "strip
", so it can be a program name with args.
2383 set dummy strip; ac_word=$2
2384 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2385 echo "configure
:2386: checking
for $ac_word" >&5
2386 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2387 echo $ac_n "(cached
) $ac_c" 1>&6
2389 if test -n "$STRIP"; then
2390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2394 for ac_dir in $ac_dummy; do
2395 test -z "$ac_dir" && ac_dir=.
2396 if test -f $ac_dir/$ac_word; then
2397 ac_cv_prog_STRIP="strip
"
2402 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2405 STRIP="$ac_cv_prog_STRIP"
2406 if test -n "$STRIP"; then
2407 echo "$ac_t""$STRIP" 1>&6
2409 echo "$ac_t""no
" 1>&6
2418 # Check for any special flags to pass to ltconfig.
2419 libtool_flags="--cache-file=$cache_file"
2420 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2421 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2422 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2423 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2424 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2425 libtool_flags="$libtool_flags --enable-dlopen"
2427 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2428 if test "${enable_libtool_lock+set}" = set; then
2429 enableval="$enable_libtool_lock"
2433 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2434 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2436 # Check whether --with-pic or --without-pic was given.
2437 if test "${with_pic+set}" = set; then
2444 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2445 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2447 # Some flags need to be propagated to the compiler or linker for good
2451 # Find out which ABI we are using.
2452 echo '#line 2453 "configure
"' > conftest.$ac_ext
2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2454 if test "$lt_cv_prog_gnu_ld" = yes; then
2455 case `/usr/bin/file conftest.$ac_objext` in
2457 LD="${LD-ld} -melf32bsmip"
2460 LD="${LD-ld} -melf32bmipn32"
2463 LD="${LD-ld} -melf64bmip"
2467 case `/usr/bin/file conftest.$ac_objext` in
2484 # Find out which ABI we are using.
2485 echo 'int i;' > conftest.$ac_ext
2486 if { (eval echo configure:2487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2487 case "`/usr/bin/file conftest.o`" in
2499 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2500 # Find out which ABI we are using.
2501 echo 'int i;' > conftest.$ac_ext
2502 if { (eval echo configure:2503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2503 case "`/usr/bin/file conftest.o`" in
2507 LD="${LD-ld} -m elf_i386
"
2509 ppc64-*linux*|powerpc64-*linux*)
2510 LD="${LD-ld} -m elf32ppclinux
"
2513 LD="${LD-ld} -m elf_s390
"
2516 LD="${LD-ld} -m elf32_sparc
"
2523 LD="${LD-ld} -m elf_x86_64
"
2525 ppc*-*linux*|powerpc*-*linux*)
2526 LD="${LD-ld} -m elf64ppc
"
2529 LD="${LD-ld} -m elf64_s390
"
2532 LD="${LD-ld} -m elf64_sparc
"
2542 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2543 SAVE_CFLAGS="$CFLAGS"
2544 CFLAGS="$CFLAGS -belf"
2545 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2546 echo "configure
:2547: checking whether the C compiler needs
-belf" >&5
2547 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2548 echo $ac_n "(cached
) $ac_c" 1>&6
2552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2556 cross_compiling=$ac_cv_prog_cc_cross
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure
"
2560 #include "confdefs.h
"
2566 if { (eval echo configure:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2568 lt_cv_cc_needs_belf=yes
2570 echo "configure
: failed program was
:" >&5
2571 cat conftest.$ac_ext >&5
2573 lt_cv_cc_needs_belf=no
2577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2581 cross_compiling=$ac_cv_prog_cc_cross
2585 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2586 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2587 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2588 CFLAGS="$SAVE_CFLAGS"
2595 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2596 echo "configure
:2597: checking how to run the C
++ preprocessor
" >&5
2597 if test -z "$CXXCPP"; then
2598 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2599 echo $ac_n "(cached
) $ac_c" 1>&6
2602 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2603 ac_cpp='$CXXCPP $CPPFLAGS'
2604 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2605 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2606 cross_compiling=$ac_cv_prog_cxx_cross
2607 CXXCPP="${CXX-g++} -E"
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure
"
2610 #include "confdefs.h
"
2613 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2614 { (eval echo configure:2615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2616 if test -z "$ac_err"; then
2620 echo "configure
: failed program was
:" >&5
2621 cat conftest.$ac_ext >&5
2626 ac_cv_prog_CXXCPP="$CXXCPP"
2628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2632 cross_compiling=$ac_cv_prog_cc_cross
2635 CXXCPP="$ac_cv_prog_CXXCPP"
2636 echo "$ac_t""$CXXCPP" 1>&6
2639 # Save cache, so that ltconfig can load it
2640 cat > confcache <<\EOF
2641 # This file is a shell script that caches the results of configure
2642 # tests run on this system so they can be shared between configure
2643 # scripts and configure runs. It is not useful on other systems.
2644 # If it contains results you don't want to keep, you may remove or edit it.
2646 # By default, configure uses ./config.cache as the cache file,
2647 # creating it if it does not exist already. You can give configure
2648 # the --cache-file=FILE option to use a different cache file; that is
2649 # what configure does when it calls configure scripts in
2650 # subdirectories, so they share the cache.
2651 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2652 # config.status only pays attention to the cache file if you give it the
2653 # --recheck option to rerun configure.
2656 # The following way of writing the cache mishandles newlines in values,
2657 # but we know of no workaround that is simple, portable, and efficient.
2658 # So, don't put newlines in cache variables' values.
2659 # Ultrix sh set writes to stderr and can't be redirected directly,
2660 # and sets the high bit in the cache file unless we assign to the vars.
2662 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2664 # `set' does not quote correctly, so add quotes (double-quote substitution
2665 # turns \\\\ into \\, and sed turns \\ into \).
2667 -e "s
/'/'\\\\''/g
" \
2668 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2671 # `set' quotes correctly as required by POSIX, so do not add quotes.
2672 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2675 if cmp -s $cache_file confcache; then
2678 if test -w $cache_file; then
2679 echo "updating cache
$cache_file"
2680 cat confcache > $cache_file
2682 echo "not updating unwritable cache
$cache_file"
2688 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2689 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2690 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2691 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2692 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2693 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2694 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2695 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2696 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2697 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2699 # Reload cache, that may have been modified by ltconfig
2700 if test -r "$cache_file"; then
2701 echo "loading cache
$cache_file"
2704 echo "creating cache
$cache_file"
2709 # This can be used to rebuild libtool when needed
2710 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2712 # Always use our own libtool.
2713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2715 # Redirect the config.log output again, so that the ltconfig log is not
2716 # clobbered by the next message.
2717 exec 5>>./config.log
2721 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2723 lt_save_CFLAGS="$CFLAGS"
2724 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2725 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2726 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2727 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2728 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2729 deplibs_check_method="$deplibs_check_method" \
2730 file_magic_cmd="$file_magic_cmd" \
2731 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2732 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2733 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2735 CFLAGS="$lt_save_CFLAGS"
2737 # Redirect the config.log output again, so that the ltconfig log is not
2738 # clobbered by the next message.
2739 exec 5>>./config.log
2749 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2758 if test -d $srcdir/testsuite; then
2760 TESTSUBDIR_FALSE='#'
2766 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2767 if test "${enable_getenv_properties+set}" = set; then
2768 enableval="$enable_getenv_properties"
2773 if test -z "$enable_getenv_properties"; then
2774 enable_getenv_properties=${enable_getenv_properties_default-yes}
2776 if test "$enable_getenv_properties" = no; then
2777 cat >> confdefs.h <<\EOF
2778 #define DISABLE_GETENV_PROPERTIES 1
2783 if test -z "$enable_main_args"; then
2784 enable_main_args=${enable_main_args_default-yes}
2786 if test "$enable_main_args" = no; then
2787 cat >> confdefs.h <<\EOF
2788 #define DISABLE_MAIN_ARGS 1
2794 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2795 if test "${enable_hash_synchronization+set}" = set; then
2796 enableval="$enable_hash_synchronization"
2801 if test -z "$enable_hash_synchronization"; then
2802 enable_hash_synchronization=$enable_hash_synchronization_default
2805 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
2806 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
2807 if test "${enable_libgcj_multifile+set}" = set; then
2808 enableval="$enable_libgcj_multifile"
2809 case "${enableval}" in
2810 yes) enable_libgcj_multifile=yes ;;
2811 no) enable_libgcj_multifile=no ;;
2812 *) { echo "configure
: error
: bad value
${enableval} for --enable-libgcj-multifile" 1>&2; exit 1; } ;;
2815 enable_libgcj_multifile=no
2820 if test "$enable_libgcj_multifile" = yes; then
2828 # What is the native OS API for MinGW?
2829 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
2830 if test "${with_win32_nlsapi+set}" = set; then
2831 withval="$with_win32_nlsapi"
2833 case "${withval}" in
2834 ansi) with_win32_nlsapi=ansi ;;
2835 unicows) with_win32_nlsapi=unicows ;;
2836 unicode) with_win32_nlsapi=unicode ;;
2837 *) { echo "configure
: error
: Bad value
${withval} for --with-win32-nlsapi.
" 1>&2; exit 1; } ;;
2840 with_win32_nlsapi=ansi
2844 case "${with_win32_nlsapi}" in
2846 cat >> confdefs.h <<\EOF
2847 #define MINGW_LIBGCJ_UNICODE 1
2853 if test "${slow_pthread_self}" = "yes"; then
2854 cat >> confdefs.h <<\EOF
2855 #define SLOW_PTHREAD_SELF 1
2863 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2864 if test "${enable_libgcj_debug+set}" = set; then
2865 enableval="$enable_libgcj_debug"
2866 if test "$enable_libgcj_debug" = yes; then
2867 cat >> confdefs.h <<\EOF
2876 # Check whether --enable-interpreter or --disable-interpreter was given.
2877 if test "${enable_interpreter+set}" = set; then
2878 enableval="$enable_interpreter"
2879 if test "$enable_interpreter" = yes; then
2880 # This can also be set in configure.host.
2881 libgcj_interpreter=yes
2882 elif test "$enable_interpreter" = no; then
2883 libgcj_interpreter=no
2888 if test "$libgcj_interpreter" = yes; then
2889 cat >> confdefs.h <<\EOF
2890 #define INTERPRETER 1
2894 INTERPRETER="$libgcj_interpreter"
2897 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2898 echo "configure
:2899: checking
for exception model to use
" >&5
2901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2902 ac_cpp='$CXXCPP $CPPFLAGS'
2903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2905 cross_compiling=$ac_cv_prog_cxx_cross
2907 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2908 if test "${enable_sjlj_exceptions+set}" = set; then
2909 enableval="$enable_sjlj_exceptions"
2912 cat > conftest.$ac_ext << EOF
2913 #line 2914 "configure
"
2922 old_CXXFLAGS="$CXXFLAGS"
2924 if { (eval echo configure:2925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2925 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2926 enable_sjlj_exceptions=yes
2927 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2928 enable_sjlj_exceptions=no
2931 CXXFLAGS="$old_CXXFLAGS"
2935 if test x$enable_sjlj_exceptions = xyes; then
2936 cat >> confdefs.h <<\EOF
2937 #define SJLJ_EXCEPTIONS 1
2940 ac_exception_model_name=sjlj
2941 elif test x$enable_sjlj_exceptions = xno; then
2942 ac_exception_model_name="call frame
"
2944 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2951 cross_compiling=$ac_cv_prog_cc_cross
2953 echo "$ac_t""$ac_exception_model_name" 1>&6
2955 # If we are non using SJLJ exceptions, and this host does not have support
2956 # for unwinding from a signal handler, enable checked dereferences and divides.
2957 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2958 CHECKREFSPEC=-fcheck-references
2959 DIVIDESPEC=-fuse-divide-subroutine
2963 # Check whether --enable-java-net or --disable-java-net was given.
2964 if test "${enable_java_net+set}" = set; then
2965 enableval="$enable_java_net"
2970 if test -z "$enable_java_net"; then
2971 enable_java_net=${enable_java_net_default-yes}
2973 if test "$enable_java_net" = no; then
2974 cat >> confdefs.h <<\EOF
2975 #define DISABLE_JAVA_NET 1
2980 # Check whether --with-libffi or --without-libffi was given.
2981 if test "${with_libffi+set}" = set; then
2982 withval="$with_libffi"
2985 with_libffi=${with_libffi_default-yes}
2991 if test "$with_libffi" != no; then
2992 cat >> confdefs.h <<\EOF
2993 #define USE_LIBFFI 1
2996 LIBFFI=../libffi/libffi_convenience.la
2997 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
3002 # Check whether --enable-jvmpi or --disable-jvmpi was given.
3003 if test "${enable_jvmpi+set}" = set; then
3004 enableval="$enable_jvmpi"
3009 if test "$enable_jvmpi" != no; then
3010 cat >> confdefs.h <<\EOF
3011 #define ENABLE_JVMPI 1
3016 TARGET_ECOS=${PROCESS-"no"}
3017 # Check whether --with-ecos or --without-ecos was given.
3018 if test "${with_ecos+set}" = set; then
3019 withval="$with_ecos"
3020 TARGET_ECOS="$with_ecos"
3029 case "$TARGET_ECOS" in
3034 PLATFORMOBJS=win32.lo
3037 echo $ac_n "checking whether
'ld' is
at least
2.13""...
$ac_c" 1>&6
3038 echo "configure
:3039: checking whether
'ld' is
at least
2.13" >&5
3039 LD_PROG=`$CC --print-prog-name=ld`
3040 LD_VERSION=`$LD_PROG --version`
3041 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
3042 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
3043 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
3046 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
3050 if test "x
$LD_OK" != x; then
3051 echo "$ac_t""yes; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
3053 echo "$ac_t""no
; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
3054 echo "configure
: warning
: ld
<2.13 detected
; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack...
" 1>&2
3055 cat >> confdefs.h <<\EOF
3056 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3064 PLATFORMOBJS=posix.lo
3072 cat >> confdefs.h <<\EOF
3076 PLATFORMOBJS=posix.lo
3083 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
3084 echo "configure
:3085: checking how to run the C preprocessor
" >&5
3085 # On Suns, sometimes $CPP names a directory.
3086 if test -n "$CPP" && test -d "$CPP"; then
3089 if test -z "$CPP"; then
3090 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3091 echo $ac_n "(cached
) $ac_c" 1>&6
3093 # This must be in double quotes, not single quotes, because CPP may get
3094 # substituted into the Makefile and "${CC-cc}" will confuse make.
3096 # On the NeXT, cc -E runs the code through the compiler's parser,
3097 # not just through cpp.
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure
"
3100 #include "confdefs.h
"
3104 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3105 { (eval echo configure:3106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3107 if test -z "$ac_err"; then
3111 echo "configure
: failed program was
:" >&5
3112 cat conftest.$ac_ext >&5
3114 CPP="${CC-cc} -E -traditional-cpp"
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3117 "configure
"
3117 #include "confdefs.h
"
3121 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3122 { (eval echo configure:3123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3124 if test -z "$ac_err"; then
3128 echo "configure
: failed program was
:" >&5
3129 cat conftest.$ac_ext >&5
3131 CPP="${CC-cc} -nologo -E"
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure
"
3134 #include "confdefs.h
"
3138 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3139 { (eval echo configure:3140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3141 if test -z "$ac_err"; then
3145 echo "configure
: failed program was
:" >&5
3146 cat conftest.$ac_ext >&5
3155 ac_cv_prog_CPP="$CPP"
3157 CPP="$ac_cv_prog_CPP"
3159 ac_cv_prog_CPP="$CPP"
3161 echo "$ac_t""$CPP" 1>&6
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 "uint32_t
" >/dev/null 2>&1; then
3171 cat >> confdefs.h <<\EOF
3172 #define HAVE_INT32_DEFINED 1
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure
"
3180 #include "confdefs.h
"
3181 #include <inttypes.h>
3183 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3184 egrep "uint32_t
" >/dev/null 2>&1; then
3186 cat >> confdefs.h <<\EOF
3187 #define HAVE_INT32_DEFINED 1
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure
"
3195 #include "confdefs.h
"
3196 #include <sys/types.h>
3198 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3199 egrep "u_int32_t
" >/dev/null 2>&1; then
3201 cat >> confdefs.h <<\EOF
3202 #define HAVE_BSD_INT32_DEFINED 1
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure
"
3210 #include "confdefs.h
"
3211 #include <sys/config.h>
3213 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3214 egrep "u_int32_t
" >/dev/null 2>&1; then
3216 cat >> confdefs.h <<\EOF
3217 #define HAVE_BSD_INT32_DEFINED 1
3225 cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure
"
3227 #include "confdefs.h
"
3230 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3231 egrep "mktime
" >/dev/null 2>&1; then
3233 cat >> confdefs.h <<\EOF
3234 #define HAVE_MKTIME 1
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure
"
3242 #include "confdefs.h
"
3245 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3246 egrep "localtime
" >/dev/null 2>&1; then
3248 cat >> confdefs.h <<\EOF
3249 #define HAVE_LOCALTIME 1
3256 test -d java || mkdir java
3257 test -d java/io || mkdir java/io
3258 test -d gnu || mkdir gnu
3261 test -d java/lang || mkdir java/lang
3265 test -d java/net || mkdir java/net
3269 test -d gnu/java || mkdir gnu/java
3270 test -d gnu/java/net || mkdir gnu/java/net
3274 test -d gnu/java/nio || mkdir gnu/java/nio
3277 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
3282 SYSTEMSPEC="-lgdi32 -lws2_32"
3283 if test "${with_win32_nlsapi}" = "unicows
"; then
3284 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
3293 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs
-rpath `${PWDCMD-pwd}`/.libs
"
3296 # Check whether --with-system-zlib or --without-system-zlib was given.
3297 if test "${with_system_zlib+set}" = set; then
3298 withval="$with_system_zlib"
3307 # If we find X, set shell vars x_includes and x_libraries to the
3308 # paths, otherwise set no_x=yes.
3309 # Uses ac_ vars as temps to allow command line to override cache and checks.
3310 # --without-x overrides everything else, but does not touch the cache.
3311 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
3312 echo "configure
:3313: checking
for X
" >&5
3314 # Check whether --with-x or --without-x was given.
3315 if test "${with_x+set}" = set; then
3320 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3321 if test "x
$with_x" = xno; then
3322 # The user explicitly disabled X.
3325 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
3326 # Both variables are already set.
3329 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3330 echo $ac_n "(cached
) $ac_c" 1>&6
3332 # One or both of the vars are not set, and there is no cached value.
3333 ac_x_includes=NO ac_x_libraries=NO
3335 if mkdir conftestdir; then
3337 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3338 cat > Imakefile <<'EOF'
3340 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3342 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3343 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
3344 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3345 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3346 for ac_extension in a so sl; do
3347 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3348 test -f $ac_im_libdir/libX11.$ac_extension; then
3349 ac_im_usrlibdir=$ac_im_libdir; break
3352 # Screen out bogus values from the imake configuration. They are
3353 # bogus both because they are the default anyway, and because
3354 # using them would break gcc on systems where it needs fixed includes.
3355 case "$ac_im_incroot" in
3357 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
3359 case "$ac_im_usrlibdir" in
3361 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3368 if test "$ac_x_includes" = NO; then
3369 # Guess where to find include files, by looking for this one X11 .h file.
3370 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3372 # First, try using that file with no special directory specified.
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure
"
3375 #include "confdefs.h
"
3376 #include <$x_direct_test_include>
3378 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3379 { (eval echo configure:3380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3381 if test -z "$ac_err"; then
3383 # We can compile using X headers with no special include directory.
3387 echo "configure
: failed program was
:" >&5
3388 cat conftest.$ac_ext >&5
3390 # Look for the header file in a standard set of common directories.
3391 # Check X11 before X11Rn because it is often a symlink to the current release.
3394 /usr/X11R6/include \
3395 /usr/X11R5/include \
3396 /usr/X11R4/include \
3399 /usr/include/X11R6 \
3400 /usr/include/X11R5 \
3401 /usr/include/X11R4 \
3403 /usr/local/X11/include \
3404 /usr/local/X11R6/include \
3405 /usr/local/X11R5/include \
3406 /usr/local/X11R4/include \
3408 /usr/local/include/X11 \
3409 /usr/local/include/X11R6 \
3410 /usr/local/include/X11R5 \
3411 /usr/local/include/X11R4 \
3415 /usr/XFree86/include/X11 \
3418 /usr/local/include \
3419 /usr/unsupported/include \
3420 /usr/athena/include \
3421 /usr/local/x11r5/include \
3422 /usr/lpp/Xamples/include \
3424 /usr/openwin/include \
3425 /usr/openwin/share/include \
3428 if test -r "$ac_dir/$x_direct_test_include"; then
3429 ac_x_includes=$ac_dir
3435 fi # $ac_x_includes = NO
3437 if test "$ac_x_libraries" = NO; then
3438 # Check for the libraries.
3440 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3441 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3443 # See if we find them without any special options.
3444 # Don't add to $LIBS permanently.
3445 ac_save_LIBS="$LIBS"
3446 LIBS="-l$x_direct_test_library $LIBS"
3447 cat > conftest.$ac_ext <<EOF
3448 #line 3449 "configure
"
3449 #include "confdefs.h
"
3452 ${x_direct_test_function}()
3455 if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3457 LIBS="$ac_save_LIBS"
3458 # We can link X programs with no special library path.
3461 echo "configure
: failed program was
:" >&5
3462 cat conftest.$ac_ext >&5
3464 LIBS="$ac_save_LIBS"
3465 # First see if replacing the include by lib works.
3466 # Check X11 before X11Rn because it is often a symlink to the current release.
3467 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3478 /usr/local/X11/lib \
3479 /usr/local/X11R6/lib \
3480 /usr/local/X11R5/lib \
3481 /usr/local/X11R4/lib \
3483 /usr/local/lib/X11 \
3484 /usr/local/lib/X11R6 \
3485 /usr/local/lib/X11R5 \
3486 /usr/local/lib/X11R4 \
3490 /usr/XFree86/lib/X11 \
3494 /usr/unsupported/lib \
3496 /usr/local/x11r5/lib \
3497 /usr/lpp/Xamples/lib \
3501 /usr/openwin/share/lib \
3504 for ac_extension in a so sl; do
3505 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3506 ac_x_libraries=$ac_dir
3513 fi # $ac_x_libraries = NO
3515 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3516 # Didn't find X anywhere. Cache the known absence of X.
3517 ac_cv_have_x="have_x
=no
"
3519 # Record where we found X for the cache.
3520 ac_cv_have_x="have_x
=yes \
3521 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
3525 eval "$ac_cv_have_x"
3528 if test "$have_x" != yes; then
3529 echo "$ac_t""$have_x" 1>&6
3532 # If each of the values was on the command line, it overrides each guess.
3533 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
3534 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3535 # Update the cache value to reflect the command line values.
3536 ac_cv_have_x="have_x
=yes \
3537 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
3538 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
3541 if test "$no_x" = yes; then
3542 # Not all programs may use this symbol, but it does not hurt to define it.
3543 cat >> confdefs.h <<\EOF
3544 #define X_DISPLAY_MISSING 1
3547 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3549 if test -n "$x_includes"; then
3550 X_CFLAGS="$X_CFLAGS -I$x_includes"
3553 # It would also be nice to do this for all -L options, not just this one.
3554 if test -n "$x_libraries"; then
3555 X_LIBS="$X_LIBS -L$x_libraries"
3556 # For Solaris; some versions of Sun CC require a space after -R and
3557 # others require no space. Words are not sufficient . . . .
3558 case "`(uname -sr) 2>/dev/null`" in
3560 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
3561 echo "configure
:3562: checking whether
-R must be followed by a space
" >&5
3562 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure
"
3565 #include "confdefs.h
"
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3575 echo "configure
: failed program was
:" >&5
3576 cat conftest.$ac_ext >&5
3581 if test $ac_R_nospace = yes; then
3582 echo "$ac_t""no
" 1>&6
3583 X_LIBS="$X_LIBS -R$x_libraries"
3585 LIBS="$ac_xsave_LIBS -R $x_libraries"
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure
"
3588 #include "confdefs.h
"
3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3598 echo "configure
: failed program was
:" >&5
3599 cat conftest.$ac_ext >&5
3604 if test $ac_R_space = yes; then
3605 echo "$ac_t""yes" 1>&6
3606 X_LIBS="$X_LIBS -R $x_libraries"
3608 echo "$ac_t""neither works
" 1>&6
3611 LIBS="$ac_xsave_LIBS"
3615 # Check for system-dependent libraries X programs must link with.
3616 # Do this before checking for the system-independent R6 libraries
3617 # (-lICE), since we may need -lsocket or whatever for X linking.
3619 if test "$ISC" = yes; then
3620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3622 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3623 # libraries were built with DECnet support. And karl@cs.umb.edu says
3624 # the Alpha needs dnet_stub (dnet does not exist).
3625 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
3626 echo "configure
:3627: checking
for dnet_ntoa
in -ldnet" >&5
3627 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3629 echo $ac_n "(cached
) $ac_c" 1>&6
3631 ac_save_LIBS="$LIBS"
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure
"
3635 #include "confdefs.h
"
3636 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3647 eval "ac_cv_lib_
$ac_lib_var=yes"
3649 echo "configure
: failed program was
:" >&5
3650 cat conftest.$ac_ext >&5
3652 eval "ac_cv_lib_
$ac_lib_var=no
"
3655 LIBS="$ac_save_LIBS"
3658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3662 echo "$ac_t""no
" 1>&6
3665 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3666 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
3667 echo "configure
:3668: checking
for dnet_ntoa
in -ldnet_stub" >&5
3668 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3670 echo $ac_n "(cached
) $ac_c" 1>&6
3672 ac_save_LIBS="$LIBS"
3673 LIBS="-ldnet_stub $LIBS"
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure
"
3676 #include "confdefs.h
"
3677 /* Override any gcc2 internal prototype to avoid an error. */
3678 /* We use char because int might match the return type of a gcc2
3679 builtin and then its argument prototype would still apply. */
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3688 eval "ac_cv_lib_
$ac_lib_var=yes"
3690 echo "configure
: failed program was
:" >&5
3691 cat conftest.$ac_ext >&5
3693 eval "ac_cv_lib_
$ac_lib_var=no
"
3696 LIBS="$ac_save_LIBS"
3699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3700 echo "$ac_t""yes" 1>&6
3701 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3703 echo "$ac_t""no
" 1>&6
3708 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3709 # to get the SysV transport functions.
3710 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3712 # The nsl library prevents programs from opening the X display
3713 # on Irix 5.2, according to dickey@clark.net.
3714 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
3715 echo "configure
:3716: checking
for gethostbyname
" >&5
3716 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3717 echo $ac_n "(cached
) $ac_c" 1>&6
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure
"
3721 #include "confdefs.h
"
3722 /* System header to define __stub macros and hopefully few prototypes,
3723 which can conflict with char gethostbyname(); below. */
3725 /* Override any gcc2 internal prototype to avoid an error. */
3726 /* We use char because int might match the return type of a gcc2
3727 builtin and then its argument prototype would still apply. */
3728 char gethostbyname();
3732 /* The GNU C library defines this for functions which it implements
3733 to always fail with ENOSYS. Some functions are actually named
3734 something starting with __ and the normal name is an alias. */
3735 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745 eval "ac_cv_func_gethostbyname
=yes"
3747 echo "configure
: failed program was
:" >&5
3748 cat conftest.$ac_ext >&5
3750 eval "ac_cv_func_gethostbyname
=no
"
3755 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3759 echo "$ac_t""no
" 1>&6
3762 if test $ac_cv_func_gethostbyname = no; then
3763 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
3764 echo "configure
:3765: checking
for gethostbyname
in -lnsl" >&5
3765 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3767 echo $ac_n "(cached
) $ac_c" 1>&6
3769 ac_save_LIBS="$LIBS"
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure
"
3773 #include "confdefs.h
"
3774 /* Override any gcc2 internal prototype to avoid an error. */
3775 /* We use char because int might match the return type of a gcc2
3776 builtin and then its argument prototype would still apply. */
3777 char gethostbyname();
3783 if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 eval "ac_cv_lib_
$ac_lib_var=yes"
3787 echo "configure
: failed program was
:" >&5
3788 cat conftest.$ac_ext >&5
3790 eval "ac_cv_lib_
$ac_lib_var=no
"
3793 LIBS="$ac_save_LIBS"
3796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3800 echo "$ac_t""no
" 1>&6
3805 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3806 # socket/setsockopt and other routines are undefined under SCO ODT
3807 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3808 # on later versions), says simon@lia.di.epfl.ch: it contains
3809 # gethostby* variants that don't use the nameserver (or something).
3810 # -lsocket must be given before -lnsl if both are needed.
3811 # We assume that if connect needs -lnsl, so does gethostbyname.
3812 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
3813 echo "configure
:3814: checking
for connect
" >&5
3814 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3815 echo $ac_n "(cached
) $ac_c" 1>&6
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure
"
3819 #include "confdefs.h
"
3820 /* System header to define __stub macros and hopefully few prototypes,
3821 which can conflict with char connect(); below. */
3823 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3830 /* The GNU C library defines this for functions which it implements
3831 to always fail with ENOSYS. Some functions are actually named
3832 something starting with __ and the normal name is an alias. */
3833 #if defined (__stub_connect) || defined (__stub___connect)
3841 if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3843 eval "ac_cv_func_connect
=yes"
3845 echo "configure
: failed program was
:" >&5
3846 cat conftest.$ac_ext >&5
3848 eval "ac_cv_func_connect
=no
"
3853 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3857 echo "$ac_t""no
" 1>&6
3860 if test $ac_cv_func_connect = no; then
3861 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
3862 echo "configure
:3863: checking
for connect
in -lsocket" >&5
3863 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3865 echo $ac_n "(cached
) $ac_c" 1>&6
3867 ac_save_LIBS="$LIBS"
3868 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure
"
3871 #include "confdefs.h
"
3872 /* Override any gcc2 internal prototype to avoid an error. */
3873 /* We use char because int might match the return type of a gcc2
3874 builtin and then its argument prototype would still apply. */
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 eval "ac_cv_lib_
$ac_lib_var=yes"
3885 echo "configure
: failed program was
:" >&5
3886 cat conftest.$ac_ext >&5
3888 eval "ac_cv_lib_
$ac_lib_var=no
"
3891 LIBS="$ac_save_LIBS"
3894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3895 echo "$ac_t""yes" 1>&6
3896 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3898 echo "$ac_t""no
" 1>&6
3903 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3904 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
3905 echo "configure
:3906: checking
for remove
" >&5
3906 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3907 echo $ac_n "(cached
) $ac_c" 1>&6
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure
"
3911 #include "confdefs.h
"
3912 /* System header to define __stub macros and hopefully few prototypes,
3913 which can conflict with char remove(); below. */
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3922 /* The GNU C library defines this for functions which it implements
3923 to always fail with ENOSYS. Some functions are actually named
3924 something starting with __ and the normal name is an alias. */
3925 #if defined (__stub_remove) || defined (__stub___remove)
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3935 eval "ac_cv_func_remove
=yes"
3937 echo "configure
: failed program was
:" >&5
3938 cat conftest.$ac_ext >&5
3940 eval "ac_cv_func_remove
=no
"
3945 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3946 echo "$ac_t""yes" 1>&6
3949 echo "$ac_t""no
" 1>&6
3952 if test $ac_cv_func_remove = no; then
3953 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
3954 echo "configure
:3955: checking
for remove
in -lposix" >&5
3955 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3957 echo $ac_n "(cached
) $ac_c" 1>&6
3959 ac_save_LIBS="$LIBS"
3960 LIBS="-lposix $LIBS"
3961 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure
"
3963 #include "confdefs.h
"
3964 /* Override any gcc2 internal prototype to avoid an error. */
3965 /* We use char because int might match the return type of a gcc2
3966 builtin and then its argument prototype would still apply. */
3973 if { (eval echo configure:3974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3975 eval "ac_cv_lib_
$ac_lib_var=yes"
3977 echo "configure
: failed program was
:" >&5
3978 cat conftest.$ac_ext >&5
3980 eval "ac_cv_lib_
$ac_lib_var=no
"
3983 LIBS="$ac_save_LIBS"
3986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3988 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3990 echo "$ac_t""no
" 1>&6
3995 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3996 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
3997 echo "configure
:3998: checking
for shmat
" >&5
3998 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3999 echo $ac_n "(cached
) $ac_c" 1>&6
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure
"
4003 #include "confdefs.h
"
4004 /* System header to define __stub macros and hopefully few prototypes,
4005 which can conflict with char shmat(); below. */
4007 /* Override any gcc2 internal prototype to avoid an error. */
4008 /* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4014 /* The GNU C library defines this for functions which it implements
4015 to always fail with ENOSYS. Some functions are actually named
4016 something starting with __ and the normal name is an alias. */
4017 #if defined (__stub_shmat) || defined (__stub___shmat)
4025 if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4027 eval "ac_cv_func_shmat
=yes"
4029 echo "configure
: failed program was
:" >&5
4030 cat conftest.$ac_ext >&5
4032 eval "ac_cv_func_shmat
=no
"
4037 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4041 echo "$ac_t""no
" 1>&6
4044 if test $ac_cv_func_shmat = no; then
4045 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
4046 echo "configure
:4047: checking
for shmat
in -lipc" >&5
4047 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4049 echo $ac_n "(cached
) $ac_c" 1>&6
4051 ac_save_LIBS="$LIBS"
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure
"
4055 #include "confdefs.h
"
4056 /* Override any gcc2 internal prototype to avoid an error. */
4057 /* We use char because int might match the return type of a gcc2
4058 builtin and then its argument prototype would still apply. */
4065 if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4067 eval "ac_cv_lib_
$ac_lib_var=yes"
4069 echo "configure
: failed program was
:" >&5
4070 cat conftest.$ac_ext >&5
4072 eval "ac_cv_lib_
$ac_lib_var=no
"
4075 LIBS="$ac_save_LIBS"
4078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4079 echo "$ac_t""yes" 1>&6
4080 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4082 echo "$ac_t""no
" 1>&6
4088 # Check for libraries that X11R6 Xt/Xaw programs need.
4089 ac_save_LDFLAGS="$LDFLAGS"
4090 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4091 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4092 # check for ICE first), but we must link in the order -lSM -lICE or
4093 # we get undefined symbols. So assume we have SM if we have ICE.
4094 # These have to be linked with before -lX11, unlike the other
4095 # libraries we check for below, so use a different variable.
4096 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4097 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
4098 echo "configure
:4099: checking
for IceConnectionNumber
in -lICE" >&5
4099 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4101 echo $ac_n "(cached
) $ac_c" 1>&6
4103 ac_save_LIBS="$LIBS"
4104 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure
"
4107 #include "confdefs.h
"
4108 /* Override any gcc2 internal prototype to avoid an error. */
4109 /* We use char because int might match the return type of a gcc2
4110 builtin and then its argument prototype would still apply. */
4111 char IceConnectionNumber();
4114 IceConnectionNumber()
4117 if { (eval echo configure:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4119 eval "ac_cv_lib_
$ac_lib_var=yes"
4121 echo "configure
: failed program was
:" >&5
4122 cat conftest.$ac_ext >&5
4124 eval "ac_cv_lib_
$ac_lib_var=no
"
4127 LIBS="$ac_save_LIBS"
4130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4131 echo "$ac_t""yes" 1>&6
4132 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4134 echo "$ac_t""no
" 1>&6
4137 LDFLAGS="$ac_save_LDFLAGS"
4142 # Check whether --enable-java-awt or --disable-java-awt was given.
4143 if test "${enable_java_awt+set}" = set; then
4144 enableval="$enable_java_awt"
4149 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4152 # The default toolkit to use is the first one specified.
4156 for peer in $peerlibs ; do
4159 if test "$no_x" = yes; then
4160 echo "*** xlib peers requested but no X library available
" 1>&2
4164 if test -z "$TOOLKIT"; then
4165 TOOLKIT=gnu.awt.xlib.XToolkit
4170 if test "$no_x" = yes; then
4171 echo "*** xlib peers requested but no X library available
" 1>&2
4175 if test -z "$TOOLKIT"; then
4176 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4178 test -d jniinclude || mkdir jniinclude
4187 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
4194 if test "$use_xlib_awt" = yes; then
4203 if test "$use_gtk_awt" = yes; then
4211 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4212 if test "${enable_gtk_cairo+set}" = set; then
4213 enableval="$enable_gtk_cairo"
4219 if test "x
${enable_gtk_cairo}" = xyes; then
4226 if test "x
${enable_gtk_cairo}" = xyes
4231 if test -z "$PKG_CONFIG"; then
4232 # Extract the first word of "pkg-config
", so it can be a program name with args.
4233 set dummy pkg-config; ac_word=$2
4234 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4235 echo "configure
:4236: checking
for $ac_word" >&5
4236 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4237 echo $ac_n "(cached
) $ac_c" 1>&6
4239 case "$PKG_CONFIG" in
4241 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4244 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4249 for ac_dir in $ac_dummy; do
4250 test -z "$ac_dir" && ac_dir=.
4251 if test -f $ac_dir/$ac_word; then
4252 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4257 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
4261 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4262 if test -n "$PKG_CONFIG"; then
4263 echo "$ac_t""$PKG_CONFIG" 1>&6
4265 echo "$ac_t""no
" 1>&6
4270 if test "$PKG_CONFIG" = "no
" ; then
4271 echo "*** The pkg-config
script could not be found. Make sure it is
"
4272 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
4273 echo "*** to the full path to pkg-config.
"
4274 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
4276 PKG_CONFIG_MIN_VERSION=0.9.0
4277 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4278 echo $ac_n "checking
for cairo
""...
$ac_c" 1>&6
4279 echo "configure
:4280: checking
for cairo
" >&5
4281 if $PKG_CONFIG --exists "cairo
" ; then
4282 echo "$ac_t""yes" 1>&6
4285 echo $ac_n "checking CAIRO_CFLAGS
""...
$ac_c" 1>&6
4286 echo "configure
:4287: checking CAIRO_CFLAGS
" >&5
4287 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo
"`
4288 echo "$ac_t""$CAIRO_CFLAGS" 1>&6
4290 echo $ac_n "checking CAIRO_LIBS
""...
$ac_c" 1>&6
4291 echo "configure
:4292: checking CAIRO_LIBS
" >&5
4292 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo
"`
4293 echo "$ac_t""$CAIRO_LIBS" 1>&6
4297 ## If we have a custom action on failure, don't print errors, but
4298 ## do set a variable so people can do so.
4299 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo
"`
4300 echo $CAIRO_PKG_ERRORS
4306 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
4307 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
4311 if test $succeeded = yes; then
4314 { echo "configure
: error
: Library requirements
(cairo
) not met
; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are
in a nonstandard prefix so pkg-config can
find them.
" 1>&2; exit 1; }
4320 if test -z "$PKG_CONFIG"; then
4321 # Extract the first word of "pkg-config
", so it can be a program name with args.
4322 set dummy pkg-config; ac_word=$2
4323 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4324 echo "configure
:4325: checking
for $ac_word" >&5
4325 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4326 echo $ac_n "(cached
) $ac_c" 1>&6
4328 case "$PKG_CONFIG" in
4330 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4333 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4338 for ac_dir in $ac_dummy; do
4339 test -z "$ac_dir" && ac_dir=.
4340 if test -f $ac_dir/$ac_word; then
4341 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4346 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
4350 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4351 if test -n "$PKG_CONFIG"; then
4352 echo "$ac_t""$PKG_CONFIG" 1>&6
4354 echo "$ac_t""no
" 1>&6
4359 if test "$PKG_CONFIG" = "no
" ; then
4360 echo "*** The pkg-config
script could not be found. Make sure it is
"
4361 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
4362 echo "*** to the full path to pkg-config.
"
4363 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
4365 PKG_CONFIG_MIN_VERSION=0.9.0
4366 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4367 echo $ac_n "checking
for pangoft2
""...
$ac_c" 1>&6
4368 echo "configure
:4369: checking
for pangoft2
" >&5
4370 if $PKG_CONFIG --exists "pangoft2
" ; then
4371 echo "$ac_t""yes" 1>&6
4374 echo $ac_n "checking PANGOFT2_CFLAGS
""...
$ac_c" 1>&6
4375 echo "configure
:4376: checking PANGOFT2_CFLAGS
" >&5
4376 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2
"`
4377 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
4379 echo $ac_n "checking PANGOFT2_LIBS
""...
$ac_c" 1>&6
4380 echo "configure
:4381: checking PANGOFT2_LIBS
" >&5
4381 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2
"`
4382 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
4386 ## If we have a custom action on failure, don't print errors, but
4387 ## do set a variable so people can do so.
4388 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2
"`
4389 echo $PANGOFT2_PKG_ERRORS
4395 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
4396 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
4400 if test $succeeded = yes; then
4403 { echo "configure
: error
: Library requirements
(pangoft2
) not met
; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are
in a nonstandard prefix so pkg-config can
find them.
" 1>&2; exit 1; }
4414 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
4415 echo "configure
:4416: checking
for garbage collector to use
" >&5
4416 # Check whether --enable-java-gc or --disable-java-gc was given.
4417 if test "${enable_java_gc+set}" = set; then
4418 enableval="$enable_java_gc"
4434 echo "$ac_t""boehm
" 1>&6
4435 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4436 JC1GCSPEC='-fuse-boehm-gc'
4437 GCTESTSPEC="-L`${PWDCMD-pwd}`/..
/boehm-gc
/.libs
-rpath `${PWDCMD-pwd}`/..
/boehm-gc
/.libs
"
4439 GCINCS="`cat ../boehm-gc/boehm-cflags`"
4442 cat >> confdefs.h <<\EOF
4443 #define HAVE_BOEHM_GC 1
4448 echo "$ac_t""none
" 1>&6
4453 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
4466 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
4467 echo "configure
:4468: checking
for thread model used by GCC
" >&5
4468 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4469 echo "$ac_t""$THREADS" 1>&6
4479 cat >> confdefs.h <<\EOF
4480 #define LINUX_THREADS 1
4488 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4489 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
4492 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
4508 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4513 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4514 # merely adds pthread_* functions) but it does have a -pthread switch
4515 # which is required at link-time to select -lc_r *instead* of -lc.
4516 THREADLDFLAGS=-pthread
4517 # Don't set THREADSPEC here as might be expected since -pthread is
4518 # not processed when found within a spec file, it must come from
4519 # the command line. For now, the user must provide the -pthread
4520 # switch to link code compiled with gcj. In future, consider adding
4521 # support for weak references to pthread_* functions ala gthr.h API.
4522 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4525 # FreeBSD 5 implements a model much closer to other modern UNIX
4526 # which support threads. However, it still does not support
4528 THREADLDFLAGS=-pthread
4532 THREADCXXFLAGS=-pthread
4533 # boehm-gc needs some functions from librt, so link that too.
4534 THREADLIBS='-lpthread -lrt'
4535 THREADSPEC='-lpthread -lrt'
4538 THREADLIBS=-lpthread
4539 THREADSPEC=-lpthread
4542 THREADOBJS=posix-threads.lo
4543 THREADH=posix-threads.h
4544 # MIT pthreads doesn't seem to have the mutexattr functions.
4545 # But for now we don't check for it. We just assume you aren't
4546 # using MIT pthreads.
4547 cat >> confdefs.h <<\EOF
4548 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4552 # If we're using the Boehm GC, then we happen to know that it
4553 # defines _REENTRANT, so we don't bother. Eww.
4554 if test "$GC" != boehm; then
4555 cat >> confdefs.h <<\EOF
4556 #define _REENTRANT 1
4560 cat >> confdefs.h <<\EOF
4561 #define _POSIX_PTHREAD_SEMANTICS 1
4567 THREADOBJS=win32-threads.lo
4568 THREADH=win32-threads.h
4572 THREADOBJS=no-threads.lo
4573 THREADH=no-threads.h
4585 if test -d sysdep; then true; else mkdir sysdep; fi
4589 # Hash synchronization is only useful with posix threads right now.
4590 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none
"; then
4591 HASH_SYNC_SPEC=-fhash-synchronization
4592 cat >> confdefs.h <<\EOF
4593 #define JV_HASH_SYNCHRONIZATION 1
4602 if test "$GCC" = yes; then
4610 # We're in the tree with gcc, and need to include some of its headers.
4611 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4613 # Figure out where generated headers like libgcj-config.h get installed.
4614 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4615 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4616 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4617 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
4621 if test "x
${with_newlib}" = "xyes
"; then
4622 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4623 # may not work correctly, because the compiler may not be able to
4626 # We assume newlib. This lets us hard-code the functions we know
4628 cat >> confdefs.h <<\EOF
4629 #define HAVE_MEMMOVE 1
4632 cat >> confdefs.h <<\EOF
4633 #define HAVE_MEMCPY 1
4636 cat >> confdefs.h <<\EOF
4637 #define HAVE_STRERROR 1
4640 cat >> confdefs.h <<\EOF
4644 cat >> confdefs.h <<\EOF
4645 #define HAVE_GMTIME_R 1
4648 cat >> confdefs.h <<\EOF
4649 #define HAVE_LOCALTIME_R 1
4652 cat >> confdefs.h <<\EOF
4653 #define HAVE_USLEEP_DECL 1
4656 cat >> confdefs.h <<\EOF
4657 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4660 cat >> confdefs.h <<\EOF
4661 #define HAVE_ALLOCA 1
4665 cat >> confdefs.h <<\EOF
4671 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4673 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4674 echo "configure
:4675: checking
for $ac_func" >&5
4675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4676 echo $ac_n "(cached
) $ac_c" 1>&6
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure
"
4680 #include "confdefs.h
"
4681 /* System header to define __stub macros and hopefully few prototypes,
4682 which can conflict with char $ac_func(); below. */
4684 /* Override any gcc2 internal prototype to avoid an error. */
4685 /* We use char because int might match the return type of a gcc2
4686 builtin and then its argument prototype would still apply. */
4691 /* The GNU C library defines this for functions which it implements
4692 to always fail with ENOSYS. Some functions are actually named
4693 something starting with __ and the normal name is an alias. */
4694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4702 if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4704 eval "ac_cv_func_
$ac_func=yes"
4706 echo "configure
: failed program was
:" >&5
4707 cat conftest.$ac_ext >&5
4709 eval "ac_cv_func_
$ac_func=no
"
4714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4715 echo "$ac_t""yes" 1>&6
4716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4717 cat >> confdefs.h <<EOF
4718 #define $ac_tr_func 1
4722 echo "$ac_t""no
" 1>&6
4726 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4728 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4729 echo "configure
:4730: checking
for $ac_func" >&5
4730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4731 echo $ac_n "(cached
) $ac_c" 1>&6
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure
"
4735 #include "confdefs.h
"
4736 /* System header to define __stub macros and hopefully few prototypes,
4737 which can conflict with char $ac_func(); below. */
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4746 /* The GNU C library defines this for functions which it implements
4747 to always fail with ENOSYS. Some functions are actually named
4748 something starting with __ and the normal name is an alias. */
4749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4757 if { (eval echo configure:4758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4759 eval "ac_cv_func_
$ac_func=yes"
4761 echo "configure
: failed program was
:" >&5
4762 cat conftest.$ac_ext >&5
4764 eval "ac_cv_func_
$ac_func=no
"
4769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4770 echo "$ac_t""yes" 1>&6
4771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4772 cat >> confdefs.h <<EOF
4773 #define $ac_tr_func 1
4777 echo "$ac_t""no
" 1>&6
4781 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4783 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4784 echo "configure
:4785: checking
for $ac_func" >&5
4785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4786 echo $ac_n "(cached
) $ac_c" 1>&6
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure
"
4790 #include "confdefs.h
"
4791 /* System header to define __stub macros and hopefully few prototypes,
4792 which can conflict with char $ac_func(); below. */
4794 /* Override any gcc2 internal prototype to avoid an error. */
4795 /* We use char because int might match the return type of a gcc2
4796 builtin and then its argument prototype would still apply. */
4801 /* The GNU C library defines this for functions which it implements
4802 to always fail with ENOSYS. Some functions are actually named
4803 something starting with __ and the normal name is an alias. */
4804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4814 eval "ac_cv_func_
$ac_func=yes"
4816 echo "configure
: failed program was
:" >&5
4817 cat conftest.$ac_ext >&5
4819 eval "ac_cv_func_
$ac_func=no
"
4824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4825 echo "$ac_t""yes" 1>&6
4826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4827 cat >> confdefs.h <<EOF
4828 #define $ac_tr_func 1
4832 echo "$ac_t""no
" 1>&6
4836 for ac_func in nl_langinfo setlocale
4838 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4839 echo "configure
:4840: checking
for $ac_func" >&5
4840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4841 echo $ac_n "(cached
) $ac_c" 1>&6
4843 cat > conftest.$ac_ext <<EOF
4844 #line 4845 "configure
"
4845 #include "confdefs.h
"
4846 /* System header to define __stub macros and hopefully few prototypes,
4847 which can conflict with char $ac_func(); below. */
4849 /* Override any gcc2 internal prototype to avoid an error. */
4850 /* We use char because int might match the return type of a gcc2
4851 builtin and then its argument prototype would still apply. */
4856 /* The GNU C library defines this for functions which it implements
4857 to always fail with ENOSYS. Some functions are actually named
4858 something starting with __ and the normal name is an alias. */
4859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4867 if { (eval echo configure:4868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4869 eval "ac_cv_func_
$ac_func=yes"
4871 echo "configure
: failed program was
:" >&5
4872 cat conftest.$ac_ext >&5
4874 eval "ac_cv_func_
$ac_func=no
"
4879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4880 echo "$ac_t""yes" 1>&6
4881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4882 cat >> confdefs.h <<EOF
4883 #define $ac_tr_func 1
4887 echo "$ac_t""no
" 1>&6
4891 for ac_func in inet_aton inet_addr
4893 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4894 echo "configure
:4895: checking
for $ac_func" >&5
4895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4896 echo $ac_n "(cached
) $ac_c" 1>&6
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure
"
4900 #include "confdefs.h
"
4901 /* System header to define __stub macros and hopefully few prototypes,
4902 which can conflict with char $ac_func(); below. */
4904 /* Override any gcc2 internal prototype to avoid an error. */
4905 /* We use char because int might match the return type of a gcc2
4906 builtin and then its argument prototype would still apply. */
4911 /* The GNU C library defines this for functions which it implements
4912 to always fail with ENOSYS. Some functions are actually named
4913 something starting with __ and the normal name is an alias. */
4914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4924 eval "ac_cv_func_
$ac_func=yes"
4926 echo "configure
: failed program was
:" >&5
4927 cat conftest.$ac_ext >&5
4929 eval "ac_cv_func_
$ac_func=no
"
4934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4935 echo "$ac_t""yes" 1>&6
4936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4937 cat >> confdefs.h <<EOF
4938 #define $ac_tr_func 1
4942 echo "$ac_t""no
" 1>&6
4946 for ac_func in inet_pton uname inet_ntoa
4948 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4949 echo "configure
:4950: checking
for $ac_func" >&5
4950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4951 echo $ac_n "(cached
) $ac_c" 1>&6
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure
"
4955 #include "confdefs.h
"
4956 /* System header to define __stub macros and hopefully few prototypes,
4957 which can conflict with char $ac_func(); below. */
4959 /* Override any gcc2 internal prototype to avoid an error. */
4960 /* We use char because int might match the return type of a gcc2
4961 builtin and then its argument prototype would still apply. */
4966 /* The GNU C library defines this for functions which it implements
4967 to always fail with ENOSYS. Some functions are actually named
4968 something starting with __ and the normal name is an alias. */
4969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4979 eval "ac_cv_func_
$ac_func=yes"
4981 echo "configure
: failed program was
:" >&5
4982 cat conftest.$ac_ext >&5
4984 eval "ac_cv_func_
$ac_func=no
"
4989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4992 cat >> confdefs.h <<EOF
4993 #define $ac_tr_func 1
4997 echo "$ac_t""no
" 1>&6
5001 for ac_func in fork execvp pipe sigaction ftruncate
5003 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5004 echo "configure
:5005: checking
for $ac_func" >&5
5005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5006 echo $ac_n "(cached
) $ac_c" 1>&6
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure
"
5010 #include "confdefs.h
"
5011 /* System header to define __stub macros and hopefully few prototypes,
5012 which can conflict with char $ac_func(); below. */
5014 /* Override any gcc2 internal prototype to avoid an error. */
5015 /* We use char because int might match the return type of a gcc2
5016 builtin and then its argument prototype would still apply. */
5021 /* The GNU C library defines this for functions which it implements
5022 to always fail with ENOSYS. Some functions are actually named
5023 something starting with __ and the normal name is an alias. */
5024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5032 if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5034 eval "ac_cv_func_
$ac_func=yes"
5036 echo "configure
: failed program was
:" >&5
5037 cat conftest.$ac_ext >&5
5039 eval "ac_cv_func_
$ac_func=no
"
5044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5045 echo "$ac_t""yes" 1>&6
5046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5047 cat >> confdefs.h <<EOF
5048 #define $ac_tr_func 1
5052 echo "$ac_t""no
" 1>&6
5056 for ac_hdr in execinfo.h unistd.h dlfcn.h
5058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5059 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5060 echo "configure
:5061: checking
for $ac_hdr" >&5
5061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5062 echo $ac_n "(cached
) $ac_c" 1>&6
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure
"
5066 #include "confdefs.h
"
5069 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5070 { (eval echo configure:5071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5072 if test -z "$ac_err"; then
5074 eval "ac_cv_header_
$ac_safe=yes"
5077 echo "configure
: failed program was
:" >&5
5078 cat conftest.$ac_ext >&5
5080 eval "ac_cv_header_
$ac_safe=no
"
5084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5085 echo "$ac_t""yes" 1>&6
5086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5087 cat >> confdefs.h <<EOF
5088 #define $ac_tr_hdr 1
5092 echo "$ac_t""no
" 1>&6
5096 echo $ac_n "checking
for backtrace
""...
$ac_c" 1>&6
5097 echo "configure
:5098: checking
for backtrace
" >&5
5098 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
5099 echo $ac_n "(cached
) $ac_c" 1>&6
5101 cat > conftest.$ac_ext <<EOF
5102 #line 5103 "configure
"
5103 #include "confdefs.h
"
5104 /* System header to define __stub macros and hopefully few prototypes,
5105 which can conflict with char backtrace(); below. */
5107 /* Override any gcc2 internal prototype to avoid an error. */
5108 /* We use char because int might match the return type of a gcc2
5109 builtin and then its argument prototype would still apply. */
5114 /* The GNU C library defines this for functions which it implements
5115 to always fail with ENOSYS. Some functions are actually named
5116 something starting with __ and the normal name is an alias. */
5117 #if defined (__stub_backtrace) || defined (__stub___backtrace)
5125 if { (eval echo configure:5126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5127 eval "ac_cv_func_backtrace
=yes"
5129 echo "configure
: failed program was
:" >&5
5130 cat conftest.$ac_ext >&5
5132 eval "ac_cv_func_backtrace
=no
"
5137 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
5138 echo "$ac_t""yes" 1>&6
5142 # Has broken backtrace()
5145 # Has broken backtrace(), but we supply our own.
5146 if test -d sysdep; then true; else mkdir -p sysdep; fi
5147 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep
/dwarf2-backtrace.cc
"
5148 cat >> confdefs.h <<\EOF
5149 #define HAVE_BACKTRACE 1
5154 cat >> confdefs.h <<\EOF
5155 #define HAVE_BACKTRACE 1
5162 echo "$ac_t""no
" 1>&6
5166 # Has backtrace() defined in libgcj itself
5167 cat >> confdefs.h <<\EOF
5168 #define HAVE_BACKTRACE 1
5177 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
5178 echo "configure
:5179: checking
for dladdr
in -ldl" >&5
5179 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
5180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5181 echo $ac_n "(cached
) $ac_c" 1>&6
5183 ac_save_LIBS="$LIBS"
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure
"
5187 #include "confdefs.h
"
5188 /* Override any gcc2 internal prototype to avoid an error. */
5189 /* We use char because int might match the return type of a gcc2
5190 builtin and then its argument prototype would still apply. */
5197 if { (eval echo configure:5198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5199 eval "ac_cv_lib_
$ac_lib_var=yes"
5201 echo "configure
: failed program was
:" >&5
5202 cat conftest.$ac_ext >&5
5204 eval "ac_cv_lib_
$ac_lib_var=no
"
5207 LIBS="$ac_save_LIBS"
5210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5211 echo "$ac_t""yes" 1>&6
5213 if test "x
${disable_dladdr}" = "xyes
"; then
5217 cat >> confdefs.h <<\EOF
5218 #define HAVE_DLADDR 1
5224 echo "$ac_t""no
" 1>&6
5227 if test x"$build" = x"$host"; then
5228 for ac_file in /proc/self/exe
5231 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
5232 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
5233 echo "configure
:5234: checking
for $ac_file" >&5
5234 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
5235 echo $ac_n "(cached
) $ac_c" 1>&6
5237 if test "$cross_compiling" = yes; then
5238 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
5240 if test -r $ac_file; then
5241 eval "ac_cv_file_
$ac_safe=yes"
5243 eval "ac_cv_file_
$ac_safe=no
"
5247 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
5248 echo "$ac_t""yes" 1>&6
5249 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5250 cat >> confdefs.h <<EOF
5251 #define $ac_tr_file 1
5254 cat >> confdefs.h <<\EOF
5255 #define HAVE_PROC_SELF_EXE 1
5259 echo "$ac_t""no
" 1>&6
5267 cat >> confdefs.h <<\EOF
5268 #define HAVE_PROC_SELF_EXE 1
5277 am_cv_lib_iconv_ldpath=
5278 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5279 if test "${with_libiconv_prefix+set}" = set; then
5280 withval="$with_libiconv_prefix"
5282 for dir in `echo "$withval" | tr : ' '`; do
5283 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
5284 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib
"; fi
5290 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
5291 echo "configure
:5292: checking
for iconv" >&5
5292 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5293 echo $ac_n "(cached
) $ac_c" 1>&6
5296 am_cv_func_iconv="no
, consider installing GNU libiconv
"
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure
"
5300 #include "confdefs.h
"
5304 iconv_t cd = iconv_open("","");
5305 iconv(cd,NULL,NULL,NULL,NULL);
5309 if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5311 am_cv_func_iconv=yes
5313 echo "configure
: failed program was
:" >&5
5314 cat conftest.$ac_ext >&5
5317 if test "$am_cv_func_iconv" != yes; then
5318 am_save_LIBS="$LIBS"
5319 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5320 cat > conftest.$ac_ext <<EOF
5321 #line 5322 "configure
"
5322 #include "confdefs.h
"
5326 iconv_t cd = iconv_open("","");
5327 iconv(cd,NULL,NULL,NULL,NULL);
5331 if { (eval echo configure:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5334 am_cv_func_iconv=yes
5336 echo "configure
: failed program was
:" >&5
5337 cat conftest.$ac_ext >&5
5340 LIBS="$am_save_LIBS"
5345 echo "$ac_t""$am_cv_func_iconv" 1>&6
5346 if test "$am_cv_func_iconv" = yes; then
5347 cat >> confdefs.h <<\EOF
5348 #define HAVE_ICONV 1
5351 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
5352 echo "configure
:5353: checking
for iconv declaration
" >&5
5353 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5354 echo $ac_n "(cached
) $ac_c" 1>&6
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure
"
5359 #include "confdefs.h
"
5367 #if defined(__STDC__) || defined(__cplusplus)
5368 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5377 if { (eval echo configure:5378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5379 am_cv_proto_iconv_arg1=""
5381 echo "configure
: failed program was
:" >&5
5382 cat conftest.$ac_ext >&5
5384 am_cv_proto_iconv_arg1="const
"
5387 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
);"
5390 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5391 echo "$ac_t""$
{ac_t
:-
5392 }$am_cv_proto_iconv" 1>&6
5393 cat >> confdefs.h <<EOF
5394 #define ICONV_CONST $am_cv_proto_iconv_arg1
5399 if test "$am_cv_lib_iconv" = yes; then
5400 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5404 for ac_hdr in locale.h
5406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5407 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5408 echo "configure
:5409: checking
for $ac_hdr" >&5
5409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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
"
5417 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5418 { (eval echo configure:5419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5420 if test -z "$ac_err"; then
5422 eval "ac_cv_header_
$ac_safe=yes"
5425 echo "configure
: failed program was
:" >&5
5426 cat conftest.$ac_ext >&5
5428 eval "ac_cv_header_
$ac_safe=no
"
5432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5433 echo "$ac_t""yes" 1>&6
5434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5435 cat >> confdefs.h <<EOF
5436 #define $ac_tr_hdr 1
5440 echo "$ac_t""no
" 1>&6
5444 if test $ac_cv_header_locale_h = yes; then
5445 echo $ac_n "checking
for LC_MESSAGES
""...
$ac_c" 1>&6
5446 echo "configure
:5447: checking
for LC_MESSAGES
" >&5
5447 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5448 echo $ac_n "(cached
) $ac_c" 1>&6
5450 cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure
"
5452 #include "confdefs.h
"
5458 if { (eval echo configure:5459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5460 am_cv_val_LC_MESSAGES=yes
5462 echo "configure
: failed program was
:" >&5
5463 cat conftest.$ac_ext >&5
5465 am_cv_val_LC_MESSAGES=no
5470 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5471 if test $am_cv_val_LC_MESSAGES = yes; then
5472 cat >> confdefs.h <<\EOF
5473 #define HAVE_LC_MESSAGES 1
5478 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
5479 echo "configure
:5480: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
5480 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5481 echo $ac_n "(cached
) $ac_c" 1>&6
5483 cat > conftest.$ac_ext <<EOF
5484 #line 5485 "configure
"
5485 #include "confdefs.h
"
5486 #include <sys/types.h>
5489 struct tm *tp; tp->tm_sec;
5492 if { (eval echo configure:5493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5494 ac_cv_struct_tm=time.h
5496 echo "configure
: failed program was
:" >&5
5497 cat conftest.$ac_ext >&5
5499 ac_cv_struct_tm=sys/time.h
5504 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5505 if test $ac_cv_struct_tm = sys/time.h; then
5506 cat >> confdefs.h <<\EOF
5507 #define TM_IN_SYS_TIME 1
5512 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
5513 echo "configure
:5514: checking
for tm_zone
in struct tm
" >&5
5514 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5515 echo $ac_n "(cached
) $ac_c" 1>&6
5517 cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure
"
5519 #include "confdefs.h
"
5520 #include <sys/types.h>
5521 #include <$ac_cv_struct_tm>
5523 struct tm tm; tm.tm_zone;
5526 if { (eval echo configure:5527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5528 ac_cv_struct_tm_zone=yes
5530 echo "configure
: failed program was
:" >&5
5531 cat conftest.$ac_ext >&5
5533 ac_cv_struct_tm_zone=no
5538 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5539 if test "$ac_cv_struct_tm_zone" = yes; then
5540 cat >> confdefs.h <<\EOF
5541 #define HAVE_TM_ZONE 1
5545 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
5546 echo "configure
:5547: checking
for tzname
" >&5
5547 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5548 echo $ac_n "(cached
) $ac_c" 1>&6
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure
"
5552 #include "confdefs.h
"
5554 #ifndef tzname /* For SGI. */
5555 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5563 ac_cv_var_tzname=yes
5565 echo "configure
: failed program was
:" >&5
5566 cat conftest.$ac_ext >&5
5573 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5574 if test $ac_cv_var_tzname = yes; then
5575 cat >> confdefs.h <<\EOF
5576 #define HAVE_TZNAME 1
5583 for ac_func in gethostbyname_r
5585 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5586 echo "configure
:5587: checking
for $ac_func" >&5
5587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5588 echo $ac_n "(cached
) $ac_c" 1>&6
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure
"
5592 #include "confdefs.h
"
5593 /* System header to define __stub macros and hopefully few prototypes,
5594 which can conflict with char $ac_func(); below. */
5596 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5603 /* The GNU C library defines this for functions which it implements
5604 to always fail with ENOSYS. Some functions are actually named
5605 something starting with __ and the normal name is an alias. */
5606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5614 if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5616 eval "ac_cv_func_
$ac_func=yes"
5618 echo "configure
: failed program was
:" >&5
5619 cat conftest.$ac_ext >&5
5621 eval "ac_cv_func_
$ac_func=no
"
5626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5629 cat >> confdefs.h <<EOF
5630 #define $ac_tr_func 1
5633 cat >> confdefs.h <<\EOF
5634 #define HAVE_GETHOSTBYNAME_R 1
5637 # There are two different kinds of gethostbyname_r.
5638 # We look for the one that returns `int'.
5639 # Hopefully this check is robust enough.
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure
"
5642 #include "confdefs.h
"
5645 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5646 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
5649 cat >> confdefs.h <<\EOF
5650 #define GETHOSTBYNAME_R_RETURNS_INT 1
5658 *" -D_REENTRANT "*) ;;
5660 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
5661 echo "configure
:5662: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
5662 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5663 echo $ac_n "(cached
) $ac_c" 1>&6
5667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5668 ac_cpp='$CXXCPP $CPPFLAGS'
5669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5671 cross_compiling=$ac_cv_prog_cxx_cross
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure
"
5675 #include "confdefs.h
"
5678 gethostbyname_r("", 0, 0);
5681 if { (eval echo configure:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5683 libjava_cv_gethostbyname_r_needs_reentrant=no
5685 echo "configure
: failed program was
:" >&5
5686 cat conftest.$ac_ext >&5
5688 CPPFLAGS_SAVE="$CPPFLAGS"
5689 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure
"
5692 #include "confdefs.h
"
5695 gethostbyname_r("", 0, 0);
5698 if { (eval echo configure:5699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5700 libjava_cv_gethostbyname_r_needs_reentrant=yes
5702 echo "configure
: failed program was
:" >&5
5703 cat conftest.$ac_ext >&5
5705 libjava_cv_gethostbyname_r_needs_reentrant=fail
5708 CPPFLAGS="$CPPFLAGS_SAVE"
5713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5714 ac_cpp='$CPP $CPPFLAGS'
5715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5717 cross_compiling=$ac_cv_prog_cc_cross
5722 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5723 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5724 cat >> confdefs.h <<\EOF
5725 #define _REENTRANT 1
5732 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
5733 echo "configure
:5734: checking
for struct hostent_data
" >&5
5734 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5735 echo $ac_n "(cached
) $ac_c" 1>&6
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure
"
5739 #include "confdefs.h
"
5741 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5742 # define _REENTRANT 1
5746 struct hostent_data data;
5749 if { (eval echo configure:5750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5751 libjava_cv_struct_hostent_data=yes
5753 echo "configure
: failed program was
:" >&5
5754 cat conftest.$ac_ext >&5
5756 libjava_cv_struct_hostent_data=no
5761 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5762 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
5763 cat >> confdefs.h <<\EOF
5764 #define HAVE_STRUCT_HOSTENT_DATA 1
5770 echo "$ac_t""no
" 1>&6
5775 # FIXME: libjava source code expects to find a prototype for
5776 # gethostbyaddr_r in netdb.h. The outer check ensures that
5777 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5778 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5779 # linkage check is enough, yet C++ code requires proper prototypes.)
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure
"
5782 #include "confdefs.h
"
5785 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5786 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
5789 for ac_func in gethostbyaddr_r
5791 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5792 echo "configure
:5793: checking
for $ac_func" >&5
5793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5794 echo $ac_n "(cached
) $ac_c" 1>&6
5796 cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure
"
5798 #include "confdefs.h
"
5799 /* System header to define __stub macros and hopefully few prototypes,
5800 which can conflict with char $ac_func(); below. */
5802 /* Override any gcc2 internal prototype to avoid an error. */
5803 /* We use char because int might match the return type of a gcc2
5804 builtin and then its argument prototype would still apply. */
5809 /* The GNU C library defines this for functions which it implements
5810 to always fail with ENOSYS. Some functions are actually named
5811 something starting with __ and the normal name is an alias. */
5812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5820 if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5822 eval "ac_cv_func_
$ac_func=yes"
5824 echo "configure
: failed program was
:" >&5
5825 cat conftest.$ac_ext >&5
5827 eval "ac_cv_func_
$ac_func=no
"
5832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5833 echo "$ac_t""yes" 1>&6
5834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5835 cat >> confdefs.h <<EOF
5836 #define $ac_tr_func 1
5839 cat >> confdefs.h <<\EOF
5840 #define HAVE_GETHOSTBYADDR_R 1
5843 # There are two different kinds of gethostbyaddr_r.
5844 # We look for the one that returns `int'.
5845 # Hopefully this check is robust enough.
5846 cat > conftest.$ac_ext <<EOF
5847 #line 5848 "configure
"
5848 #include "confdefs.h
"
5851 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5852 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
5855 cat >> confdefs.h <<\EOF
5856 #define GETHOSTBYADDR_R_RETURNS_INT 1
5863 echo "$ac_t""no
" 1>&6
5871 for ac_func in gethostname
5873 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5874 echo "configure
:5875: checking
for $ac_func" >&5
5875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5876 echo $ac_n "(cached
) $ac_c" 1>&6
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure
"
5880 #include "confdefs.h
"
5881 /* System header to define __stub macros and hopefully few prototypes,
5882 which can conflict with char $ac_func(); below. */
5884 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5891 /* The GNU C library defines this for functions which it implements
5892 to always fail with ENOSYS. Some functions are actually named
5893 something starting with __ and the normal name is an alias. */
5894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5902 if { (eval echo configure:5903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5904 eval "ac_cv_func_
$ac_func=yes"
5906 echo "configure
: failed program was
:" >&5
5907 cat conftest.$ac_ext >&5
5909 eval "ac_cv_func_
$ac_func=no
"
5914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5915 echo "$ac_t""yes" 1>&6
5916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5917 cat >> confdefs.h <<EOF
5918 #define $ac_tr_func 1
5921 cat >> confdefs.h <<\EOF
5922 #define HAVE_GETHOSTNAME 1
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure
"
5927 #include "confdefs.h
"
5930 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5931 egrep "gethostname
" >/dev/null 2>&1; then
5934 cat >> confdefs.h <<\EOF
5935 #define HAVE_GETHOSTNAME_DECL 1
5942 echo "$ac_t""no
" 1>&6
5947 for ac_func in usleep
5949 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5950 echo "configure
:5951: checking
for $ac_func" >&5
5951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5952 echo $ac_n "(cached
) $ac_c" 1>&6
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure
"
5956 #include "confdefs.h
"
5957 /* System header to define __stub macros and hopefully few prototypes,
5958 which can conflict with char $ac_func(); below. */
5960 /* Override any gcc2 internal prototype to avoid an error. */
5961 /* We use char because int might match the return type of a gcc2
5962 builtin and then its argument prototype would still apply. */
5967 /* The GNU C library defines this for functions which it implements
5968 to always fail with ENOSYS. Some functions are actually named
5969 something starting with __ and the normal name is an alias. */
5970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5978 if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5980 eval "ac_cv_func_
$ac_func=yes"
5982 echo "configure
: failed program was
:" >&5
5983 cat conftest.$ac_ext >&5
5985 eval "ac_cv_func_
$ac_func=no
"
5990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5991 echo "$ac_t""yes" 1>&6
5992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5993 cat >> confdefs.h <<EOF
5994 #define $ac_tr_func 1
5997 cat > conftest.$ac_ext <<EOF
5998 #line 5999 "configure
"
5999 #include "confdefs.h
"
6002 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6003 egrep "usleep" >/dev/null 2>&1; then
6006 cat >> confdefs.h <<\EOF
6007 #define HAVE_USLEEP_DECL 1
6014 echo "$ac_t""no
" 1>&6
6019 # Look for these functions in the thread library, but only bother
6020 # if using POSIX threads.
6021 if test "$THREADS" = posix; then
6023 LIBS="$LIBS $THREADLIBS"
6024 # Some POSIX thread systems don't have pthread_mutexattr_settype.
6026 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
6028 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6029 echo "configure
:6030: checking
for $ac_func" >&5
6030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6031 echo $ac_n "(cached
) $ac_c" 1>&6
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure
"
6035 #include "confdefs.h
"
6036 /* System header to define __stub macros and hopefully few prototypes,
6037 which can conflict with char $ac_func(); below. */
6039 /* Override any gcc2 internal prototype to avoid an error. */
6040 /* We use char because int might match the return type of a gcc2
6041 builtin and then its argument prototype would still apply. */
6046 /* The GNU C library defines this for functions which it implements
6047 to always fail with ENOSYS. Some functions are actually named
6048 something starting with __ and the normal name is an alias. */
6049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6059 eval "ac_cv_func_
$ac_func=yes"
6061 echo "configure
: failed program was
:" >&5
6062 cat conftest.$ac_ext >&5
6064 eval "ac_cv_func_
$ac_func=no
"
6069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6070 echo "$ac_t""yes" 1>&6
6071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6072 cat >> confdefs.h <<EOF
6073 #define $ac_tr_func 1
6077 echo "$ac_t""no
" 1>&6
6082 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
6083 # Solaris 7 the name librt is preferred.
6084 for ac_func in sched_yield
6086 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6087 echo "configure
:6088: checking
for $ac_func" >&5
6088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6089 echo $ac_n "(cached
) $ac_c" 1>&6
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure
"
6093 #include "confdefs.h
"
6094 /* System header to define __stub macros and hopefully few prototypes,
6095 which can conflict with char $ac_func(); below. */
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6104 /* The GNU C library defines this for functions which it implements
6105 to always fail with ENOSYS. Some functions are actually named
6106 something starting with __ and the normal name is an alias. */
6107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6117 eval "ac_cv_func_
$ac_func=yes"
6119 echo "configure
: failed program was
:" >&5
6120 cat conftest.$ac_ext >&5
6122 eval "ac_cv_func_
$ac_func=no
"
6127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6128 echo "$ac_t""yes" 1>&6
6129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6130 cat >> confdefs.h <<EOF
6131 #define $ac_tr_func 1
6135 echo "$ac_t""no
" 1>&6
6136 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
6137 echo "configure
:6138: checking
for sched_yield
in -lrt" >&5
6138 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6140 echo $ac_n "(cached
) $ac_c" 1>&6
6142 ac_save_LIBS="$LIBS"
6144 cat > conftest.$ac_ext <<EOF
6145 #line 6146 "configure
"
6146 #include "confdefs.h
"
6147 /* Override any gcc2 internal prototype to avoid an error. */
6148 /* We use char because int might match the return type of a gcc2
6149 builtin and then its argument prototype would still apply. */
6156 if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6158 eval "ac_cv_lib_
$ac_lib_var=yes"
6160 echo "configure
: failed program was
:" >&5
6161 cat conftest.$ac_ext >&5
6163 eval "ac_cv_lib_
$ac_lib_var=no
"
6166 LIBS="$ac_save_LIBS"
6169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6170 echo "$ac_t""yes" 1>&6
6172 cat >> confdefs.h <<\EOF
6173 #define HAVE_SCHED_YIELD 1
6176 THREADLIBS="$THREADLIBS -lrt"
6177 THREADSPEC="$THREADSPEC -lrt"
6179 echo "$ac_t""no
" 1>&6
6181 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
6182 echo "configure
:6183: checking
for sched_yield
in -lposix4" >&5
6183 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
6184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6185 echo $ac_n "(cached
) $ac_c" 1>&6
6187 ac_save_LIBS="$LIBS"
6188 LIBS="-lposix4 $LIBS"
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure
"
6191 #include "confdefs.h
"
6192 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6203 eval "ac_cv_lib_
$ac_lib_var=yes"
6205 echo "configure
: failed program was
:" >&5
6206 cat conftest.$ac_ext >&5
6208 eval "ac_cv_lib_
$ac_lib_var=no
"
6211 LIBS="$ac_save_LIBS"
6214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6215 echo "$ac_t""yes" 1>&6
6217 cat >> confdefs.h <<\EOF
6218 #define HAVE_SCHED_YIELD 1
6221 THREADLIBS="$THREADLIBS -lposix4"
6222 THREADSPEC="$THREADSPEC -lposix4"
6224 echo "$ac_t""no
" 1>&6
6234 # We can save a little space at runtime if the mutex has m_count
6235 # or __m_count. This is a nice hack for Linux.
6236 cat > conftest.$ac_ext <<EOF
6237 #line 6238 "configure
"
6238 #include "confdefs.h
"
6239 #include <pthread.h>
6242 extern pthread_mutex_t *mutex; int q = mutex->m_count;
6246 if { (eval echo configure:6247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6248 cat >> confdefs.h <<\EOF
6249 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
6253 echo "configure
: failed program was
:" >&5
6254 cat conftest.$ac_ext >&5
6257 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure
"
6259 #include "confdefs.h
"
6260 #include <pthread.h>
6263 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
6267 if { (eval echo configure:6268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6269 cat >> confdefs.h <<\EOF
6270 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
6274 echo "configure
: failed program was
:" >&5
6275 cat conftest.$ac_ext >&5
6282 # We require a way to get the time.
6284 for ac_func in gettimeofday time ftime
6286 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6287 echo "configure
:6288: checking
for $ac_func" >&5
6288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6289 echo $ac_n "(cached
) $ac_c" 1>&6
6291 cat > conftest.$ac_ext <<EOF
6292 #line 6293 "configure
"
6293 #include "confdefs.h
"
6294 /* System header to define __stub macros and hopefully few prototypes,
6295 which can conflict with char $ac_func(); below. */
6297 /* Override any gcc2 internal prototype to avoid an error. */
6298 /* We use char because int might match the return type of a gcc2
6299 builtin and then its argument prototype would still apply. */
6304 /* The GNU C library defines this for functions which it implements
6305 to always fail with ENOSYS. Some functions are actually named
6306 something starting with __ and the normal name is an alias. */
6307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6315 if { (eval echo configure:6316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6317 eval "ac_cv_func_
$ac_func=yes"
6319 echo "configure
: failed program was
:" >&5
6320 cat conftest.$ac_ext >&5
6322 eval "ac_cv_func_
$ac_func=no
"
6327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6328 echo "$ac_t""yes" 1>&6
6329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6330 cat >> confdefs.h <<EOF
6331 #define $ac_tr_func 1
6335 echo "$ac_t""no
" 1>&6
6339 if test "$time_found" = no; then
6340 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
6343 for ac_func in memmove
6345 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6346 echo "configure
:6347: checking
for $ac_func" >&5
6347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6348 echo $ac_n "(cached
) $ac_c" 1>&6
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure
"
6352 #include "confdefs.h
"
6353 /* System header to define __stub macros and hopefully few prototypes,
6354 which can conflict with char $ac_func(); below. */
6356 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6363 /* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6374 if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6376 eval "ac_cv_func_
$ac_func=yes"
6378 echo "configure
: failed program was
:" >&5
6379 cat conftest.$ac_ext >&5
6381 eval "ac_cv_func_
$ac_func=no
"
6386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6387 echo "$ac_t""yes" 1>&6
6388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6389 cat >> confdefs.h <<EOF
6390 #define $ac_tr_func 1
6394 echo "$ac_t""no
" 1>&6
6399 # We require memcpy.
6401 for ac_func in memcpy
6403 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6404 echo "configure
:6405: checking
for $ac_func" >&5
6405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6406 echo $ac_n "(cached
) $ac_c" 1>&6
6408 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure
"
6410 #include "confdefs.h
"
6411 /* System header to define __stub macros and hopefully few prototypes,
6412 which can conflict with char $ac_func(); below. */
6414 /* Override any gcc2 internal prototype to avoid an error. */
6415 /* We use char because int might match the return type of a gcc2
6416 builtin and then its argument prototype would still apply. */
6421 /* The GNU C library defines this for functions which it implements
6422 to always fail with ENOSYS. Some functions are actually named
6423 something starting with __ and the normal name is an alias. */
6424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6432 if { (eval echo configure:6433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6434 eval "ac_cv_func_
$ac_func=yes"
6436 echo "configure
: failed program was
:" >&5
6437 cat conftest.$ac_ext >&5
6439 eval "ac_cv_func_
$ac_func=no
"
6444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6445 echo "$ac_t""yes" 1>&6
6446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6447 cat >> confdefs.h <<EOF
6448 #define $ac_tr_func 1
6452 echo "$ac_t""no
" 1>&6
6456 if test "$memcpy_found" = no; then
6457 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
6460 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
6461 echo "configure
:6462: checking
for dlopen
in -ldl" >&5
6462 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6464 echo $ac_n "(cached
) $ac_c" 1>&6
6466 ac_save_LIBS="$LIBS"
6468 cat > conftest.$ac_ext <<EOF
6469 #line 6470 "configure
"
6470 #include "confdefs.h
"
6471 /* Override any gcc2 internal prototype to avoid an error. */
6472 /* We use char because int might match the return type of a gcc2
6473 builtin and then its argument prototype would still apply. */
6480 if { (eval echo configure:6481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6482 eval "ac_cv_lib_
$ac_lib_var=yes"
6484 echo "configure
: failed program was
:" >&5
6485 cat conftest.$ac_ext >&5
6487 eval "ac_cv_lib_
$ac_lib_var=no
"
6490 LIBS="$ac_save_LIBS"
6493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6494 echo "$ac_t""yes" 1>&6
6496 cat >> confdefs.h <<\EOF
6497 #define HAVE_DLOPEN 1
6501 echo "$ac_t""no
" 1>&6
6505 # Some library-finding code we stole from Tcl.
6506 #--------------------------------------------------------------------
6507 # Check for the existence of the -lsocket and -lnsl libraries.
6508 # The order here is important, so that they end up in the right
6509 # order in the command line generated by make. Here are some
6510 # special considerations:
6511 # 1. Use "connect
" and "accept
" to check for -lsocket, and
6512 # "gethostbyname
" to check for -lnsl.
6513 # 2. Use each function name only once: can't redo a check because
6514 # autoconf caches the results of the last check and won't redo it.
6515 # 3. Use -lnsl and -lsocket only if they supply procedures that
6516 # aren't already present in the normal libraries. This is because
6517 # IRIX 5.2 has libraries, but they aren't needed and they're
6518 # bogus: they goof up name resolution if used.
6519 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6520 # To get around this problem, check for both libraries together
6521 # if -lsocket doesn't work by itself.
6522 #--------------------------------------------------------------------
6524 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
6525 echo "configure
:6526: checking
for socket libraries
" >&5
6526 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6527 echo $ac_n "(cached
) $ac_c" 1>&6
6531 unset ac_cv_func_connect
6532 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6533 echo "configure
:6534: checking
for connect
" >&5
6534 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6535 echo $ac_n "(cached
) $ac_c" 1>&6
6537 cat > conftest.$ac_ext <<EOF
6538 #line 6539 "configure
"
6539 #include "confdefs.h
"
6540 /* System header to define __stub macros and hopefully few prototypes,
6541 which can conflict with char connect(); below. */
6543 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6550 /* The GNU C library defines this for functions which it implements
6551 to always fail with ENOSYS. Some functions are actually named
6552 something starting with __ and the normal name is an alias. */
6553 #if defined (__stub_connect) || defined (__stub___connect)
6561 if { (eval echo configure:6562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6563 eval "ac_cv_func_connect
=yes"
6565 echo "configure
: failed program was
:" >&5
6566 cat conftest.$ac_ext >&5
6568 eval "ac_cv_func_connect
=no
"
6573 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6574 echo "$ac_t""yes" 1>&6
6577 echo "$ac_t""no
" 1>&6
6581 if test "$gcj_checkSocket" = 1; then
6582 unset ac_cv_func_connect
6583 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
6584 echo "configure
:6585: checking
for main
in -lsocket" >&5
6585 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6587 echo $ac_n "(cached
) $ac_c" 1>&6
6589 ac_save_LIBS="$LIBS"
6590 LIBS="-lsocket $LIBS"
6591 cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure
"
6593 #include "confdefs.h
"
6599 if { (eval echo configure:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6601 eval "ac_cv_lib_
$ac_lib_var=yes"
6603 echo "configure
: failed program was
:" >&5
6604 cat conftest.$ac_ext >&5
6606 eval "ac_cv_lib_
$ac_lib_var=no
"
6609 LIBS="$ac_save_LIBS"
6612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6613 echo "$ac_t""yes" 1>&6
6614 gcj_cv_lib_sockets="-lsocket"
6616 echo "$ac_t""no
" 1>&6
6621 if test "$gcj_checkBoth" = 1; then
6623 LIBS="$LIBS -lsocket -lnsl"
6624 unset ac_cv_func_accept
6625 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
6626 echo "configure
:6627: checking
for accept
" >&5
6627 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6628 echo $ac_n "(cached
) $ac_c" 1>&6
6630 cat > conftest.$ac_ext <<EOF
6631 #line 6632 "configure
"
6632 #include "confdefs.h
"
6633 /* System header to define __stub macros and hopefully few prototypes,
6634 which can conflict with char accept(); below. */
6636 /* Override any gcc2 internal prototype to avoid an error. */
6637 /* We use char because int might match the return type of a gcc2
6638 builtin and then its argument prototype would still apply. */
6643 /* The GNU C library defines this for functions which it implements
6644 to always fail with ENOSYS. Some functions are actually named
6645 something starting with __ and the normal name is an alias. */
6646 #if defined (__stub_accept) || defined (__stub___accept)
6654 if { (eval echo configure:6655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6656 eval "ac_cv_func_accept
=yes"
6658 echo "configure
: failed program was
:" >&5
6659 cat conftest.$ac_ext >&5
6661 eval "ac_cv_func_accept
=no
"
6666 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6667 echo "$ac_t""yes" 1>&6
6669 gcj_cv_lib_sockets="-lsocket -lnsl"
6671 echo "$ac_t""no
" 1>&6
6674 unset ac_cv_func_accept
6677 unset ac_cv_func_gethostbyname
6679 LIBS="$LIBS $gcj_cv_lib_sockets"
6680 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6681 echo "configure
:6682: checking
for gethostbyname
" >&5
6682 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6683 echo $ac_n "(cached
) $ac_c" 1>&6
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure
"
6687 #include "confdefs.h
"
6688 /* System header to define __stub macros and hopefully few prototypes,
6689 which can conflict with char gethostbyname(); below. */
6691 /* Override any gcc2 internal prototype to avoid an error. */
6692 /* We use char because int might match the return type of a gcc2
6693 builtin and then its argument prototype would still apply. */
6694 char gethostbyname();
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6711 eval "ac_cv_func_gethostbyname
=yes"
6713 echo "configure
: failed program was
:" >&5
6714 cat conftest.$ac_ext >&5
6716 eval "ac_cv_func_gethostbyname
=no
"
6721 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6725 echo "$ac_t""no
" 1>&6
6726 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
6727 echo "configure
:6728: checking
for main
in -lnsl" >&5
6728 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6730 echo $ac_n "(cached
) $ac_c" 1>&6
6732 ac_save_LIBS="$LIBS"
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure
"
6736 #include "confdefs.h
"
6742 if { (eval echo configure:6743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6744 eval "ac_cv_lib_
$ac_lib_var=yes"
6746 echo "configure
: failed program was
:" >&5
6747 cat conftest.$ac_ext >&5
6749 eval "ac_cv_lib_
$ac_lib_var=no
"
6752 LIBS="$ac_save_LIBS"
6755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6756 echo "$ac_t""yes" 1>&6
6757 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6759 echo "$ac_t""no
" 1>&6
6764 unset ac_cv_func_gethostbyname
6769 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6770 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6772 if test "$with_system_zlib" = yes; then
6773 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
6774 echo "configure
:6775: checking
for deflate
in -lz" >&5
6775 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6777 echo $ac_n "(cached
) $ac_c" 1>&6
6779 ac_save_LIBS="$LIBS"
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6783 "configure
"
6783 #include "confdefs.h
"
6784 /* Override any gcc2 internal prototype to avoid an error. */
6785 /* We use char because int might match the return type of a gcc2
6786 builtin and then its argument prototype would still apply. */
6793 if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6795 eval "ac_cv_lib_
$ac_lib_var=yes"
6797 echo "configure
: failed program was
:" >&5
6798 cat conftest.$ac_ext >&5
6800 eval "ac_cv_lib_
$ac_lib_var=no
"
6803 LIBS="$ac_save_LIBS"
6806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6807 echo "$ac_t""yes" 1>&6
6810 echo "$ac_t""no
" 1>&6
6816 # Test for Gtk stuff, if asked for.
6817 if test "$use_gtk_awt" = yes; then
6821 if test -z "$PKG_CONFIG"; then
6822 # Extract the first word of "pkg-config
", so it can be a program name with args.
6823 set dummy pkg-config; ac_word=$2
6824 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6825 echo "configure
:6826: checking
for $ac_word" >&5
6826 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6827 echo $ac_n "(cached
) $ac_c" 1>&6
6829 case "$PKG_CONFIG" in
6831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6834 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6839 for ac_dir in $ac_dummy; do
6840 test -z "$ac_dir" && ac_dir=.
6841 if test -f $ac_dir/$ac_word; then
6842 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6847 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
6851 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6852 if test -n "$PKG_CONFIG"; then
6853 echo "$ac_t""$PKG_CONFIG" 1>&6
6855 echo "$ac_t""no
" 1>&6
6860 if test "$PKG_CONFIG" = "no
" ; then
6861 echo "*** The pkg-config
script could not be found. Make sure it is
"
6862 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
6863 echo "*** to the full path to pkg-config.
"
6864 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
6866 PKG_CONFIG_MIN_VERSION=0.9.0
6867 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6868 echo $ac_n "checking
for gtk
+-2.0
>= 2.4""...
$ac_c" 1>&6
6869 echo "configure
:6870: checking
for gtk
+-2.0
>= 2.4" >&5
6871 if $PKG_CONFIG --exists "gtk
+-2.0
>= 2.4" ; then
6872 echo "$ac_t""yes" 1>&6
6875 echo $ac_n "checking GTK_CFLAGS
""...
$ac_c" 1>&6
6876 echo "configure
:6877: checking GTK_CFLAGS
" >&5
6877 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk
+-2.0
>= 2.4"`
6878 echo "$ac_t""$GTK_CFLAGS" 1>&6
6880 echo $ac_n "checking GTK_LIBS
""...
$ac_c" 1>&6
6881 echo "configure
:6882: checking GTK_LIBS
" >&5
6882 GTK_LIBS=`$PKG_CONFIG --libs "gtk
+-2.0
>= 2.4"`
6883 echo "$ac_t""$GTK_LIBS" 1>&6
6887 ## If we have a custom action on failure, don't print errors, but
6888 ## do set a variable so people can do so.
6889 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk
+-2.0
>= 2.4"`
6890 echo $GTK_PKG_ERRORS
6896 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
6897 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
6901 if test $succeeded = yes; then
6904 { echo "configure
: error
: Library requirements
(gtk
+-2.0
>= 2.4) not met
; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are
in a nonstandard prefix so pkg-config can
find them.
" 1>&2; exit 1; }
6913 if test -z "$PKG_CONFIG"; then
6914 # Extract the first word of "pkg-config
", so it can be a program name with args.
6915 set dummy pkg-config; ac_word=$2
6916 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6917 echo "configure
:6918: checking
for $ac_word" >&5
6918 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6919 echo $ac_n "(cached
) $ac_c" 1>&6
6921 case "$PKG_CONFIG" in
6923 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6926 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6931 for ac_dir in $ac_dummy; do
6932 test -z "$ac_dir" && ac_dir=.
6933 if test -f $ac_dir/$ac_word; then
6934 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6939 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
6943 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6944 if test -n "$PKG_CONFIG"; then
6945 echo "$ac_t""$PKG_CONFIG" 1>&6
6947 echo "$ac_t""no
" 1>&6
6952 if test "$PKG_CONFIG" = "no
" ; then
6953 echo "*** The pkg-config
script could not be found. Make sure it is
"
6954 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
6955 echo "*** to the full path to pkg-config.
"
6956 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
6958 PKG_CONFIG_MIN_VERSION=0.9.0
6959 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6960 echo $ac_n "checking
for glib-2.0
>= 2.4 gthread-2.0
>= 2.4""...
$ac_c" 1>&6
6961 echo "configure
:6962: checking
for glib-2.0
>= 2.4 gthread-2.0
>= 2.4" >&5
6963 if $PKG_CONFIG --exists "glib-2.0
>= 2.4 gthread-2.0
>= 2.4" ; then
6964 echo "$ac_t""yes" 1>&6
6967 echo $ac_n "checking GLIB_CFLAGS
""...
$ac_c" 1>&6
6968 echo "configure
:6969: checking GLIB_CFLAGS
" >&5
6969 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0
>= 2.4 gthread-2.0
>= 2.4"`
6970 echo "$ac_t""$GLIB_CFLAGS" 1>&6
6972 echo $ac_n "checking GLIB_LIBS
""...
$ac_c" 1>&6
6973 echo "configure
:6974: checking GLIB_LIBS
" >&5
6974 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0
>= 2.4 gthread-2.0
>= 2.4"`
6975 echo "$ac_t""$GLIB_LIBS" 1>&6
6979 ## If we have a custom action on failure, don't print errors, but
6980 ## do set a variable so people can do so.
6981 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0
>= 2.4 gthread-2.0
>= 2.4"`
6982 echo $GLIB_PKG_ERRORS
6988 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
6989 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
6993 if test $succeeded = yes; then
6996 { echo "configure
: error
: Library requirements
(glib-2.0
>= 2.4 gthread-2.0
>= 2.4) not met
; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are
in a nonstandard prefix so pkg-config can
find them.
" 1>&2; exit 1; }
7005 if test -z "$PKG_CONFIG"; then
7006 # Extract the first word of "pkg-config
", so it can be a program name with args.
7007 set dummy pkg-config; ac_word=$2
7008 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
7009 echo "configure
:7010: checking
for $ac_word" >&5
7010 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
7011 echo $ac_n "(cached
) $ac_c" 1>&6
7013 case "$PKG_CONFIG" in
7015 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7018 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
7021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7023 for ac_dir in $ac_dummy; do
7024 test -z "$ac_dir" && ac_dir=.
7025 if test -f $ac_dir/$ac_word; then
7026 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
7031 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
7035 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7036 if test -n "$PKG_CONFIG"; then
7037 echo "$ac_t""$PKG_CONFIG" 1>&6
7039 echo "$ac_t""no
" 1>&6
7044 if test "$PKG_CONFIG" = "no
" ; then
7045 echo "*** The pkg-config
script could not be found. Make sure it is
"
7046 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
7047 echo "*** to the full path to pkg-config.
"
7048 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
7050 PKG_CONFIG_MIN_VERSION=0.9.0
7051 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7052 echo $ac_n "checking
for libart-2.0
>= 2.1""...
$ac_c" 1>&6
7053 echo "configure
:7054: checking
for libart-2.0
>= 2.1" >&5
7055 if $PKG_CONFIG --exists "libart-2.0
>= 2.1" ; then
7056 echo "$ac_t""yes" 1>&6
7059 echo $ac_n "checking LIBART_CFLAGS
""...
$ac_c" 1>&6
7060 echo "configure
:7061: checking LIBART_CFLAGS
" >&5
7061 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0
>= 2.1"`
7062 echo "$ac_t""$LIBART_CFLAGS" 1>&6
7064 echo $ac_n "checking LIBART_LIBS
""...
$ac_c" 1>&6
7065 echo "configure
:7066: checking LIBART_LIBS
" >&5
7066 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0
>= 2.1"`
7067 echo "$ac_t""$LIBART_LIBS" 1>&6
7071 ## If we have a custom action on failure, don't print errors, but
7072 ## do set a variable so people can do so.
7073 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0
>= 2.1"`
7074 echo $LIBART_PKG_ERRORS
7080 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
7081 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
7085 if test $succeeded = yes; then
7088 { echo "configure
: error
: Library requirements
(libart-2.0
>= 2.1) not met
; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are
in a nonstandard prefix so pkg-config can
find them.
" 1>&2; exit 1; }
7095 # On Solaris, and maybe other architectures, the Boehm collector
7097 if test "$GC" = boehm; then
7098 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
7099 echo "configure
:7100: checking
for main
in -ldl" >&5
7100 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
7101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7102 echo $ac_n "(cached
) $ac_c" 1>&6
7104 ac_save_LIBS="$LIBS"
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure
"
7108 #include "confdefs.h
"
7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7116 eval "ac_cv_lib_
$ac_lib_var=yes"
7118 echo "configure
: failed program was
:" >&5
7119 cat conftest.$ac_ext >&5
7121 eval "ac_cv_lib_
$ac_lib_var=no
"
7124 LIBS="$ac_save_LIBS"
7127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7128 echo "$ac_t""yes" 1>&6
7129 SYSTEMSPEC="$SYSTEMSPEC -ldl"
7131 echo "$ac_t""no
" 1>&6
7137 if test -z "${with_multisubdir}"; then
7141 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7147 # Which gcj do we use?
7149 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7150 if test -n "${with_cross_host}"; then
7151 # We are being configured with a cross compiler. We can't
7152 # use ac_exeext, because that is for the target platform.
7155 case "${with_cross_host}" in
7157 cross_host_exeext=.exe
7160 if test -x "${built_gcc_dir}/gcj
${cross_host_exeext}"; then
7161 if test x"$build_noncanonical" = x"$with_cross_host"; then
7162 # Ordinary cross (host!=target and host=build)
7165 # Canadian cross (host!=target and host!=build)
7172 # We are being configured with a native or crossed-native compiler
7173 if test -x "${built_gcc_dir}/gcj
${ac_exeext}"; then
7174 if test x"$build" = x"$host"; then
7175 # True native build (host=target and host=build)
7178 # Crossed-native build (host=target and host!=build)
7185 case "${which_gcj}" in
7187 GCJ="$built_gcc_dir/gcj
-B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
7188 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
7189 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
7192 if test "x
${with_newlib}" = "xyes
"; then
7193 # FIXME (comment): Why is this needed?
7195 GCJ="${target_noncanonical}-gcj"
7197 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
7200 GCJH='$(target_noncanonical)-gcjh'
7203 GCJ="gcj
-B`${PWDCMD-pwd}`/"
7204 ## In this case, gcj is found outside the build tree. However, zip is
7205 ## found in the build tree.
7206 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
7214 # Create it, so that compile/link tests don't fail
7215 test -f libgcj.spec || touch libgcj.spec
7217 # We must search the source tree for java.lang, since we still don't
7218 # have libgcj.jar nor java/lang/*.class
7219 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
7220 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7222 # Since some classes depend on this one, we need its source available
7223 # before we can do any GCJ compilation test :-(
7224 if test ! -f gnu/classpath/Configuration.java; then
7225 test -d gnu || mkdir gnu
7226 test -d gnu/classpath || mkdir gnu/classpath
7227 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7228 -e 's,@TOOLKIT@,$TOOLKIT,' \
7229 < $srcdir/gnu/classpath/Configuration.java.in \
7230 > gnu/classpath/Configuration.java
7231 # We do not want to redirect the output of the grep below to /dev/null,
7232 # but we add /dev/null to the input list so that grep will print the
7233 # filename of Configuration.java in case it finds any matches.
7234 if grep @ gnu/classpath/Configuration.java /dev/null; then
7235 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
7239 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
7240 set dummy ${ac_tool_prefix}gcj; ac_word=$2
7241 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
7242 echo "configure
:7243: checking
for $ac_word" >&5
7243 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7244 echo $ac_n "(cached
) $ac_c" 1>&6
7246 if test -n "$GCJ"; then
7247 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7251 for ac_dir in $ac_dummy; do
7252 test -z "$ac_dir" && ac_dir=.
7253 if test -f $ac_dir/$ac_word; then
7254 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
7261 GCJ="$ac_cv_prog_GCJ"
7262 if test -n "$GCJ"; then
7263 echo "$ac_t""$GCJ" 1>&6
7265 echo "$ac_t""no
" 1>&6
7269 if test -z "$ac_cv_prog_GCJ"; then
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "gcj
", so it can be a program name with args.
7272 set dummy gcj; ac_word=$2
7273 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
7274 echo "configure
:7275: checking
for $ac_word" >&5
7275 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7276 echo $ac_n "(cached
) $ac_c" 1>&6
7278 if test -n "$GCJ"; then
7279 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7283 for ac_dir in $ac_dummy; do
7284 test -z "$ac_dir" && ac_dir=.
7285 if test -f $ac_dir/$ac_word; then
7286 ac_cv_prog_GCJ="gcj
"
7291 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
7294 GCJ="$ac_cv_prog_GCJ"
7295 if test -n "$GCJ"; then
7296 echo "$ac_t""$GCJ" 1>&6
7298 echo "$ac_t""no
" 1>&6
7306 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7310 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
7312 lt_save_CFLAGS="$CFLAGS"
7313 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7314 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7315 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7316 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7317 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7318 deplibs_check_method="$deplibs_check_method" \
7319 file_magic_cmd="$file_magic_cmd" \
7320 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7321 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7322 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
7324 CFLAGS="$lt_save_CFLAGS"
7326 # Redirect the config.log output again, so that the ltconfig log is not
7327 # clobbered by the next message.
7328 exec 5>>./config.log
7333 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
7335 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
7336 echo "configure
:7337: checking size of void
*" >&5
7337 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7338 echo $ac_n "(cached
) $ac_c" 1>&6
7340 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7341 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure
"
7343 #include "confdefs.h
"
7344 #include "confdefs.h
"
7345 #include <sys/types.h>
7349 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7352 if { (eval echo configure:7353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7354 ac_cv_sizeof_void_p=$ac_size
7356 echo "configure
: failed program was
:" >&5
7357 cat conftest.$ac_ext >&5
7360 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7365 if test x$ac_cv_sizeof_void_p = x ; then
7366 { echo "configure
: error
: cannot determine a size
for void
*" 1>&2; exit 1; }
7368 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7369 cat >> confdefs.h <<EOF
7370 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7379 if test -z "$ZLIBSPEC"; then
7380 # Use zlib from the GCC tree.
7381 ZINCS='-I$(top_srcdir)/../zlib'
7382 ZLIBS=../zlib/libzgcj_convenience.la
7385 SYS_ZLIBS="$ZLIBSPEC"
7397 if test "$NATIVE" = yes; then
7406 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7407 NEEDS_DATA_START_TRUE=
7408 NEEDS_DATA_START_FALSE='#'
7410 NEEDS_DATA_START_TRUE='#'
7411 NEEDS_DATA_START_FALSE=
7415 # Process the option "--enable-version-specific-runtime-libs"
7416 # Calculate toolexeclibdir
7417 case ${version_specific_libs} in
7419 # Need the gcc compiler version to know where to install libraries
7420 # and header files if --enable-version-specific-runtime-libs option
7422 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
7423 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
7424 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
7425 toolexeclibdir=$toolexecmainlibdir
7428 if test -n "$with_cross_host" &&
7429 test x"$with_cross_host" != x"no
"; then
7430 # Install a library built with a cross compiler in tooldir, not libdir.
7431 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
7432 toolexecmainlibdir='$(toolexecdir)/lib'
7434 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
7435 toolexecmainlibdir='$(libdir)'
7437 multi_os_directory=`$CC -print-multi-os-directory`
7438 case $multi_os_directory in
7439 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
7440 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
7448 # Determine gcj version number.
7450 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7452 GCJVERSION=$gcjversion
7454 cat >> confdefs.h <<EOF
7455 #define GCJVERSION "$GCJVERSION"
7459 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
7461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7462 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7463 echo "configure
:7464: checking
for $ac_hdr" >&5
7464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7465 echo $ac_n "(cached
) $ac_c" 1>&6
7467 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure
"
7469 #include "confdefs.h
"
7472 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7473 { (eval echo configure:7474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7475 if test -z "$ac_err"; then
7477 eval "ac_cv_header_
$ac_safe=yes"
7480 echo "configure
: failed program was
:" >&5
7481 cat conftest.$ac_ext >&5
7483 eval "ac_cv_header_
$ac_safe=no
"
7487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7488 echo "$ac_t""yes" 1>&6
7489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7490 cat >> confdefs.h <<EOF
7491 #define $ac_tr_hdr 1
7495 echo "$ac_t""no
" 1>&6
7499 for ac_hdr in dirent.h
7501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7502 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7503 echo "configure
:7504: checking
for $ac_hdr" >&5
7504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7505 echo $ac_n "(cached
) $ac_c" 1>&6
7507 cat > conftest.$ac_ext <<EOF
7508 #line 7509 "configure
"
7509 #include "confdefs.h
"
7512 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7513 { (eval echo configure:7514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7515 if test -z "$ac_err"; then
7517 eval "ac_cv_header_
$ac_safe=yes"
7520 echo "configure
: failed program was
:" >&5
7521 cat conftest.$ac_ext >&5
7523 eval "ac_cv_header_
$ac_safe=no
"
7527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7528 echo "$ac_t""yes" 1>&6
7529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7530 cat >> confdefs.h <<EOF
7531 #define $ac_tr_hdr 1
7535 echo "$ac_t""no
" 1>&6
7539 for ac_hdr in inttypes.h
7541 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7542 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7543 echo "configure
:7544: checking
for $ac_hdr" >&5
7544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7545 echo $ac_n "(cached
) $ac_c" 1>&6
7547 cat > conftest.$ac_ext <<EOF
7548 #line 7549 "configure
"
7549 #include "confdefs.h
"
7552 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7553 { (eval echo configure:7554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7555 if test -z "$ac_err"; then
7557 eval "ac_cv_header_
$ac_safe=yes"
7560 echo "configure
: failed program was
:" >&5
7561 cat conftest.$ac_ext >&5
7563 eval "ac_cv_header_
$ac_safe=no
"
7567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7568 echo "$ac_t""yes" 1>&6
7569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7570 cat >> confdefs.h <<EOF
7571 #define $ac_tr_hdr 1
7574 cat >> confdefs.h <<\EOF
7575 #define HAVE_INTTYPES_H 1
7578 cat >> confdefs.h <<\EOF
7579 #define JV_HAVE_INTTYPES_H 1
7584 echo "$ac_t""no
" 1>&6
7588 echo $ac_n "checking
for sys
/wait.h that is POSIX
.1 compatible
""...
$ac_c" 1>&6
7589 echo "configure
:7590: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
7590 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7591 echo $ac_n "(cached
) $ac_c" 1>&6
7593 cat > conftest.$ac_ext <<EOF
7594 #line 7595 "configure
"
7595 #include "confdefs.h
"
7596 #include <sys/types.h>
7597 #include <sys/wait.h>
7599 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7602 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7607 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7610 if { (eval echo configure:7611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7612 ac_cv_header_sys_wait_h=yes
7614 echo "configure
: failed program was
:" >&5
7615 cat conftest.$ac_ext >&5
7617 ac_cv_header_sys_wait_h=no
7622 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7623 if test $ac_cv_header_sys_wait_h = yes; then
7624 cat >> confdefs.h <<\EOF
7625 #define HAVE_SYS_WAIT_H 1
7631 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
7632 echo "configure
:7633: checking
for ANSI C header files
" >&5
7633 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7634 echo $ac_n "(cached
) $ac_c" 1>&6
7636 cat > conftest.$ac_ext <<EOF
7637 #line 7638 "configure
"
7638 #include "confdefs.h
"
7644 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7645 { (eval echo configure:7646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7647 if test -z "$ac_err"; then
7649 ac_cv_header_stdc=yes
7652 echo "configure
: failed program was
:" >&5
7653 cat conftest.$ac_ext >&5
7655 ac_cv_header_stdc=no
7659 if test $ac_cv_header_stdc = yes; then
7660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7661 cat > conftest.$ac_ext <<EOF
7662 #line 7663 "configure
"
7663 #include "confdefs.h
"
7666 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7667 egrep "memchr
" >/dev/null 2>&1; then
7671 ac_cv_header_stdc=no
7677 if test $ac_cv_header_stdc = yes; then
7678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7679 cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure
"
7681 #include "confdefs.h
"
7684 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7685 egrep "free
" >/dev/null 2>&1; then
7689 ac_cv_header_stdc=no
7695 if test $ac_cv_header_stdc = yes; then
7696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7697 if test "$cross_compiling" = yes; then
7700 cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure
"
7702 #include "confdefs.h
"
7704 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7705 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7707 int main () { int i; for (i = 0; i < 256; i++)
7708 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7712 if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7716 echo "configure
: failed program was
:" >&5
7717 cat conftest.$ac_ext >&5
7719 ac_cv_header_stdc=no
7727 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7728 if test $ac_cv_header_stdc = yes; then
7729 cat >> confdefs.h <<\EOF
7730 #define STDC_HEADERS 1
7735 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
7736 echo "configure
:7737: checking
for ssize_t
" >&5
7737 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7738 echo $ac_n "(cached
) $ac_c" 1>&6
7740 cat > conftest.$ac_ext <<EOF
7741 #line 7742 "configure
"
7742 #include "confdefs.h
"
7743 #include <sys/types.h>
7749 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7750 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
7752 ac_cv_type_ssize_t=yes
7755 ac_cv_type_ssize_t=no
7760 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7761 if test $ac_cv_type_ssize_t = no; then
7762 cat >> confdefs.h <<\EOF
7769 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
7770 echo "configure
:7771: checking
for in_addr_t
" >&5
7771 cat > conftest.$ac_ext <<EOF
7772 #line 7773 "configure
"
7773 #include "confdefs.h
"
7774 #include <sys/types.h>
7779 #if HAVE_NETINET_IN_H
7780 #include <netinet/in.h>
7786 if { (eval echo configure:7787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7788 cat >> confdefs.h <<\EOF
7789 #define HAVE_IN_ADDR_T 1
7792 echo "$ac_t""yes" 1>&6
7794 echo "configure
: failed program was
:" >&5
7795 cat conftest.$ac_ext >&5
7797 echo "$ac_t""no
" 1>&6
7801 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
7802 echo "configure
:7803: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
7803 cat > conftest.$ac_ext <<EOF
7804 #line 7805 "configure
"
7805 #include "confdefs.h
"
7806 #include <netinet/in.h>
7808 struct ip_mreq mreq;
7811 if { (eval echo configure:7812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7813 cat >> confdefs.h <<\EOF
7814 #define HAVE_STRUCT_IP_MREQ 1
7817 echo "$ac_t""yes" 1>&6
7819 echo "configure
: failed program was
:" >&5
7820 cat conftest.$ac_ext >&5
7822 echo "$ac_t""no
" 1>&6
7826 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
7827 echo "configure
:7828: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure
"
7830 #include "confdefs.h
"
7831 #include <netinet/in.h>
7833 struct ipv6_mreq mreq6;
7836 if { (eval echo configure:7837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7838 cat >> confdefs.h <<\EOF
7839 #define HAVE_STRUCT_IPV6_MREQ 1
7842 echo "$ac_t""yes" 1>&6
7844 echo "configure
: failed program was
:" >&5
7845 cat conftest.$ac_ext >&5
7847 echo "$ac_t""no
" 1>&6
7851 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
7852 echo "configure
:7853: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
7853 cat > conftest.$ac_ext <<EOF
7854 #line 7855 "configure
"
7855 #include "confdefs.h
"
7856 #include <netinet/in.h>
7858 struct sockaddr_in6 addr6;
7861 if { (eval echo configure:7862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7863 cat >> confdefs.h <<\EOF
7864 #define HAVE_INET6 1
7867 echo "$ac_t""yes" 1>&6
7869 echo "configure
: failed program was
:" >&5
7870 cat conftest.$ac_ext >&5
7872 echo "$ac_t""no
" 1>&6
7876 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
7877 echo "configure
:7878: checking
for socklen_t
in sys
/socket.h
" >&5
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure
"
7880 #include "confdefs.h
"
7881 #define _POSIX_PII_SOCKET
7882 #include <sys/types.h>
7883 #include <sys/socket.h>
7888 if { (eval echo configure:7889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7890 cat >> confdefs.h <<\EOF
7891 #define HAVE_SOCKLEN_T 1
7894 echo "$ac_t""yes" 1>&6
7896 echo "configure
: failed program was
:" >&5
7897 cat conftest.$ac_ext >&5
7899 echo "$ac_t""no
" 1>&6
7903 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
7904 echo "configure
:7905: checking
for tm_gmtoff
in struct tm
" >&5
7905 cat > conftest.$ac_ext <<EOF
7906 #line 7907 "configure
"
7907 #include "confdefs.h
"
7910 struct tm tim; tim.tm_gmtoff = 0;
7913 if { (eval echo configure:7914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7915 cat >> confdefs.h <<\EOF
7916 #define STRUCT_TM_HAS_GMTOFF 1
7919 echo "$ac_t""yes" 1>&6
7921 echo "configure
: failed program was
:" >&5
7922 cat conftest.$ac_ext >&5
7924 echo "$ac_t""no
" 1>&6
7925 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
7926 echo "configure
:7927: checking
for global timezone variable
" >&5
7927 cat > conftest.$ac_ext <<EOF
7928 #line 7929 "configure
"
7929 #include "confdefs.h
"
7932 void i(){long z2 = 2*timezone;}
7935 if { (eval echo configure:7936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7937 cat >> confdefs.h <<\EOF
7938 #define HAVE_TIMEZONE 1
7941 echo "$ac_t""yes" 1>&6
7943 echo "configure
: failed program was
:" >&5
7944 cat conftest.$ac_ext >&5
7946 echo "$ac_t""no
" 1>&6
7947 echo $ac_n "checking
for global _timezone variable
""...
$ac_c" 1>&6
7948 echo "configure
:7949: checking
for global _timezone variable
" >&5
7949 cat > conftest.$ac_ext <<EOF
7950 #line 7951 "configure
"
7951 #include "confdefs.h
"
7954 long z2 = _timezone;
7957 if { (eval echo configure:7958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7959 cat >> confdefs.h <<\EOF
7960 #define HAVE_UNDERSCORE_TIMEZONE 1
7963 echo "$ac_t""yes" 1>&6
7965 echo "configure
: failed program was
:" >&5
7966 cat conftest.$ac_ext >&5
7968 echo "$ac_t""no
" 1>&6
7976 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7977 # for constant arguments. Useless!
7978 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
7979 echo "configure
:7980: checking
for working alloca.h
" >&5
7980 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7981 echo $ac_n "(cached
) $ac_c" 1>&6
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure
"
7985 #include "confdefs.h
"
7988 char *p = alloca(2 * sizeof(int));
7991 if { (eval echo configure:7992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7993 ac_cv_header_alloca_h=yes
7995 echo "configure
: failed program was
:" >&5
7996 cat conftest.$ac_ext >&5
7998 ac_cv_header_alloca_h=no
8003 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8004 if test $ac_cv_header_alloca_h = yes; then
8005 cat >> confdefs.h <<\EOF
8006 #define HAVE_ALLOCA_H 1
8011 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
8012 echo "configure
:8013: checking
for alloca
" >&5
8013 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8014 echo $ac_n "(cached
) $ac_c" 1>&6
8016 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure
"
8018 #include "confdefs.h
"
8021 # define alloca __builtin_alloca
8024 # include <malloc.h>
8025 # define alloca _alloca
8028 # include <alloca.h>
8033 # ifndef alloca /* predefined by HP cc +Olibcalls */
8042 char *p = (char *) alloca(1);
8045 if { (eval echo configure:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8047 ac_cv_func_alloca_works=yes
8049 echo "configure
: failed program was
:" >&5
8050 cat conftest.$ac_ext >&5
8052 ac_cv_func_alloca_works=no
8057 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8058 if test $ac_cv_func_alloca_works = yes; then
8059 cat >> confdefs.h <<\EOF
8060 #define HAVE_ALLOCA 1
8065 if test $ac_cv_func_alloca_works = no; then
8066 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8067 # that cause trouble. Some versions do not even contain alloca or
8068 # contain a buggy version. If you still want to use their alloca,
8069 # use ar to extract alloca.o from them instead of compiling alloca.c.
8070 ALLOCA=alloca.${ac_objext}
8071 cat >> confdefs.h <<\EOF
8076 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
8077 echo "configure
:8078: checking whether alloca needs Cray hooks
" >&5
8078 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8079 echo $ac_n "(cached
) $ac_c" 1>&6
8081 cat > conftest.$ac_ext <<EOF
8082 #line 8083 "configure
"
8083 #include "confdefs.h
"
8084 #if defined(CRAY) && ! defined(CRAY2)
8091 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8092 egrep "webecray
" >/dev/null 2>&1; then
8103 echo "$ac_t""$ac_cv_os_cray" 1>&6
8104 if test $ac_cv_os_cray = yes; then
8105 for ac_func in _getb67 GETB67 getb67; do
8106 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
8107 echo "configure
:8108: checking
for $ac_func" >&5
8108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8109 echo $ac_n "(cached
) $ac_c" 1>&6
8111 cat > conftest.$ac_ext <<EOF
8112 #line 8113 "configure
"
8113 #include "confdefs.h
"
8114 /* System header to define __stub macros and hopefully few prototypes,
8115 which can conflict with char $ac_func(); below. */
8117 /* Override any gcc2 internal prototype to avoid an error. */
8118 /* We use char because int might match the return type of a gcc2
8119 builtin and then its argument prototype would still apply. */
8124 /* The GNU C library defines this for functions which it implements
8125 to always fail with ENOSYS. Some functions are actually named
8126 something starting with __ and the normal name is an alias. */
8127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8135 if { (eval echo configure:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8137 eval "ac_cv_func_
$ac_func=yes"
8139 echo "configure
: failed program was
:" >&5
8140 cat conftest.$ac_ext >&5
8142 eval "ac_cv_func_
$ac_func=no
"
8147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8148 echo "$ac_t""yes" 1>&6
8149 cat >> confdefs.h <<EOF
8150 #define CRAY_STACKSEG_END $ac_func
8155 echo "$ac_t""no
" 1>&6
8161 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
8162 echo "configure
:8163: checking stack direction
for C alloca
" >&5
8163 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8164 echo $ac_n "(cached
) $ac_c" 1>&6
8166 if test "$cross_compiling" = yes; then
8167 ac_cv_c_stack_direction=0
8169 cat > conftest.$ac_ext <<EOF
8170 #line 8171 "configure
"
8171 #include "confdefs.h
"
8172 find_stack_direction ()
8174 static char *addr = 0;
8179 return find_stack_direction ();
8182 return (&dummy > addr) ? 1 : -1;
8186 exit (find_stack_direction() < 0);
8189 if { (eval echo configure:8190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8191 ac_cv_c_stack_direction=1
8193 echo "configure
: failed program was
:" >&5
8194 cat conftest.$ac_ext >&5
8196 ac_cv_c_stack_direction=-1
8203 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8204 cat >> confdefs.h <<EOF
8205 #define STACK_DIRECTION $ac_cv_c_stack_direction
8210 for ac_hdr in unistd.h
8212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8213 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
8214 echo "configure
:8215: checking
for $ac_hdr" >&5
8215 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8216 echo $ac_n "(cached
) $ac_c" 1>&6
8218 cat > conftest.$ac_ext <<EOF
8219 #line 8220 "configure
"
8220 #include "confdefs.h
"
8223 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
8224 { (eval echo configure:8225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
8226 if test -z "$ac_err"; then
8228 eval "ac_cv_header_
$ac_safe=yes"
8231 echo "configure
: failed program was
:" >&5
8232 cat conftest.$ac_ext >&5
8234 eval "ac_cv_header_
$ac_safe=no
"
8238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8239 echo "$ac_t""yes" 1>&6
8240 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8241 cat >> confdefs.h <<EOF
8242 #define $ac_tr_hdr 1
8246 echo "$ac_t""no
" 1>&6
8250 for ac_func in getpagesize
8252 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
8253 echo "configure
:8254: checking
for $ac_func" >&5
8254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8255 echo $ac_n "(cached
) $ac_c" 1>&6
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure
"
8259 #include "confdefs.h
"
8260 /* System header to define __stub macros and hopefully few prototypes,
8261 which can conflict with char $ac_func(); below. */
8263 /* Override any gcc2 internal prototype to avoid an error. */
8264 /* We use char because int might match the return type of a gcc2
8265 builtin and then its argument prototype would still apply. */
8270 /* The GNU C library defines this for functions which it implements
8271 to always fail with ENOSYS. Some functions are actually named
8272 something starting with __ and the normal name is an alias. */
8273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8283 eval "ac_cv_func_
$ac_func=yes"
8285 echo "configure
: failed program was
:" >&5
8286 cat conftest.$ac_ext >&5
8288 eval "ac_cv_func_
$ac_func=no
"
8293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8294 echo "$ac_t""yes" 1>&6
8295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8296 cat >> confdefs.h <<EOF
8297 #define $ac_tr_func 1
8301 echo "$ac_t""no
" 1>&6
8305 echo $ac_n "checking
for working mmap
""...
$ac_c" 1>&6
8306 echo "configure
:8307: checking
for working mmap
" >&5
8307 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8308 echo $ac_n "(cached
) $ac_c" 1>&6
8310 if test "$cross_compiling" = yes; then
8311 ac_cv_func_mmap_fixed_mapped=no
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure
"
8315 #include "confdefs.h
"
8317 /* Thanks to Mike Haertel and Jim Avera for this test.
8318 Here is a matrix of mmap possibilities:
8319 mmap private not fixed
8320 mmap private fixed at somewhere currently unmapped
8321 mmap private fixed at somewhere already mapped
8322 mmap shared not fixed
8323 mmap shared fixed at somewhere currently unmapped
8324 mmap shared fixed at somewhere already mapped
8325 For private mappings, we should verify that changes cannot be read()
8326 back from the file, nor mmap's back from the file at a different
8327 address. (There have been systems where private was not correctly
8328 implemented like the infamous i386 svr4.0, and systems where the
8329 VM page cache was not coherent with the filesystem buffer cache
8330 like early versions of FreeBSD and possibly contemporary NetBSD.)
8331 For shared mappings, we should conversely verify that changes get
8332 propogated back to all the places they're supposed to be.
8334 Grep wants private fixed already mapped.
8335 The main things grep needs to know about mmap are:
8336 * does it exist and is it safe to write into the mmap'd area
8337 * how to use it (BSD variants) */
8338 #include <sys/types.h>
8340 #include <sys/mman.h>
8342 /* This mess was copied from the GNU getpagesize.h. */
8343 #ifndef HAVE_GETPAGESIZE
8344 # ifdef HAVE_UNISTD_H
8345 # include <unistd.h>
8348 /* Assume that all systems that can run configure have sys/param.h. */
8349 # ifndef HAVE_SYS_PARAM_H
8350 # define HAVE_SYS_PARAM_H 1
8353 # ifdef _SC_PAGESIZE
8354 # define getpagesize() sysconf(_SC_PAGESIZE)
8355 # else /* no _SC_PAGESIZE */
8356 # ifdef HAVE_SYS_PARAM_H
8357 # include <sys/param.h>
8358 # ifdef EXEC_PAGESIZE
8359 # define getpagesize() EXEC_PAGESIZE
8360 # else /* no EXEC_PAGESIZE */
8362 # define getpagesize() NBPG * CLSIZE
8365 # endif /* no CLSIZE */
8366 # else /* no NBPG */
8368 # define getpagesize() NBPC
8369 # else /* no NBPC */
8371 # define getpagesize() PAGESIZE
8372 # endif /* PAGESIZE */
8373 # endif /* no NBPC */
8374 # endif /* no NBPG */
8375 # endif /* no EXEC_PAGESIZE */
8376 # else /* no HAVE_SYS_PARAM_H */
8377 # define getpagesize() 8192 /* punt totally */
8378 # endif /* no HAVE_SYS_PARAM_H */
8379 # endif /* no _SC_PAGESIZE */
8381 #endif /* no HAVE_GETPAGESIZE */
8384 extern "C
" { void *malloc(unsigned); }
8392 char *data, *data2, *data3;
8396 pagesize = getpagesize();
8399 * First, make a file with some known garbage in it.
8401 data = malloc(pagesize);
8404 for (i = 0; i < pagesize; ++i)
8405 *(data + i) = rand();
8407 fd = creat("conftestmmap
", 0600);
8410 if (write(fd, data, pagesize) != pagesize)
8415 * Next, try to mmap the file at a fixed address which
8416 * already has something else allocated at it. If we can,
8417 * also make sure that we see the same garbage.
8419 fd = open("conftestmmap
", O_RDWR);
8422 data2 = malloc(2 * pagesize);
8425 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8426 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8427 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8429 for (i = 0; i < pagesize; ++i)
8430 if (*(data + i) != *(data2 + i))
8434 * Finally, make sure that changes to the mapped area
8435 * do not percolate back to the file as seen by read().
8436 * (This is a bug on some variants of i386 svr4.0.)
8438 for (i = 0; i < pagesize; ++i)
8439 *(data2 + i) = *(data2 + i) + 1;
8440 data3 = malloc(pagesize);
8443 if (read(fd, data3, pagesize) != pagesize)
8445 for (i = 0; i < pagesize; ++i)
8446 if (*(data + i) != *(data3 + i))
8449 unlink("conftestmmap
");
8454 if { (eval echo configure:8455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8456 ac_cv_func_mmap_fixed_mapped=yes
8458 echo "configure
: failed program was
:" >&5
8459 cat conftest.$ac_ext >&5
8461 ac_cv_func_mmap_fixed_mapped=no
8468 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8469 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8470 cat >> confdefs.h <<\EOF
8479 # Extract the first word of "$ac_prog", so it can be a program name with args.
8480 set dummy $ac_prog; ac_word=$2
8481 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
8482 echo "configure
:8483: checking
for $ac_word" >&5
8483 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8484 echo $ac_n "(cached
) $ac_c" 1>&6
8486 if test -n "$PERL"; then
8487 ac_cv_prog_PERL="$PERL" # Let the user override the test.
8489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8491 for ac_dir in $ac_dummy; do
8492 test -z "$ac_dir" && ac_dir=.
8493 if test -f $ac_dir/$ac_word; then
8494 ac_cv_prog_PERL="$ac_prog"
8501 PERL="$ac_cv_prog_PERL"
8502 if test -n "$PERL"; then
8503 echo "$ac_t""$PERL" 1>&6
8505 echo "$ac_t""no
" 1>&6
8508 test -n "$PERL" && break
8510 test -n "$PERL" || PERL="false
"
8518 SIGNAL_HANDLER=include/i386-signal.h
8520 sparc*-sun-solaris*)
8521 SIGNAL_HANDLER=include/sparc-signal.h
8524 # SYSDEP_SOURCES=sysdep/ia64.c
8525 # test -d sysdep || mkdir sysdep
8528 SIGNAL_HANDLER=include/pa-signal.h
8531 SIGNAL_HANDLER=include/dwarf2-signal.h
8534 SIGNAL_HANDLER=include/powerpc-signal.h
8537 SIGNAL_HANDLER=include/dwarf2-signal.h
8540 SIGNAL_HANDLER=include/s390-signal.h
8543 SIGNAL_HANDLER=include/x86_64-signal.h
8544 SIGNAL_HANDLER_AUX=include/i386-signal.h
8547 SIGNAL_HANDLER=include/dwarf2-signal.h
8549 sh-*-linux* | sh[34]*-*-linux*)
8550 SIGNAL_HANDLER=include/dwarf2-signal.h
8553 SIGNAL_HANDLER=include/win32-signal.h
8556 SIGNAL_HANDLER=include/mips-signal.h
8559 SIGNAL_HANDLER=include/darwin-signal.h
8562 SIGNAL_HANDLER=include/default-signal.h
8566 # If we're using sjlj exceptions, forget what we just learned.
8567 if test "$enable_sjlj_exceptions" = yes; then
8568 SIGNAL_HANDLER=include/default-signal.h
8572 # Define here any compiler flags that you need in order to make backtrace() work.
8575 x86_64*-*-linux*|i?86-*)
8576 BACKTRACESPEC=-fno-omit-frame-pointer
8583 if test -z "$SIGNAL_HANDLER_AUX"; then
8584 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
8589 if test "${multilib}" = "yes"; then
8590 multilib_arg="--enable-multilib"
8597 here=`${PWDCMD-pwd}`
8600 # We get this from the environment.
8604 cat > confcache <<\EOF
8605 # This file is a shell script that caches the results of configure
8606 # tests run on this system so they can be shared between configure
8607 # scripts and configure runs. It is not useful on other systems.
8608 # If it contains results you don't want to keep, you may remove or edit it.
8610 # By default, configure uses ./config.cache as the cache file,
8611 # creating it if it does not exist already. You can give configure
8612 # the --cache-file=FILE option to use a different cache file; that is
8613 # what configure does when it calls configure scripts in
8614 # subdirectories, so they share the cache.
8615 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8616 # config.status only pays attention to the cache file if you give it the
8617 # --recheck option to rerun configure.
8620 # The following way of writing the cache mishandles newlines in values,
8621 # but we know of no workaround that is simple, portable, and efficient.
8622 # So, don't put newlines in cache variables' values.
8623 # Ultrix sh set writes to stderr and can't be redirected directly,
8624 # and sets the high bit in the cache file unless we assign to the vars.
8626 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8628 # `set' does not quote correctly, so add quotes (double-quote substitution
8629 # turns \\\\ into \\, and sed turns \\ into \).
8631 -e "s
/'/'\\\\''/g
" \
8632 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
8635 # `set' quotes correctly as required by POSIX, so do not add quotes.
8636 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8639 if cmp -s $cache_file confcache; then
8642 if test -w $cache_file; then
8643 echo "updating cache
$cache_file"
8644 cat confcache > $cache_file
8646 echo "not updating unwritable cache
$cache_file"
8651 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8653 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
8654 # Let make expand exec_prefix.
8655 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
8657 # Any assignment to VPATH causes Sun make to only execute
8658 # the first set of double-colon rules, so remove it if not needed.
8659 # If there is a colon in the path, we need to keep it.
8660 if test "x
$srcdir" = x.; then
8661 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8664 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8666 DEFS=-DHAVE_CONFIG_H
8668 # Without the ".
/", some shells look in PATH for config.status.
8669 : ${CONFIG_STATUS=./config.status}
8671 echo creating $CONFIG_STATUS
8672 rm -f $CONFIG_STATUS
8673 cat > $CONFIG_STATUS <<EOF
8675 # Generated automatically by configure.
8676 # Run this file to recreate the current configuration.
8677 # This directory was configured as follows,
8678 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8680 # $0 $ac_configure_args
8682 # Compiler output produced by configure, useful for debugging
8683 # configure, is in ./config.log if it exists.
8685 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
8688 case "\
$ac_option" in
8689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8690 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8691 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8692 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8693 echo "$CONFIG_STATUS generated by autoconf version
2.13"
8695 -help | --help | --hel | --he | --h)
8696 echo "\
$ac_cs_usage"; exit 0 ;;
8697 *) echo "\
$ac_cs_usage"; exit 1 ;;
8701 ac_given_srcdir=$srcdir
8702 ac_given_INSTALL="$INSTALL"
8704 trap 'rm -fr `echo "Makefile libgcj.pc 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
8706 cat >> $CONFIG_STATUS <<EOF
8708 # Protect against being on the right side of a sed subst in config.status.
8709 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8710 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8714 s%@CFLAGS@%$CFLAGS%g
8715 s%@CPPFLAGS@%$CPPFLAGS%g
8716 s%@CXXFLAGS@%$CXXFLAGS%g
8717 s%@FFLAGS@%$FFLAGS%g
8719 s%@LDFLAGS@%$LDFLAGS%g
8721 s%@exec_prefix@%$exec_prefix%g
8722 s%@prefix@%$prefix%g
8723 s%@program_transform_name@%$program_transform_name%g
8724 s%@bindir@%$bindir%g
8725 s%@sbindir@%$sbindir%g
8726 s%@libexecdir@%$libexecdir%g
8727 s%@datadir@%$datadir%g
8728 s%@sysconfdir@%$sysconfdir%g
8729 s%@sharedstatedir@%$sharedstatedir%g
8730 s%@localstatedir@%$localstatedir%g
8731 s%@libdir@%$libdir%g
8732 s%@includedir@%$includedir%g
8733 s%@oldincludedir@%$oldincludedir%g
8734 s%@infodir@%$infodir%g
8735 s%@mandir@%$mandir%g
8736 s%@libgcj_basedir@%$libgcj_basedir%g
8738 s%@host_alias@%$host_alias%g
8739 s%@host_cpu@%$host_cpu%g
8740 s%@host_vendor@%$host_vendor%g
8741 s%@host_os@%$host_os%g
8742 s%@target@%$target%g
8743 s%@target_alias@%$target_alias%g
8744 s%@target_cpu@%$target_cpu%g
8745 s%@target_vendor@%$target_vendor%g
8746 s%@target_os@%$target_os%g
8748 s%@build_alias@%$build_alias%g
8749 s%@build_cpu@%$build_cpu%g
8750 s%@build_vendor@%$build_vendor%g
8751 s%@build_os@%$build_os%g
8752 s%@target_noncanonical@%$target_noncanonical%g
8754 s%@mkinstalldirs@%$mkinstalldirs%g
8756 s%@glibjava_CXX@%$glibjava_CXX%g
8758 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8759 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8760 s%@INSTALL_DATA@%$INSTALL_DATA%g
8761 s%@PACKAGE@%$PACKAGE%g
8762 s%@VERSION@%$VERSION%g
8763 s%@ACLOCAL@%$ACLOCAL%g
8764 s%@AUTOCONF@%$AUTOCONF%g
8765 s%@AUTOMAKE@%$AUTOMAKE%g
8766 s%@AUTOHEADER@%$AUTOHEADER%g
8767 s%@MAKEINFO@%$MAKEINFO%g
8768 s%@SET_MAKE@%$SET_MAKE%g
8771 s%@RANLIB@%$RANLIB%g
8772 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8773 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8775 s%@EXEEXT@%$EXEEXT%g
8776 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
8777 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
8778 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
8779 s%@INCLTDL@%$INCLTDL%g
8780 s%@LIBLTDL@%$LIBLTDL%g
8781 s%@DIRLTDL@%$DIRLTDL%g
8782 s%@OBJEXT@%$OBJEXT%g
8784 s%@LIBTOOL@%$LIBTOOL%g
8785 s%@CXXCPP@%$CXXCPP%g
8786 s%@subdirs@%$subdirs%g
8787 s%@COMPPATH@%$COMPPATH%g
8788 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
8789 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
8790 s%@ONESTEP_TRUE@%$ONESTEP_TRUE%g
8791 s%@ONESTEP_FALSE@%$ONESTEP_FALSE%g
8792 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
8793 s%@INTERPRETER@%$INTERPRETER%g
8794 s%@LIBFFI@%$LIBFFI%g
8795 s%@LIBFFIINCS@%$LIBFFIINCS%g
8796 s%@EXTRA_CC_FILES@%$EXTRA_CC_FILES%g
8797 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
8799 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
8800 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
8801 s%@ZLIBSPEC@%$ZLIBSPEC%g
8802 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
8803 s%@X_CFLAGS@%$X_CFLAGS%g
8804 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8805 s%@X_LIBS@%$X_LIBS%g
8806 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8807 s%@TOOLKIT@%$TOOLKIT%g
8808 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
8809 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
8810 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
8811 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
8812 s%@GTK_CAIRO_TRUE@%$GTK_CAIRO_TRUE%g
8813 s%@GTK_CAIRO_FALSE@%$GTK_CAIRO_FALSE%g
8814 s%@PKG_CONFIG@%$PKG_CONFIG%g
8815 s%@CAIRO_CFLAGS@%$CAIRO_CFLAGS%g
8816 s%@CAIRO_LIBS@%$CAIRO_LIBS%g
8817 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
8818 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
8819 s%@GCLIBS@%$GCLIBS%g
8820 s%@GCINCS@%$GCINCS%g
8821 s%@GCDEPS@%$GCDEPS%g
8822 s%@GCOBJS@%$GCOBJS%g
8823 s%@GCSPEC@%$GCSPEC%g
8824 s%@JC1GCSPEC@%$JC1GCSPEC%g
8825 s%@GCTESTSPEC@%$GCTESTSPEC%g
8826 s%@THREADLIBS@%$THREADLIBS%g
8827 s%@THREADINCS@%$THREADINCS%g
8828 s%@THREADDEPS@%$THREADDEPS%g
8829 s%@THREADOBJS@%$THREADOBJS%g
8830 s%@THREADSPEC@%$THREADSPEC%g
8831 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
8832 s%@THREADCXXFLAGS@%$THREADCXXFLAGS%g
8833 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
8834 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
8835 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
8836 s%@tool_include_dir@%$tool_include_dir%g
8837 s%@gcc_version@%$gcc_version%g
8838 s%@LIBICONV@%$LIBICONV%g
8839 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8840 s%@GTK_LIBS@%$GTK_LIBS%g
8841 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8842 s%@GLIB_LIBS@%$GLIB_LIBS%g
8843 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
8844 s%@LIBART_LIBS@%$LIBART_LIBS%g
8848 s%@GCJFLAGS@%$GCJFLAGS%g
8850 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
8852 s%@DIVIDESPEC@%$DIVIDESPEC%g
8853 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
8854 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
8855 s%@IEEESPEC@%$IEEESPEC%g
8856 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
8857 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
8858 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
8859 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
8860 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
8861 s%@toolexecdir@%$toolexecdir%g
8862 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
8863 s%@toolexeclibdir@%$toolexeclibdir%g
8864 s%@GCJVERSION@%$GCJVERSION%g
8865 s%@ALLOCA@%$ALLOCA%g
8867 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
8868 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
8874 cat >> $CONFIG_STATUS <<\EOF
8876 # Split the substitutions into bite-sized pieces for seds with
8877 # small command number limits, like on Digital OSF/1 and HP-UX.
8878 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8879 ac_file=1 # Number of current file.
8880 ac_beg=1 # First line for current file.
8881 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8884 while $ac_more_lines; do
8885 if test $ac_beg -gt 1; then
8886 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
8888 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
8890 if test ! -s conftest.s$ac_file; then
8892 rm -f conftest.s$ac_file
8894 if test -z "$ac_sed_cmds"; then
8895 ac_sed_cmds="sed -f conftest.s
$ac_file"
8897 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
8899 ac_file=`expr $ac_file + 1`
8901 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8904 if test -z "$ac_sed_cmds"; then
8909 cat >> $CONFIG_STATUS <<EOF
8911 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
8913 cat >> $CONFIG_STATUS <<\EOF
8914 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
8915 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
8917 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8918 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8919 *) ac_file_in="${ac_file}.
in" ;;
8922 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8924 # Remove last slash and all that follows it. Not all systems have dirname.
8925 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8926 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8927 # The file is in a subdirectory.
8928 test ! -d "$ac_dir" && mkdir "$ac_dir"
8929 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8930 # A "..
/" for each directory in $ac_dir_suffix.
8931 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8933 ac_dir_suffix= ac_dots=
8936 case "$ac_given_srcdir" in
8938 if test -z "$ac_dots"; then top_srcdir=.
8939 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8940 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8942 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8943 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8946 case "$ac_given_INSTALL" in
8947 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8948 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8951 echo creating "$ac_file"
8953 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
8955 *Makefile*) ac_comsub="1i
\\
8956 # $configure_input" ;;
8960 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8962 s%@configure_input@%$configure_input%g
8963 s%@srcdir@%$srcdir%g
8964 s%@top_srcdir@%$top_srcdir%g
8965 s%@INSTALL@%$INSTALL%g
8966 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8970 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8971 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8973 # ac_d sets the value in "#define NAME VALUE" lines.
8974 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8975 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8978 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8979 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8980 ac_uB
='\([ ]\)%\1#\2define\3'
8983 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8984 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8985 ac_eB
='$%\1#\2define\3'
8989 if test "${CONFIG_HEADERS+set}" != set; then
8991 cat >> $CONFIG_STATUS <<EOF
8992 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
8994 cat >> $CONFIG_STATUS <<\EOF
8996 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8997 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8999 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9000 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9001 *) ac_file_in
="${ac_file}.in" ;;
9004 echo creating
$ac_file
9006 rm -f conftest.frag conftest.
in conftest.out
9007 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9008 cat $ac_file_inputs > conftest.
in
9012 # Transform confdefs.h into a sed script conftest.vals that substitutes
9013 # the proper values into config.h.in to produce config.h. And first:
9014 # Protect against being on the right side of a sed subst in config.status.
9015 # Protect against being in an unquoted here document in config.status.
9017 cat > conftest.hdr
<<\EOF
9020 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9024 sed -n -f conftest.hdr confdefs.h > conftest.vals
9027 # This sed command replaces #undef with comments. This is necessary, for
9028 # example, in the case of _POSIX_SOURCE, which is predefined and required
9029 # on some systems where configure will not decide to define it.
9030 cat >> conftest.vals <<\EOF
9031 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9034 # Break up conftest.vals because some shells have a limit on
9035 # the size of here documents, and old seds have small limits too.
9040 ac_lines=`grep -c . conftest.vals
`
9041 # grep -c gives empty output for an empty file on some AIX systems.
9042 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9043 # Write a limited-size here document to conftest.frag.
9044 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9045 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9047 sed -f conftest.frag conftest.in > conftest.out
9049 mv conftest.out conftest.in
9051 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9053 mv conftest.tail conftest.vals
9057 cat >> $CONFIG_STATUS <<\EOF
9058 rm -f conftest.frag conftest.h
9059 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9060 cat conftest.in >> conftest.h
9062 if cmp -s $ac_file conftest.h 2>/dev/null; then
9063 echo "$ac_file is unchanged"
9066 # Remove last slash and all that follows it. Not all systems have dirname.
9067 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9068 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9069 # The file is in a subdirectory.
9070 test ! -d "$ac_dir" && mkdir "$ac_dir"
9073 mv conftest.h $ac_file
9079 cat >> $CONFIG_STATUS <<EOF
9080 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc java/net/natInetAddress${PLATFORMNET}.cc java/net/natNetworkInterface${PLATFORMNET}.cc gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc gnu/java/nio/natPipeImpl${PLATFORM}.cc gnu/java/nio/natSelectorImpl${PLATFORM}.cc gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER $SIGNAL_HANDLER_AUX"
9081 ac_dests="include/platform.h java/io/natFile.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc java/net/natInetAddress.cc java/net/natNetworkInterface.cc gnu/java/net/natPlainSocketImpl.cc gnu/java/net/natPlainDatagramSocketImpl.cc gnu/java/nio/natPipeImpl.cc gnu/java/nio/natSelectorImpl.cc gnu/java/nio/channels/natFileChannelImpl.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h include/java-signal-aux.h"
9084 cat >> $CONFIG_STATUS <<\EOF
9085 srcdir=$ac_given_srcdir
9086 while test -n "$ac_sources"; do
9087 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9088 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9090 echo "linking $srcdir/$ac_source to $ac_dest"
9092 if test ! -r $srcdir/$ac_source; then
9093 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9097 # Make relative symlinks.
9098 # Remove last slash and all that follows it. Not all systems have dirname.
9099 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9100 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9101 # The dest file is in a subdirectory.
9102 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9103 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9104 # A "../" for each directory in $ac_dest_dir_suffix.
9105 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9107 ac_dest_dir_suffix= ac_dots=
9111 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9112 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9115 # Make a symlink if possible; otherwise try a hard link.
9116 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9117 ln $srcdir/$ac_source $ac_dest; then :
9119 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9123 cat >> $CONFIG_STATUS <<EOF
9128 with_multisubdir=${with_multisubdir}
9129 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9130 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9131 libgcj_basedir=${libgcj_basedir}
9134 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9137 cat >> $CONFIG_STATUS <<\EOF
9139 for am_file in include/config.h gcj/libgcj-config.h; do
9140 case " $CONFIG_HEADERS " in
9142 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9145 am_indx=`expr "$am_indx" + 1`
9147 # Only add multilib support code if we just rebuilt top-level Makefile.
9148 case " $CONFIG_FILES " in
9150 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9151 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9155 # Make subdirectories and `.d
' files. Look in both srcdir and
9156 # builddir for the .java files.
9159 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) ;
9160 find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) | \
9161 fgrep -v testsuite | \
9162 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/'\;'s
/\.c
/.d
/' | \
9164 echo "include $f" >> deps.mk
9167 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
9169 if test ! -d $d; then
9170 $libgcj_basedir/../mkinstalldirs $d
9178 chmod +x $CONFIG_STATUS
9179 rm -fr confdefs* $ac_clean_files
9180 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9182 if test "$no_recursion" != yes; then
9184 # Remove --cache-file and --srcdir arguments so they do not pile up.
9185 ac_sub_configure_args=
9187 for ac_arg in $ac_configure_args; do
9188 if test -n "$ac_prev"; then
9193 -cache-file | --cache-file | --cache-fil | --cache-fi \
9194 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9195 ac_prev=cache_file ;;
9196 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9197 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9203 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9207 for ac_config_dir in $DIRLTDL; do
9209 # Do not complain, so a configure script can configure whichever
9210 # parts of a large source tree are present.
9211 if test ! -d $srcdir/$ac_config_dir; then
9215 echo configuring in $ac_config_dir
9220 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9222 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9230 # A "../" for each directory in /$ac_config_dir.
9231 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
9234 .) # No --srcdir option. We are building in place.
9235 ac_sub_srcdir=$srcdir ;;
9236 /*) # Absolute path.
9237 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9239 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9242 # Check for guested configure; otherwise get Cygnus style configure.
9243 if test -f $ac_sub_srcdir/configure; then
9244 ac_sub_configure=$ac_sub_srcdir/configure
9245 elif test -f $ac_sub_srcdir/configure.in; then
9246 ac_sub_configure=$ac_configure
9248 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9252 # The recursion is here.
9253 if test -n "$ac_sub_configure"; then
9255 # Make the cache file name correct relative to the subdirectory.
9256 case "$cache_file" in
9257 /*) ac_sub_cache_file=$cache_file ;;
9259 ac_sub_cache_file="$ac_dots$cache_file" ;;
9261 case "$ac_given_INSTALL" in
9262 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9263 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9266 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9267 # The eval makes quoting arguments work.
9268 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9271 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }