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 # This works around the fact that libtool configuration may change LD
592 # for this particular configuration, but some shells, instead of
593 # keeping the changes in LD private, export them just because LD is
595 ORIGINAL_LD_FOR_MULTILIBS
=$LD
597 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
598 echo "configure:599: checking whether ln -s works" >&5
599 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
600 echo $ac_n "(cached) $ac_c" 1>&6
603 if ln -s X conftestdata
2>/dev
/null
606 ac_cv_prog_LN_S
="ln -s"
611 LN_S
="$ac_cv_prog_LN_S"
612 if test "$ac_cv_prog_LN_S" = "ln -s"; then
613 echo "$ac_t""yes" 1>&6
615 echo "$ac_t""no" 1>&6
619 # Check whether --with-target-subdir or --without-target-subdir was given.
620 if test "${with_target_subdir+set}" = set; then
621 withval
="$with_target_subdir"
625 # Check whether --with-cross-host or --without-cross-host was given.
626 if test "${with_cross_host+set}" = set; then
627 withval
="$with_cross_host"
632 # Check whether --with-newlib or --without-newlib was given.
633 if test "${with_newlib+set}" = set; then
634 withval
="$with_newlib"
639 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
640 if test "${enable_version_specific_runtime_libs+set}" = set; then
641 enableval
="$enable_version_specific_runtime_libs"
643 yes) version_specific_libs
=yes ;;
644 no
) version_specific_libs
=no
;;
645 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
648 version_specific_libs
=no
654 am__api_version
="1.4"
655 # Find a good install program. We prefer a C program (faster),
656 # so one script is as good as another. But avoid the broken or
657 # incompatible versions:
658 # SysV /etc/install, /usr/sbin/install
659 # SunOS /usr/etc/install
662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
665 # ./install, which can be erroneously created by make from ./install.sh.
666 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
667 echo "configure:668: checking for a BSD compatible install" >&5
668 if test -z "$INSTALL"; then
669 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
673 for ac_dir
in $PATH; do
674 # Account for people who put trailing slashes in PATH elements.
676 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
678 # OSF1 and SCO ODT 3.0 have their own names for install.
679 # Don't use installbsd from OSF since it installs stuff as root
681 for ac_prog
in ginstall scoinst
install; do
682 if test -f $ac_dir/$ac_prog; then
683 if test $ac_prog = install &&
684 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
685 # AIX install. It has an incompatible calling convention.
688 ac_cv_path_install
="$ac_dir/$ac_prog -c"
699 if test "${ac_cv_path_install+set}" = set; then
700 INSTALL
="$ac_cv_path_install"
702 # As a last resort, use the slow shell script. We don't cache a
703 # path for INSTALL within a source directory, because that will
704 # break other packages using the cache if that directory is
705 # removed, or if the path is relative.
706 INSTALL
="$ac_install_sh"
709 echo "$ac_t""$INSTALL" 1>&6
711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
712 # It thinks the first close brace ends the variable substitution.
713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
717 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
719 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
720 echo "configure:721: checking whether build environment is sane" >&5
723 echo timestamp
> conftestfile
724 # Do `set' in a subshell so we don't clobber the current shell's
725 # arguments. Must try -L first in case configure is actually a
726 # symlink; some systems play weird games with the mod time of symlinks
727 # (eg FreeBSD returns the mod time of the symlink's containing
730 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
731 if test "$*" = "X"; then
733 set X
`ls -t $srcdir/configure conftestfile`
735 if test "$*" != "X $srcdir/configure conftestfile" \
736 && test "$*" != "X conftestfile $srcdir/configure"; then
738 # If neither matched, then we have a broken ls. This can happen
739 # if, for instance, CONFIG_SHELL is bash and it inherits a
740 # broken ls alias from the environment. This has actually
741 # happened. Such a system could not be considered "sane".
742 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
743 alias in your environment" 1>&2; exit 1; }
746 test "$2" = conftestfile
752 { echo "configure: error: newly created file is older than distributed files!
753 Check your system clock" 1>&2; exit 1; }
756 echo "$ac_t""yes" 1>&6
757 if test "$program_transform_name" = s
,x
,x
,; then
758 program_transform_name
=
760 # Double any \ or $. echo might interpret backslashes.
761 cat <<\EOF_SED
> conftestsed
762 s
,\\,\\\\,g
; s
,\$
,$$
,g
764 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
767 test "$program_prefix" != NONE
&&
768 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
769 # Use a double $ so make ignores it.
770 test "$program_suffix" != NONE
&&
771 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
773 # sed with no file args requires a program.
774 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
776 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
777 echo "configure:778: checking whether ${MAKE-make} sets \${MAKE}" >&5
778 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
779 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 cat > conftestmake
<<\EOF
784 @
echo 'ac_maketemp="${MAKE}"'
786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
787 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
788 if test -n "$ac_maketemp"; then
789 eval ac_cv_prog_make_
${ac_make}_set
=yes
791 eval ac_cv_prog_make_
${ac_make}_set
=no
795 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
796 echo "$ac_t""yes" 1>&6
799 echo "$ac_t""no" 1>&6
800 SET_MAKE
="MAKE=${MAKE-make}"
803 if test $host != $build; then
804 ac_tool_prefix
=${host_alias}-
809 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
810 echo "configure:811: checking for Cygwin environment" >&5
811 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 cat > conftest.
$ac_ext <<EOF
815 #line 816 "configure"
816 #include "confdefs.h"
821 #define __CYGWIN__ __CYGWIN32__
826 if { (eval echo configure
:827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
830 echo "configure: failed program was:" >&5
831 cat conftest.
$ac_ext >&5
839 echo "$ac_t""$ac_cv_cygwin" 1>&6
841 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
842 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
843 echo "configure:844: checking for mingw32 environment" >&5
844 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 cat > conftest.
$ac_ext <<EOF
848 #line 849 "configure"
849 #include "confdefs.h"
855 if { (eval echo configure
:856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
859 echo "configure: failed program was:" >&5
860 cat conftest.
$ac_ext >&5
868 echo "$ac_t""$ac_cv_mingw32" 1>&6
870 test "$ac_cv_mingw32" = yes && MINGW32
=yes
872 # Check whether --enable-multilib or --disable-multilib was given.
873 if test "${enable_multilib+set}" = set; then
874 enableval
="$enable_multilib"
875 case "${enableval}" in
878 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
885 # When building with srcdir == objdir, links to the source files will
886 # be created in directories within the target_subdir. We have to
887 # adjust toplevel_srcdir accordingly, so that configure finds
888 # install-sh and other auxiliary files that live in the top-level
890 if test "${srcdir}" = "."; then
891 if test -z "${with_target_subdir}"; then
894 if test "${with_target_subdir}" != "."; then
895 toprel
="${with_multisrctop}../.."
897 toprel
="${with_multisrctop}.."
904 libgcj_basedir
=$srcdir/$toprel/.
/libjava
908 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
909 if test -f $ac_dir/install-sh
; then
911 ac_install_sh
="$ac_aux_dir/install-sh -c"
913 elif test -f $ac_dir/install.sh
; then
915 ac_install_sh
="$ac_aux_dir/install.sh -c"
919 if test -z "$ac_aux_dir"; then
920 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
922 ac_config_guess=$ac_aux_dir/config.guess
923 ac_config_sub=$ac_aux_dir/config.sub
924 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
927 # This overrides the previous occurrence for automake, but not for
928 # autoconf, which is exactly what we want.
930 for ac_dir in .. $srcdir/..; do
931 if test -f $ac_dir/install-sh; then
933 ac_install_sh="$ac_aux_dir/install-sh
-c"
935 elif test -f $ac_dir/install.sh; then
937 ac_install_sh="$ac_aux_dir/install.sh
-c"
941 if test -z "$ac_aux_dir"; then
942 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
944 ac_config_guess=$ac_aux_dir/config.guess
945 ac_config_sub=$ac_aux_dir/config.sub
946 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
950 # This works around an automake problem.
951 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs
"
955 # Do some error checking and defaulting for the host and target type.
957 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
960 # 1. You are not allowed to specify --host, --target, and nonopt at the
962 # 2. Host defaults to nonopt.
963 # 3. If nonopt is not specified, then host defaults to the current host,
964 # as determined by config.guess.
965 # 4. Target and build default to nonopt.
966 # 5. If nonopt is not specified, then target and build default to host.
968 # The aliases save the names the user supplied, while $host etc.
969 # will get canonicalized.
970 case $host---$target---$nonopt in
971 NONE---*---* | *---NONE---* | *---*---NONE) ;;
972 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
976 # Make sure we can run config.sub.
977 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
978 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
981 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
982 echo "configure
:983: checking
host system
type" >&5
985 case "$host_alias" in
989 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
990 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
992 *) host_alias=$nonopt ;;
996 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
997 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
998 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
999 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1000 echo "$ac_t""$host" 1>&6
1002 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
1003 echo "configure
:1004: checking target system
type" >&5
1005 target_alias=$target
1006 case "$target_alias" in
1009 NONE) target_alias=$host_alias ;;
1010 *) target_alias=$nonopt ;;
1014 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1015 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1016 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1017 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1018 echo "$ac_t""$target" 1>&6
1020 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1021 echo "configure
:1022: checking build system
type" >&5
1024 case "$build_alias" in
1027 NONE) build_alias=$host_alias ;;
1028 *) build_alias=$nonopt ;;
1032 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1033 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1034 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1035 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1036 echo "$ac_t""$build" 1>&6
1038 test "$host_alias" != "$target_alias" &&
1039 test "$program_prefix$program_suffix$program_transform_name" = \
1041 program_prefix=${target_alias}-
1047 # Extract the first word of "gcc
", so it can be a program name with args.
1048 set dummy gcc; ac_word=$2
1049 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1050 echo "configure
:1051: checking
for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1052 echo $ac_n "(cached
) $ac_c" 1>&6
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC="$CC" # Let the user override the test.
1057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1059 for ac_dir in $ac_dummy; do
1060 test -z "$ac_dir" && ac_dir=.
1061 if test -f $ac_dir/$ac_word; then
1070 if test -n "$CC"; then
1071 echo "$ac_t""$CC" 1>&6
1073 echo "$ac_t""no
" 1>&6
1076 if test -z "$CC"; then
1077 # Extract the first word of "cc
", so it can be a program name with args.
1078 set dummy cc; ac_word=$2
1079 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1080 echo "configure
:1081: checking
for $ac_word" >&5
1081 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1082 echo $ac_n "(cached
) $ac_c" 1>&6
1084 if test -n "$CC"; then
1085 ac_cv_prog_CC="$CC" # Let the user override the test.
1087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1090 for ac_dir in $ac_dummy; do
1091 test -z "$ac_dir" && ac_dir=.
1092 if test -f $ac_dir/$ac_word; then
1093 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1094 ac_prog_rejected=yes
1102 if test $ac_prog_rejected = yes; then
1103 # We found a bogon in the path, so make sure we never use it.
1104 set dummy $ac_cv_prog_CC
1106 if test $# -gt 0; then
1107 # We chose a different compiler from the bogus one.
1108 # However, it has the same basename, so the bogon will be chosen
1109 # first if we set CC to just the basename; use the full file name.
1111 set dummy "$ac_dir/$ac_word" "$@
"
1119 if test -n "$CC"; then
1120 echo "$ac_t""$CC" 1>&6
1122 echo "$ac_t""no
" 1>&6
1125 if test -z "$CC"; then
1126 case "`uname -s`" in
1128 # Extract the first word of "cl
", so it can be a program name with args.
1129 set dummy cl; ac_word=$2
1130 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1131 echo "configure
:1132: checking
for $ac_word" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1133 echo $ac_n "(cached
) $ac_c" 1>&6
1135 if test -n "$CC"; then
1136 ac_cv_prog_CC="$CC" # Let the user override the test.
1138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1140 for ac_dir in $ac_dummy; do
1141 test -z "$ac_dir" && ac_dir=.
1142 if test -f $ac_dir/$ac_word; then
1151 if test -n "$CC"; then
1152 echo "$ac_t""$CC" 1>&6
1154 echo "$ac_t""no
" 1>&6
1159 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1163 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1164 echo "configure
:1165: checking whether we are using GNU C
" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1166 echo $ac_n "(cached
) $ac_c" 1>&6
1168 cat > conftest.c <<EOF
1173 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1180 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1182 if test $ac_cv_prog_gcc = yes; then
1188 ac_test_CFLAGS="${CFLAGS+set}"
1189 ac_save_CFLAGS="$CFLAGS"
1191 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1192 echo "configure
:1193: checking whether
${CC-cc} accepts
-g" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1194 echo $ac_n "(cached
) $ac_c" 1>&6
1196 echo 'void f(){}' > conftest.c
1197 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1206 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1207 if test "$ac_test_CFLAGS" = set; then
1208 CFLAGS="$ac_save_CFLAGS"
1209 elif test $ac_cv_prog_cc_g = yes; then
1210 if test "$GCC" = yes; then
1216 if test "$GCC" = yes; then
1224 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1225 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1226 # different definition of CXX than other directories, since we don't
1227 # depend on libstdc++-v3 having already been built.
1231 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1232 # flags that come in CXX while configuring libjava. They're different
1233 # from those used for all other target libraries. If CXX is set in
1234 # the environment, respect that here.
1236 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1238 # Extract the first word of "$ac_prog", so it can be a program name with args.
1239 set dummy $ac_prog; ac_word=$2
1240 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1241 echo "configure
:1242: checking
for $ac_word" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1243 echo $ac_n "(cached
) $ac_c" 1>&6
1245 if test -n "$glibjava_CXX"; then
1246 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1250 for ac_dir in $ac_dummy; do
1251 test -z "$ac_dir" && ac_dir=.
1252 if test -f $ac_dir/$ac_word; then
1253 ac_cv_prog_glibjava_CXX="$ac_prog"
1260 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1261 if test -n "$glibjava_CXX"; then
1262 echo "$ac_t""$glibjava_CXX" 1>&6
1264 echo "$ac_t""no
" 1>&6
1267 test -n "$glibjava_CXX" && break
1269 test -n "$glibjava_CXX" || glibjava_CXX="gcc
"
1273 test -z "$glibjava_CXX" && { echo "configure
: error
: no acceptable c
++ found
in \
$PATH" 1>&2; exit 1; }
1275 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1276 echo "configure
:1277: checking whether we are using GNU C
++" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1278 echo $ac_n "(cached
) $ac_c" 1>&6
1280 cat > conftest.C <<EOF
1285 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1292 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1294 if test $ac_cv_prog_gxx = yes; then
1296 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1297 ac_save_CXXFLAGS="$CXXFLAGS"
1299 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1300 echo "configure
:1301: checking whether
${CXX-g++} accepts
-g" >&5
1301 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1302 echo $ac_n "(cached
) $ac_c" 1>&6
1304 echo 'void f(){}' > conftest.cc
1305 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1306 ac_cv_prog_cxx_g=yes
1314 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1315 if test "$ac_test_CXXFLAGS" = set; then
1316 CXXFLAGS="$ac_save_CXXFLAGS"
1317 elif test $ac_cv_prog_cxx_g = yes; then
1324 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1334 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1335 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1337 cat >> confdefs.h <<EOF
1338 #define PACKAGE "$PACKAGE"
1341 cat >> confdefs.h <<EOF
1342 #define VERSION "$VERSION"
1347 missing_dir=`cd $ac_aux_dir && pwd`
1348 echo $ac_n "checking
for working aclocal-
${am__api_version}""...
$ac_c" 1>&6
1349 echo "configure
:1350: checking
for working aclocal-
${am__api_version}" >&5
1350 # Run test in a subshell; some versions of sh will print an error if
1351 # an executable is not found, even if stderr is redirected.
1352 # Redirect stdin to placate older versions of autoconf. Sigh.
1353 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1354 ACLOCAL=aclocal-${am__api_version}
1355 echo "$ac_t""found
" 1>&6
1357 ACLOCAL="$missing_dir/missing aclocal-
${am__api_version}"
1358 echo "$ac_t""missing
" 1>&6
1361 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1362 echo "configure
:1363: checking
for working autoconf
" >&5
1363 # Run test in a subshell; some versions of sh will print an error if
1364 # an executable is not found, even if stderr is redirected.
1365 # Redirect stdin to placate older versions of autoconf. Sigh.
1366 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1368 echo "$ac_t""found
" 1>&6
1370 AUTOCONF="$missing_dir/missing autoconf
"
1371 echo "$ac_t""missing
" 1>&6
1374 echo $ac_n "checking
for working automake-
${am__api_version}""...
$ac_c" 1>&6
1375 echo "configure
:1376: checking
for working automake-
${am__api_version}" >&5
1376 # Run test in a subshell; some versions of sh will print an error if
1377 # an executable is not found, even if stderr is redirected.
1378 # Redirect stdin to placate older versions of autoconf. Sigh.
1379 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1380 AUTOMAKE=automake-${am__api_version}
1381 echo "$ac_t""found
" 1>&6
1383 AUTOMAKE="$missing_dir/missing automake-
${am__api_version}"
1384 echo "$ac_t""missing
" 1>&6
1387 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1388 echo "configure
:1389: checking
for working autoheader
" >&5
1389 # Run test in a subshell; some versions of sh will print an error if
1390 # an executable is not found, even if stderr is redirected.
1391 # Redirect stdin to placate older versions of autoconf. Sigh.
1392 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1393 AUTOHEADER=autoheader
1394 echo "$ac_t""found
" 1>&6
1396 AUTOHEADER="$missing_dir/missing autoheader
"
1397 echo "$ac_t""missing
" 1>&6
1400 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1401 echo "configure
:1402: checking
for working makeinfo
" >&5
1402 # Run test in a subshell; some versions of sh will print an error if
1403 # an executable is not found, even if stderr is redirected.
1404 # Redirect stdin to placate older versions of autoconf. Sigh.
1405 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1407 echo "$ac_t""found
" 1>&6
1409 MAKEINFO="$missing_dir/missing makeinfo
"
1410 echo "$ac_t""missing
" 1>&6
1415 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1416 set dummy ${ac_tool_prefix}as; ac_word=$2
1417 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1418 echo "configure
:1419: checking
for $ac_word" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1420 echo $ac_n "(cached
) $ac_c" 1>&6
1422 if test -n "$AS"; then
1423 ac_cv_prog_AS="$AS" # Let the user override the test.
1425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1427 for ac_dir in $ac_dummy; do
1428 test -z "$ac_dir" && ac_dir=.
1429 if test -f $ac_dir/$ac_word; then
1430 ac_cv_prog_AS="${ac_tool_prefix}as
"
1435 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1439 if test -n "$AS"; then
1440 echo "$ac_t""$AS" 1>&6
1442 echo "$ac_t""no
" 1>&6
1447 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1448 set dummy ${ac_tool_prefix}ar; ac_word=$2
1449 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1450 echo "configure
:1451: checking
for $ac_word" >&5
1451 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1452 echo $ac_n "(cached
) $ac_c" 1>&6
1454 if test -n "$AR"; then
1455 ac_cv_prog_AR="$AR" # Let the user override the test.
1457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1459 for ac_dir in $ac_dummy; do
1460 test -z "$ac_dir" && ac_dir=.
1461 if test -f $ac_dir/$ac_word; then
1462 ac_cv_prog_AR="${ac_tool_prefix}ar"
1467 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1471 if test -n "$AR"; then
1472 echo "$ac_t""$AR" 1>&6
1474 echo "$ac_t""no
" 1>&6
1479 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1481 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1482 echo "configure
:1483: checking
for $ac_word" >&5
1483 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1484 echo $ac_n "(cached
) $ac_c" 1>&6
1486 if test -n "$RANLIB"; then
1487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1491 for ac_dir in $ac_dummy; do
1492 test -z "$ac_dir" && ac_dir=.
1493 if test -f $ac_dir/$ac_word; then
1494 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1501 RANLIB="$ac_cv_prog_RANLIB"
1502 if test -n "$RANLIB"; then
1503 echo "$ac_t""$RANLIB" 1>&6
1505 echo "$ac_t""no
" 1>&6
1509 if test -z "$ac_cv_prog_RANLIB"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "ranlib
", so it can be a program name with args.
1512 set dummy ranlib; ac_word=$2
1513 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1514 echo "configure
:1515: checking
for $ac_word" >&5
1515 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1516 echo $ac_n "(cached
) $ac_c" 1>&6
1518 if test -n "$RANLIB"; then
1519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1523 for ac_dir in $ac_dummy; do
1524 test -z "$ac_dir" && ac_dir=.
1525 if test -f $ac_dir/$ac_word; then
1526 ac_cv_prog_RANLIB="ranlib
"
1531 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1534 RANLIB="$ac_cv_prog_RANLIB"
1535 if test -n "$RANLIB"; then
1536 echo "$ac_t""$RANLIB" 1>&6
1538 echo "$ac_t""no
" 1>&6
1547 # Find a good install program. We prefer a C program (faster),
1548 # so one script is as good as another. But avoid the broken or
1549 # incompatible versions:
1550 # SysV /etc/install, /usr/sbin/install
1551 # SunOS /usr/etc/install
1552 # IRIX /sbin/install
1554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1557 # ./install, which can be erroneously created by make from ./install.sh.
1558 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1559 echo "configure
:1560: checking
for a BSD compatible
install" >&5
1560 if test -z "$INSTALL"; then
1561 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1562 echo $ac_n "(cached
) $ac_c" 1>&6
1564 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1565 for ac_dir in $PATH; do
1566 # Account for people who put trailing slashes in PATH elements.
1568 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1570 # OSF1 and SCO ODT 3.0 have their own names for install.
1571 # Don't use installbsd from OSF since it installs stuff as root
1573 for ac_prog in ginstall scoinst install; do
1574 if test -f $ac_dir/$ac_prog; then
1575 if test $ac_prog = install &&
1576 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1577 # AIX install. It has an incompatible calling convention.
1580 ac_cv_path_install="$ac_dir/$ac_prog -c"
1591 if test "${ac_cv_path_install+set}" = set; then
1592 INSTALL="$ac_cv_path_install"
1594 # As a last resort, use the slow shell script. We don't cache a
1595 # path for INSTALL within a source directory, because that will
1596 # break other packages using the cache if that directory is
1597 # removed, or if the path is relative.
1598 INSTALL="$ac_install_sh"
1601 echo "$ac_t""$INSTALL" 1>&6
1603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1604 # It thinks the first close brace ends the variable substitution.
1605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1612 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1613 echo "configure
:1614: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1614 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1615 if test "${enable_maintainer_mode+set}" = set; then
1616 enableval="$enable_maintainer_mode"
1617 USE_MAINTAINER_MODE=$enableval
1619 USE_MAINTAINER_MODE=no
1622 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1625 if test $USE_MAINTAINER_MODE = yes; then
1626 MAINTAINER_MODE_TRUE=
1627 MAINTAINER_MODE_FALSE='#'
1629 MAINTAINER_MODE_TRUE='#'
1630 MAINTAINER_MODE_FALSE=
1632 MAINT=$MAINTAINER_MODE_TRUE
1638 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1639 echo "configure
:1640: checking
for executable suffix
" >&5
1640 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1641 echo $ac_n "(cached
) $ac_c" 1>&6
1643 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1647 echo 'int main () { return 0; }' > conftest.$ac_ext
1649 if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1650 for file in conftest.*; do
1652 *.c | *.o | *.obj) ;;
1653 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1657 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1660 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1665 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1666 echo "$ac_t""${ac_cv_exeext}" 1>&6
1670 # configure.host sets the following important variables
1671 # libgcj_cflags - host specific C compiler flags
1672 # libgcj_cxxflags - host specific C++ compiler flags
1673 # libgcj_javaflags - host specific Java compiler flags
1679 . ${srcdir}/configure.host
1681 LIBGCJ_CFLAGS="${libgcj_cflags}"
1682 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1683 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1693 # Only use libltdl for non-newlib builds.
1694 if test "x
${with_newlib}" = "x
" || test "x
${with_newlib}" = "xno
"; then
1695 case $enable_ltdl_convenience in
1696 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1697 "") enable_ltdl_convenience=yes
1698 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1700 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1701 INCLTDL='-I${top_srcdir}/''libltdl'
1705 cat >> confdefs.h <<\EOF
1709 # Sigh. Libtool's macro doesn't do the right thing.
1710 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1711 # FIXME: this is a hack.
1712 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1713 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1718 # Check whether --enable-shared or --disable-shared was given.
1719 if test "${enable_shared+set}" = set; then
1720 enableval="$enable_shared"
1721 p=${PACKAGE-default}
1723 yes) enable_shared=yes ;;
1724 no) enable_shared=no ;;
1727 # Look at the argument we got. We use all the common list separators.
1728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1729 for pkg in $enableval; do
1730 if test "X
$pkg" = "X
$p"; then
1741 # Check whether --enable-static or --disable-static was given.
1742 if test "${enable_static+set}" = set; then
1743 enableval="$enable_static"
1744 p=${PACKAGE-default}
1746 yes) enable_static=yes ;;
1747 no) enable_static=no ;;
1750 # Look at the argument we got. We use all the common list separators.
1751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1752 for pkg in $enableval; do
1753 if test "X
$pkg" = "X
$p"; then
1764 # Check whether --enable-fast-install or --disable-fast-install was given.
1765 if test "${enable_fast_install+set}" = set; then
1766 enableval="$enable_fast_install"
1767 p=${PACKAGE-default}
1769 yes) enable_fast_install=yes ;;
1770 no) enable_fast_install=no ;;
1772 enable_fast_install=no
1773 # Look at the argument we got. We use all the common list separators.
1774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1775 for pkg in $enableval; do
1776 if test "X
$pkg" = "X
$p"; then
1777 enable_fast_install=yes
1784 enable_fast_install=yes
1787 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1788 if test "${with_gnu_ld+set}" = set; then
1789 withval="$with_gnu_ld"
1790 test "$withval" = no || with_gnu_ld=yes
1796 if test "$GCC" = yes; then
1797 # Check if gcc -print-prog-name=ld gives a path.
1798 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1799 echo "configure
:1800: checking
for ld used by GCC
" >&5
1802 # gcc leaves a trailing carriage return which upsets mingw
1803 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1805 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1808 # Accept absolute paths.
1809 [\\/]* | [A-Za-z]:[\\/]*)
1810 re_direlt='/[^/][^/]*/\.\./'
1811 # Canonicalize the path of ld
1812 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1813 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1814 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1816 test -z "$LD" && LD="$ac_prog"
1819 # If it fails, then pretend we aren't using GCC.
1823 # If it is relative, then search for the first ld in PATH.
1827 elif test "$with_gnu_ld" = yes; then
1828 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1829 echo "configure
:1830: checking
for GNU ld
" >&5
1831 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1832 echo "configure
:1833: checking
for non-GNU ld
" >&5
1834 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1835 echo $ac_n "(cached
) $ac_c" 1>&6
1837 if test -z "$LD"; then
1838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1839 for ac_dir in $PATH; do
1840 test -z "$ac_dir" && ac_dir=.
1841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1842 lt_cv_path_LD="$ac_dir/$ac_prog"
1843 # Check to see if the program is GNU ld. I'd rather use --version,
1844 # but apparently some GNU ld's only accept -v.
1845 # Break only if it was the GNU/non-GNU ld that we prefer.
1846 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1847 test "$with_gnu_ld" != no && break
1849 test "$with_gnu_ld" != yes && break
1855 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1860 if test -n "$LD"; then
1861 echo "$ac_t""$LD" 1>&6
1863 echo "$ac_t""no
" 1>&6
1865 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1866 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1867 echo "configure
:1868: checking
if the linker
($LD) is GNU ld
" >&5
1868 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1869 echo $ac_n "(cached
) $ac_c" 1>&6
1871 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1872 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1873 lt_cv_prog_gnu_ld=yes
1875 lt_cv_prog_gnu_ld=no
1879 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1880 with_gnu_ld=$lt_cv_prog_gnu_ld
1883 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1884 echo "configure
:1885: checking
for $LD option to reload object files
" >&5
1885 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1886 echo $ac_n "(cached
) $ac_c" 1>&6
1888 lt_cv_ld_reload_flag='-r'
1891 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1892 reload_flag=$lt_cv_ld_reload_flag
1893 test -n "$reload_flag" && reload_flag=" $reload_flag"
1895 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1896 echo "configure
:1897: checking
for BSD-compatible nm
" >&5
1897 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1898 echo $ac_n "(cached
) $ac_c" 1>&6
1900 if test -n "$NM"; then
1901 # Let the user override the test.
1904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1905 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1906 test -z "$ac_dir" && ac_dir=.
1907 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1908 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1909 # Check to see if the nm accepts a BSD-compat flag.
1910 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1911 # nm: unknown option "B
" ignored
1912 # Tru64's nm complains that /dev/null is an invalid object file
1913 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1914 lt_cv_path_NM="$tmp_nm -B"
1916 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1917 lt_cv_path_NM="$tmp_nm -p"
1920 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1921 continue # so that we can try to find one that supports BSD flags
1926 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1931 echo "$ac_t""$NM" 1>&6
1933 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1934 echo "configure
:1935: checking how to recognise dependant libraries
" >&5
1935 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1936 echo $ac_n "(cached
) $ac_c" 1>&6
1938 lt_cv_file_magic_cmd='$MAGIC_CMD'
1939 lt_cv_file_magic_test_file=
1940 lt_cv_deplibs_check_method='unknown'
1941 # Need to set the preceding variable on all platforms that support
1942 # interlibrary dependencies.
1943 # 'none' -- dependencies not supported.
1944 # `unknown' -- same as none, but documents that we really don't know.
1945 # 'pass_all' -- all dependencies passed with no checks.
1946 # 'test_compile' -- check by making test program.
1947 # 'file_magic [regex]' -- check by looking for files in library path
1948 # which responds to the $file_magic_cmd with a given egrep regex.
1949 # If you have `file' or equivalent on your system and you're not sure
1950 # whether `pass_all' will *always* work, you probably want this one.
1954 lt_cv_deplibs_check_method=pass_all
1958 lt_cv_deplibs_check_method=pass_all
1962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1963 lt_cv_file_magic_cmd='/usr/bin/file -L'
1964 lt_cv_file_magic_test_file=/shlib/libc.so
1967 cygwin* | mingw* |pw32*)
1968 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1969 lt_cv_file_magic_cmd='$OBJDUMP -f'
1972 darwin* | rhapsody*)
1973 # this will be overwritten by pass_all, but leave it in just in case
1974 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1975 lt_cv_file_magic_cmd='/usr/bin/file -L'
1977 rhapsody* | darwin1.012)
1978 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1981 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1984 lt_cv_deplibs_check_method=pass_all
1987 freebsd* | kfreebsd*-gnu)
1988 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1991 # Not sure whether the presence of OpenBSD here was a mistake.
1992 # Let's accept both of them until this is cleared up.
1993 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1994 lt_cv_file_magic_cmd=/usr/bin/file
1995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1999 lt_cv_deplibs_check_method=pass_all
2004 lt_cv_deplibs_check_method=pass_all
2010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2011 lt_cv_file_magic_cmd=/usr/bin/file
2012 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2015 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2016 lt_cv_file_magic_cmd=/usr/bin/file
2017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2025 # this will be overridden with pass_all, but let us keep it just in case
2026 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2030 *-32|*"-32 ") libmagic=32-bit;;
2031 *-n32|*"-n32 ") libmagic=N32;;
2032 *-64|*"-64 ") libmagic=64-bit;;
2033 *) libmagic=never-match;;
2035 # this will be overridden with pass_all, but let us keep it just in case
2036 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2039 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2040 lt_cv_deplibs_check_method=pass_all
2043 # This must be Linux ELF.
2046 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
2047 lt_cv_deplibs_check_method=pass_all ;;
2049 # glibc up to 2.1.1 does not perform some relocations on ARM
2050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2052 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2055 netbsd* | knetbsd*-gnu)
2056 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2057 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2059 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2065 lt_cv_file_magic_cmd=/usr/bin/file
2066 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2069 osf3* | osf4* | osf5*)
2070 # this will be overridden with pass_all, but let us keep it just in case
2071 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2072 lt_cv_file_magic_test_file=/shlib/libc.so
2073 lt_cv_deplibs_check_method=pass_all
2077 lt_cv_deplibs_check_method=pass_all
2081 lt_cv_deplibs_check_method=pass_all
2082 lt_cv_file_magic_test_file=/lib/libc.so
2085 sysv5uw[78]* | sysv4*uw2*)
2086 lt_cv_deplibs_check_method=pass_all
2089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2090 case $host_vendor in
2092 lt_cv_deplibs_check_method=pass_all
2095 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]'
2096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2104 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2105 file_magic_cmd=$lt_cv_file_magic_cmd
2106 deplibs_check_method=$lt_cv_deplibs_check_method
2108 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2109 echo "configure
:2110: checking
for object suffix
" >&5
2110 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2111 echo $ac_n "(cached
) $ac_c" 1>&6
2114 echo 'int i = 1;' > conftest.$ac_ext
2115 if { (eval echo configure:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2116 for ac_file in conftest.*; do
2119 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2123 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2128 echo "$ac_t""$ac_cv_objext" 1>&6
2129 OBJEXT=$ac_cv_objext
2130 ac_objext=$ac_cv_objext
2132 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2134 # Only perform the check for file, if the check method requires it
2135 case $deplibs_check_method in
2137 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2138 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2139 echo "configure
:2140: checking
for ${ac_tool_prefix}file" >&5
2140 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2141 echo $ac_n "(cached
) $ac_c" 1>&6
2145 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2151 ac_save_MAGIC_CMD="$MAGIC_CMD"
2152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2153 ac_dummy="/usr
/bin
:$PATH"
2154 for ac_dir in $ac_dummy; do
2155 test -z "$ac_dir" && ac_dir=.
2156 if test -f $ac_dir/${ac_tool_prefix}file; then
2157 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2158 if test -n "$file_magic_test_file"; then
2159 case $deplibs_check_method in
2161 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2164 egrep "$file_magic_regex" > /dev/null; then
2169 *** Warning: the command libtool uses to detect shared libraries,
2170 *** $file_magic_cmd, produces output that libtool cannot recognize.
2171 *** The result is that libtool may fail to recognize shared libraries
2172 *** as such. This will affect the creation of libtool libraries that
2173 *** depend on shared libraries, but programs linked with such libtool
2174 *** libraries will work regardless of this problem. Nevertheless, you
2175 *** may want to report the problem to your system manager and/or to
2176 *** bug-libtool@gnu.org
2186 MAGIC_CMD="$ac_save_MAGIC_CMD"
2191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2192 if test -n "$MAGIC_CMD"; then
2193 echo "$ac_t""$MAGIC_CMD" 1>&6
2195 echo "$ac_t""no
" 1>&6
2198 if test -z "$lt_cv_path_MAGIC_CMD"; then
2199 if test -n "$ac_tool_prefix"; then
2200 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2201 echo "configure
:2202: checking
for file" >&5
2202 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2203 echo $ac_n "(cached
) $ac_c" 1>&6
2207 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2213 ac_save_MAGIC_CMD="$MAGIC_CMD"
2214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2215 ac_dummy="/usr
/bin
:$PATH"
2216 for ac_dir in $ac_dummy; do
2217 test -z "$ac_dir" && ac_dir=.
2218 if test -f $ac_dir/file; then
2219 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2220 if test -n "$file_magic_test_file"; then
2221 case $deplibs_check_method in
2223 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2226 egrep "$file_magic_regex" > /dev/null; then
2231 *** Warning: the command libtool uses to detect shared libraries,
2232 *** $file_magic_cmd, produces output that libtool cannot recognize.
2233 *** The result is that libtool may fail to recognize shared libraries
2234 *** as such. This will affect the creation of libtool libraries that
2235 *** depend on shared libraries, but programs linked with such libtool
2236 *** libraries will work regardless of this problem. Nevertheless, you
2237 *** may want to report the problem to your system manager and/or to
2238 *** bug-libtool@gnu.org
2248 MAGIC_CMD="$ac_save_MAGIC_CMD"
2253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2254 if test -n "$MAGIC_CMD"; then
2255 echo "$ac_t""$MAGIC_CMD" 1>&6
2257 echo "$ac_t""no
" 1>&6
2269 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2271 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2272 echo "configure
:2273: checking
for $ac_word" >&5
2273 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2274 echo $ac_n "(cached
) $ac_c" 1>&6
2276 if test -n "$RANLIB"; then
2277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2281 for ac_dir in $ac_dummy; do
2282 test -z "$ac_dir" && ac_dir=.
2283 if test -f $ac_dir/$ac_word; then
2284 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2291 RANLIB="$ac_cv_prog_RANLIB"
2292 if test -n "$RANLIB"; then
2293 echo "$ac_t""$RANLIB" 1>&6
2295 echo "$ac_t""no
" 1>&6
2299 if test -z "$ac_cv_prog_RANLIB"; then
2300 if test -n "$ac_tool_prefix"; then
2301 # Extract the first word of "ranlib
", so it can be a program name with args.
2302 set dummy ranlib; ac_word=$2
2303 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2304 echo "configure
:2305: checking
for $ac_word" >&5
2305 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2306 echo $ac_n "(cached
) $ac_c" 1>&6
2308 if test -n "$RANLIB"; then
2309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2313 for ac_dir in $ac_dummy; do
2314 test -z "$ac_dir" && ac_dir=.
2315 if test -f $ac_dir/$ac_word; then
2316 ac_cv_prog_RANLIB="ranlib
"
2321 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2324 RANLIB="$ac_cv_prog_RANLIB"
2325 if test -n "$RANLIB"; then
2326 echo "$ac_t""$RANLIB" 1>&6
2328 echo "$ac_t""no
" 1>&6
2336 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}strip; ac_word=$2
2338 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2339 echo "configure
:2340: checking
for $ac_word" >&5
2340 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2341 echo $ac_n "(cached
) $ac_c" 1>&6
2343 if test -n "$STRIP"; then
2344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2348 for ac_dir in $ac_dummy; do
2349 test -z "$ac_dir" && ac_dir=.
2350 if test -f $ac_dir/$ac_word; then
2351 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2358 STRIP="$ac_cv_prog_STRIP"
2359 if test -n "$STRIP"; then
2360 echo "$ac_t""$STRIP" 1>&6
2362 echo "$ac_t""no
" 1>&6
2366 if test -z "$ac_cv_prog_STRIP"; then
2367 if test -n "$ac_tool_prefix"; then
2368 # Extract the first word of "strip
", so it can be a program name with args.
2369 set dummy strip; ac_word=$2
2370 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2371 echo "configure
:2372: checking
for $ac_word" >&5
2372 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2373 echo $ac_n "(cached
) $ac_c" 1>&6
2375 if test -n "$STRIP"; then
2376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2380 for ac_dir in $ac_dummy; do
2381 test -z "$ac_dir" && ac_dir=.
2382 if test -f $ac_dir/$ac_word; then
2383 ac_cv_prog_STRIP="strip
"
2388 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2391 STRIP="$ac_cv_prog_STRIP"
2392 if test -n "$STRIP"; then
2393 echo "$ac_t""$STRIP" 1>&6
2395 echo "$ac_t""no
" 1>&6
2404 # Check for any special flags to pass to ltconfig.
2405 libtool_flags="--cache-file=$cache_file"
2406 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2407 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2408 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2409 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2410 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2411 libtool_flags="$libtool_flags --enable-dlopen"
2413 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2414 if test "${enable_libtool_lock+set}" = set; then
2415 enableval="$enable_libtool_lock"
2419 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2420 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2422 # Check whether --with-pic or --without-pic was given.
2423 if test "${with_pic+set}" = set; then
2430 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2431 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2433 # Some flags need to be propagated to the compiler or linker for good
2437 # Find out which ABI we are using.
2438 echo '#line 2439 "configure
"' > conftest.$ac_ext
2439 if { (eval echo configure:2440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2440 if test "$lt_cv_prog_gnu_ld" = yes; then
2441 case `/usr/bin/file conftest.$ac_objext` in
2443 LD="${LD-ld} -melf32bsmip"
2446 LD="${LD-ld} -melf32bmipn32"
2449 LD="${LD-ld} -melf64bmip"
2453 case `/usr/bin/file conftest.$ac_objext` in
2470 # Find out which ABI we are using.
2471 echo 'int i;' > conftest.$ac_ext
2472 if { (eval echo configure:2473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2473 case "`/usr/bin/file conftest.o`" in
2485 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2486 # Find out which ABI we are using.
2487 echo 'int i;' > conftest.$ac_ext
2488 if { (eval echo configure:2489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2489 case "`/usr/bin/file conftest.o`" in
2493 LD="${LD-ld} -m elf_i386
"
2495 ppc64-*linux*|powerpc64-*linux*)
2496 LD="${LD-ld} -m elf32ppclinux
"
2499 LD="${LD-ld} -m elf_s390
"
2502 LD="${LD-ld} -m elf32_sparc
"
2509 LD="${LD-ld} -m elf_x86_64
"
2511 ppc*-*linux*|powerpc*-*linux*)
2512 LD="${LD-ld} -m elf64ppc
"
2515 LD="${LD-ld} -m elf64_s390
"
2518 LD="${LD-ld} -m elf64_sparc
"
2528 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2529 SAVE_CFLAGS="$CFLAGS"
2530 CFLAGS="$CFLAGS -belf"
2531 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2532 echo "configure
:2533: checking whether the C compiler needs
-belf" >&5
2533 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2534 echo $ac_n "(cached
) $ac_c" 1>&6
2538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2542 cross_compiling=$ac_cv_prog_cc_cross
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure
"
2546 #include "confdefs.h
"
2552 if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2554 lt_cv_cc_needs_belf=yes
2556 echo "configure
: failed program was
:" >&5
2557 cat conftest.$ac_ext >&5
2559 lt_cv_cc_needs_belf=no
2563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2567 cross_compiling=$ac_cv_prog_cc_cross
2571 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2572 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2573 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2574 CFLAGS="$SAVE_CFLAGS"
2581 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2582 echo "configure
:2583: checking how to run the C
++ preprocessor
" >&5
2583 if test -z "$CXXCPP"; then
2584 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2585 echo $ac_n "(cached
) $ac_c" 1>&6
2588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2589 ac_cpp='$CXXCPP $CPPFLAGS'
2590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2592 cross_compiling=$ac_cv_prog_cxx_cross
2593 CXXCPP="${CXX-g++} -E"
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure
"
2596 #include "confdefs.h
"
2599 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2600 { (eval echo configure:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2602 if test -z "$ac_err"; then
2606 echo "configure
: failed program was
:" >&5
2607 cat conftest.$ac_ext >&5
2612 ac_cv_prog_CXXCPP="$CXXCPP"
2614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2618 cross_compiling=$ac_cv_prog_cc_cross
2621 CXXCPP="$ac_cv_prog_CXXCPP"
2622 echo "$ac_t""$CXXCPP" 1>&6
2625 # Save cache, so that ltconfig can load it
2626 cat > confcache <<\EOF
2627 # This file is a shell script that caches the results of configure
2628 # tests run on this system so they can be shared between configure
2629 # scripts and configure runs. It is not useful on other systems.
2630 # If it contains results you don't want to keep, you may remove or edit it.
2632 # By default, configure uses ./config.cache as the cache file,
2633 # creating it if it does not exist already. You can give configure
2634 # the --cache-file=FILE option to use a different cache file; that is
2635 # what configure does when it calls configure scripts in
2636 # subdirectories, so they share the cache.
2637 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2638 # config.status only pays attention to the cache file if you give it the
2639 # --recheck option to rerun configure.
2642 # The following way of writing the cache mishandles newlines in values,
2643 # but we know of no workaround that is simple, portable, and efficient.
2644 # So, don't put newlines in cache variables' values.
2645 # Ultrix sh set writes to stderr and can't be redirected directly,
2646 # and sets the high bit in the cache file unless we assign to the vars.
2648 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2650 # `set' does not quote correctly, so add quotes (double-quote substitution
2651 # turns \\\\ into \\, and sed turns \\ into \).
2653 -e "s
/'/'\\\\''/g
" \
2654 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2657 # `set' quotes correctly as required by POSIX, so do not add quotes.
2658 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2661 if cmp -s $cache_file confcache; then
2664 if test -w $cache_file; then
2665 echo "updating cache
$cache_file"
2666 cat confcache > $cache_file
2668 echo "not updating unwritable cache
$cache_file"
2674 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2675 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2676 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2677 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2678 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2679 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2680 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2681 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2682 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2683 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2685 # Reload cache, that may have been modified by ltconfig
2686 if test -r "$cache_file"; then
2687 echo "loading cache
$cache_file"
2690 echo "creating cache
$cache_file"
2695 # This can be used to rebuild libtool when needed
2696 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2698 # Always use our own libtool.
2699 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2701 # Redirect the config.log output again, so that the ltconfig log is not
2702 # clobbered by the next message.
2703 exec 5>>./config.log
2707 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2709 lt_save_CFLAGS="$CFLAGS"
2710 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2711 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2712 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2713 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2714 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2715 deplibs_check_method="$deplibs_check_method" \
2716 file_magic_cmd="$file_magic_cmd" \
2717 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2718 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2719 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2721 CFLAGS="$lt_save_CFLAGS"
2723 # Redirect the config.log output again, so that the ltconfig log is not
2724 # clobbered by the next message.
2725 exec 5>>./config.log
2735 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2744 if test -d $srcdir/testsuite; then
2746 TESTSUBDIR_FALSE='#'
2752 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2753 if test "${enable_getenv_properties+set}" = set; then
2754 enableval="$enable_getenv_properties"
2759 if test -z "$enable_getenv_properties"; then
2760 enable_getenv_properties=${enable_getenv_properties_default-yes}
2762 if test "$enable_getenv_properties" = no; then
2763 cat >> confdefs.h <<\EOF
2764 #define DISABLE_GETENV_PROPERTIES 1
2769 if test -z "$enable_main_args"; then
2770 enable_main_args=${enable_main_args_default-yes}
2772 if test "$enable_main_args" = no; then
2773 cat >> confdefs.h <<\EOF
2774 #define DISABLE_MAIN_ARGS 1
2780 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2781 if test "${enable_hash_synchronization+set}" = set; then
2782 enableval="$enable_hash_synchronization"
2787 if test -z "$enable_hash_synchronization"; then
2788 enable_hash_synchronization=$enable_hash_synchronization_default
2791 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
2792 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
2793 if test "${enable_libgcj_multifile+set}" = set; then
2794 enableval="$enable_libgcj_multifile"
2795 case "${enableval}" in
2796 yes) enable_libgcj_multifile=yes ;;
2797 no) enable_libgcj_multifile=no ;;
2798 *) { echo "configure
: error
: bad value
${enableval} for --enable-libgcj-multifile" 1>&2; exit 1; } ;;
2801 enable_libgcj_multifile=no
2806 if test "$enable_libgcj_multifile" = yes; then
2814 # What is the native OS API for MinGW?
2815 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
2816 if test "${with_win32_nlsapi+set}" = set; then
2817 withval="$with_win32_nlsapi"
2819 case "${withval}" in
2820 ansi) with_win32_nlsapi=ansi ;;
2821 unicows) with_win32_nlsapi=unicows ;;
2822 unicode) with_win32_nlsapi=unicode ;;
2823 *) { echo "configure
: error
: Bad value
${withval} for --with-win32-nlsapi.
" 1>&2; exit 1; } ;;
2826 with_win32_nlsapi=ansi
2830 case "${with_win32_nlsapi}" in
2832 cat >> confdefs.h <<\EOF
2833 #define MINGW_LIBGCJ_UNICODE 1
2839 if test "${slow_pthread_self}" = "yes"; then
2840 cat >> confdefs.h <<\EOF
2841 #define SLOW_PTHREAD_SELF 1
2849 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2850 if test "${enable_libgcj_debug+set}" = set; then
2851 enableval="$enable_libgcj_debug"
2852 if test "$enable_libgcj_debug" = yes; then
2853 cat >> confdefs.h <<\EOF
2862 # Check whether --enable-interpreter or --disable-interpreter was given.
2863 if test "${enable_interpreter+set}" = set; then
2864 enableval="$enable_interpreter"
2865 if test "$enable_interpreter" = yes; then
2866 # This can also be set in configure.host.
2867 libgcj_interpreter=yes
2868 elif test "$enable_interpreter" = no; then
2869 libgcj_interpreter=no
2874 if test "$libgcj_interpreter" = yes; then
2875 cat >> confdefs.h <<\EOF
2876 #define INTERPRETER 1
2880 INTERPRETER="$libgcj_interpreter"
2883 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2884 echo "configure
:2885: checking
for exception model to use
" >&5
2887 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2888 ac_cpp='$CXXCPP $CPPFLAGS'
2889 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2890 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2891 cross_compiling=$ac_cv_prog_cxx_cross
2893 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2894 if test "${enable_sjlj_exceptions+set}" = set; then
2895 enableval="$enable_sjlj_exceptions"
2898 cat > conftest.$ac_ext << EOF
2899 #line 2900 "configure
"
2908 old_CXXFLAGS="$CXXFLAGS"
2910 if { (eval echo configure:2911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2911 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2912 enable_sjlj_exceptions=yes
2913 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2914 enable_sjlj_exceptions=no
2917 CXXFLAGS="$old_CXXFLAGS"
2921 if test x$enable_sjlj_exceptions = xyes; then
2922 cat >> confdefs.h <<\EOF
2923 #define SJLJ_EXCEPTIONS 1
2926 ac_exception_model_name=sjlj
2927 elif test x$enable_sjlj_exceptions = xno; then
2928 ac_exception_model_name="call frame
"
2930 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2937 cross_compiling=$ac_cv_prog_cc_cross
2939 echo "$ac_t""$ac_exception_model_name" 1>&6
2941 # If we are non using SJLJ exceptions, and this host does not have support
2942 # for unwinding from a signal handler, enable checked dereferences and divides.
2943 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2944 CHECKREFSPEC=-fcheck-references
2945 DIVIDESPEC=-fuse-divide-subroutine
2949 # Check whether --enable-java-net or --disable-java-net was given.
2950 if test "${enable_java_net+set}" = set; then
2951 enableval="$enable_java_net"
2956 if test -z "$enable_java_net"; then
2957 enable_java_net=${enable_java_net_default-yes}
2959 if test "$enable_java_net" = no; then
2960 cat >> confdefs.h <<\EOF
2961 #define DISABLE_JAVA_NET 1
2966 # Check whether --with-libffi or --without-libffi was given.
2967 if test "${with_libffi+set}" = set; then
2968 withval="$with_libffi"
2971 with_libffi=${with_libffi_default-yes}
2977 if test "$with_libffi" != no; then
2978 cat >> confdefs.h <<\EOF
2979 #define USE_LIBFFI 1
2982 LIBFFI=../libffi/libffi_convenience.la
2983 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2988 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2989 if test "${enable_jvmpi+set}" = set; then
2990 enableval="$enable_jvmpi"
2995 if test "$enable_jvmpi" != no; then
2996 cat >> confdefs.h <<\EOF
2997 #define ENABLE_JVMPI 1
3002 TARGET_ECOS=${PROCESS-"no"}
3003 # Check whether --with-ecos or --without-ecos was given.
3004 if test "${with_ecos+set}" = set; then
3005 withval="$with_ecos"
3006 TARGET_ECOS="$with_ecos"
3015 case "$TARGET_ECOS" in
3020 PLATFORMOBJS=win32.lo
3023 echo $ac_n "checking whether
'ld' is
at least
2.13""...
$ac_c" 1>&6
3024 echo "configure
:3025: checking whether
'ld' is
at least
2.13" >&5
3025 LD_PROG=`$CC --print-prog-name=ld`
3026 LD_VERSION=`$LD_PROG --version`
3027 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
3028 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
3029 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
3032 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
3036 if test "x
$LD_OK" != x; then
3037 echo "$ac_t""yes; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
3039 echo "$ac_t""no
; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
3040 echo "configure
: warning
: ld
<2.13 detected
; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack...
" 1>&2
3041 cat >> confdefs.h <<\EOF
3042 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3050 PLATFORMOBJS=posix.lo
3058 cat >> confdefs.h <<\EOF
3062 PLATFORMOBJS=posix.lo
3069 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
3070 echo "configure
:3071: checking how to run the C preprocessor
" >&5
3071 # On Suns, sometimes $CPP names a directory.
3072 if test -n "$CPP" && test -d "$CPP"; then
3075 if test -z "$CPP"; then
3076 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3077 echo $ac_n "(cached
) $ac_c" 1>&6
3079 # This must be in double quotes, not single quotes, because CPP may get
3080 # substituted into the Makefile and "${CC-cc}" will confuse make.
3082 # On the NeXT, cc -E runs the code through the compiler's parser,
3083 # not just through cpp.
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure
"
3086 #include "confdefs.h
"
3090 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3091 { (eval echo configure:3092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3093 if test -z "$ac_err"; then
3097 echo "configure
: failed program was
:" >&5
3098 cat conftest.$ac_ext >&5
3100 CPP="${CC-cc} -E -traditional-cpp"
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure
"
3103 #include "confdefs.h
"
3107 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3108 { (eval echo configure:3109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3110 if test -z "$ac_err"; then
3114 echo "configure
: failed program was
:" >&5
3115 cat conftest.$ac_ext >&5
3117 CPP="${CC-cc} -nologo -E"
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure
"
3120 #include "confdefs.h
"
3124 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3125 { (eval echo configure:3126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3127 if test -z "$ac_err"; then
3131 echo "configure
: failed program was
:" >&5
3132 cat conftest.$ac_ext >&5
3141 ac_cv_prog_CPP="$CPP"
3143 CPP="$ac_cv_prog_CPP"
3145 ac_cv_prog_CPP="$CPP"
3147 echo "$ac_t""$CPP" 1>&6
3149 cat > conftest.$ac_ext <<EOF
3150 #line 3151 "configure
"
3151 #include "confdefs.h
"
3154 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3155 egrep "uint32_t
" >/dev/null 2>&1; then
3157 cat >> confdefs.h <<\EOF
3158 #define HAVE_INT32_DEFINED 1
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure
"
3166 #include "confdefs.h
"
3167 #include <inttypes.h>
3169 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3170 egrep "uint32_t
" >/dev/null 2>&1; then
3172 cat >> confdefs.h <<\EOF
3173 #define HAVE_INT32_DEFINED 1
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure
"
3181 #include "confdefs.h
"
3182 #include <sys/types.h>
3184 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3185 egrep "u_int32_t
" >/dev/null 2>&1; then
3187 cat >> confdefs.h <<\EOF
3188 #define HAVE_BSD_INT32_DEFINED 1
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure
"
3196 #include "confdefs.h
"
3197 #include <sys/config.h>
3199 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3200 egrep "u_int32_t
" >/dev/null 2>&1; then
3202 cat >> confdefs.h <<\EOF
3203 #define HAVE_BSD_INT32_DEFINED 1
3211 cat > conftest.$ac_ext <<EOF
3212 #line 3213 "configure
"
3213 #include "confdefs.h
"
3216 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3217 egrep "mktime
" >/dev/null 2>&1; then
3219 cat >> confdefs.h <<\EOF
3220 #define HAVE_MKTIME 1
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure
"
3228 #include "confdefs.h
"
3231 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3232 egrep "localtime
" >/dev/null 2>&1; then
3234 cat >> confdefs.h <<\EOF
3235 #define HAVE_LOCALTIME 1
3242 test -d java || mkdir java
3243 test -d java/io || mkdir java/io
3244 test -d gnu || mkdir gnu
3247 test -d java/lang || mkdir java/lang
3251 test -d java/net || mkdir java/net
3255 test -d gnu/java || mkdir gnu/java
3256 test -d gnu/java/net || mkdir gnu/java/net
3260 test -d gnu/java/nio || mkdir gnu/java/nio
3263 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
3268 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3269 if test "${with_win32_nlsapi}" = "unicows
"; then
3270 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
3279 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs
-rpath `${PWDCMD-pwd}`/.libs
"
3282 # Check whether --with-system-zlib or --without-system-zlib was given.
3283 if test "${with_system_zlib+set}" = set; then
3284 withval="$with_system_zlib"
3293 # If we find X, set shell vars x_includes and x_libraries to the
3294 # paths, otherwise set no_x=yes.
3295 # Uses ac_ vars as temps to allow command line to override cache and checks.
3296 # --without-x overrides everything else, but does not touch the cache.
3297 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
3298 echo "configure
:3299: checking
for X
" >&5
3300 # Check whether --with-x or --without-x was given.
3301 if test "${with_x+set}" = set; then
3306 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3307 if test "x
$with_x" = xno; then
3308 # The user explicitly disabled X.
3311 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
3312 # Both variables are already set.
3315 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3316 echo $ac_n "(cached
) $ac_c" 1>&6
3318 # One or both of the vars are not set, and there is no cached value.
3319 ac_x_includes=NO ac_x_libraries=NO
3321 if mkdir conftestdir; then
3323 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3324 cat > Imakefile <<'EOF'
3326 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3328 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3329 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
3330 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3331 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3332 for ac_extension in a so sl; do
3333 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3334 test -f $ac_im_libdir/libX11.$ac_extension; then
3335 ac_im_usrlibdir=$ac_im_libdir; break
3338 # Screen out bogus values from the imake configuration. They are
3339 # bogus both because they are the default anyway, and because
3340 # using them would break gcc on systems where it needs fixed includes.
3341 case "$ac_im_incroot" in
3343 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
3345 case "$ac_im_usrlibdir" in
3347 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3354 if test "$ac_x_includes" = NO; then
3355 # Guess where to find include files, by looking for this one X11 .h file.
3356 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3358 # First, try using that file with no special directory specified.
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure
"
3361 #include "confdefs.h
"
3362 #include <$x_direct_test_include>
3364 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3365 { (eval echo configure:3366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3367 if test -z "$ac_err"; then
3369 # We can compile using X headers with no special include directory.
3373 echo "configure
: failed program was
:" >&5
3374 cat conftest.$ac_ext >&5
3376 # Look for the header file in a standard set of common directories.
3377 # Check X11 before X11Rn because it is often a symlink to the current release.
3380 /usr/X11R6/include \
3381 /usr/X11R5/include \
3382 /usr/X11R4/include \
3385 /usr/include/X11R6 \
3386 /usr/include/X11R5 \
3387 /usr/include/X11R4 \
3389 /usr/local/X11/include \
3390 /usr/local/X11R6/include \
3391 /usr/local/X11R5/include \
3392 /usr/local/X11R4/include \
3394 /usr/local/include/X11 \
3395 /usr/local/include/X11R6 \
3396 /usr/local/include/X11R5 \
3397 /usr/local/include/X11R4 \
3401 /usr/XFree86/include/X11 \
3404 /usr/local/include \
3405 /usr/unsupported/include \
3406 /usr/athena/include \
3407 /usr/local/x11r5/include \
3408 /usr/lpp/Xamples/include \
3410 /usr/openwin/include \
3411 /usr/openwin/share/include \
3414 if test -r "$ac_dir/$x_direct_test_include"; then
3415 ac_x_includes=$ac_dir
3421 fi # $ac_x_includes = NO
3423 if test "$ac_x_libraries" = NO; then
3424 # Check for the libraries.
3426 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3427 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3429 # See if we find them without any special options.
3430 # Don't add to $LIBS permanently.
3431 ac_save_LIBS="$LIBS"
3432 LIBS="-l$x_direct_test_library $LIBS"
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure
"
3435 #include "confdefs.h
"
3438 ${x_direct_test_function}()
3441 if { (eval echo configure:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3443 LIBS="$ac_save_LIBS"
3444 # We can link X programs with no special library path.
3447 echo "configure
: failed program was
:" >&5
3448 cat conftest.$ac_ext >&5
3450 LIBS="$ac_save_LIBS"
3451 # First see if replacing the include by lib works.
3452 # Check X11 before X11Rn because it is often a symlink to the current release.
3453 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3464 /usr/local/X11/lib \
3465 /usr/local/X11R6/lib \
3466 /usr/local/X11R5/lib \
3467 /usr/local/X11R4/lib \
3469 /usr/local/lib/X11 \
3470 /usr/local/lib/X11R6 \
3471 /usr/local/lib/X11R5 \
3472 /usr/local/lib/X11R4 \
3476 /usr/XFree86/lib/X11 \
3480 /usr/unsupported/lib \
3482 /usr/local/x11r5/lib \
3483 /usr/lpp/Xamples/lib \
3487 /usr/openwin/share/lib \
3490 for ac_extension in a so sl; do
3491 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3492 ac_x_libraries=$ac_dir
3499 fi # $ac_x_libraries = NO
3501 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3502 # Didn't find X anywhere. Cache the known absence of X.
3503 ac_cv_have_x="have_x
=no
"
3505 # Record where we found X for the cache.
3506 ac_cv_have_x="have_x
=yes \
3507 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
3511 eval "$ac_cv_have_x"
3514 if test "$have_x" != yes; then
3515 echo "$ac_t""$have_x" 1>&6
3518 # If each of the values was on the command line, it overrides each guess.
3519 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
3520 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3521 # Update the cache value to reflect the command line values.
3522 ac_cv_have_x="have_x
=yes \
3523 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
3524 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
3527 if test "$no_x" = yes; then
3528 # Not all programs may use this symbol, but it does not hurt to define it.
3529 cat >> confdefs.h <<\EOF
3530 #define X_DISPLAY_MISSING 1
3533 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3535 if test -n "$x_includes"; then
3536 X_CFLAGS="$X_CFLAGS -I$x_includes"
3539 # It would also be nice to do this for all -L options, not just this one.
3540 if test -n "$x_libraries"; then
3541 X_LIBS="$X_LIBS -L$x_libraries"
3542 # For Solaris; some versions of Sun CC require a space after -R and
3543 # others require no space. Words are not sufficient . . . .
3544 case "`(uname -sr) 2>/dev/null`" in
3546 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
3547 echo "configure
:3548: checking whether
-R must be followed by a space
" >&5
3548 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure
"
3551 #include "confdefs.h
"
3557 if { (eval echo configure:3558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3561 echo "configure
: failed program was
:" >&5
3562 cat conftest.$ac_ext >&5
3567 if test $ac_R_nospace = yes; then
3568 echo "$ac_t""no
" 1>&6
3569 X_LIBS="$X_LIBS -R$x_libraries"
3571 LIBS="$ac_xsave_LIBS -R $x_libraries"
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure
"
3574 #include "confdefs.h
"
3580 if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3584 echo "configure
: failed program was
:" >&5
3585 cat conftest.$ac_ext >&5
3590 if test $ac_R_space = yes; then
3591 echo "$ac_t""yes" 1>&6
3592 X_LIBS="$X_LIBS -R $x_libraries"
3594 echo "$ac_t""neither works
" 1>&6
3597 LIBS="$ac_xsave_LIBS"
3601 # Check for system-dependent libraries X programs must link with.
3602 # Do this before checking for the system-independent R6 libraries
3603 # (-lICE), since we may need -lsocket or whatever for X linking.
3605 if test "$ISC" = yes; then
3606 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3608 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3609 # libraries were built with DECnet support. And karl@cs.umb.edu says
3610 # the Alpha needs dnet_stub (dnet does not exist).
3611 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
3612 echo "configure
:3613: checking
for dnet_ntoa
in -ldnet" >&5
3613 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3615 echo $ac_n "(cached
) $ac_c" 1>&6
3617 ac_save_LIBS="$LIBS"
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure
"
3621 #include "confdefs.h
"
3622 /* Override any gcc2 internal prototype to avoid an error. */
3623 /* We use char because int might match the return type of a gcc2
3624 builtin and then its argument prototype would still apply. */
3631 if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3633 eval "ac_cv_lib_
$ac_lib_var=yes"
3635 echo "configure
: failed program was
:" >&5
3636 cat conftest.$ac_ext >&5
3638 eval "ac_cv_lib_
$ac_lib_var=no
"
3641 LIBS="$ac_save_LIBS"
3644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3645 echo "$ac_t""yes" 1>&6
3646 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3648 echo "$ac_t""no
" 1>&6
3651 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3652 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
3653 echo "configure
:3654: checking
for dnet_ntoa
in -ldnet_stub" >&5
3654 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3656 echo $ac_n "(cached
) $ac_c" 1>&6
3658 ac_save_LIBS="$LIBS"
3659 LIBS="-ldnet_stub $LIBS"
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure
"
3662 #include "confdefs.h
"
3663 /* Override any gcc2 internal prototype to avoid an error. */
3664 /* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3672 if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3674 eval "ac_cv_lib_
$ac_lib_var=yes"
3676 echo "configure
: failed program was
:" >&5
3677 cat conftest.$ac_ext >&5
3679 eval "ac_cv_lib_
$ac_lib_var=no
"
3682 LIBS="$ac_save_LIBS"
3685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3686 echo "$ac_t""yes" 1>&6
3687 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3689 echo "$ac_t""no
" 1>&6
3694 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3695 # to get the SysV transport functions.
3696 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3698 # The nsl library prevents programs from opening the X display
3699 # on Irix 5.2, according to dickey@clark.net.
3700 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
3701 echo "configure
:3702: checking
for gethostbyname
" >&5
3702 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3703 echo $ac_n "(cached
) $ac_c" 1>&6
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure
"
3707 #include "confdefs.h
"
3708 /* System header to define __stub macros and hopefully few prototypes,
3709 which can conflict with char gethostbyname(); below. */
3711 /* Override any gcc2 internal prototype to avoid an error. */
3712 /* We use char because int might match the return type of a gcc2
3713 builtin and then its argument prototype would still apply. */
3714 char gethostbyname();
3718 /* The GNU C library defines this for functions which it implements
3719 to always fail with ENOSYS. Some functions are actually named
3720 something starting with __ and the normal name is an alias. */
3721 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3731 eval "ac_cv_func_gethostbyname
=yes"
3733 echo "configure
: failed program was
:" >&5
3734 cat conftest.$ac_ext >&5
3736 eval "ac_cv_func_gethostbyname
=no
"
3741 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3745 echo "$ac_t""no
" 1>&6
3748 if test $ac_cv_func_gethostbyname = no; then
3749 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
3750 echo "configure
:3751: checking
for gethostbyname
in -lnsl" >&5
3751 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3753 echo $ac_n "(cached
) $ac_c" 1>&6
3755 ac_save_LIBS="$LIBS"
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure
"
3759 #include "confdefs.h
"
3760 /* Override any gcc2 internal prototype to avoid an error. */
3761 /* We use char because int might match the return type of a gcc2
3762 builtin and then its argument prototype would still apply. */
3763 char gethostbyname();
3769 if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3771 eval "ac_cv_lib_
$ac_lib_var=yes"
3773 echo "configure
: failed program was
:" >&5
3774 cat conftest.$ac_ext >&5
3776 eval "ac_cv_lib_
$ac_lib_var=no
"
3779 LIBS="$ac_save_LIBS"
3782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3783 echo "$ac_t""yes" 1>&6
3784 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3786 echo "$ac_t""no
" 1>&6
3791 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3792 # socket/setsockopt and other routines are undefined under SCO ODT
3793 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3794 # on later versions), says simon@lia.di.epfl.ch: it contains
3795 # gethostby* variants that don't use the nameserver (or something).
3796 # -lsocket must be given before -lnsl if both are needed.
3797 # We assume that if connect needs -lnsl, so does gethostbyname.
3798 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
3799 echo "configure
:3800: checking
for connect
" >&5
3800 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3801 echo $ac_n "(cached
) $ac_c" 1>&6
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure
"
3805 #include "confdefs.h
"
3806 /* System header to define __stub macros and hopefully few prototypes,
3807 which can conflict with char connect(); below. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3816 /* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819 #if defined (__stub_connect) || defined (__stub___connect)
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 eval "ac_cv_func_connect
=yes"
3831 echo "configure
: failed program was
:" >&5
3832 cat conftest.$ac_ext >&5
3834 eval "ac_cv_func_connect
=no
"
3839 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3843 echo "$ac_t""no
" 1>&6
3846 if test $ac_cv_func_connect = no; then
3847 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
3848 echo "configure
:3849: checking
for connect
in -lsocket" >&5
3849 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3851 echo $ac_n "(cached
) $ac_c" 1>&6
3853 ac_save_LIBS="$LIBS"
3854 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure
"
3857 #include "confdefs.h
"
3858 /* Override any gcc2 internal prototype to avoid an error. */
3859 /* We use char because int might match the return type of a gcc2
3860 builtin and then its argument prototype would still apply. */
3867 if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3869 eval "ac_cv_lib_
$ac_lib_var=yes"
3871 echo "configure
: failed program was
:" >&5
3872 cat conftest.$ac_ext >&5
3874 eval "ac_cv_lib_
$ac_lib_var=no
"
3877 LIBS="$ac_save_LIBS"
3880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3881 echo "$ac_t""yes" 1>&6
3882 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3884 echo "$ac_t""no
" 1>&6
3889 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3890 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
3891 echo "configure
:3892: checking
for remove
" >&5
3892 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3893 echo $ac_n "(cached
) $ac_c" 1>&6
3895 cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure
"
3897 #include "confdefs.h
"
3898 /* System header to define __stub macros and hopefully few prototypes,
3899 which can conflict with char remove(); below. */
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3908 /* The GNU C library defines this for functions which it implements
3909 to always fail with ENOSYS. Some functions are actually named
3910 something starting with __ and the normal name is an alias. */
3911 #if defined (__stub_remove) || defined (__stub___remove)
3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3921 eval "ac_cv_func_remove
=yes"
3923 echo "configure
: failed program was
:" >&5
3924 cat conftest.$ac_ext >&5
3926 eval "ac_cv_func_remove
=no
"
3931 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3932 echo "$ac_t""yes" 1>&6
3935 echo "$ac_t""no
" 1>&6
3938 if test $ac_cv_func_remove = no; then
3939 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
3940 echo "configure
:3941: checking
for remove
in -lposix" >&5
3941 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3943 echo $ac_n "(cached
) $ac_c" 1>&6
3945 ac_save_LIBS="$LIBS"
3946 LIBS="-lposix $LIBS"
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure
"
3949 #include "confdefs.h
"
3950 /* Override any gcc2 internal prototype to avoid an error. */
3951 /* We use char because int might match the return type of a gcc2
3952 builtin and then its argument prototype would still apply. */
3959 if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3961 eval "ac_cv_lib_
$ac_lib_var=yes"
3963 echo "configure
: failed program was
:" >&5
3964 cat conftest.$ac_ext >&5
3966 eval "ac_cv_lib_
$ac_lib_var=no
"
3969 LIBS="$ac_save_LIBS"
3972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3973 echo "$ac_t""yes" 1>&6
3974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3976 echo "$ac_t""no
" 1>&6
3981 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3982 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
3983 echo "configure
:3984: checking
for shmat
" >&5
3984 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3985 echo $ac_n "(cached
) $ac_c" 1>&6
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure
"
3989 #include "confdefs.h
"
3990 /* System header to define __stub macros and hopefully few prototypes,
3991 which can conflict with char shmat(); below. */
3993 /* Override any gcc2 internal prototype to avoid an error. */
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
4000 /* The GNU C library defines this for functions which it implements
4001 to always fail with ENOSYS. Some functions are actually named
4002 something starting with __ and the normal name is an alias. */
4003 #if defined (__stub_shmat) || defined (__stub___shmat)
4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4013 eval "ac_cv_func_shmat
=yes"
4015 echo "configure
: failed program was
:" >&5
4016 cat conftest.$ac_ext >&5
4018 eval "ac_cv_func_shmat
=no
"
4023 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4027 echo "$ac_t""no
" 1>&6
4030 if test $ac_cv_func_shmat = no; then
4031 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
4032 echo "configure
:4033: checking
for shmat
in -lipc" >&5
4033 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4035 echo $ac_n "(cached
) $ac_c" 1>&6
4037 ac_save_LIBS="$LIBS"
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure
"
4041 #include "confdefs.h
"
4042 /* Override any gcc2 internal prototype to avoid an error. */
4043 /* We use char because int might match the return type of a gcc2
4044 builtin and then its argument prototype would still apply. */
4051 if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4053 eval "ac_cv_lib_
$ac_lib_var=yes"
4055 echo "configure
: failed program was
:" >&5
4056 cat conftest.$ac_ext >&5
4058 eval "ac_cv_lib_
$ac_lib_var=no
"
4061 LIBS="$ac_save_LIBS"
4064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4065 echo "$ac_t""yes" 1>&6
4066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4068 echo "$ac_t""no
" 1>&6
4074 # Check for libraries that X11R6 Xt/Xaw programs need.
4075 ac_save_LDFLAGS="$LDFLAGS"
4076 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4077 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4078 # check for ICE first), but we must link in the order -lSM -lICE or
4079 # we get undefined symbols. So assume we have SM if we have ICE.
4080 # These have to be linked with before -lX11, unlike the other
4081 # libraries we check for below, so use a different variable.
4082 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4083 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
4084 echo "configure
:4085: checking
for IceConnectionNumber
in -lICE" >&5
4085 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4086 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4087 echo $ac_n "(cached
) $ac_c" 1>&6
4089 ac_save_LIBS="$LIBS"
4090 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure
"
4093 #include "confdefs.h
"
4094 /* Override any gcc2 internal prototype to avoid an error. */
4095 /* We use char because int might match the return type of a gcc2
4096 builtin and then its argument prototype would still apply. */
4097 char IceConnectionNumber();
4100 IceConnectionNumber()
4103 if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4105 eval "ac_cv_lib_
$ac_lib_var=yes"
4107 echo "configure
: failed program was
:" >&5
4108 cat conftest.$ac_ext >&5
4110 eval "ac_cv_lib_
$ac_lib_var=no
"
4113 LIBS="$ac_save_LIBS"
4116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4118 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4120 echo "$ac_t""no
" 1>&6
4123 LDFLAGS="$ac_save_LDFLAGS"
4128 # Check whether --enable-java-awt or --disable-java-awt was given.
4129 if test "${enable_java_awt+set}" = set; then
4130 enableval="$enable_java_awt"
4135 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4138 # The default toolkit to use is the first one specified.
4142 for peer in $peerlibs ; do
4145 if test "$no_x" = yes; then
4146 echo "*** xlib peers requested but no X library available
" 1>&2
4150 if test -z "$TOOLKIT"; then
4151 TOOLKIT=gnu.awt.xlib.XToolkit
4156 if test "$no_x" = yes; then
4157 echo "*** xlib peers requested but no X library available
" 1>&2
4161 if test -z "$TOOLKIT"; then
4162 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4164 test -d jniinclude || mkdir jniinclude
4173 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
4180 if test "$use_xlib_awt" = yes; then
4189 if test "$use_gtk_awt" = yes; then
4197 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4198 if test "${enable_gtk_cairo+set}" = set; then
4199 enableval="$enable_gtk_cairo"
4205 if test "x
${enable_gtk_cairo}" = xyes; then
4212 if test "x
${enable_gtk_cairo}" = xyes
4217 if test -z "$PKG_CONFIG"; then
4218 # Extract the first word of "pkg-config
", so it can be a program name with args.
4219 set dummy pkg-config; ac_word=$2
4220 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4221 echo "configure
:4222: checking
for $ac_word" >&5
4222 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4223 echo $ac_n "(cached
) $ac_c" 1>&6
4225 case "$PKG_CONFIG" in
4227 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4230 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4235 for ac_dir in $ac_dummy; do
4236 test -z "$ac_dir" && ac_dir=.
4237 if test -f $ac_dir/$ac_word; then
4238 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4243 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
4247 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4248 if test -n "$PKG_CONFIG"; then
4249 echo "$ac_t""$PKG_CONFIG" 1>&6
4251 echo "$ac_t""no
" 1>&6
4256 if test "$PKG_CONFIG" = "no
" ; then
4257 echo "*** The pkg-config
script could not be found. Make sure it is
"
4258 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
4259 echo "*** to the full path to pkg-config.
"
4260 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
4262 PKG_CONFIG_MIN_VERSION=0.9.0
4263 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4264 echo $ac_n "checking
for cairo
""...
$ac_c" 1>&6
4265 echo "configure
:4266: checking
for cairo
" >&5
4267 if $PKG_CONFIG --exists "cairo
" ; then
4268 echo "$ac_t""yes" 1>&6
4271 echo $ac_n "checking CAIRO_CFLAGS
""...
$ac_c" 1>&6
4272 echo "configure
:4273: checking CAIRO_CFLAGS
" >&5
4273 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo
"`
4274 echo "$ac_t""$CAIRO_CFLAGS" 1>&6
4276 echo $ac_n "checking CAIRO_LIBS
""...
$ac_c" 1>&6
4277 echo "configure
:4278: checking CAIRO_LIBS
" >&5
4278 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo
"`
4279 echo "$ac_t""$CAIRO_LIBS" 1>&6
4283 ## If we have a custom action on failure, don't print errors, but
4284 ## do set a variable so people can do so.
4285 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo
"`
4286 echo $CAIRO_PKG_ERRORS
4292 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
4293 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
4297 if test $succeeded = yes; then
4300 { 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; }
4306 if test -z "$PKG_CONFIG"; then
4307 # Extract the first word of "pkg-config
", so it can be a program name with args.
4308 set dummy pkg-config; ac_word=$2
4309 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4310 echo "configure
:4311: checking
for $ac_word" >&5
4311 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4312 echo $ac_n "(cached
) $ac_c" 1>&6
4314 case "$PKG_CONFIG" in
4316 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4319 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4324 for ac_dir in $ac_dummy; do
4325 test -z "$ac_dir" && ac_dir=.
4326 if test -f $ac_dir/$ac_word; then
4327 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4332 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
4336 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4337 if test -n "$PKG_CONFIG"; then
4338 echo "$ac_t""$PKG_CONFIG" 1>&6
4340 echo "$ac_t""no
" 1>&6
4345 if test "$PKG_CONFIG" = "no
" ; then
4346 echo "*** The pkg-config
script could not be found. Make sure it is
"
4347 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
4348 echo "*** to the full path to pkg-config.
"
4349 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
4351 PKG_CONFIG_MIN_VERSION=0.9.0
4352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4353 echo $ac_n "checking
for pangoft2
""...
$ac_c" 1>&6
4354 echo "configure
:4355: checking
for pangoft2
" >&5
4356 if $PKG_CONFIG --exists "pangoft2
" ; then
4357 echo "$ac_t""yes" 1>&6
4360 echo $ac_n "checking PANGOFT2_CFLAGS
""...
$ac_c" 1>&6
4361 echo "configure
:4362: checking PANGOFT2_CFLAGS
" >&5
4362 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2
"`
4363 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
4365 echo $ac_n "checking PANGOFT2_LIBS
""...
$ac_c" 1>&6
4366 echo "configure
:4367: checking PANGOFT2_LIBS
" >&5
4367 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2
"`
4368 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
4372 ## If we have a custom action on failure, don't print errors, but
4373 ## do set a variable so people can do so.
4374 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2
"`
4375 echo $PANGOFT2_PKG_ERRORS
4381 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
4382 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
4386 if test $succeeded = yes; then
4389 { 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; }
4400 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
4401 echo "configure
:4402: checking
for garbage collector to use
" >&5
4402 # Check whether --enable-java-gc or --disable-java-gc was given.
4403 if test "${enable_java_gc+set}" = set; then
4404 enableval="$enable_java_gc"
4420 echo "$ac_t""boehm
" 1>&6
4421 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4422 JC1GCSPEC='-fuse-boehm-gc'
4423 GCTESTSPEC="-L`${PWDCMD-pwd}`/..
/boehm-gc
/.libs
-rpath `${PWDCMD-pwd}`/..
/boehm-gc
/.libs
"
4425 GCINCS="`cat ../boehm-gc/boehm-cflags`"
4428 cat >> confdefs.h <<\EOF
4429 #define HAVE_BOEHM_GC 1
4434 echo "$ac_t""none
" 1>&6
4439 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
4452 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
4453 echo "configure
:4454: checking
for thread model used by GCC
" >&5
4454 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4455 echo "$ac_t""$THREADS" 1>&6
4465 cat >> confdefs.h <<\EOF
4466 #define LINUX_THREADS 1
4474 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4475 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
4478 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
4494 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4499 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4500 # merely adds pthread_* functions) but it does have a -pthread switch
4501 # which is required at link-time to select -lc_r *instead* of -lc.
4502 THREADLDFLAGS=-pthread
4503 # Don't set THREADSPEC here as might be expected since -pthread is
4504 # not processed when found within a spec file, it must come from
4505 # the command line. For now, the user must provide the -pthread
4506 # switch to link code compiled with gcj. In future, consider adding
4507 # support for weak references to pthread_* functions ala gthr.h API.
4508 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4511 # FreeBSD 5 implements a model much closer to other modern UNIX
4512 # which support threads. However, it still does not support
4514 THREADLDFLAGS=-pthread
4518 THREADCXXFLAGS=-pthread
4519 # boehm-gc needs some functions from librt, so link that too.
4520 THREADLIBS='-lpthread -lrt'
4521 THREADSPEC='-lpthread -lrt'
4524 THREADLIBS=-lpthread
4525 THREADSPEC=-lpthread
4528 THREADOBJS=posix-threads.lo
4529 THREADH=posix-threads.h
4530 # MIT pthreads doesn't seem to have the mutexattr functions.
4531 # But for now we don't check for it. We just assume you aren't
4532 # using MIT pthreads.
4533 cat >> confdefs.h <<\EOF
4534 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4538 # If we're using the Boehm GC, then we happen to know that it
4539 # defines _REENTRANT, so we don't bother. Eww.
4540 if test "$GC" != boehm; then
4541 cat >> confdefs.h <<\EOF
4542 #define _REENTRANT 1
4546 cat >> confdefs.h <<\EOF
4547 #define _POSIX_PTHREAD_SEMANTICS 1
4553 THREADOBJS=win32-threads.lo
4554 THREADH=win32-threads.h
4558 THREADOBJS=no-threads.lo
4559 THREADH=no-threads.h
4571 if test -d sysdep; then true; else mkdir sysdep; fi
4575 # Hash synchronization is only useful with posix threads right now.
4576 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none
"; then
4577 HASH_SYNC_SPEC=-fhash-synchronization
4578 cat >> confdefs.h <<\EOF
4579 #define JV_HASH_SYNCHRONIZATION 1
4588 if test "$GCC" = yes; then
4600 # We're in the tree with gcc, and need to include some of its headers.
4601 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4603 # Figure out where generated headers like libgcj-config.h get installed.
4604 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4605 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4606 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4607 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
4611 if test "x
${with_newlib}" = "xyes
"; then
4612 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4613 # may not work correctly, because the compiler may not be able to
4616 # We assume newlib. This lets us hard-code the functions we know
4618 cat >> confdefs.h <<\EOF
4619 #define HAVE_MEMMOVE 1
4622 cat >> confdefs.h <<\EOF
4623 #define HAVE_MEMCPY 1
4626 cat >> confdefs.h <<\EOF
4627 #define HAVE_STRERROR 1
4630 cat >> confdefs.h <<\EOF
4634 cat >> confdefs.h <<\EOF
4635 #define HAVE_GMTIME_R 1
4638 cat >> confdefs.h <<\EOF
4639 #define HAVE_LOCALTIME_R 1
4642 cat >> confdefs.h <<\EOF
4643 #define HAVE_USLEEP_DECL 1
4646 cat >> confdefs.h <<\EOF
4647 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4650 cat >> confdefs.h <<\EOF
4651 #define HAVE_ALLOCA 1
4655 cat >> confdefs.h <<\EOF
4661 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4663 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4664 echo "configure
:4665: checking
for $ac_func" >&5
4665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4666 echo $ac_n "(cached
) $ac_c" 1>&6
4668 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure
"
4670 #include "confdefs.h
"
4671 /* System header to define __stub macros and hopefully few prototypes,
4672 which can conflict with char $ac_func(); below. */
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4681 /* The GNU C library defines this for functions which it implements
4682 to always fail with ENOSYS. Some functions are actually named
4683 something starting with __ and the normal name is an alias. */
4684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4694 eval "ac_cv_func_
$ac_func=yes"
4696 echo "configure
: failed program was
:" >&5
4697 cat conftest.$ac_ext >&5
4699 eval "ac_cv_func_
$ac_func=no
"
4704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4707 cat >> confdefs.h <<EOF
4708 #define $ac_tr_func 1
4712 echo "$ac_t""no
" 1>&6
4716 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4718 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4719 echo "configure
:4720: checking
for $ac_func" >&5
4720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4721 echo $ac_n "(cached
) $ac_c" 1>&6
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure
"
4725 #include "confdefs.h
"
4726 /* System header to define __stub macros and hopefully few prototypes,
4727 which can conflict with char $ac_func(); below. */
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4736 /* The GNU C library defines this for functions which it implements
4737 to always fail with ENOSYS. Some functions are actually named
4738 something starting with __ and the normal name is an alias. */
4739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4749 eval "ac_cv_func_
$ac_func=yes"
4751 echo "configure
: failed program was
:" >&5
4752 cat conftest.$ac_ext >&5
4754 eval "ac_cv_func_
$ac_func=no
"
4759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4762 cat >> confdefs.h <<EOF
4763 #define $ac_tr_func 1
4767 echo "$ac_t""no
" 1>&6
4771 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4773 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4774 echo "configure
:4775: checking
for $ac_func" >&5
4775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4776 echo $ac_n "(cached
) $ac_c" 1>&6
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure
"
4780 #include "confdefs.h
"
4781 /* System header to define __stub macros and hopefully few prototypes,
4782 which can conflict with char $ac_func(); below. */
4784 /* Override any gcc2 internal prototype to avoid an error. */
4785 /* We use char because int might match the return type of a gcc2
4786 builtin and then its argument prototype would still apply. */
4791 /* The GNU C library defines this for functions which it implements
4792 to always fail with ENOSYS. Some functions are actually named
4793 something starting with __ and the normal name is an alias. */
4794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4804 eval "ac_cv_func_
$ac_func=yes"
4806 echo "configure
: failed program was
:" >&5
4807 cat conftest.$ac_ext >&5
4809 eval "ac_cv_func_
$ac_func=no
"
4814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4817 cat >> confdefs.h <<EOF
4818 #define $ac_tr_func 1
4822 echo "$ac_t""no
" 1>&6
4826 for ac_func in nl_langinfo setlocale
4828 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4829 echo "configure
:4830: checking
for $ac_func" >&5
4830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4831 echo $ac_n "(cached
) $ac_c" 1>&6
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure
"
4835 #include "confdefs.h
"
4836 /* System header to define __stub macros and hopefully few prototypes,
4837 which can conflict with char $ac_func(); below. */
4839 /* Override any gcc2 internal prototype to avoid an error. */
4840 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4846 /* The GNU C library defines this for functions which it implements
4847 to always fail with ENOSYS. Some functions are actually named
4848 something starting with __ and the normal name is an alias. */
4849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4859 eval "ac_cv_func_
$ac_func=yes"
4861 echo "configure
: failed program was
:" >&5
4862 cat conftest.$ac_ext >&5
4864 eval "ac_cv_func_
$ac_func=no
"
4869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4872 cat >> confdefs.h <<EOF
4873 #define $ac_tr_func 1
4877 echo "$ac_t""no
" 1>&6
4881 for ac_func in inet_aton inet_addr
4883 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4884 echo "configure
:4885: checking
for $ac_func" >&5
4885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4886 echo $ac_n "(cached
) $ac_c" 1>&6
4888 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure
"
4890 #include "confdefs.h
"
4891 /* System header to define __stub macros and hopefully few prototypes,
4892 which can conflict with char $ac_func(); below. */
4894 /* Override any gcc2 internal prototype to avoid an error. */
4895 /* We use char because int might match the return type of a gcc2
4896 builtin and then its argument prototype would still apply. */
4901 /* The GNU C library defines this for functions which it implements
4902 to always fail with ENOSYS. Some functions are actually named
4903 something starting with __ and the normal name is an alias. */
4904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4914 eval "ac_cv_func_
$ac_func=yes"
4916 echo "configure
: failed program was
:" >&5
4917 cat conftest.$ac_ext >&5
4919 eval "ac_cv_func_
$ac_func=no
"
4924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4927 cat >> confdefs.h <<EOF
4928 #define $ac_tr_func 1
4932 echo "$ac_t""no
" 1>&6
4936 for ac_func in inet_pton uname inet_ntoa
4938 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4939 echo "configure
:4940: checking
for $ac_func" >&5
4940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4941 echo $ac_n "(cached
) $ac_c" 1>&6
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure
"
4945 #include "confdefs.h
"
4946 /* System header to define __stub macros and hopefully few prototypes,
4947 which can conflict with char $ac_func(); below. */
4949 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4956 /* The GNU C library defines this for functions which it implements
4957 to always fail with ENOSYS. Some functions are actually named
4958 something starting with __ and the normal name is an alias. */
4959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4967 if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4969 eval "ac_cv_func_
$ac_func=yes"
4971 echo "configure
: failed program was
:" >&5
4972 cat conftest.$ac_ext >&5
4974 eval "ac_cv_func_
$ac_func=no
"
4979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4980 echo "$ac_t""yes" 1>&6
4981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4982 cat >> confdefs.h <<EOF
4983 #define $ac_tr_func 1
4987 echo "$ac_t""no
" 1>&6
4991 for ac_func in fork execvp pipe sigaction ftruncate
4993 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4994 echo "configure
:4995: checking
for $ac_func" >&5
4995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4996 echo $ac_n "(cached
) $ac_c" 1>&6
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure
"
5000 #include "confdefs.h
"
5001 /* System header to define __stub macros and hopefully few prototypes,
5002 which can conflict with char $ac_func(); below. */
5004 /* Override any gcc2 internal prototype to avoid an error. */
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5011 /* The GNU C library defines this for functions which it implements
5012 to always fail with ENOSYS. Some functions are actually named
5013 something starting with __ and the normal name is an alias. */
5014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5022 if { (eval echo configure:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5024 eval "ac_cv_func_
$ac_func=yes"
5026 echo "configure
: failed program was
:" >&5
5027 cat conftest.$ac_ext >&5
5029 eval "ac_cv_func_
$ac_func=no
"
5034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5035 echo "$ac_t""yes" 1>&6
5036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5037 cat >> confdefs.h <<EOF
5038 #define $ac_tr_func 1
5042 echo "$ac_t""no
" 1>&6
5046 for ac_hdr in execinfo.h unistd.h dlfcn.h
5048 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5049 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5050 echo "configure
:5051: checking
for $ac_hdr" >&5
5051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5052 echo $ac_n "(cached
) $ac_c" 1>&6
5054 cat > conftest.$ac_ext <<EOF
5055 #line 5056 "configure
"
5056 #include "confdefs.h
"
5059 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5060 { (eval echo configure:5061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5062 if test -z "$ac_err"; then
5064 eval "ac_cv_header_
$ac_safe=yes"
5067 echo "configure
: failed program was
:" >&5
5068 cat conftest.$ac_ext >&5
5070 eval "ac_cv_header_
$ac_safe=no
"
5074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5075 echo "$ac_t""yes" 1>&6
5076 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5077 cat >> confdefs.h <<EOF
5078 #define $ac_tr_hdr 1
5082 echo "$ac_t""no
" 1>&6
5086 echo $ac_n "checking
for backtrace
""...
$ac_c" 1>&6
5087 echo "configure
:5088: checking
for backtrace
" >&5
5088 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
5089 echo $ac_n "(cached
) $ac_c" 1>&6
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure
"
5093 #include "confdefs.h
"
5094 /* System header to define __stub macros and hopefully few prototypes,
5095 which can conflict with char backtrace(); below. */
5097 /* Override any gcc2 internal prototype to avoid an error. */
5098 /* We use char because int might match the return type of a gcc2
5099 builtin and then its argument prototype would still apply. */
5104 /* The GNU C library defines this for functions which it implements
5105 to always fail with ENOSYS. Some functions are actually named
5106 something starting with __ and the normal name is an alias. */
5107 #if defined (__stub_backtrace) || defined (__stub___backtrace)
5115 if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5117 eval "ac_cv_func_backtrace
=yes"
5119 echo "configure
: failed program was
:" >&5
5120 cat conftest.$ac_ext >&5
5122 eval "ac_cv_func_backtrace
=no
"
5127 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5132 # Has broken backtrace()
5135 # Has broken backtrace(), but we supply our own.
5136 if test -d sysdep; then true; else mkdir -p sysdep; fi
5137 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep
/dwarf2-backtrace.cc
"
5138 cat >> confdefs.h <<\EOF
5139 #define HAVE_BACKTRACE 1
5144 cat >> confdefs.h <<\EOF
5145 #define HAVE_BACKTRACE 1
5152 echo "$ac_t""no
" 1>&6
5156 # Has backtrace() defined in libgcj itself
5157 cat >> confdefs.h <<\EOF
5158 #define HAVE_BACKTRACE 1
5167 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
5168 echo "configure
:5169: checking
for dladdr
in -ldl" >&5
5169 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
5170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5171 echo $ac_n "(cached
) $ac_c" 1>&6
5173 ac_save_LIBS="$LIBS"
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure
"
5177 #include "confdefs.h
"
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5189 eval "ac_cv_lib_
$ac_lib_var=yes"
5191 echo "configure
: failed program was
:" >&5
5192 cat conftest.$ac_ext >&5
5194 eval "ac_cv_lib_
$ac_lib_var=no
"
5197 LIBS="$ac_save_LIBS"
5200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5201 echo "$ac_t""yes" 1>&6
5203 if test "x
${disable_dladdr}" = "xyes
"; then
5207 cat >> confdefs.h <<\EOF
5208 #define HAVE_DLADDR 1
5214 echo "$ac_t""no
" 1>&6
5217 if test x"$build" = x"$host"; then
5218 for ac_file in /proc/self/exe
5221 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
5222 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
5223 echo "configure
:5224: checking
for $ac_file" >&5
5224 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
5225 echo $ac_n "(cached
) $ac_c" 1>&6
5227 if test "$cross_compiling" = yes; then
5228 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
5230 if test -r $ac_file; then
5231 eval "ac_cv_file_
$ac_safe=yes"
5233 eval "ac_cv_file_
$ac_safe=no
"
5237 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
5238 echo "$ac_t""yes" 1>&6
5239 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5240 cat >> confdefs.h <<EOF
5241 #define $ac_tr_file 1
5244 cat >> confdefs.h <<\EOF
5245 #define HAVE_PROC_SELF_EXE 1
5249 echo "$ac_t""no
" 1>&6
5257 cat >> confdefs.h <<\EOF
5258 #define HAVE_PROC_SELF_EXE 1
5267 am_cv_lib_iconv_ldpath=
5268 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5269 if test "${with_libiconv_prefix+set}" = set; then
5270 withval="$with_libiconv_prefix"
5272 for dir in `echo "$withval" | tr : ' '`; do
5273 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
5274 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib
"; fi
5280 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
5281 echo "configure
:5282: checking
for iconv" >&5
5282 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5283 echo $ac_n "(cached
) $ac_c" 1>&6
5286 am_cv_func_iconv="no
, consider installing GNU libiconv
"
5288 cat > conftest.$ac_ext <<EOF
5289 #line 5290 "configure
"
5290 #include "confdefs.h
"
5294 iconv_t cd = iconv_open("","");
5295 iconv(cd,NULL,NULL,NULL,NULL);
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5301 am_cv_func_iconv=yes
5303 echo "configure
: failed program was
:" >&5
5304 cat conftest.$ac_ext >&5
5307 if test "$am_cv_func_iconv" != yes; then
5308 am_save_LIBS="$LIBS"
5309 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure
"
5312 #include "confdefs.h
"
5316 iconv_t cd = iconv_open("","");
5317 iconv(cd,NULL,NULL,NULL,NULL);
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5324 am_cv_func_iconv=yes
5326 echo "configure
: failed program was
:" >&5
5327 cat conftest.$ac_ext >&5
5330 LIBS="$am_save_LIBS"
5335 echo "$ac_t""$am_cv_func_iconv" 1>&6
5336 if test "$am_cv_func_iconv" = yes; then
5337 cat >> confdefs.h <<\EOF
5338 #define HAVE_ICONV 1
5341 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
5342 echo "configure
:5343: checking
for iconv declaration
" >&5
5343 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5344 echo $ac_n "(cached
) $ac_c" 1>&6
5347 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure
"
5349 #include "confdefs.h
"
5357 #if defined(__STDC__) || defined(__cplusplus)
5358 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5367 if { (eval echo configure:5368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5369 am_cv_proto_iconv_arg1=""
5371 echo "configure
: failed program was
:" >&5
5372 cat conftest.$ac_ext >&5
5374 am_cv_proto_iconv_arg1="const
"
5377 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
);"
5380 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5381 echo "$ac_t""$
{ac_t
:-
5382 }$am_cv_proto_iconv" 1>&6
5383 cat >> confdefs.h <<EOF
5384 #define ICONV_CONST $am_cv_proto_iconv_arg1
5389 if test "$am_cv_lib_iconv" = yes; then
5390 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5394 for ac_hdr in locale.h
5396 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5397 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5398 echo "configure
:5399: checking
for $ac_hdr" >&5
5399 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5400 echo $ac_n "(cached
) $ac_c" 1>&6
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure
"
5404 #include "confdefs.h
"
5407 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5408 { (eval echo configure:5409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5410 if test -z "$ac_err"; then
5412 eval "ac_cv_header_
$ac_safe=yes"
5415 echo "configure
: failed program was
:" >&5
5416 cat conftest.$ac_ext >&5
5418 eval "ac_cv_header_
$ac_safe=no
"
5422 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5423 echo "$ac_t""yes" 1>&6
5424 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5425 cat >> confdefs.h <<EOF
5426 #define $ac_tr_hdr 1
5430 echo "$ac_t""no
" 1>&6
5434 if test $ac_cv_header_locale_h = yes; then
5435 echo $ac_n "checking
for LC_MESSAGES
""...
$ac_c" 1>&6
5436 echo "configure
:5437: checking
for LC_MESSAGES
" >&5
5437 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5438 echo $ac_n "(cached
) $ac_c" 1>&6
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure
"
5442 #include "confdefs.h
"
5448 if { (eval echo configure:5449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5450 am_cv_val_LC_MESSAGES=yes
5452 echo "configure
: failed program was
:" >&5
5453 cat conftest.$ac_ext >&5
5455 am_cv_val_LC_MESSAGES=no
5460 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5461 if test $am_cv_val_LC_MESSAGES = yes; then
5462 cat >> confdefs.h <<\EOF
5463 #define HAVE_LC_MESSAGES 1
5468 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
5469 echo "configure
:5470: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
5470 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5471 echo $ac_n "(cached
) $ac_c" 1>&6
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure
"
5475 #include "confdefs.h
"
5476 #include <sys/types.h>
5479 struct tm *tp; tp->tm_sec;
5482 if { (eval echo configure:5483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5484 ac_cv_struct_tm=time.h
5486 echo "configure
: failed program was
:" >&5
5487 cat conftest.$ac_ext >&5
5489 ac_cv_struct_tm=sys/time.h
5494 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5495 if test $ac_cv_struct_tm = sys/time.h; then
5496 cat >> confdefs.h <<\EOF
5497 #define TM_IN_SYS_TIME 1
5502 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
5503 echo "configure
:5504: checking
for tm_zone
in struct tm
" >&5
5504 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5505 echo $ac_n "(cached
) $ac_c" 1>&6
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure
"
5509 #include "confdefs.h
"
5510 #include <sys/types.h>
5511 #include <$ac_cv_struct_tm>
5513 struct tm tm; tm.tm_zone;
5516 if { (eval echo configure:5517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5518 ac_cv_struct_tm_zone=yes
5520 echo "configure
: failed program was
:" >&5
5521 cat conftest.$ac_ext >&5
5523 ac_cv_struct_tm_zone=no
5528 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5529 if test "$ac_cv_struct_tm_zone" = yes; then
5530 cat >> confdefs.h <<\EOF
5531 #define HAVE_TM_ZONE 1
5535 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
5536 echo "configure
:5537: checking
for tzname
" >&5
5537 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5538 echo $ac_n "(cached
) $ac_c" 1>&6
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure
"
5542 #include "confdefs.h
"
5544 #ifndef tzname /* For SGI. */
5545 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5551 if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5553 ac_cv_var_tzname=yes
5555 echo "configure
: failed program was
:" >&5
5556 cat conftest.$ac_ext >&5
5563 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5564 if test $ac_cv_var_tzname = yes; then
5565 cat >> confdefs.h <<\EOF
5566 #define HAVE_TZNAME 1
5573 for ac_func in gethostbyname_r
5575 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5576 echo "configure
:5577: checking
for $ac_func" >&5
5577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5578 echo $ac_n "(cached
) $ac_c" 1>&6
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure
"
5582 #include "confdefs.h
"
5583 /* System header to define __stub macros and hopefully few prototypes,
5584 which can conflict with char $ac_func(); below. */
5586 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5593 /* The GNU C library defines this for functions which it implements
5594 to always fail with ENOSYS. Some functions are actually named
5595 something starting with __ and the normal name is an alias. */
5596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5604 if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5606 eval "ac_cv_func_
$ac_func=yes"
5608 echo "configure
: failed program was
:" >&5
5609 cat conftest.$ac_ext >&5
5611 eval "ac_cv_func_
$ac_func=no
"
5616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5617 echo "$ac_t""yes" 1>&6
5618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5619 cat >> confdefs.h <<EOF
5620 #define $ac_tr_func 1
5623 cat >> confdefs.h <<\EOF
5624 #define HAVE_GETHOSTBYNAME_R 1
5627 # There are two different kinds of gethostbyname_r.
5628 # We look for the one that returns `int'.
5629 # Hopefully this check is robust enough.
5630 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure
"
5632 #include "confdefs.h
"
5635 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5636 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
5639 cat >> confdefs.h <<\EOF
5640 #define GETHOSTBYNAME_R_RETURNS_INT 1
5648 *" -D_REENTRANT "*) ;;
5650 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
5651 echo "configure
:5652: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
5652 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5653 echo $ac_n "(cached
) $ac_c" 1>&6
5657 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5658 ac_cpp='$CXXCPP $CPPFLAGS'
5659 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5660 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5661 cross_compiling=$ac_cv_prog_cxx_cross
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure
"
5665 #include "confdefs.h
"
5668 gethostbyname_r("", 0, 0);
5671 if { (eval echo configure:5672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5673 libjava_cv_gethostbyname_r_needs_reentrant=no
5675 echo "configure
: failed program was
:" >&5
5676 cat conftest.$ac_ext >&5
5678 CPPFLAGS_SAVE="$CPPFLAGS"
5679 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5680 cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure
"
5682 #include "confdefs.h
"
5685 gethostbyname_r("", 0, 0);
5688 if { (eval echo configure:5689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5690 libjava_cv_gethostbyname_r_needs_reentrant=yes
5692 echo "configure
: failed program was
:" >&5
5693 cat conftest.$ac_ext >&5
5695 libjava_cv_gethostbyname_r_needs_reentrant=fail
5698 CPPFLAGS="$CPPFLAGS_SAVE"
5703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5704 ac_cpp='$CPP $CPPFLAGS'
5705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5707 cross_compiling=$ac_cv_prog_cc_cross
5712 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5713 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5714 cat >> confdefs.h <<\EOF
5715 #define _REENTRANT 1
5722 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
5723 echo "configure
:5724: checking
for struct hostent_data
" >&5
5724 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5725 echo $ac_n "(cached
) $ac_c" 1>&6
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure
"
5729 #include "confdefs.h
"
5731 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5732 # define _REENTRANT 1
5736 struct hostent_data data;
5739 if { (eval echo configure:5740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5741 libjava_cv_struct_hostent_data=yes
5743 echo "configure
: failed program was
:" >&5
5744 cat conftest.$ac_ext >&5
5746 libjava_cv_struct_hostent_data=no
5751 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5752 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
5753 cat >> confdefs.h <<\EOF
5754 #define HAVE_STRUCT_HOSTENT_DATA 1
5760 echo "$ac_t""no
" 1>&6
5765 # FIXME: libjava source code expects to find a prototype for
5766 # gethostbyaddr_r in netdb.h. The outer check ensures that
5767 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5768 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5769 # linkage check is enough, yet C++ code requires proper prototypes.)
5770 cat > conftest.$ac_ext <<EOF
5771 #line 5772 "configure
"
5772 #include "confdefs.h
"
5775 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5776 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
5779 for ac_func in gethostbyaddr_r
5781 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5782 echo "configure
:5783: checking
for $ac_func" >&5
5783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5784 echo $ac_n "(cached
) $ac_c" 1>&6
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure
"
5788 #include "confdefs.h
"
5789 /* System header to define __stub macros and hopefully few prototypes,
5790 which can conflict with char $ac_func(); below. */
5792 /* Override any gcc2 internal prototype to avoid an error. */
5793 /* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */
5799 /* The GNU C library defines this for functions which it implements
5800 to always fail with ENOSYS. Some functions are actually named
5801 something starting with __ and the normal name is an alias. */
5802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5810 if { (eval echo configure:5811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5812 eval "ac_cv_func_
$ac_func=yes"
5814 echo "configure
: failed program was
:" >&5
5815 cat conftest.$ac_ext >&5
5817 eval "ac_cv_func_
$ac_func=no
"
5822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5823 echo "$ac_t""yes" 1>&6
5824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5825 cat >> confdefs.h <<EOF
5826 #define $ac_tr_func 1
5829 cat >> confdefs.h <<\EOF
5830 #define HAVE_GETHOSTBYADDR_R 1
5833 # There are two different kinds of gethostbyaddr_r.
5834 # We look for the one that returns `int'.
5835 # Hopefully this check is robust enough.
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure
"
5838 #include "confdefs.h
"
5841 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5842 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
5845 cat >> confdefs.h <<\EOF
5846 #define GETHOSTBYADDR_R_RETURNS_INT 1
5853 echo "$ac_t""no
" 1>&6
5861 for ac_func in gethostname
5863 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5864 echo "configure
:5865: checking
for $ac_func" >&5
5865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5866 echo $ac_n "(cached
) $ac_c" 1>&6
5868 cat > conftest.$ac_ext <<EOF
5869 #line 5870 "configure
"
5870 #include "confdefs.h
"
5871 /* System header to define __stub macros and hopefully few prototypes,
5872 which can conflict with char $ac_func(); below. */
5874 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5881 /* The GNU C library defines this for functions which it implements
5882 to always fail with ENOSYS. Some functions are actually named
5883 something starting with __ and the normal name is an alias. */
5884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5894 eval "ac_cv_func_
$ac_func=yes"
5896 echo "configure
: failed program was
:" >&5
5897 cat conftest.$ac_ext >&5
5899 eval "ac_cv_func_
$ac_func=no
"
5904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5905 echo "$ac_t""yes" 1>&6
5906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5907 cat >> confdefs.h <<EOF
5908 #define $ac_tr_func 1
5911 cat >> confdefs.h <<\EOF
5912 #define HAVE_GETHOSTNAME 1
5915 cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure
"
5917 #include "confdefs.h
"
5920 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5921 egrep "gethostname
" >/dev/null 2>&1; then
5924 cat >> confdefs.h <<\EOF
5925 #define HAVE_GETHOSTNAME_DECL 1
5932 echo "$ac_t""no
" 1>&6
5937 for ac_func in usleep
5939 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5940 echo "configure
:5941: checking
for $ac_func" >&5
5941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5942 echo $ac_n "(cached
) $ac_c" 1>&6
5944 cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure
"
5946 #include "confdefs.h
"
5947 /* System header to define __stub macros and hopefully few prototypes,
5948 which can conflict with char $ac_func(); below. */
5950 /* Override any gcc2 internal prototype to avoid an error. */
5951 /* We use char because int might match the return type of a gcc2
5952 builtin and then its argument prototype would still apply. */
5957 /* The GNU C library defines this for functions which it implements
5958 to always fail with ENOSYS. Some functions are actually named
5959 something starting with __ and the normal name is an alias. */
5960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5968 if { (eval echo configure:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5970 eval "ac_cv_func_
$ac_func=yes"
5972 echo "configure
: failed program was
:" >&5
5973 cat conftest.$ac_ext >&5
5975 eval "ac_cv_func_
$ac_func=no
"
5980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5981 echo "$ac_t""yes" 1>&6
5982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5983 cat >> confdefs.h <<EOF
5984 #define $ac_tr_func 1
5987 cat > conftest.$ac_ext <<EOF
5988 #line 5989 "configure
"
5989 #include "confdefs.h
"
5992 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5993 egrep "usleep" >/dev/null 2>&1; then
5996 cat >> confdefs.h <<\EOF
5997 #define HAVE_USLEEP_DECL 1
6004 echo "$ac_t""no
" 1>&6
6009 # Look for these functions in the thread library, but only bother
6010 # if using POSIX threads.
6011 if test "$THREADS" = posix; then
6013 LIBS="$LIBS $THREADLIBS"
6014 # Some POSIX thread systems don't have pthread_mutexattr_settype.
6016 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
6018 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6019 echo "configure
:6020: checking
for $ac_func" >&5
6020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6021 echo $ac_n "(cached
) $ac_c" 1>&6
6023 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure
"
6025 #include "confdefs.h
"
6026 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char $ac_func(); below. */
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6047 if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6049 eval "ac_cv_func_
$ac_func=yes"
6051 echo "configure
: failed program was
:" >&5
6052 cat conftest.$ac_ext >&5
6054 eval "ac_cv_func_
$ac_func=no
"
6059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6062 cat >> confdefs.h <<EOF
6063 #define $ac_tr_func 1
6067 echo "$ac_t""no
" 1>&6
6072 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
6073 # Solaris 7 the name librt is preferred.
6074 for ac_func in sched_yield
6076 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6077 echo "configure
:6078: checking
for $ac_func" >&5
6078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6079 echo $ac_n "(cached
) $ac_c" 1>&6
6081 cat > conftest.$ac_ext <<EOF
6082 #line 6083 "configure
"
6083 #include "confdefs.h
"
6084 /* System header to define __stub macros and hopefully few prototypes,
6085 which can conflict with char $ac_func(); below. */
6087 /* Override any gcc2 internal prototype to avoid an error. */
6088 /* We use char because int might match the return type of a gcc2
6089 builtin and then its argument prototype would still apply. */
6094 /* The GNU C library defines this for functions which it implements
6095 to always fail with ENOSYS. Some functions are actually named
6096 something starting with __ and the normal name is an alias. */
6097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6105 if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6107 eval "ac_cv_func_
$ac_func=yes"
6109 echo "configure
: failed program was
:" >&5
6110 cat conftest.$ac_ext >&5
6112 eval "ac_cv_func_
$ac_func=no
"
6117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6118 echo "$ac_t""yes" 1>&6
6119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6120 cat >> confdefs.h <<EOF
6121 #define $ac_tr_func 1
6125 echo "$ac_t""no
" 1>&6
6126 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
6127 echo "configure
:6128: checking
for sched_yield
in -lrt" >&5
6128 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6130 echo $ac_n "(cached
) $ac_c" 1>&6
6132 ac_save_LIBS="$LIBS"
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure
"
6136 #include "confdefs.h
"
6137 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148 eval "ac_cv_lib_
$ac_lib_var=yes"
6150 echo "configure
: failed program was
:" >&5
6151 cat conftest.$ac_ext >&5
6153 eval "ac_cv_lib_
$ac_lib_var=no
"
6156 LIBS="$ac_save_LIBS"
6159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6160 echo "$ac_t""yes" 1>&6
6162 cat >> confdefs.h <<\EOF
6163 #define HAVE_SCHED_YIELD 1
6166 THREADLIBS="$THREADLIBS -lrt"
6167 THREADSPEC="$THREADSPEC -lrt"
6169 echo "$ac_t""no
" 1>&6
6171 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
6172 echo "configure
:6173: checking
for sched_yield
in -lposix4" >&5
6173 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
6174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6175 echo $ac_n "(cached
) $ac_c" 1>&6
6177 ac_save_LIBS="$LIBS"
6178 LIBS="-lposix4 $LIBS"
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure
"
6181 #include "confdefs.h
"
6182 /* Override any gcc2 internal prototype to avoid an error. */
6183 /* We use char because int might match the return type of a gcc2
6184 builtin and then its argument prototype would still apply. */
6191 if { (eval echo configure:6192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6193 eval "ac_cv_lib_
$ac_lib_var=yes"
6195 echo "configure
: failed program was
:" >&5
6196 cat conftest.$ac_ext >&5
6198 eval "ac_cv_lib_
$ac_lib_var=no
"
6201 LIBS="$ac_save_LIBS"
6204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6205 echo "$ac_t""yes" 1>&6
6207 cat >> confdefs.h <<\EOF
6208 #define HAVE_SCHED_YIELD 1
6211 THREADLIBS="$THREADLIBS -lposix4"
6212 THREADSPEC="$THREADSPEC -lposix4"
6214 echo "$ac_t""no
" 1>&6
6224 # We can save a little space at runtime if the mutex has m_count
6225 # or __m_count. This is a nice hack for Linux.
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure
"
6228 #include "confdefs.h
"
6229 #include <pthread.h>
6232 extern pthread_mutex_t *mutex; int q = mutex->m_count;
6236 if { (eval echo configure:6237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6238 cat >> confdefs.h <<\EOF
6239 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
6243 echo "configure
: failed program was
:" >&5
6244 cat conftest.$ac_ext >&5
6247 cat > conftest.$ac_ext <<EOF
6248 #line 6249 "configure
"
6249 #include "confdefs.h
"
6250 #include <pthread.h>
6253 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
6257 if { (eval echo configure:6258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6259 cat >> confdefs.h <<\EOF
6260 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
6264 echo "configure
: failed program was
:" >&5
6265 cat conftest.$ac_ext >&5
6272 # We require a way to get the time.
6274 for ac_func in gettimeofday time ftime
6276 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6277 echo "configure
:6278: checking
for $ac_func" >&5
6278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6279 echo $ac_n "(cached
) $ac_c" 1>&6
6281 cat > conftest.$ac_ext <<EOF
6282 #line 6283 "configure
"
6283 #include "confdefs.h
"
6284 /* System header to define __stub macros and hopefully few prototypes,
6285 which can conflict with char $ac_func(); below. */
6287 /* Override any gcc2 internal prototype to avoid an error. */
6288 /* We use char because int might match the return type of a gcc2
6289 builtin and then its argument prototype would still apply. */
6294 /* The GNU C library defines this for functions which it implements
6295 to always fail with ENOSYS. Some functions are actually named
6296 something starting with __ and the normal name is an alias. */
6297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6305 if { (eval echo configure:6306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6307 eval "ac_cv_func_
$ac_func=yes"
6309 echo "configure
: failed program was
:" >&5
6310 cat conftest.$ac_ext >&5
6312 eval "ac_cv_func_
$ac_func=no
"
6317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6318 echo "$ac_t""yes" 1>&6
6319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6320 cat >> confdefs.h <<EOF
6321 #define $ac_tr_func 1
6325 echo "$ac_t""no
" 1>&6
6329 if test "$time_found" = no; then
6330 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
6333 for ac_func in memmove
6335 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6336 echo "configure
:6337: checking
for $ac_func" >&5
6337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6338 echo $ac_n "(cached
) $ac_c" 1>&6
6340 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure
"
6342 #include "confdefs.h
"
6343 /* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char $ac_func(); below. */
6346 /* Override any gcc2 internal prototype to avoid an error. */
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6353 /* The GNU C library defines this for functions which it implements
6354 to always fail with ENOSYS. Some functions are actually named
6355 something starting with __ and the normal name is an alias. */
6356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6364 if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6366 eval "ac_cv_func_
$ac_func=yes"
6368 echo "configure
: failed program was
:" >&5
6369 cat conftest.$ac_ext >&5
6371 eval "ac_cv_func_
$ac_func=no
"
6376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6377 echo "$ac_t""yes" 1>&6
6378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6379 cat >> confdefs.h <<EOF
6380 #define $ac_tr_func 1
6384 echo "$ac_t""no
" 1>&6
6389 # We require memcpy.
6391 for ac_func in memcpy
6393 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6394 echo "configure
:6395: checking
for $ac_func" >&5
6395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6396 echo $ac_n "(cached
) $ac_c" 1>&6
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure
"
6400 #include "confdefs.h
"
6401 /* System header to define __stub macros and hopefully few prototypes,
6402 which can conflict with char $ac_func(); below. */
6404 /* Override any gcc2 internal prototype to avoid an error. */
6405 /* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6411 /* The GNU C library defines this for functions which it implements
6412 to always fail with ENOSYS. Some functions are actually named
6413 something starting with __ and the normal name is an alias. */
6414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6422 if { (eval echo configure:6423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6424 eval "ac_cv_func_
$ac_func=yes"
6426 echo "configure
: failed program was
:" >&5
6427 cat conftest.$ac_ext >&5
6429 eval "ac_cv_func_
$ac_func=no
"
6434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6435 echo "$ac_t""yes" 1>&6
6436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6437 cat >> confdefs.h <<EOF
6438 #define $ac_tr_func 1
6442 echo "$ac_t""no
" 1>&6
6446 if test "$memcpy_found" = no; then
6447 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
6450 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
6451 echo "configure
:6452: checking
for dlopen
in -ldl" >&5
6452 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6454 echo $ac_n "(cached
) $ac_c" 1>&6
6456 ac_save_LIBS="$LIBS"
6458 cat > conftest.$ac_ext <<EOF
6459 #line 6460 "configure
"
6460 #include "confdefs.h
"
6461 /* Override any gcc2 internal prototype to avoid an error. */
6462 /* We use char because int might match the return type of a gcc2
6463 builtin and then its argument prototype would still apply. */
6470 if { (eval echo configure:6471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6472 eval "ac_cv_lib_
$ac_lib_var=yes"
6474 echo "configure
: failed program was
:" >&5
6475 cat conftest.$ac_ext >&5
6477 eval "ac_cv_lib_
$ac_lib_var=no
"
6480 LIBS="$ac_save_LIBS"
6483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6484 echo "$ac_t""yes" 1>&6
6486 cat >> confdefs.h <<\EOF
6487 #define HAVE_DLOPEN 1
6491 echo "$ac_t""no
" 1>&6
6495 # Some library-finding code we stole from Tcl.
6496 #--------------------------------------------------------------------
6497 # Check for the existence of the -lsocket and -lnsl libraries.
6498 # The order here is important, so that they end up in the right
6499 # order in the command line generated by make. Here are some
6500 # special considerations:
6501 # 1. Use "connect
" and "accept
" to check for -lsocket, and
6502 # "gethostbyname
" to check for -lnsl.
6503 # 2. Use each function name only once: can't redo a check because
6504 # autoconf caches the results of the last check and won't redo it.
6505 # 3. Use -lnsl and -lsocket only if they supply procedures that
6506 # aren't already present in the normal libraries. This is because
6507 # IRIX 5.2 has libraries, but they aren't needed and they're
6508 # bogus: they goof up name resolution if used.
6509 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6510 # To get around this problem, check for both libraries together
6511 # if -lsocket doesn't work by itself.
6512 #--------------------------------------------------------------------
6514 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
6515 echo "configure
:6516: checking
for socket libraries
" >&5
6516 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6517 echo $ac_n "(cached
) $ac_c" 1>&6
6521 unset ac_cv_func_connect
6522 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6523 echo "configure
:6524: checking
for connect
" >&5
6524 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6525 echo $ac_n "(cached
) $ac_c" 1>&6
6527 cat > conftest.$ac_ext <<EOF
6528 #line 6529 "configure
"
6529 #include "confdefs.h
"
6530 /* System header to define __stub macros and hopefully few prototypes,
6531 which can conflict with char connect(); below. */
6533 /* Override any gcc2 internal prototype to avoid an error. */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6540 /* The GNU C library defines this for functions which it implements
6541 to always fail with ENOSYS. Some functions are actually named
6542 something starting with __ and the normal name is an alias. */
6543 #if defined (__stub_connect) || defined (__stub___connect)
6551 if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6553 eval "ac_cv_func_connect
=yes"
6555 echo "configure
: failed program was
:" >&5
6556 cat conftest.$ac_ext >&5
6558 eval "ac_cv_func_connect
=no
"
6563 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6564 echo "$ac_t""yes" 1>&6
6567 echo "$ac_t""no
" 1>&6
6571 if test "$gcj_checkSocket" = 1; then
6572 unset ac_cv_func_connect
6573 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
6574 echo "configure
:6575: checking
for main
in -lsocket" >&5
6575 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6577 echo $ac_n "(cached
) $ac_c" 1>&6
6579 ac_save_LIBS="$LIBS"
6580 LIBS="-lsocket $LIBS"
6581 cat > conftest.$ac_ext <<EOF
6582 #line 6583 "configure
"
6583 #include "confdefs.h
"
6589 if { (eval echo configure:6590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6591 eval "ac_cv_lib_
$ac_lib_var=yes"
6593 echo "configure
: failed program was
:" >&5
6594 cat conftest.$ac_ext >&5
6596 eval "ac_cv_lib_
$ac_lib_var=no
"
6599 LIBS="$ac_save_LIBS"
6602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6603 echo "$ac_t""yes" 1>&6
6604 gcj_cv_lib_sockets="-lsocket"
6606 echo "$ac_t""no
" 1>&6
6611 if test "$gcj_checkBoth" = 1; then
6613 LIBS="$LIBS -lsocket -lnsl"
6614 unset ac_cv_func_accept
6615 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
6616 echo "configure
:6617: checking
for accept
" >&5
6617 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6618 echo $ac_n "(cached
) $ac_c" 1>&6
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure
"
6622 #include "confdefs.h
"
6623 /* System header to define __stub macros and hopefully few prototypes,
6624 which can conflict with char accept(); below. */
6626 /* Override any gcc2 internal prototype to avoid an error. */
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6633 /* The GNU C library defines this for functions which it implements
6634 to always fail with ENOSYS. Some functions are actually named
6635 something starting with __ and the normal name is an alias. */
6636 #if defined (__stub_accept) || defined (__stub___accept)
6644 if { (eval echo configure:6645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6646 eval "ac_cv_func_accept
=yes"
6648 echo "configure
: failed program was
:" >&5
6649 cat conftest.$ac_ext >&5
6651 eval "ac_cv_func_accept
=no
"
6656 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6657 echo "$ac_t""yes" 1>&6
6659 gcj_cv_lib_sockets="-lsocket -lnsl"
6661 echo "$ac_t""no
" 1>&6
6664 unset ac_cv_func_accept
6667 unset ac_cv_func_gethostbyname
6669 LIBS="$LIBS $gcj_cv_lib_sockets"
6670 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6671 echo "configure
:6672: checking
for gethostbyname
" >&5
6672 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6673 echo $ac_n "(cached
) $ac_c" 1>&6
6675 cat > conftest.$ac_ext <<EOF
6676 #line 6677 "configure
"
6677 #include "confdefs.h
"
6678 /* System header to define __stub macros and hopefully few prototypes,
6679 which can conflict with char gethostbyname(); below. */
6681 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6684 char gethostbyname();
6688 /* The GNU C library defines this for functions which it implements
6689 to always fail with ENOSYS. Some functions are actually named
6690 something starting with __ and the normal name is an alias. */
6691 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6699 if { (eval echo configure:6700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6701 eval "ac_cv_func_gethostbyname
=yes"
6703 echo "configure
: failed program was
:" >&5
6704 cat conftest.$ac_ext >&5
6706 eval "ac_cv_func_gethostbyname
=no
"
6711 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6712 echo "$ac_t""yes" 1>&6
6715 echo "$ac_t""no
" 1>&6
6716 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
6717 echo "configure
:6718: checking
for main
in -lnsl" >&5
6718 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6720 echo $ac_n "(cached
) $ac_c" 1>&6
6722 ac_save_LIBS="$LIBS"
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure
"
6726 #include "confdefs.h
"
6732 if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6734 eval "ac_cv_lib_
$ac_lib_var=yes"
6736 echo "configure
: failed program was
:" >&5
6737 cat conftest.$ac_ext >&5
6739 eval "ac_cv_lib_
$ac_lib_var=no
"
6742 LIBS="$ac_save_LIBS"
6745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6746 echo "$ac_t""yes" 1>&6
6747 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6749 echo "$ac_t""no
" 1>&6
6754 unset ac_cv_func_gethostbyname
6759 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6760 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6762 if test "$with_system_zlib" = yes; then
6763 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
6764 echo "configure
:6765: checking
for deflate
in -lz" >&5
6765 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6767 echo $ac_n "(cached
) $ac_c" 1>&6
6769 ac_save_LIBS="$LIBS"
6771 cat > conftest.$ac_ext <<EOF
6772 #line 6773 "configure
"
6773 #include "confdefs.h
"
6774 /* Override any gcc2 internal prototype to avoid an error. */
6775 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */
6783 if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6785 eval "ac_cv_lib_
$ac_lib_var=yes"
6787 echo "configure
: failed program was
:" >&5
6788 cat conftest.$ac_ext >&5
6790 eval "ac_cv_lib_
$ac_lib_var=no
"
6793 LIBS="$ac_save_LIBS"
6796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6797 echo "$ac_t""yes" 1>&6
6800 echo "$ac_t""no
" 1>&6
6806 # Test for Gtk stuff, if asked for.
6807 if test "$use_gtk_awt" = yes; then
6811 if test -z "$PKG_CONFIG"; then
6812 # Extract the first word of "pkg-config
", so it can be a program name with args.
6813 set dummy pkg-config; ac_word=$2
6814 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6815 echo "configure
:6816: checking
for $ac_word" >&5
6816 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6817 echo $ac_n "(cached
) $ac_c" 1>&6
6819 case "$PKG_CONFIG" in
6821 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6829 for ac_dir in $ac_dummy; do
6830 test -z "$ac_dir" && ac_dir=.
6831 if test -f $ac_dir/$ac_word; then
6832 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6837 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
6841 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6842 if test -n "$PKG_CONFIG"; then
6843 echo "$ac_t""$PKG_CONFIG" 1>&6
6845 echo "$ac_t""no
" 1>&6
6850 if test "$PKG_CONFIG" = "no
" ; then
6851 echo "*** The pkg-config
script could not be found. Make sure it is
"
6852 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
6853 echo "*** to the full path to pkg-config.
"
6854 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
6856 PKG_CONFIG_MIN_VERSION=0.9.0
6857 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6858 echo $ac_n "checking
for gtk
+-2.0
>= 2.2""...
$ac_c" 1>&6
6859 echo "configure
:6860: checking
for gtk
+-2.0
>= 2.2" >&5
6861 if $PKG_CONFIG --exists "gtk
+-2.0
>= 2.2" ; then
6862 echo "$ac_t""yes" 1>&6
6865 echo $ac_n "checking GTK_CFLAGS
""...
$ac_c" 1>&6
6866 echo "configure
:6867: checking GTK_CFLAGS
" >&5
6867 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk
+-2.0
>= 2.2"`
6868 echo "$ac_t""$GTK_CFLAGS" 1>&6
6870 echo $ac_n "checking GTK_LIBS
""...
$ac_c" 1>&6
6871 echo "configure
:6872: checking GTK_LIBS
" >&5
6872 GTK_LIBS=`$PKG_CONFIG --libs "gtk
+-2.0
>= 2.2"`
6873 echo "$ac_t""$GTK_LIBS" 1>&6
6877 ## If we have a custom action on failure, don't print errors, but
6878 ## do set a variable so people can do so.
6879 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk
+-2.0
>= 2.2"`
6880 echo $GTK_PKG_ERRORS
6886 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
6887 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
6891 if test $succeeded = yes; then
6894 { echo "configure
: error
: Library requirements
(gtk
+-2.0
>= 2.2) 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; }
6903 if test -z "$PKG_CONFIG"; then
6904 # Extract the first word of "pkg-config
", so it can be a program name with args.
6905 set dummy pkg-config; ac_word=$2
6906 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6907 echo "configure
:6908: checking
for $ac_word" >&5
6908 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6909 echo $ac_n "(cached
) $ac_c" 1>&6
6911 case "$PKG_CONFIG" in
6913 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6916 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6921 for ac_dir in $ac_dummy; do
6922 test -z "$ac_dir" && ac_dir=.
6923 if test -f $ac_dir/$ac_word; then
6924 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6929 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
6933 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6934 if test -n "$PKG_CONFIG"; then
6935 echo "$ac_t""$PKG_CONFIG" 1>&6
6937 echo "$ac_t""no
" 1>&6
6942 if test "$PKG_CONFIG" = "no
" ; then
6943 echo "*** The pkg-config
script could not be found. Make sure it is
"
6944 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
6945 echo "*** to the full path to pkg-config.
"
6946 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
6948 PKG_CONFIG_MIN_VERSION=0.9.0
6949 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6950 echo $ac_n "checking
for glib-2.0
>= 2.2 gthread-2.0
>= 2.2""...
$ac_c" 1>&6
6951 echo "configure
:6952: checking
for glib-2.0
>= 2.2 gthread-2.0
>= 2.2" >&5
6953 if $PKG_CONFIG --exists "glib-2.0
>= 2.2 gthread-2.0
>= 2.2" ; then
6954 echo "$ac_t""yes" 1>&6
6957 echo $ac_n "checking GLIB_CFLAGS
""...
$ac_c" 1>&6
6958 echo "configure
:6959: checking GLIB_CFLAGS
" >&5
6959 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0
>= 2.2 gthread-2.0
>= 2.2"`
6960 echo "$ac_t""$GLIB_CFLAGS" 1>&6
6962 echo $ac_n "checking GLIB_LIBS
""...
$ac_c" 1>&6
6963 echo "configure
:6964: checking GLIB_LIBS
" >&5
6964 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0
>= 2.2 gthread-2.0
>= 2.2"`
6965 echo "$ac_t""$GLIB_LIBS" 1>&6
6969 ## If we have a custom action on failure, don't print errors, but
6970 ## do set a variable so people can do so.
6971 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0
>= 2.2 gthread-2.0
>= 2.2"`
6972 echo $GLIB_PKG_ERRORS
6978 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
6979 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
6983 if test $succeeded = yes; then
6986 { echo "configure
: error
: Library requirements
(glib-2.0
>= 2.2 gthread-2.0
>= 2.2) 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; }
6995 if test -z "$PKG_CONFIG"; then
6996 # Extract the first word of "pkg-config
", so it can be a program name with args.
6997 set dummy pkg-config; ac_word=$2
6998 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6999 echo "configure
:7000: checking
for $ac_word" >&5
7000 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
7001 echo $ac_n "(cached
) $ac_c" 1>&6
7003 case "$PKG_CONFIG" in
7005 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7008 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
7011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7013 for ac_dir in $ac_dummy; do
7014 test -z "$ac_dir" && ac_dir=.
7015 if test -f $ac_dir/$ac_word; then
7016 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
7021 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
7025 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7026 if test -n "$PKG_CONFIG"; then
7027 echo "$ac_t""$PKG_CONFIG" 1>&6
7029 echo "$ac_t""no
" 1>&6
7034 if test "$PKG_CONFIG" = "no
" ; then
7035 echo "*** The pkg-config
script could not be found. Make sure it is
"
7036 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
7037 echo "*** to the full path to pkg-config.
"
7038 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
7040 PKG_CONFIG_MIN_VERSION=0.9.0
7041 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7042 echo $ac_n "checking
for libart-2.0
>= 2.1""...
$ac_c" 1>&6
7043 echo "configure
:7044: checking
for libart-2.0
>= 2.1" >&5
7045 if $PKG_CONFIG --exists "libart-2.0
>= 2.1" ; then
7046 echo "$ac_t""yes" 1>&6
7049 echo $ac_n "checking LIBART_CFLAGS
""...
$ac_c" 1>&6
7050 echo "configure
:7051: checking LIBART_CFLAGS
" >&5
7051 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0
>= 2.1"`
7052 echo "$ac_t""$LIBART_CFLAGS" 1>&6
7054 echo $ac_n "checking LIBART_LIBS
""...
$ac_c" 1>&6
7055 echo "configure
:7056: checking LIBART_LIBS
" >&5
7056 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0
>= 2.1"`
7057 echo "$ac_t""$LIBART_LIBS" 1>&6
7061 ## If we have a custom action on failure, don't print errors, but
7062 ## do set a variable so people can do so.
7063 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0
>= 2.1"`
7064 echo $LIBART_PKG_ERRORS
7070 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
7071 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
7075 if test $succeeded = yes; then
7078 { 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; }
7085 # On Solaris, and maybe other architectures, the Boehm collector
7087 if test "$GC" = boehm; then
7088 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
7089 echo "configure
:7090: checking
for main
in -ldl" >&5
7090 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
7091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7092 echo $ac_n "(cached
) $ac_c" 1>&6
7094 ac_save_LIBS="$LIBS"
7096 cat > conftest.$ac_ext <<EOF
7097 #line 7098 "configure
"
7098 #include "confdefs.h
"
7104 if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7106 eval "ac_cv_lib_
$ac_lib_var=yes"
7108 echo "configure
: failed program was
:" >&5
7109 cat conftest.$ac_ext >&5
7111 eval "ac_cv_lib_
$ac_lib_var=no
"
7114 LIBS="$ac_save_LIBS"
7117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7118 echo "$ac_t""yes" 1>&6
7119 SYSTEMSPEC="$SYSTEMSPEC -ldl"
7121 echo "$ac_t""no
" 1>&6
7127 if test -z "${with_multisubdir}"; then
7131 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7135 # Which gcj do we use?
7137 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7138 if test -n "${with_cross_host}"; then
7139 # We are being configured with a cross compiler. We can't
7140 # use ac_exeext, because that is for the target platform.
7143 case "${with_cross_host}" in
7145 cross_host_exeext=.exe
7148 if test -x "${built_gcc_dir}/gcj
${cross_host_exeext}"; then
7149 if test x"$build_alias" = x"$with_cross_host"; then
7150 # Ordinary cross (host!=target and host=build)
7153 # Canadian cross (host!=target and host!=build)
7160 # We are being configured with a native or crossed-native compiler
7161 if test -x "${built_gcc_dir}/gcj
${ac_exeext}"; then
7162 if test x"$build" = x"$host"; then
7163 # True native build (host=target and host=build)
7166 # Crossed-native build (host=target and host!=build)
7173 case "${which_gcj}" in
7175 GCJ="$built_gcc_dir/gcj
-B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
7178 # See the comment in Makefile.am about CANADIAN being a misnomer
7181 if test "x
${with_newlib}" = "xyes
"; then
7182 # FIXME (comment): Why is this needed?
7184 GCJ="${target_alias}-gcj"
7186 GCJ="${target_alias}-gcj -B`${PWDCMD-pwd}`/"
7190 # See the comment in Makefile.am about CANADIAN being a misnomer
7193 GCJ="gcj
-B`${PWDCMD-pwd}`/"
7197 # Create it, so that compile/link tests don't fail
7198 test -f libgcj.spec || touch libgcj.spec
7200 # We must search the source tree for java.lang, since we still don't
7201 # have libgcj.jar nor java/lang/*.class
7202 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
7203 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7205 # Since some classes depend on this one, we need its source available
7206 # before we can do any GCJ compilation test :-(
7207 if test ! -f gnu/classpath/Configuration.java; then
7208 test -d gnu || mkdir gnu
7209 test -d gnu/classpath || mkdir gnu/classpath
7210 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7211 -e 's,@TOOLKIT@,$TOOLKIT,' \
7212 < $srcdir/gnu/classpath/Configuration.java.in \
7213 > gnu/classpath/Configuration.java
7214 # We do not want to redirect the output of the grep below to /dev/null,
7215 # but we add /dev/null to the input list so that grep will print the
7216 # filename of Configuration.java in case it finds any matches.
7217 if grep @ gnu/classpath/Configuration.java /dev/null; then
7218 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
7222 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}gcj; ac_word=$2
7224 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
7225 echo "configure
:7226: checking
for $ac_word" >&5
7226 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7227 echo $ac_n "(cached
) $ac_c" 1>&6
7229 if test -n "$GCJ"; then
7230 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7234 for ac_dir in $ac_dummy; do
7235 test -z "$ac_dir" && ac_dir=.
7236 if test -f $ac_dir/$ac_word; then
7237 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
7244 GCJ="$ac_cv_prog_GCJ"
7245 if test -n "$GCJ"; then
7246 echo "$ac_t""$GCJ" 1>&6
7248 echo "$ac_t""no
" 1>&6
7252 if test -z "$ac_cv_prog_GCJ"; then
7253 if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "gcj
", so it can be a program name with args.
7255 set dummy gcj; ac_word=$2
7256 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
7257 echo "configure
:7258: checking
for $ac_word" >&5
7258 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7259 echo $ac_n "(cached
) $ac_c" 1>&6
7261 if test -n "$GCJ"; then
7262 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7266 for ac_dir in $ac_dummy; do
7267 test -z "$ac_dir" && ac_dir=.
7268 if test -f $ac_dir/$ac_word; then
7269 ac_cv_prog_GCJ="gcj
"
7274 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
7277 GCJ="$ac_cv_prog_GCJ"
7278 if test -n "$GCJ"; then
7279 echo "$ac_t""$GCJ" 1>&6
7281 echo "$ac_t""no
" 1>&6
7289 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7293 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
7295 lt_save_CFLAGS="$CFLAGS"
7296 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7297 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7298 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7299 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7300 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7301 deplibs_check_method="$deplibs_check_method" \
7302 file_magic_cmd="$file_magic_cmd" \
7303 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7304 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7305 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
7307 CFLAGS="$lt_save_CFLAGS"
7309 # Redirect the config.log output again, so that the ltconfig log is not
7310 # clobbered by the next message.
7311 exec 5>>./config.log
7316 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
7318 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
7319 echo "configure
:7320: checking size of void
*" >&5
7320 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7321 echo $ac_n "(cached
) $ac_c" 1>&6
7323 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7324 cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure
"
7326 #include "confdefs.h
"
7327 #include "confdefs.h
"
7328 #include <sys/types.h>
7332 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7335 if { (eval echo configure:7336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7337 ac_cv_sizeof_void_p=$ac_size
7339 echo "configure
: failed program was
:" >&5
7340 cat conftest.$ac_ext >&5
7343 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7348 if test x$ac_cv_sizeof_void_p = x ; then
7349 { echo "configure
: error
: cannot determine a size
for void
*" 1>&2; exit 1; }
7351 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7352 cat >> confdefs.h <<EOF
7353 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7358 echo $ac_n "checking whether byte ordering is bigendian
""...
$ac_c" 1>&6
7359 echo "configure
:7360: checking whether byte ordering is bigendian
" >&5
7360 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7361 echo $ac_n "(cached
) $ac_c" 1>&6
7363 ac_cv_c_bigendian=unknown
7364 # See if sys/param.h defines the BYTE_ORDER macro.
7365 cat > conftest.$ac_ext <<EOF
7366 #line 7367 "configure
"
7367 #include "confdefs.h
"
7368 #include <sys/types.h>
7369 #include <sys/param.h>
7372 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7377 if { (eval echo configure:7378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7379 # It does; now see whether it defined to BIG_ENDIAN or not.
7380 cat > conftest.$ac_ext <<EOF
7381 #line 7382 "configure
"
7382 #include "confdefs.h
"
7383 #include <sys/types.h>
7384 #include <sys/param.h>
7387 #if BYTE_ORDER != BIG_ENDIAN
7392 if { (eval echo configure:7393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7394 ac_cv_c_bigendian=yes
7396 echo "configure
: failed program was
:" >&5
7397 cat conftest.$ac_ext >&5
7399 ac_cv_c_bigendian=no
7403 echo "configure
: failed program was
:" >&5
7404 cat conftest.$ac_ext >&5
7407 if test $ac_cv_c_bigendian = unknown; then
7408 if test "$cross_compiling" = yes; then
7409 echo $ac_n "cross-compiling...
" 2>&6
7411 cat > conftest.$ac_ext <<EOF
7412 #line 7413 "configure
"
7413 #include "confdefs.h
"
7415 /* Are we little or big endian? From Harbison&Steele. */
7419 char c[sizeof (long)];
7422 exit (u.c[sizeof (long) - 1] == 1);
7425 if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7427 ac_cv_c_bigendian=no
7429 echo "configure
: failed program was
:" >&5
7430 cat conftest.$ac_ext >&5
7432 ac_cv_c_bigendian=yes
7440 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7441 if test $ac_cv_c_bigendian = unknown; then
7442 echo $ac_n "checking to probe
for byte ordering
""...
$ac_c" 1>&6
7443 echo "configure
:7444: checking to probe
for byte ordering
" >&5
7445 cat >conftest.c <<EOF
7446 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7447 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7448 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
7449 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7450 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7451 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
7452 int main() { _ascii (); _ebcdic (); return 0; }
7454 if test -f conftest.c ; then
7455 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
7456 if test `grep -l BIGenDianSyS conftest.o` ; then
7457 echo $ac_n ' big endian probe OK, ' 1>&6
7458 ac_cv_c_bigendian=yes
7460 if test `grep -l LiTTleEnDian conftest.o` ; then
7461 echo $ac_n ' little endian probe OK, ' 1>&6
7462 if test $ac_cv_c_bigendian = yes ; then
7463 ac_cv_c_bigendian=unknown;
7465 ac_cv_c_bigendian=no
7468 echo $ac_n 'guessing bigendian ... ' >&6
7471 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7473 if test $ac_cv_c_bigendian = yes; then
7474 cat >> confdefs.h <<\EOF
7475 #define WORDS_BIGENDIAN 1
7478 cat >> confdefs.h <<\EOF
7479 #define HOST_WORDS_BIG_ENDIAN 1
7486 cat >> confdefs.h <<EOF
7487 #define BYTEORDER $BYTEORDER
7490 if test $ac_cv_c_bigendian = unknown; then
7491 { echo "configure
: error
: unknown endianess
- sorry
, please pre-set ac_cv_c_bigendian
" 1>&2; exit 1; }
7499 if test -z "$ZLIBSPEC"; then
7500 # Use zlib from the GCC tree.
7501 ZINCS='-I$(top_srcdir)/../zlib'
7502 ZLIBS=../zlib/libzgcj_convenience.la
7505 SYS_ZLIBS="$ZLIBSPEC"
7517 if test "$CANADIAN" = yes; then
7526 if test "$NULL_TARGET" = yes; then
7528 NULL_TARGET_FALSE='#'
7530 NULL_TARGET_TRUE='#'
7535 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
7544 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7545 NEEDS_DATA_START_TRUE=
7546 NEEDS_DATA_START_FALSE='#'
7548 NEEDS_DATA_START_TRUE='#'
7549 NEEDS_DATA_START_FALSE=
7553 # Process the option "--enable-version-specific-runtime-libs"
7554 # Calculate toolexeclibdir
7555 case ${version_specific_libs} in
7557 # Need the gcc compiler version to know where to install libraries
7558 # and header files if --enable-version-specific-runtime-libs option
7560 includedir='${libdir}/gcc/${target_alias}/'$gcc_version/include/
7561 toolexecdir='$(libdir)/gcc/$(target_alias)'
7562 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
7563 toolexeclibdir=$toolexecmainlibdir
7566 if test -n "$with_cross_host" &&
7567 test x"$with_cross_host" != x"no
"; then
7568 # Install a library built with a cross compiler in tooldir, not libdir.
7569 toolexecdir='$(exec_prefix)/$(target_alias)'
7570 toolexecmainlibdir='$(toolexecdir)/lib'
7572 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
7573 toolexecmainlibdir='$(libdir)'
7575 multi_os_directory=`$CC -print-multi-os-directory`
7576 case $multi_os_directory in
7577 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
7578 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
7586 # Determine gcj version number.
7588 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7590 GCJVERSION=$gcjversion
7592 cat >> confdefs.h <<EOF
7593 #define GCJVERSION "$GCJVERSION"
7597 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
7599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7600 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7601 echo "configure
:7602: checking
for $ac_hdr" >&5
7602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7603 echo $ac_n "(cached
) $ac_c" 1>&6
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure
"
7607 #include "confdefs.h
"
7610 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7611 { (eval echo configure:7612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7613 if test -z "$ac_err"; then
7615 eval "ac_cv_header_
$ac_safe=yes"
7618 echo "configure
: failed program was
:" >&5
7619 cat conftest.$ac_ext >&5
7621 eval "ac_cv_header_
$ac_safe=no
"
7625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7626 echo "$ac_t""yes" 1>&6
7627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7628 cat >> confdefs.h <<EOF
7629 #define $ac_tr_hdr 1
7633 echo "$ac_t""no
" 1>&6
7637 for ac_hdr in dirent.h
7639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7640 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7641 echo "configure
:7642: checking
for $ac_hdr" >&5
7642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7643 echo $ac_n "(cached
) $ac_c" 1>&6
7645 cat > conftest.$ac_ext <<EOF
7646 #line 7647 "configure
"
7647 #include "confdefs.h
"
7650 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7651 { (eval echo configure:7652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7653 if test -z "$ac_err"; then
7655 eval "ac_cv_header_
$ac_safe=yes"
7658 echo "configure
: failed program was
:" >&5
7659 cat conftest.$ac_ext >&5
7661 eval "ac_cv_header_
$ac_safe=no
"
7665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7666 echo "$ac_t""yes" 1>&6
7667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7668 cat >> confdefs.h <<EOF
7669 #define $ac_tr_hdr 1
7673 echo "$ac_t""no
" 1>&6
7677 for ac_hdr in inttypes.h
7679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7680 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7681 echo "configure
:7682: checking
for $ac_hdr" >&5
7682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7683 echo $ac_n "(cached
) $ac_c" 1>&6
7685 cat > conftest.$ac_ext <<EOF
7686 #line 7687 "configure
"
7687 #include "confdefs.h
"
7690 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7691 { (eval echo configure:7692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7693 if test -z "$ac_err"; then
7695 eval "ac_cv_header_
$ac_safe=yes"
7698 echo "configure
: failed program was
:" >&5
7699 cat conftest.$ac_ext >&5
7701 eval "ac_cv_header_
$ac_safe=no
"
7705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7706 echo "$ac_t""yes" 1>&6
7707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7708 cat >> confdefs.h <<EOF
7709 #define $ac_tr_hdr 1
7712 cat >> confdefs.h <<\EOF
7713 #define HAVE_INTTYPES_H 1
7716 cat >> confdefs.h <<\EOF
7717 #define JV_HAVE_INTTYPES_H 1
7722 echo "$ac_t""no
" 1>&6
7726 echo $ac_n "checking
for sys
/wait.h that is POSIX
.1 compatible
""...
$ac_c" 1>&6
7727 echo "configure
:7728: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
7728 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7729 echo $ac_n "(cached
) $ac_c" 1>&6
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure
"
7733 #include "confdefs.h
"
7734 #include <sys/types.h>
7735 #include <sys/wait.h>
7737 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7740 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7745 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7748 if { (eval echo configure:7749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7750 ac_cv_header_sys_wait_h=yes
7752 echo "configure
: failed program was
:" >&5
7753 cat conftest.$ac_ext >&5
7755 ac_cv_header_sys_wait_h=no
7760 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7761 if test $ac_cv_header_sys_wait_h = yes; then
7762 cat >> confdefs.h <<\EOF
7763 #define HAVE_SYS_WAIT_H 1
7769 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
7770 echo "configure
:7771: checking
for ANSI C header files
" >&5
7771 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7772 echo $ac_n "(cached
) $ac_c" 1>&6
7774 cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure
"
7776 #include "confdefs.h
"
7782 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7783 { (eval echo configure:7784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7785 if test -z "$ac_err"; then
7787 ac_cv_header_stdc=yes
7790 echo "configure
: failed program was
:" >&5
7791 cat conftest.$ac_ext >&5
7793 ac_cv_header_stdc=no
7797 if test $ac_cv_header_stdc = yes; then
7798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7799 cat > conftest.$ac_ext <<EOF
7800 #line 7801 "configure
"
7801 #include "confdefs.h
"
7804 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7805 egrep "memchr
" >/dev/null 2>&1; then
7809 ac_cv_header_stdc=no
7815 if test $ac_cv_header_stdc = yes; then
7816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7817 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure
"
7819 #include "confdefs.h
"
7822 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7823 egrep "free
" >/dev/null 2>&1; then
7827 ac_cv_header_stdc=no
7833 if test $ac_cv_header_stdc = yes; then
7834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7835 if test "$cross_compiling" = yes; then
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure
"
7840 #include "confdefs.h
"
7842 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7843 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7844 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7845 int main () { int i; for (i = 0; i < 256; i++)
7846 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7850 if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7854 echo "configure
: failed program was
:" >&5
7855 cat conftest.$ac_ext >&5
7857 ac_cv_header_stdc=no
7865 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7866 if test $ac_cv_header_stdc = yes; then
7867 cat >> confdefs.h <<\EOF
7868 #define STDC_HEADERS 1
7873 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
7874 echo "configure
:7875: checking
for ssize_t
" >&5
7875 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7876 echo $ac_n "(cached
) $ac_c" 1>&6
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure
"
7880 #include "confdefs.h
"
7881 #include <sys/types.h>
7887 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7888 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
7890 ac_cv_type_ssize_t=yes
7893 ac_cv_type_ssize_t=no
7898 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7899 if test $ac_cv_type_ssize_t = no; then
7900 cat >> confdefs.h <<\EOF
7907 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
7908 echo "configure
:7909: checking
for in_addr_t
" >&5
7909 cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure
"
7911 #include "confdefs.h
"
7912 #include <sys/types.h>
7917 #if HAVE_NETINET_IN_H
7918 #include <netinet/in.h>
7924 if { (eval echo configure:7925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7926 cat >> confdefs.h <<\EOF
7927 #define HAVE_IN_ADDR_T 1
7930 echo "$ac_t""yes" 1>&6
7932 echo "configure
: failed program was
:" >&5
7933 cat conftest.$ac_ext >&5
7935 echo "$ac_t""no
" 1>&6
7939 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
7940 echo "configure
:7941: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
7941 cat > conftest.$ac_ext <<EOF
7942 #line 7943 "configure
"
7943 #include "confdefs.h
"
7944 #include <netinet/in.h>
7946 struct ip_mreq mreq;
7949 if { (eval echo configure:7950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7951 cat >> confdefs.h <<\EOF
7952 #define HAVE_STRUCT_IP_MREQ 1
7955 echo "$ac_t""yes" 1>&6
7957 echo "configure
: failed program was
:" >&5
7958 cat conftest.$ac_ext >&5
7960 echo "$ac_t""no
" 1>&6
7964 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
7965 echo "configure
:7966: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
7966 cat > conftest.$ac_ext <<EOF
7967 #line 7968 "configure
"
7968 #include "confdefs.h
"
7969 #include <netinet/in.h>
7971 struct ipv6_mreq mreq6;
7974 if { (eval echo configure:7975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7976 cat >> confdefs.h <<\EOF
7977 #define HAVE_STRUCT_IPV6_MREQ 1
7980 echo "$ac_t""yes" 1>&6
7982 echo "configure
: failed program was
:" >&5
7983 cat conftest.$ac_ext >&5
7985 echo "$ac_t""no
" 1>&6
7989 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
7990 echo "configure
:7991: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
7991 cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure
"
7993 #include "confdefs.h
"
7994 #include <netinet/in.h>
7996 struct sockaddr_in6 addr6;
7999 if { (eval echo configure:8000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8001 cat >> confdefs.h <<\EOF
8002 #define HAVE_INET6 1
8005 echo "$ac_t""yes" 1>&6
8007 echo "configure
: failed program was
:" >&5
8008 cat conftest.$ac_ext >&5
8010 echo "$ac_t""no
" 1>&6
8014 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
8015 echo "configure
:8016: checking
for socklen_t
in sys
/socket.h
" >&5
8016 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure
"
8018 #include "confdefs.h
"
8019 #define _POSIX_PII_SOCKET
8020 #include <sys/types.h>
8021 #include <sys/socket.h>
8026 if { (eval echo configure:8027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8028 cat >> confdefs.h <<\EOF
8029 #define HAVE_SOCKLEN_T 1
8032 echo "$ac_t""yes" 1>&6
8034 echo "configure
: failed program was
:" >&5
8035 cat conftest.$ac_ext >&5
8037 echo "$ac_t""no
" 1>&6
8041 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
8042 echo "configure
:8043: checking
for tm_gmtoff
in struct tm
" >&5
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure
"
8045 #include "confdefs.h
"
8048 struct tm tim; tim.tm_gmtoff = 0;
8051 if { (eval echo configure:8052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8053 cat >> confdefs.h <<\EOF
8054 #define STRUCT_TM_HAS_GMTOFF 1
8057 echo "$ac_t""yes" 1>&6
8059 echo "configure
: failed program was
:" >&5
8060 cat conftest.$ac_ext >&5
8062 echo "$ac_t""no
" 1>&6
8063 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
8064 echo "configure
:8065: checking
for global timezone variable
" >&5
8065 cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure
"
8067 #include "confdefs.h
"
8070 void i(){long z2 = 2*timezone;}
8073 if { (eval echo configure:8074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8075 cat >> confdefs.h <<\EOF
8076 #define HAVE_TIMEZONE 1
8079 echo "$ac_t""yes" 1>&6
8081 echo "configure
: failed program was
:" >&5
8082 cat conftest.$ac_ext >&5
8084 echo "$ac_t""no
" 1>&6
8085 echo $ac_n "checking
for global _timezone variable
""...
$ac_c" 1>&6
8086 echo "configure
:8087: checking
for global _timezone variable
" >&5
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure
"
8089 #include "confdefs.h
"
8092 long z2 = _timezone;
8095 if { (eval echo configure:8096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8097 cat >> confdefs.h <<\EOF
8098 #define HAVE_UNDERSCORE_TIMEZONE 1
8101 echo "$ac_t""yes" 1>&6
8103 echo "configure
: failed program was
:" >&5
8104 cat conftest.$ac_ext >&5
8106 echo "$ac_t""no
" 1>&6
8114 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8115 # for constant arguments. Useless!
8116 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
8117 echo "configure
:8118: checking
for working alloca.h
" >&5
8118 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8119 echo $ac_n "(cached
) $ac_c" 1>&6
8121 cat > conftest.$ac_ext <<EOF
8122 #line 8123 "configure
"
8123 #include "confdefs.h
"
8126 char *p = alloca(2 * sizeof(int));
8129 if { (eval echo configure:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8131 ac_cv_header_alloca_h=yes
8133 echo "configure
: failed program was
:" >&5
8134 cat conftest.$ac_ext >&5
8136 ac_cv_header_alloca_h=no
8141 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8142 if test $ac_cv_header_alloca_h = yes; then
8143 cat >> confdefs.h <<\EOF
8144 #define HAVE_ALLOCA_H 1
8149 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
8150 echo "configure
:8151: checking
for alloca
" >&5
8151 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8152 echo $ac_n "(cached
) $ac_c" 1>&6
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure
"
8156 #include "confdefs.h
"
8159 # define alloca __builtin_alloca
8162 # include <malloc.h>
8163 # define alloca _alloca
8166 # include <alloca.h>
8171 # ifndef alloca /* predefined by HP cc +Olibcalls */
8180 char *p = (char *) alloca(1);
8183 if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8185 ac_cv_func_alloca_works=yes
8187 echo "configure
: failed program was
:" >&5
8188 cat conftest.$ac_ext >&5
8190 ac_cv_func_alloca_works=no
8195 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8196 if test $ac_cv_func_alloca_works = yes; then
8197 cat >> confdefs.h <<\EOF
8198 #define HAVE_ALLOCA 1
8203 if test $ac_cv_func_alloca_works = no; then
8204 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8205 # that cause trouble. Some versions do not even contain alloca or
8206 # contain a buggy version. If you still want to use their alloca,
8207 # use ar to extract alloca.o from them instead of compiling alloca.c.
8208 ALLOCA=alloca.${ac_objext}
8209 cat >> confdefs.h <<\EOF
8214 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
8215 echo "configure
:8216: checking whether alloca needs Cray hooks
" >&5
8216 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8217 echo $ac_n "(cached
) $ac_c" 1>&6
8219 cat > conftest.$ac_ext <<EOF
8220 #line 8221 "configure
"
8221 #include "confdefs.h
"
8222 #if defined(CRAY) && ! defined(CRAY2)
8229 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8230 egrep "webecray
" >/dev/null 2>&1; then
8241 echo "$ac_t""$ac_cv_os_cray" 1>&6
8242 if test $ac_cv_os_cray = yes; then
8243 for ac_func in _getb67 GETB67 getb67; do
8244 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
8245 echo "configure
:8246: checking
for $ac_func" >&5
8246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8247 echo $ac_n "(cached
) $ac_c" 1>&6
8249 cat > conftest.$ac_ext <<EOF
8250 #line 8251 "configure
"
8251 #include "confdefs.h
"
8252 /* System header to define __stub macros and hopefully few prototypes,
8253 which can conflict with char $ac_func(); below. */
8255 /* Override any gcc2 internal prototype to avoid an error. */
8256 /* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */
8262 /* The GNU C library defines this for functions which it implements
8263 to always fail with ENOSYS. Some functions are actually named
8264 something starting with __ and the normal name is an alias. */
8265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8273 if { (eval echo configure:8274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8275 eval "ac_cv_func_
$ac_func=yes"
8277 echo "configure
: failed program was
:" >&5
8278 cat conftest.$ac_ext >&5
8280 eval "ac_cv_func_
$ac_func=no
"
8285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8286 echo "$ac_t""yes" 1>&6
8287 cat >> confdefs.h <<EOF
8288 #define CRAY_STACKSEG_END $ac_func
8293 echo "$ac_t""no
" 1>&6
8299 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
8300 echo "configure
:8301: checking stack direction
for C alloca
" >&5
8301 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8302 echo $ac_n "(cached
) $ac_c" 1>&6
8304 if test "$cross_compiling" = yes; then
8305 ac_cv_c_stack_direction=0
8307 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure
"
8309 #include "confdefs.h
"
8310 find_stack_direction ()
8312 static char *addr = 0;
8317 return find_stack_direction ();
8320 return (&dummy > addr) ? 1 : -1;
8324 exit (find_stack_direction() < 0);
8327 if { (eval echo configure:8328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8329 ac_cv_c_stack_direction=1
8331 echo "configure
: failed program was
:" >&5
8332 cat conftest.$ac_ext >&5
8334 ac_cv_c_stack_direction=-1
8341 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8342 cat >> confdefs.h <<EOF
8343 #define STACK_DIRECTION $ac_cv_c_stack_direction
8348 for ac_hdr in unistd.h
8350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8351 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
8352 echo "configure
:8353: checking
for $ac_hdr" >&5
8353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8354 echo $ac_n "(cached
) $ac_c" 1>&6
8356 cat > conftest.$ac_ext <<EOF
8357 #line 8358 "configure
"
8358 #include "confdefs.h
"
8361 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
8362 { (eval echo configure:8363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
8364 if test -z "$ac_err"; then
8366 eval "ac_cv_header_
$ac_safe=yes"
8369 echo "configure
: failed program was
:" >&5
8370 cat conftest.$ac_ext >&5
8372 eval "ac_cv_header_
$ac_safe=no
"
8376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8377 echo "$ac_t""yes" 1>&6
8378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8379 cat >> confdefs.h <<EOF
8380 #define $ac_tr_hdr 1
8384 echo "$ac_t""no
" 1>&6
8388 for ac_func in getpagesize
8390 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
8391 echo "configure
:8392: checking
for $ac_func" >&5
8392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8393 echo $ac_n "(cached
) $ac_c" 1>&6
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure
"
8397 #include "confdefs.h
"
8398 /* System header to define __stub macros and hopefully few prototypes,
8399 which can conflict with char $ac_func(); below. */
8401 /* Override any gcc2 internal prototype to avoid an error. */
8402 /* We use char because int might match the return type of a gcc2
8403 builtin and then its argument prototype would still apply. */
8408 /* The GNU C library defines this for functions which it implements
8409 to always fail with ENOSYS. Some functions are actually named
8410 something starting with __ and the normal name is an alias. */
8411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8419 if { (eval echo configure:8420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8421 eval "ac_cv_func_
$ac_func=yes"
8423 echo "configure
: failed program was
:" >&5
8424 cat conftest.$ac_ext >&5
8426 eval "ac_cv_func_
$ac_func=no
"
8431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8432 echo "$ac_t""yes" 1>&6
8433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8434 cat >> confdefs.h <<EOF
8435 #define $ac_tr_func 1
8439 echo "$ac_t""no
" 1>&6
8443 echo $ac_n "checking
for working mmap
""...
$ac_c" 1>&6
8444 echo "configure
:8445: checking
for working mmap
" >&5
8445 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8446 echo $ac_n "(cached
) $ac_c" 1>&6
8448 if test "$cross_compiling" = yes; then
8449 ac_cv_func_mmap_fixed_mapped=no
8451 cat > conftest.$ac_ext <<EOF
8452 #line 8453 "configure
"
8453 #include "confdefs.h
"
8455 /* Thanks to Mike Haertel and Jim Avera for this test.
8456 Here is a matrix of mmap possibilities:
8457 mmap private not fixed
8458 mmap private fixed at somewhere currently unmapped
8459 mmap private fixed at somewhere already mapped
8460 mmap shared not fixed
8461 mmap shared fixed at somewhere currently unmapped
8462 mmap shared fixed at somewhere already mapped
8463 For private mappings, we should verify that changes cannot be read()
8464 back from the file, nor mmap's back from the file at a different
8465 address. (There have been systems where private was not correctly
8466 implemented like the infamous i386 svr4.0, and systems where the
8467 VM page cache was not coherent with the filesystem buffer cache
8468 like early versions of FreeBSD and possibly contemporary NetBSD.)
8469 For shared mappings, we should conversely verify that changes get
8470 propogated back to all the places they're supposed to be.
8472 Grep wants private fixed already mapped.
8473 The main things grep needs to know about mmap are:
8474 * does it exist and is it safe to write into the mmap'd area
8475 * how to use it (BSD variants) */
8476 #include <sys/types.h>
8478 #include <sys/mman.h>
8480 /* This mess was copied from the GNU getpagesize.h. */
8481 #ifndef HAVE_GETPAGESIZE
8482 # ifdef HAVE_UNISTD_H
8483 # include <unistd.h>
8486 /* Assume that all systems that can run configure have sys/param.h. */
8487 # ifndef HAVE_SYS_PARAM_H
8488 # define HAVE_SYS_PARAM_H 1
8491 # ifdef _SC_PAGESIZE
8492 # define getpagesize() sysconf(_SC_PAGESIZE)
8493 # else /* no _SC_PAGESIZE */
8494 # ifdef HAVE_SYS_PARAM_H
8495 # include <sys/param.h>
8496 # ifdef EXEC_PAGESIZE
8497 # define getpagesize() EXEC_PAGESIZE
8498 # else /* no EXEC_PAGESIZE */
8500 # define getpagesize() NBPG * CLSIZE
8503 # endif /* no CLSIZE */
8504 # else /* no NBPG */
8506 # define getpagesize() NBPC
8507 # else /* no NBPC */
8509 # define getpagesize() PAGESIZE
8510 # endif /* PAGESIZE */
8511 # endif /* no NBPC */
8512 # endif /* no NBPG */
8513 # endif /* no EXEC_PAGESIZE */
8514 # else /* no HAVE_SYS_PARAM_H */
8515 # define getpagesize() 8192 /* punt totally */
8516 # endif /* no HAVE_SYS_PARAM_H */
8517 # endif /* no _SC_PAGESIZE */
8519 #endif /* no HAVE_GETPAGESIZE */
8522 extern "C
" { void *malloc(unsigned); }
8530 char *data, *data2, *data3;
8534 pagesize = getpagesize();
8537 * First, make a file with some known garbage in it.
8539 data = malloc(pagesize);
8542 for (i = 0; i < pagesize; ++i)
8543 *(data + i) = rand();
8545 fd = creat("conftestmmap
", 0600);
8548 if (write(fd, data, pagesize) != pagesize)
8553 * Next, try to mmap the file at a fixed address which
8554 * already has something else allocated at it. If we can,
8555 * also make sure that we see the same garbage.
8557 fd = open("conftestmmap
", O_RDWR);
8560 data2 = malloc(2 * pagesize);
8563 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8564 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8565 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8567 for (i = 0; i < pagesize; ++i)
8568 if (*(data + i) != *(data2 + i))
8572 * Finally, make sure that changes to the mapped area
8573 * do not percolate back to the file as seen by read().
8574 * (This is a bug on some variants of i386 svr4.0.)
8576 for (i = 0; i < pagesize; ++i)
8577 *(data2 + i) = *(data2 + i) + 1;
8578 data3 = malloc(pagesize);
8581 if (read(fd, data3, pagesize) != pagesize)
8583 for (i = 0; i < pagesize; ++i)
8584 if (*(data + i) != *(data3 + i))
8587 unlink("conftestmmap
");
8592 if { (eval echo configure:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8594 ac_cv_func_mmap_fixed_mapped=yes
8596 echo "configure
: failed program was
:" >&5
8597 cat conftest.$ac_ext >&5
8599 ac_cv_func_mmap_fixed_mapped=no
8606 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8607 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8608 cat >> confdefs.h <<\EOF
8617 # Extract the first word of "$ac_prog", so it can be a program name with args.
8618 set dummy $ac_prog; ac_word=$2
8619 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
8620 echo "configure
:8621: checking
for $ac_word" >&5
8621 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8622 echo $ac_n "(cached
) $ac_c" 1>&6
8624 if test -n "$PERL"; then
8625 ac_cv_prog_PERL="$PERL" # Let the user override the test.
8627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8629 for ac_dir in $ac_dummy; do
8630 test -z "$ac_dir" && ac_dir=.
8631 if test -f $ac_dir/$ac_word; then
8632 ac_cv_prog_PERL="$ac_prog"
8639 PERL="$ac_cv_prog_PERL"
8640 if test -n "$PERL"; then
8641 echo "$ac_t""$PERL" 1>&6
8643 echo "$ac_t""no
" 1>&6
8646 test -n "$PERL" && break
8648 test -n "$PERL" || PERL="false
"
8656 SIGNAL_HANDLER=include/i386-signal.h
8658 sparc*-sun-solaris*)
8659 SIGNAL_HANDLER=include/sparc-signal.h
8662 # SYSDEP_SOURCES=sysdep/ia64.c
8663 # test -d sysdep || mkdir sysdep
8666 SIGNAL_HANDLER=include/dwarf2-signal.h
8669 SIGNAL_HANDLER=include/powerpc-signal.h
8672 SIGNAL_HANDLER=include/dwarf2-signal.h
8675 SIGNAL_HANDLER=include/s390-signal.h
8678 SIGNAL_HANDLER=include/x86_64-signal.h
8679 SIGNAL_HANDLER_AUX=include/i386-signal.h
8682 SIGNAL_HANDLER=include/dwarf2-signal.h
8684 sh-*-linux* | sh[34]*-*-linux*)
8685 SIGNAL_HANDLER=include/dwarf2-signal.h
8688 SIGNAL_HANDLER=include/win32-signal.h
8691 SIGNAL_HANDLER=include/mips-signal.h
8694 SIGNAL_HANDLER=include/default-signal.h
8698 # If we're using sjlj exceptions, forget what we just learned.
8699 if test "$enable_sjlj_exceptions" = yes; then
8700 SIGNAL_HANDLER=include/default-signal.h
8704 # Define here any compiler flags that you need in order to make backtrace() work.
8707 x86_64*-*-linux*|i?86-*)
8708 BACKTRACESPEC=-fno-omit-frame-pointer
8715 if test -z "$SIGNAL_HANDLER_AUX"; then
8716 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
8721 if test "${multilib}" = "yes"; then
8722 multilib_arg="--enable-multilib"
8729 here=`${PWDCMD-pwd}`
8732 # We get this from the environment.
8736 cat > confcache <<\EOF
8737 # This file is a shell script that caches the results of configure
8738 # tests run on this system so they can be shared between configure
8739 # scripts and configure runs. It is not useful on other systems.
8740 # If it contains results you don't want to keep, you may remove or edit it.
8742 # By default, configure uses ./config.cache as the cache file,
8743 # creating it if it does not exist already. You can give configure
8744 # the --cache-file=FILE option to use a different cache file; that is
8745 # what configure does when it calls configure scripts in
8746 # subdirectories, so they share the cache.
8747 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8748 # config.status only pays attention to the cache file if you give it the
8749 # --recheck option to rerun configure.
8752 # The following way of writing the cache mishandles newlines in values,
8753 # but we know of no workaround that is simple, portable, and efficient.
8754 # So, don't put newlines in cache variables' values.
8755 # Ultrix sh set writes to stderr and can't be redirected directly,
8756 # and sets the high bit in the cache file unless we assign to the vars.
8758 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8760 # `set' does not quote correctly, so add quotes (double-quote substitution
8761 # turns \\\\ into \\, and sed turns \\ into \).
8763 -e "s
/'/'\\\\''/g
" \
8764 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
8767 # `set' quotes correctly as required by POSIX, so do not add quotes.
8768 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8771 if cmp -s $cache_file confcache; then
8774 if test -w $cache_file; then
8775 echo "updating cache
$cache_file"
8776 cat confcache > $cache_file
8778 echo "not updating unwritable cache
$cache_file"
8783 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8785 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
8786 # Let make expand exec_prefix.
8787 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
8789 # Any assignment to VPATH causes Sun make to only execute
8790 # the first set of double-colon rules, so remove it if not needed.
8791 # If there is a colon in the path, we need to keep it.
8792 if test "x
$srcdir" = x.; then
8793 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8796 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8798 DEFS=-DHAVE_CONFIG_H
8800 # Without the ".
/", some shells look in PATH for config.status.
8801 : ${CONFIG_STATUS=./config.status}
8803 echo creating $CONFIG_STATUS
8804 rm -f $CONFIG_STATUS
8805 cat > $CONFIG_STATUS <<EOF
8807 # Generated automatically by configure.
8808 # Run this file to recreate the current configuration.
8809 # This directory was configured as follows,
8810 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8812 # $0 $ac_configure_args
8814 # Compiler output produced by configure, useful for debugging
8815 # configure, is in ./config.log if it exists.
8817 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
8820 case "\
$ac_option" in
8821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8822 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8823 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8824 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8825 echo "$CONFIG_STATUS generated by autoconf version
2.13"
8827 -help | --help | --hel | --he | --h)
8828 echo "\
$ac_cs_usage"; exit 0 ;;
8829 *) echo "\
$ac_cs_usage"; exit 1 ;;
8833 ac_given_srcdir=$srcdir
8834 ac_given_INSTALL="$INSTALL"
8836 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
8838 cat >> $CONFIG_STATUS <<EOF
8840 # Protect against being on the right side of a sed subst in config.status.
8841 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8842 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8846 s%@CFLAGS@%$CFLAGS%g
8847 s%@CPPFLAGS@%$CPPFLAGS%g
8848 s%@CXXFLAGS@%$CXXFLAGS%g
8849 s%@FFLAGS@%$FFLAGS%g
8851 s%@LDFLAGS@%$LDFLAGS%g
8853 s%@exec_prefix@%$exec_prefix%g
8854 s%@prefix@%$prefix%g
8855 s%@program_transform_name@%$program_transform_name%g
8856 s%@bindir@%$bindir%g
8857 s%@sbindir@%$sbindir%g
8858 s%@libexecdir@%$libexecdir%g
8859 s%@datadir@%$datadir%g
8860 s%@sysconfdir@%$sysconfdir%g
8861 s%@sharedstatedir@%$sharedstatedir%g
8862 s%@localstatedir@%$localstatedir%g
8863 s%@libdir@%$libdir%g
8864 s%@includedir@%$includedir%g
8865 s%@oldincludedir@%$oldincludedir%g
8866 s%@infodir@%$infodir%g
8867 s%@mandir@%$mandir%g
8869 s%@libgcj_basedir@%$libgcj_basedir%g
8870 s%@mkinstalldirs@%$mkinstalldirs%g
8872 s%@host_alias@%$host_alias%g
8873 s%@host_cpu@%$host_cpu%g
8874 s%@host_vendor@%$host_vendor%g
8875 s%@host_os@%$host_os%g
8876 s%@target@%$target%g
8877 s%@target_alias@%$target_alias%g
8878 s%@target_cpu@%$target_cpu%g
8879 s%@target_vendor@%$target_vendor%g
8880 s%@target_os@%$target_os%g
8882 s%@build_alias@%$build_alias%g
8883 s%@build_cpu@%$build_cpu%g
8884 s%@build_vendor@%$build_vendor%g
8885 s%@build_os@%$build_os%g
8887 s%@glibjava_CXX@%$glibjava_CXX%g
8889 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8890 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8891 s%@INSTALL_DATA@%$INSTALL_DATA%g
8892 s%@PACKAGE@%$PACKAGE%g
8893 s%@VERSION@%$VERSION%g
8894 s%@ACLOCAL@%$ACLOCAL%g
8895 s%@AUTOCONF@%$AUTOCONF%g
8896 s%@AUTOMAKE@%$AUTOMAKE%g
8897 s%@AUTOHEADER@%$AUTOHEADER%g
8898 s%@MAKEINFO@%$MAKEINFO%g
8899 s%@SET_MAKE@%$SET_MAKE%g
8902 s%@RANLIB@%$RANLIB%g
8903 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8904 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8906 s%@EXEEXT@%$EXEEXT%g
8907 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
8908 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
8909 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
8910 s%@INCLTDL@%$INCLTDL%g
8911 s%@LIBLTDL@%$LIBLTDL%g
8912 s%@DIRLTDL@%$DIRLTDL%g
8913 s%@OBJEXT@%$OBJEXT%g
8915 s%@LIBTOOL@%$LIBTOOL%g
8916 s%@CXXCPP@%$CXXCPP%g
8917 s%@subdirs@%$subdirs%g
8918 s%@COMPPATH@%$COMPPATH%g
8919 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
8920 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
8921 s%@ONESTEP_TRUE@%$ONESTEP_TRUE%g
8922 s%@ONESTEP_FALSE@%$ONESTEP_FALSE%g
8923 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
8924 s%@INTERPRETER@%$INTERPRETER%g
8925 s%@LIBFFI@%$LIBFFI%g
8926 s%@LIBFFIINCS@%$LIBFFIINCS%g
8927 s%@EXTRA_CC_FILES@%$EXTRA_CC_FILES%g
8928 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
8930 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
8931 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
8932 s%@ZLIBSPEC@%$ZLIBSPEC%g
8933 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
8934 s%@X_CFLAGS@%$X_CFLAGS%g
8935 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8936 s%@X_LIBS@%$X_LIBS%g
8937 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8938 s%@TOOLKIT@%$TOOLKIT%g
8939 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
8940 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
8941 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
8942 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
8943 s%@GTK_CAIRO_TRUE@%$GTK_CAIRO_TRUE%g
8944 s%@GTK_CAIRO_FALSE@%$GTK_CAIRO_FALSE%g
8945 s%@PKG_CONFIG@%$PKG_CONFIG%g
8946 s%@CAIRO_CFLAGS@%$CAIRO_CFLAGS%g
8947 s%@CAIRO_LIBS@%$CAIRO_LIBS%g
8948 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
8949 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
8950 s%@GCLIBS@%$GCLIBS%g
8951 s%@GCINCS@%$GCINCS%g
8952 s%@GCDEPS@%$GCDEPS%g
8953 s%@GCOBJS@%$GCOBJS%g
8954 s%@GCSPEC@%$GCSPEC%g
8955 s%@JC1GCSPEC@%$JC1GCSPEC%g
8956 s%@GCTESTSPEC@%$GCTESTSPEC%g
8957 s%@THREADLIBS@%$THREADLIBS%g
8958 s%@THREADINCS@%$THREADINCS%g
8959 s%@THREADDEPS@%$THREADDEPS%g
8960 s%@THREADOBJS@%$THREADOBJS%g
8961 s%@THREADSPEC@%$THREADSPEC%g
8962 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
8963 s%@THREADCXXFLAGS@%$THREADCXXFLAGS%g
8964 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
8965 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
8966 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
8967 s%@tool_include_dir@%$tool_include_dir%g
8968 s%@gcc_version@%$gcc_version%g
8969 s%@LIBICONV@%$LIBICONV%g
8970 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8971 s%@GTK_LIBS@%$GTK_LIBS%g
8972 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8973 s%@GLIB_LIBS@%$GLIB_LIBS%g
8974 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
8975 s%@LIBART_LIBS@%$LIBART_LIBS%g
8977 s%@GCJFLAGS@%$GCJFLAGS%g
8979 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
8981 s%@DIVIDESPEC@%$DIVIDESPEC%g
8982 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
8983 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
8984 s%@IEEESPEC@%$IEEESPEC%g
8985 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
8986 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
8987 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
8988 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
8989 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
8990 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
8991 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
8992 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
8993 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
8994 s%@toolexecdir@%$toolexecdir%g
8995 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
8996 s%@toolexeclibdir@%$toolexeclibdir%g
8997 s%@GCJVERSION@%$GCJVERSION%g
8998 s%@ALLOCA@%$ALLOCA%g
9000 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
9001 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
9007 cat >> $CONFIG_STATUS <<\EOF
9009 # Split the substitutions into bite-sized pieces for seds with
9010 # small command number limits, like on Digital OSF/1 and HP-UX.
9011 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9012 ac_file=1 # Number of current file.
9013 ac_beg=1 # First line for current file.
9014 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9017 while $ac_more_lines; do
9018 if test $ac_beg -gt 1; then
9019 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
9021 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
9023 if test ! -s conftest.s$ac_file; then
9025 rm -f conftest.s$ac_file
9027 if test -z "$ac_sed_cmds"; then
9028 ac_sed_cmds="sed -f conftest.s
$ac_file"
9030 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
9032 ac_file=`expr $ac_file + 1`
9034 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9037 if test -z "$ac_sed_cmds"; then
9042 cat >> $CONFIG_STATUS <<EOF
9044 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
9046 cat >> $CONFIG_STATUS <<\EOF
9047 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
9048 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
9050 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9051 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9052 *) ac_file_in="${ac_file}.
in" ;;
9055 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9057 # Remove last slash and all that follows it. Not all systems have dirname.
9058 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9059 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9060 # The file is in a subdirectory.
9061 test ! -d "$ac_dir" && mkdir "$ac_dir"
9062 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9063 # A "..
/" for each directory in $ac_dir_suffix.
9064 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9066 ac_dir_suffix= ac_dots=
9069 case "$ac_given_srcdir" in
9071 if test -z "$ac_dots"; then top_srcdir=.
9072 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9073 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9075 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9076 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9079 case "$ac_given_INSTALL" in
9080 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9081 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9084 echo creating "$ac_file"
9086 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
9088 *Makefile*) ac_comsub="1i
\\
9089 # $configure_input" ;;
9093 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9095 s%@configure_input@%$configure_input%g
9096 s%@srcdir@%$srcdir%g
9097 s%@top_srcdir@%$top_srcdir%g
9098 s%@INSTALL@%$INSTALL%g
9099 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9103 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9104 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9106 # ac_d sets the value in "#define NAME VALUE" lines.
9107 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9108 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9111 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9112 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9113 ac_uB
='\([ ]\)%\1#\2define\3'
9116 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9117 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9118 ac_eB
='$%\1#\2define\3'
9122 if test "${CONFIG_HEADERS+set}" != set; then
9124 cat >> $CONFIG_STATUS <<EOF
9125 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
9127 cat >> $CONFIG_STATUS <<\EOF
9129 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9132 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9133 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9134 *) ac_file_in
="${ac_file}.in" ;;
9137 echo creating
$ac_file
9139 rm -f conftest.frag conftest.
in conftest.out
9140 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9141 cat $ac_file_inputs > conftest.
in
9145 # Transform confdefs.h into a sed script conftest.vals that substitutes
9146 # the proper values into config.h.in to produce config.h. And first:
9147 # Protect against being on the right side of a sed subst in config.status.
9148 # Protect against being in an unquoted here document in config.status.
9150 cat > conftest.hdr
<<\EOF
9153 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9157 sed -n -f conftest.hdr confdefs.h > conftest.vals
9160 # This sed command replaces #undef with comments. This is necessary, for
9161 # example, in the case of _POSIX_SOURCE, which is predefined and required
9162 # on some systems where configure will not decide to define it.
9163 cat >> conftest.vals <<\EOF
9164 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9167 # Break up conftest.vals because some shells have a limit on
9168 # the size of here documents, and old seds have small limits too.
9173 ac_lines=`grep -c . conftest.vals
`
9174 # grep -c gives empty output for an empty file on some AIX systems.
9175 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9176 # Write a limited-size here document to conftest.frag.
9177 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9178 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9180 sed -f conftest.frag conftest.in > conftest.out
9182 mv conftest.out conftest.in
9184 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9186 mv conftest.tail conftest.vals
9190 cat >> $CONFIG_STATUS <<\EOF
9191 rm -f conftest.frag conftest.h
9192 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9193 cat conftest.in >> conftest.h
9195 if cmp -s $ac_file conftest.h 2>/dev/null; then
9196 echo "$ac_file is unchanged"
9199 # Remove last slash and all that follows it. Not all systems have dirname.
9200 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9201 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9202 # The file is in a subdirectory.
9203 test ! -d "$ac_dir" && mkdir "$ac_dir"
9206 mv conftest.h $ac_file
9212 cat >> $CONFIG_STATUS <<EOF
9213 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"
9214 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"
9217 cat >> $CONFIG_STATUS <<\EOF
9218 srcdir=$ac_given_srcdir
9219 while test -n "$ac_sources"; do
9220 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9221 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9223 echo "linking $srcdir/$ac_source to $ac_dest"
9225 if test ! -r $srcdir/$ac_source; then
9226 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9230 # Make relative symlinks.
9231 # Remove last slash and all that follows it. Not all systems have dirname.
9232 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9233 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9234 # The dest file is in a subdirectory.
9235 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9236 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9237 # A "../" for each directory in $ac_dest_dir_suffix.
9238 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9240 ac_dest_dir_suffix= ac_dots=
9244 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9245 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9248 # Make a symlink if possible; otherwise try a hard link.
9249 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9250 ln $srcdir/$ac_source $ac_dest; then :
9252 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9256 cat >> $CONFIG_STATUS <<EOF
9261 with_multisubdir=${with_multisubdir}
9262 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9263 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9264 libgcj_basedir=${libgcj_basedir}
9267 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9270 cat >> $CONFIG_STATUS <<\EOF
9272 for am_file in include/config.h gcj/libgcj-config.h; do
9273 case " $CONFIG_HEADERS " in
9275 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9278 am_indx=`expr "$am_indx" + 1`
9280 # Only add multilib support code if we just rebuilt top-level Makefile.
9281 case " $CONFIG_FILES " in
9283 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9284 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9288 # Make subdirectories and `.d
' files. Look in both srcdir and
9289 # builddir for the .java files.
9292 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) ;
9293 find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) | \
9294 fgrep -v testsuite | \
9295 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/'\;'s
/\.c
/.d
/' | \
9297 echo "include $f" >> deps.mk
9300 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
9302 if test ! -d $d; then
9303 $libgcj_basedir/../mkinstalldirs $d
9311 chmod +x $CONFIG_STATUS
9312 rm -fr confdefs* $ac_clean_files
9313 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9315 if test "$no_recursion" != yes; then
9317 # Remove --cache-file and --srcdir arguments so they do not pile up.
9318 ac_sub_configure_args=
9320 for ac_arg in $ac_configure_args; do
9321 if test -n "$ac_prev"; then
9326 -cache-file | --cache-file | --cache-fil | --cache-fi \
9327 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9328 ac_prev=cache_file ;;
9329 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9330 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9336 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9340 for ac_config_dir in $DIRLTDL; do
9342 # Do not complain, so a configure script can configure whichever
9343 # parts of a large source tree are present.
9344 if test ! -d $srcdir/$ac_config_dir; then
9348 echo configuring in $ac_config_dir
9353 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9355 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9363 # A "../" for each directory in /$ac_config_dir.
9364 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
9367 .) # No --srcdir option. We are building in place.
9368 ac_sub_srcdir=$srcdir ;;
9369 /*) # Absolute path.
9370 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9372 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9375 # Check for guested configure; otherwise get Cygnus style configure.
9376 if test -f $ac_sub_srcdir/configure; then
9377 ac_sub_configure=$ac_sub_srcdir/configure
9378 elif test -f $ac_sub_srcdir/configure.in; then
9379 ac_sub_configure=$ac_configure
9381 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9385 # The recursion is here.
9386 if test -n "$ac_sub_configure"; then
9388 # Make the cache file name correct relative to the subdirectory.
9389 case "$cache_file" in
9390 /*) ac_sub_cache_file=$cache_file ;;
9392 ac_sub_cache_file="$ac_dots$cache_file" ;;
9394 case "$ac_given_INSTALL" in
9395 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9396 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9399 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9400 # The eval makes quoting arguments work.
9401 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9404 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }