3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --with-newlib Configuring with newlib"
22 --enable-multilib build many library versions (default)"
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
29 --enable-static[=PKGS] build static libraries [default=yes]"
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
35 --disable-libtool-lock avoid locking (might break parallel builds)"
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 use global hash table for monitor locks"
45 --enable-libgcj-multifile
46 allow compilation of several files at once"
48 --enable-libgcj-debug enable runtime debugging code"
50 --enable-interpreter enable interpreter"
52 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
54 --disable-java-net disable java.net"
56 --without-libffi don't use libffi"
58 --disable-jvmpi disable JVMPI support"
60 --with-ecos enable runtime eCos target support"
62 --with-system-zlib use installed libz"
64 --with-x use the X Window System"
66 --enable-java-awt list of AWT peer implementations to be built"
68 --enable-java-gc=TYPE choose garbage collector [boehm]"
70 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
72 --disable-gtktest do not try to compile and run a test GTK+ program"
74 --disable-glibtest do not try to compile and run a test GLIB program"
76 --with-libart-prefix=PFX Prefix where LIBART is installed (optional)"
78 --with-libart-exec-prefix=PFX Exec prefix where LIBART is installed (optional)"
80 --disable-libarttest Do not try to compile and run a test LIBART program"
82 # Initialize some variables set by options.
83 # The variables have the same names as the options, with
84 # dashes changed to underlines.
86 cache_file
=.
/config.cache
95 program_transform_name
=s
,x
,x
,
103 bindir
='${exec_prefix}/bin'
104 sbindir
='${exec_prefix}/sbin'
105 libexecdir
='${exec_prefix}/libexec'
106 datadir
='${prefix}/share'
107 sysconfdir
='${prefix}/etc'
108 sharedstatedir
='${prefix}/com'
109 localstatedir
='${prefix}/var'
110 libdir
='${exec_prefix}/lib'
111 includedir
='${prefix}/include'
112 oldincludedir
='/usr/include'
113 infodir
='${prefix}/info'
114 mandir
='${prefix}/man'
116 # Initialize some other variables.
119 SHELL
=${CONFIG_SHELL-/bin/sh}
120 # Maximum number of lines to put in a shell here document.
127 # If the previous option needs an argument, assign it.
128 if test -n "$ac_prev"; then
129 eval "$ac_prev=\$ac_option"
135 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
139 # Accept the important Cygnus configure options, so we can diagnose typos.
143 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
145 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
146 bindir
="$ac_optarg" ;;
148 -build |
--build |
--buil |
--bui |
--bu)
150 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
151 build
="$ac_optarg" ;;
153 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
154 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
155 ac_prev
=cache_file
;;
156 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
157 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
158 cache_file
="$ac_optarg" ;;
160 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
162 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
164 datadir
="$ac_optarg" ;;
166 -disable-* |
--disable-*)
167 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}=no" ;;
175 -enable-* |
--enable-*)
176 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
186 eval "enable_${ac_feature}='$ac_optarg'" ;;
188 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
189 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
190 |
--exec |
--exe |
--ex)
191 ac_prev
=exec_prefix
;;
192 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
193 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
194 |
--exec=* |
--exe=* |
--ex=*)
195 exec_prefix
="$ac_optarg" ;;
197 -gas |
--gas |
--ga |
--g)
198 # Obsolete; use --with-gas.
201 -help |
--help |
--hel |
--he)
202 # Omit some internal or obsolete options to make the list less imposing.
203 # This message is too long to be a string in the A/UX 3.1 sh.
205 Usage: configure [options] [host]
206 Options: [defaults in brackets after descriptions]
208 --cache-file=FILE cache test results in FILE
209 --help print this message
210 --no-create do not create output files
211 --quiet, --silent do not print \`checking...' messages
212 --version print the version of autoconf that created configure
213 Directory and file names:
214 --prefix=PREFIX install architecture-independent files in PREFIX
216 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
218 --bindir=DIR user executables in DIR [EPREFIX/bin]
219 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
220 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
221 --datadir=DIR read-only architecture-independent data in DIR
223 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
224 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
227 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
228 --includedir=DIR C header files in DIR [PREFIX/include]
229 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
230 --infodir=DIR info documentation in DIR [PREFIX/info]
231 --mandir=DIR man documentation in DIR [PREFIX/man]
232 --srcdir=DIR find the sources in DIR [configure dir or ..]
233 --program-prefix=PREFIX prepend PREFIX to installed program names
234 --program-suffix=SUFFIX append SUFFIX to installed program names
235 --program-transform-name=PROGRAM
236 run sed PROGRAM on installed program names
240 --build=BUILD configure for building on BUILD [BUILD=HOST]
241 --host=HOST configure for HOST [guessed]
242 --target=TARGET configure for TARGET [TARGET=HOST]
243 Features and packages:
244 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
245 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
246 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
247 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
248 --x-includes=DIR X include files are in DIR
249 --x-libraries=DIR X library files are in DIR
251 if test -n "$ac_help"; then
252 echo "--enable and --with options recognized:$ac_help"
256 -host |
--host |
--hos |
--ho)
258 -host=* |
--host=* |
--hos=* |
--ho=*)
261 -includedir |
--includedir |
--includedi |
--included |
--include \
262 |
--includ |
--inclu |
--incl |
--inc)
263 ac_prev
=includedir
;;
264 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
265 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
266 includedir
="$ac_optarg" ;;
268 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
270 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
271 infodir
="$ac_optarg" ;;
273 -libdir |
--libdir |
--libdi |
--libd)
275 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
276 libdir
="$ac_optarg" ;;
278 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
279 |
--libexe |
--libex |
--libe)
280 ac_prev
=libexecdir
;;
281 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
282 |
--libexe=* |
--libex=* |
--libe=*)
283 libexecdir
="$ac_optarg" ;;
285 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
286 |
--localstate |
--localstat |
--localsta |
--localst \
287 |
--locals |
--local |
--loca |
--loc |
--lo)
288 ac_prev
=localstatedir
;;
289 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
290 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
291 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
292 localstatedir
="$ac_optarg" ;;
294 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
296 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
297 mandir
="$ac_optarg" ;;
300 # Obsolete; use --without-fp.
303 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
307 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
308 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
311 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
312 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
313 |
--oldin |
--oldi |
--old |
--ol |
--o)
314 ac_prev
=oldincludedir
;;
315 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
316 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
317 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
318 oldincludedir
="$ac_optarg" ;;
320 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
322 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
323 prefix
="$ac_optarg" ;;
325 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
326 |
--program-pre |
--program-pr |
--program-p)
327 ac_prev
=program_prefix
;;
328 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
329 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
330 program_prefix
="$ac_optarg" ;;
332 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
333 |
--program-suf |
--program-su |
--program-s)
334 ac_prev
=program_suffix
;;
335 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
336 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
337 program_suffix
="$ac_optarg" ;;
339 -program-transform-name |
--program-transform-name \
340 |
--program-transform-nam |
--program-transform-na \
341 |
--program-transform-n |
--program-transform- \
342 |
--program-transform |
--program-transfor \
343 |
--program-transfo |
--program-transf \
344 |
--program-trans |
--program-tran \
345 |
--progr-tra |
--program-tr |
--program-t)
346 ac_prev
=program_transform_name
;;
347 -program-transform-name=* |
--program-transform-name=* \
348 |
--program-transform-nam=* |
--program-transform-na=* \
349 |
--program-transform-n=* |
--program-transform-=* \
350 |
--program-transform=* |
--program-transfor=* \
351 |
--program-transfo=* |
--program-transf=* \
352 |
--program-trans=* |
--program-tran=* \
353 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
354 program_transform_name
="$ac_optarg" ;;
356 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
357 |
-silent |
--silent |
--silen |
--sile |
--sil)
360 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
362 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
364 sbindir
="$ac_optarg" ;;
366 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
367 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
368 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
370 ac_prev
=sharedstatedir
;;
371 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
372 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
373 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
375 sharedstatedir
="$ac_optarg" ;;
377 -site |
--site |
--sit)
379 -site=* |
--site=* |
--sit=*)
382 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
384 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
385 srcdir
="$ac_optarg" ;;
387 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
388 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
389 ac_prev
=sysconfdir
;;
390 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
391 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
392 sysconfdir
="$ac_optarg" ;;
394 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
396 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
397 target
="$ac_optarg" ;;
399 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
402 -version |
--version |
--versio |
--versi |
--vers)
403 echo "configure generated by autoconf version 2.13"
407 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}='$ac_optarg'" ;;
419 -without-* |
--without-*)
420 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
423 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 ac_package
=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}=no" ;;
429 # Obsolete; use --with-x.
432 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
433 |
--x-incl |
--x-inc |
--x-in |
--x-i)
434 ac_prev
=x_includes
;;
435 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
436 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
437 x_includes
="$ac_optarg" ;;
439 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
440 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
441 ac_prev
=x_libraries
;;
442 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
443 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
444 x_libraries
="$ac_optarg" ;;
446 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
450 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
451 echo "configure: warning: $ac_option: invalid host type" 1>&2
453 if test "x$nonopt" != xNONE
; then
454 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 if test -n "$ac_prev"; then
463 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
466 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468 # File descriptor usage:
471 # 2 errors and warnings
472 # 3 some systems may open it to /dev/tty
473 # 4 used on the Kubota Titan
474 # 6 checking for... messages and results
475 # 5 compiler messages saved in config.log
476 if test "$silent" = yes; then
484 This file contains any messages produced by compilers while
485 running configure, to aid debugging if configure makes a mistake.
488 # Strip out --no-create and --no-recursion so they do not pile up.
489 # Also quote any args containing shell metacharacters.
494 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
495 |
--no-cr |
--no-c) ;;
496 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
497 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
498 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
499 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
500 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
505 # Only set these to C if already set. These must not be set unconditionally
506 # because not all systems understand e.g. LANG=C (notably SCO).
507 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
508 # Non-C LC_CTYPE values break the ctype check.
509 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
510 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
511 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
512 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
514 # confdefs.h avoids OS command line length limits that DEFS can exceed.
515 rm -rf conftest
* confdefs.h
516 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
519 # A filename unique to this package, relative to the directory that
520 # configure is in, which we can look for to find out if srcdir is correct.
521 ac_unique_file
=java
/lang
/System.java
523 # Find the source files, if location was not specified.
524 if test -z "$srcdir"; then
525 ac_srcdir_defaulted
=yes
526 # Try the directory containing this script, then its parent.
528 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
529 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
531 if test ! -r $srcdir/$ac_unique_file; then
535 ac_srcdir_defaulted
=no
537 if test ! -r $srcdir/$ac_unique_file; then
538 if test "$ac_srcdir_defaulted" = yes; then
539 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
544 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546 # Prefer explicitly selected file to automatically selected ones.
547 if test -z "$CONFIG_SITE"; then
548 if test "x$prefix" != xNONE
; then
549 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
551 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
554 for ac_site_file
in $CONFIG_SITE; do
555 if test -r "$ac_site_file"; then
556 echo "loading site script $ac_site_file"
561 if test -r "$cache_file"; then
562 echo "loading cache $cache_file"
565 echo "creating cache $cache_file"
570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
571 ac_cpp
='$CPP $CPPFLAGS'
572 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
573 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
574 cross_compiling
=$ac_cv_prog_cc_cross
578 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
579 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
580 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
587 ac_n
= ac_c
='\c' ac_t
=
592 # This works around the fact that libtool configuration may change LD
593 # for this particular configuration, but some shells, instead of
594 # keeping the changes in LD private, export them just because LD is
596 ORIGINAL_LD_FOR_MULTILIBS
=$LD
598 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
599 echo "configure:600: checking whether ln -s works" >&5
600 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&6
604 if ln -s X conftestdata
2>/dev
/null
607 ac_cv_prog_LN_S
="ln -s"
612 LN_S
="$ac_cv_prog_LN_S"
613 if test "$ac_cv_prog_LN_S" = "ln -s"; then
614 echo "$ac_t""yes" 1>&6
616 echo "$ac_t""no" 1>&6
620 # Check whether --with-target-subdir or --without-target-subdir was given.
621 if test "${with_target_subdir+set}" = set; then
622 withval
="$with_target_subdir"
626 # Check whether --with-cross-host or --without-cross-host was given.
627 if test "${with_cross_host+set}" = set; then
628 withval
="$with_cross_host"
633 # Check whether --with-newlib or --without-newlib was given.
634 if test "${with_newlib+set}" = set; then
635 withval
="$with_newlib"
640 # Find a good install program. We prefer a C program (faster),
641 # so one script is as good as another. But avoid the broken or
642 # incompatible versions:
643 # SysV /etc/install, /usr/sbin/install
644 # SunOS /usr/etc/install
647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
650 # ./install, which can be erroneously created by make from ./install.sh.
651 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
652 echo "configure:653: checking for a BSD compatible install" >&5
653 if test -z "$INSTALL"; then
654 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
658 for ac_dir
in $PATH; do
659 # Account for people who put trailing slashes in PATH elements.
661 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
663 # OSF1 and SCO ODT 3.0 have their own names for install.
664 # Don't use installbsd from OSF since it installs stuff as root
666 for ac_prog
in ginstall scoinst
install; do
667 if test -f $ac_dir/$ac_prog; then
668 if test $ac_prog = install &&
669 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
670 # AIX install. It has an incompatible calling convention.
673 ac_cv_path_install
="$ac_dir/$ac_prog -c"
684 if test "${ac_cv_path_install+set}" = set; then
685 INSTALL
="$ac_cv_path_install"
687 # As a last resort, use the slow shell script. We don't cache a
688 # path for INSTALL within a source directory, because that will
689 # break other packages using the cache if that directory is
690 # removed, or if the path is relative.
691 INSTALL
="$ac_install_sh"
694 echo "$ac_t""$INSTALL" 1>&6
696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
697 # It thinks the first close brace ends the variable substitution.
698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
702 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
704 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
705 echo "configure:706: checking whether build environment is sane" >&5
708 echo timestamp
> conftestfile
709 # Do `set' in a subshell so we don't clobber the current shell's
710 # arguments. Must try -L first in case configure is actually a
711 # symlink; some systems play weird games with the mod time of symlinks
712 # (eg FreeBSD returns the mod time of the symlink's containing
715 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
716 if test "$*" = "X"; then
718 set X
`ls -t $srcdir/configure conftestfile`
720 if test "$*" != "X $srcdir/configure conftestfile" \
721 && test "$*" != "X conftestfile $srcdir/configure"; then
723 # If neither matched, then we have a broken ls. This can happen
724 # if, for instance, CONFIG_SHELL is bash and it inherits a
725 # broken ls alias from the environment. This has actually
726 # happened. Such a system could not be considered "sane".
727 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
728 alias in your environment" 1>&2; exit 1; }
731 test "$2" = conftestfile
737 { echo "configure: error: newly created file is older than distributed files!
738 Check your system clock" 1>&2; exit 1; }
741 echo "$ac_t""yes" 1>&6
742 if test "$program_transform_name" = s
,x
,x
,; then
743 program_transform_name
=
745 # Double any \ or $. echo might interpret backslashes.
746 cat <<\EOF_SED
> conftestsed
747 s
,\\,\\\\,g
; s
,\$
,$$
,g
749 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
752 test "$program_prefix" != NONE
&&
753 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
754 # Use a double $ so make ignores it.
755 test "$program_suffix" != NONE
&&
756 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
758 # sed with no file args requires a program.
759 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
761 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
762 echo "configure:763: checking whether ${MAKE-make} sets \${MAKE}" >&5
763 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
764 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
767 cat > conftestmake
<<\EOF
769 @
echo 'ac_maketemp="${MAKE}"'
771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
772 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
773 if test -n "$ac_maketemp"; then
774 eval ac_cv_prog_make_
${ac_make}_set
=yes
776 eval ac_cv_prog_make_
${ac_make}_set
=no
780 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
781 echo "$ac_t""yes" 1>&6
784 echo "$ac_t""no" 1>&6
785 SET_MAKE
="MAKE=${MAKE-make}"
788 if test $host != $build; then
789 ac_tool_prefix
=${host_alias}-
794 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
795 echo "configure:796: checking for Cygwin environment" >&5
796 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 cat > conftest.
$ac_ext <<EOF
800 #line 801 "configure"
801 #include "confdefs.h"
806 #define __CYGWIN__ __CYGWIN32__
811 if { (eval echo configure
:812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
815 echo "configure: failed program was:" >&5
816 cat conftest.
$ac_ext >&5
824 echo "$ac_t""$ac_cv_cygwin" 1>&6
826 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
827 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
828 echo "configure:829: checking for mingw32 environment" >&5
829 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 cat > conftest.
$ac_ext <<EOF
833 #line 834 "configure"
834 #include "confdefs.h"
840 if { (eval echo configure
:841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
844 echo "configure: failed program was:" >&5
845 cat conftest.
$ac_ext >&5
853 echo "$ac_t""$ac_cv_mingw32" 1>&6
855 test "$ac_cv_mingw32" = yes && MINGW32
=yes
857 # Check whether --enable-multilib or --disable-multilib was given.
858 if test "${enable_multilib+set}" = set; then
859 enableval
="$enable_multilib"
860 case "${enableval}" in
863 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
870 # When building with srcdir == objdir, links to the source files will
871 # be created in directories within the target_subdir. We have to
872 # adjust toplevel_srcdir accordingly, so that configure finds
873 # install-sh and other auxiliary files that live in the top-level
875 if test "${srcdir}" = "."; then
876 if test -z "${with_target_subdir}"; then
879 if test "${with_target_subdir}" != "."; then
880 toprel
="${with_multisrctop}../.."
882 toprel
="${with_multisrctop}.."
889 libgcj_basedir
=$srcdir/$toprel/.
/libjava
893 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
894 if test -f $ac_dir/install-sh
; then
896 ac_install_sh
="$ac_aux_dir/install-sh -c"
898 elif test -f $ac_dir/install.sh
; then
900 ac_install_sh
="$ac_aux_dir/install.sh -c"
904 if test -z "$ac_aux_dir"; then
905 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
907 ac_config_guess=$ac_aux_dir/config.guess
908 ac_config_sub=$ac_aux_dir/config.sub
909 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
912 # This overrides the previous occurrence for automake, but not for
913 # autoconf, which is exactly what we want.
915 for ac_dir in .. $srcdir/..; do
916 if test -f $ac_dir/install-sh; then
918 ac_install_sh="$ac_aux_dir/install-sh
-c"
920 elif test -f $ac_dir/install.sh; then
922 ac_install_sh="$ac_aux_dir/install.sh
-c"
926 if test -z "$ac_aux_dir"; then
927 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
929 ac_config_guess=$ac_aux_dir/config.guess
930 ac_config_sub=$ac_aux_dir/config.sub
931 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
935 # This works around an automake problem.
936 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs
"
940 # Do some error checking and defaulting for the host and target type.
942 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
945 # 1. You are not allowed to specify --host, --target, and nonopt at the
947 # 2. Host defaults to nonopt.
948 # 3. If nonopt is not specified, then host defaults to the current host,
949 # as determined by config.guess.
950 # 4. Target and build default to nonopt.
951 # 5. If nonopt is not specified, then target and build default to host.
953 # The aliases save the names the user supplied, while $host etc.
954 # will get canonicalized.
955 case $host---$target---$nonopt in
956 NONE---*---* | *---NONE---* | *---*---NONE) ;;
957 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
961 # Make sure we can run config.sub.
962 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
963 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
966 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
967 echo "configure
:968: checking
host system
type" >&5
970 case "$host_alias" in
974 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
975 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
977 *) host_alias=$nonopt ;;
981 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
982 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
983 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
984 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
985 echo "$ac_t""$host" 1>&6
987 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
988 echo "configure
:989: checking target system
type" >&5
991 case "$target_alias" in
994 NONE) target_alias=$host_alias ;;
995 *) target_alias=$nonopt ;;
999 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1000 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1001 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1002 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1003 echo "$ac_t""$target" 1>&6
1005 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1006 echo "configure
:1007: checking build system
type" >&5
1009 case "$build_alias" in
1012 NONE) build_alias=$host_alias ;;
1013 *) build_alias=$nonopt ;;
1017 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1018 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1019 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1020 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1021 echo "$ac_t""$build" 1>&6
1023 test "$host_alias" != "$target_alias" &&
1024 test "$program_prefix$program_suffix$program_transform_name" = \
1026 program_prefix=${target_alias}-
1032 # Extract the first word of "gcc
", so it can be a program name with args.
1033 set dummy gcc; ac_word=$2
1034 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1035 echo "configure
:1036: checking
for $ac_word" >&5
1036 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1037 echo $ac_n "(cached
) $ac_c" 1>&6
1039 if test -n "$CC"; then
1040 ac_cv_prog_CC="$CC" # Let the user override the test.
1042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1044 for ac_dir in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir=.
1046 if test -f $ac_dir/$ac_word; then
1055 if test -n "$CC"; then
1056 echo "$ac_t""$CC" 1>&6
1058 echo "$ac_t""no
" 1>&6
1061 if test -z "$CC"; then
1062 # Extract the first word of "cc
", so it can be a program name with args.
1063 set dummy cc; ac_word=$2
1064 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1065 echo "configure
:1066: checking
for $ac_word" >&5
1066 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1067 echo $ac_n "(cached
) $ac_c" 1>&6
1069 if test -n "$CC"; then
1070 ac_cv_prog_CC="$CC" # Let the user override the test.
1072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1075 for ac_dir in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir=.
1077 if test -f $ac_dir/$ac_word; then
1078 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1079 ac_prog_rejected=yes
1087 if test $ac_prog_rejected = yes; then
1088 # We found a bogon in the path, so make sure we never use it.
1089 set dummy $ac_cv_prog_CC
1091 if test $# -gt 0; then
1092 # We chose a different compiler from the bogus one.
1093 # However, it has the same basename, so the bogon will be chosen
1094 # first if we set CC to just the basename; use the full file name.
1096 set dummy "$ac_dir/$ac_word" "$@
"
1104 if test -n "$CC"; then
1105 echo "$ac_t""$CC" 1>&6
1107 echo "$ac_t""no
" 1>&6
1110 if test -z "$CC"; then
1111 case "`uname -s`" in
1113 # Extract the first word of "cl
", so it can be a program name with args.
1114 set dummy cl; ac_word=$2
1115 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1116 echo "configure
:1117: checking
for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118 echo $ac_n "(cached
) $ac_c" 1>&6
1120 if test -n "$CC"; then
1121 ac_cv_prog_CC="$CC" # Let the user override the test.
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1125 for ac_dir in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir=.
1127 if test -f $ac_dir/$ac_word; then
1136 if test -n "$CC"; then
1137 echo "$ac_t""$CC" 1>&6
1139 echo "$ac_t""no
" 1>&6
1144 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1148 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1149 echo "configure
:1150: checking whether we are using GNU C
" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1151 echo $ac_n "(cached
) $ac_c" 1>&6
1153 cat > conftest.c <<EOF
1158 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1165 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1167 if test $ac_cv_prog_gcc = yes; then
1173 ac_test_CFLAGS="${CFLAGS+set}"
1174 ac_save_CFLAGS="$CFLAGS"
1176 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1177 echo "configure
:1178: checking whether
${CC-cc} accepts
-g" >&5
1178 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1179 echo $ac_n "(cached
) $ac_c" 1>&6
1181 echo 'void f(){}' > conftest.c
1182 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1191 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1192 if test "$ac_test_CFLAGS" = set; then
1193 CFLAGS="$ac_save_CFLAGS"
1194 elif test $ac_cv_prog_cc_g = yes; then
1195 if test "$GCC" = yes; then
1201 if test "$GCC" = yes; then
1209 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1210 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1211 # different definition of CXX than other directories, since we don't
1212 # depend on libstdc++-v3 having already been built.
1216 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1217 # flags that come in CXX while configuring libjava. They're different
1218 # from those used for all other target libraries. If CXX is set in
1219 # the environment, respect that here.
1221 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1223 # Extract the first word of "$ac_prog", so it can be a program name with args.
1224 set dummy $ac_prog; ac_word=$2
1225 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1226 echo "configure
:1227: checking
for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1228 echo $ac_n "(cached
) $ac_c" 1>&6
1230 if test -n "$glibjava_CXX"; then
1231 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_glibjava_CXX="$ac_prog"
1245 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1246 if test -n "$glibjava_CXX"; then
1247 echo "$ac_t""$glibjava_CXX" 1>&6
1249 echo "$ac_t""no
" 1>&6
1252 test -n "$glibjava_CXX" && break
1254 test -n "$glibjava_CXX" || glibjava_CXX="gcc
"
1258 test -z "$glibjava_CXX" && { echo "configure
: error
: no acceptable c
++ found
in \
$PATH" 1>&2; exit 1; }
1260 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1261 echo "configure
:1262: checking whether we are using GNU C
++" >&5
1262 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1263 echo $ac_n "(cached
) $ac_c" 1>&6
1265 cat > conftest.C <<EOF
1270 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1277 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1279 if test $ac_cv_prog_gxx = yes; then
1281 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1282 ac_save_CXXFLAGS="$CXXFLAGS"
1284 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1285 echo "configure
:1286: checking whether
${CXX-g++} accepts
-g" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1287 echo $ac_n "(cached
) $ac_c" 1>&6
1289 echo 'void f(){}' > conftest.cc
1290 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1291 ac_cv_prog_cxx_g=yes
1299 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1300 if test "$ac_test_CXXFLAGS" = set; then
1301 CXXFLAGS="$ac_save_CXXFLAGS"
1302 elif test $ac_cv_prog_cxx_g = yes; then
1309 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1319 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1320 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1322 cat >> confdefs.h <<EOF
1323 #define PACKAGE "$PACKAGE"
1326 cat >> confdefs.h <<EOF
1327 #define VERSION "$VERSION"
1332 missing_dir=`cd $ac_aux_dir && pwd`
1333 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
1334 echo "configure
:1335: checking
for working aclocal
" >&5
1335 # Run test in a subshell; some versions of sh will print an error if
1336 # an executable is not found, even if stderr is redirected.
1337 # Redirect stdin to placate older versions of autoconf. Sigh.
1338 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1340 echo "$ac_t""found
" 1>&6
1342 ACLOCAL="$missing_dir/missing aclocal
"
1343 echo "$ac_t""missing
" 1>&6
1346 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1347 echo "configure
:1348: checking
for working autoconf
" >&5
1348 # Run test in a subshell; some versions of sh will print an error if
1349 # an executable is not found, even if stderr is redirected.
1350 # Redirect stdin to placate older versions of autoconf. Sigh.
1351 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1353 echo "$ac_t""found
" 1>&6
1355 AUTOCONF="$missing_dir/missing autoconf
"
1356 echo "$ac_t""missing
" 1>&6
1359 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
1360 echo "configure
:1361: checking
for working automake
" >&5
1361 # Run test in a subshell; some versions of sh will print an error if
1362 # an executable is not found, even if stderr is redirected.
1363 # Redirect stdin to placate older versions of autoconf. Sigh.
1364 if (automake --version) < /dev/null > /dev/null 2>&1; then
1366 echo "$ac_t""found
" 1>&6
1368 AUTOMAKE="$missing_dir/missing automake
"
1369 echo "$ac_t""missing
" 1>&6
1372 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1373 echo "configure
:1374: checking
for working autoheader
" >&5
1374 # Run test in a subshell; some versions of sh will print an error if
1375 # an executable is not found, even if stderr is redirected.
1376 # Redirect stdin to placate older versions of autoconf. Sigh.
1377 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1378 AUTOHEADER=autoheader
1379 echo "$ac_t""found
" 1>&6
1381 AUTOHEADER="$missing_dir/missing autoheader
"
1382 echo "$ac_t""missing
" 1>&6
1385 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1386 echo "configure
:1387: checking
for working makeinfo
" >&5
1387 # Run test in a subshell; some versions of sh will print an error if
1388 # an executable is not found, even if stderr is redirected.
1389 # Redirect stdin to placate older versions of autoconf. Sigh.
1390 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1392 echo "$ac_t""found
" 1>&6
1394 MAKEINFO="$missing_dir/missing makeinfo
"
1395 echo "$ac_t""missing
" 1>&6
1400 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}as; ac_word=$2
1402 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1403 echo "configure
:1404: checking
for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1405 echo $ac_n "(cached
) $ac_c" 1>&6
1407 if test -n "$AS"; then
1408 ac_cv_prog_AS="$AS" # Let the user override the test.
1410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1412 for ac_dir in $ac_dummy; do
1413 test -z "$ac_dir" && ac_dir=.
1414 if test -f $ac_dir/$ac_word; then
1415 ac_cv_prog_AS="${ac_tool_prefix}as
"
1420 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1424 if test -n "$AS"; then
1425 echo "$ac_t""$AS" 1>&6
1427 echo "$ac_t""no
" 1>&6
1432 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1433 set dummy ${ac_tool_prefix}ar; ac_word=$2
1434 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1435 echo "configure
:1436: checking
for $ac_word" >&5
1436 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1437 echo $ac_n "(cached
) $ac_c" 1>&6
1439 if test -n "$AR"; then
1440 ac_cv_prog_AR="$AR" # Let the user override the test.
1442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1444 for ac_dir in $ac_dummy; do
1445 test -z "$ac_dir" && ac_dir=.
1446 if test -f $ac_dir/$ac_word; then
1447 ac_cv_prog_AR="${ac_tool_prefix}ar"
1452 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1456 if test -n "$AR"; then
1457 echo "$ac_t""$AR" 1>&6
1459 echo "$ac_t""no
" 1>&6
1464 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1465 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1466 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1467 echo "configure
:1468: checking
for $ac_word" >&5
1468 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1469 echo $ac_n "(cached
) $ac_c" 1>&6
1471 if test -n "$RANLIB"; then
1472 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1476 for ac_dir in $ac_dummy; do
1477 test -z "$ac_dir" && ac_dir=.
1478 if test -f $ac_dir/$ac_word; then
1479 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1486 RANLIB="$ac_cv_prog_RANLIB"
1487 if test -n "$RANLIB"; then
1488 echo "$ac_t""$RANLIB" 1>&6
1490 echo "$ac_t""no
" 1>&6
1494 if test -z "$ac_cv_prog_RANLIB"; then
1495 if test -n "$ac_tool_prefix"; then
1496 # Extract the first word of "ranlib
", so it can be a program name with args.
1497 set dummy ranlib; ac_word=$2
1498 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1499 echo "configure
:1500: checking
for $ac_word" >&5
1500 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1501 echo $ac_n "(cached
) $ac_c" 1>&6
1503 if test -n "$RANLIB"; then
1504 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1508 for ac_dir in $ac_dummy; do
1509 test -z "$ac_dir" && ac_dir=.
1510 if test -f $ac_dir/$ac_word; then
1511 ac_cv_prog_RANLIB="ranlib
"
1516 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1519 RANLIB="$ac_cv_prog_RANLIB"
1520 if test -n "$RANLIB"; then
1521 echo "$ac_t""$RANLIB" 1>&6
1523 echo "$ac_t""no
" 1>&6
1532 # Find a good install program. We prefer a C program (faster),
1533 # so one script is as good as another. But avoid the broken or
1534 # incompatible versions:
1535 # SysV /etc/install, /usr/sbin/install
1536 # SunOS /usr/etc/install
1537 # IRIX /sbin/install
1539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1542 # ./install, which can be erroneously created by make from ./install.sh.
1543 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1544 echo "configure
:1545: checking
for a BSD compatible
install" >&5
1545 if test -z "$INSTALL"; then
1546 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1547 echo $ac_n "(cached
) $ac_c" 1>&6
1549 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1550 for ac_dir in $PATH; do
1551 # Account for people who put trailing slashes in PATH elements.
1553 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1555 # OSF1 and SCO ODT 3.0 have their own names for install.
1556 # Don't use installbsd from OSF since it installs stuff as root
1558 for ac_prog in ginstall scoinst install; do
1559 if test -f $ac_dir/$ac_prog; then
1560 if test $ac_prog = install &&
1561 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1562 # AIX install. It has an incompatible calling convention.
1565 ac_cv_path_install="$ac_dir/$ac_prog -c"
1576 if test "${ac_cv_path_install+set}" = set; then
1577 INSTALL="$ac_cv_path_install"
1579 # As a last resort, use the slow shell script. We don't cache a
1580 # path for INSTALL within a source directory, because that will
1581 # break other packages using the cache if that directory is
1582 # removed, or if the path is relative.
1583 INSTALL="$ac_install_sh"
1586 echo "$ac_t""$INSTALL" 1>&6
1588 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1589 # It thinks the first close brace ends the variable substitution.
1590 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1592 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1597 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1598 echo "configure
:1599: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1599 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1600 if test "${enable_maintainer_mode+set}" = set; then
1601 enableval="$enable_maintainer_mode"
1602 USE_MAINTAINER_MODE=$enableval
1604 USE_MAINTAINER_MODE=no
1607 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1610 if test $USE_MAINTAINER_MODE = yes; then
1611 MAINTAINER_MODE_TRUE=
1612 MAINTAINER_MODE_FALSE='#'
1614 MAINTAINER_MODE_TRUE='#'
1615 MAINTAINER_MODE_FALSE=
1617 MAINT=$MAINTAINER_MODE_TRUE
1623 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1624 echo "configure
:1625: checking
for executable suffix
" >&5
1625 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1626 echo $ac_n "(cached
) $ac_c" 1>&6
1628 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1632 echo 'int main () { return 0; }' > conftest.$ac_ext
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1635 for file in conftest.*; do
1637 *.c | *.o | *.obj) ;;
1638 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1642 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1645 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1650 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1651 echo "$ac_t""${ac_cv_exeext}" 1>&6
1655 # configure.host sets the following important variables
1656 # libgcj_cflags - host specific C compiler flags
1657 # libgcj_cxxflags - host specific C++ compiler flags
1658 # libgcj_javaflags - host specific Java compiler flags
1664 . ${srcdir}/configure.host
1666 LIBGCJ_CFLAGS="${libgcj_cflags}"
1667 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1668 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1678 # Only use libltdl for non-newlib builds.
1679 if test "x
${with_newlib}" = "x
" || test "x
${with_newlib}" = "xno
"; then
1680 case $enable_ltdl_convenience in
1681 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1682 "") enable_ltdl_convenience=yes
1683 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1685 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1686 INCLTDL='-I${top_srcdir}/''libltdl'
1690 cat >> confdefs.h <<\EOF
1694 # Sigh. Libtool's macro doesn't do the right thing.
1695 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1696 # FIXME: this is a hack.
1697 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1698 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1703 # Check whether --enable-shared or --disable-shared was given.
1704 if test "${enable_shared+set}" = set; then
1705 enableval="$enable_shared"
1706 p=${PACKAGE-default}
1708 yes) enable_shared=yes ;;
1709 no) enable_shared=no ;;
1712 # Look at the argument we got. We use all the common list separators.
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1714 for pkg in $enableval; do
1715 if test "X
$pkg" = "X
$p"; then
1726 # Check whether --enable-static or --disable-static was given.
1727 if test "${enable_static+set}" = set; then
1728 enableval="$enable_static"
1729 p=${PACKAGE-default}
1731 yes) enable_static=yes ;;
1732 no) enable_static=no ;;
1735 # Look at the argument we got. We use all the common list separators.
1736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1737 for pkg in $enableval; do
1738 if test "X
$pkg" = "X
$p"; then
1749 # Check whether --enable-fast-install or --disable-fast-install was given.
1750 if test "${enable_fast_install+set}" = set; then
1751 enableval="$enable_fast_install"
1752 p=${PACKAGE-default}
1754 yes) enable_fast_install=yes ;;
1755 no) enable_fast_install=no ;;
1757 enable_fast_install=no
1758 # Look at the argument we got. We use all the common list separators.
1759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1760 for pkg in $enableval; do
1761 if test "X
$pkg" = "X
$p"; then
1762 enable_fast_install=yes
1769 enable_fast_install=yes
1772 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1773 if test "${with_gnu_ld+set}" = set; then
1774 withval="$with_gnu_ld"
1775 test "$withval" = no || with_gnu_ld=yes
1781 if test "$GCC" = yes; then
1782 # Check if gcc -print-prog-name=ld gives a path.
1783 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1784 echo "configure
:1785: checking
for ld used by GCC
" >&5
1787 # gcc leaves a trailing carriage return which upsets mingw
1788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1793 # Accept absolute paths.
1794 [\\/]* | [A-Za-z]:[\\/]*)
1795 re_direlt='/[^/][^/]*/\.\./'
1796 # Canonicalize the path of ld
1797 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1798 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1799 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1801 test -z "$LD" && LD="$ac_prog"
1804 # If it fails, then pretend we aren't using GCC.
1808 # If it is relative, then search for the first ld in PATH.
1812 elif test "$with_gnu_ld" = yes; then
1813 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1814 echo "configure
:1815: checking
for GNU ld
" >&5
1816 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1817 echo "configure
:1818: checking
for non-GNU ld
" >&5
1819 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1820 echo $ac_n "(cached
) $ac_c" 1>&6
1822 if test -z "$LD"; then
1823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1824 for ac_dir in $PATH; do
1825 test -z "$ac_dir" && ac_dir=.
1826 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1827 lt_cv_path_LD="$ac_dir/$ac_prog"
1828 # Check to see if the program is GNU ld. I'd rather use --version,
1829 # but apparently some GNU ld's only accept -v.
1830 # Break only if it was the GNU/non-GNU ld that we prefer.
1831 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1832 test "$with_gnu_ld" != no && break
1834 test "$with_gnu_ld" != yes && break
1840 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1845 if test -n "$LD"; then
1846 echo "$ac_t""$LD" 1>&6
1848 echo "$ac_t""no
" 1>&6
1850 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1851 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1852 echo "configure
:1853: checking
if the linker
($LD) is GNU ld
" >&5
1853 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1854 echo $ac_n "(cached
) $ac_c" 1>&6
1856 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1857 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1858 lt_cv_prog_gnu_ld=yes
1860 lt_cv_prog_gnu_ld=no
1864 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1865 with_gnu_ld=$lt_cv_prog_gnu_ld
1868 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1869 echo "configure
:1870: checking
for $LD option to reload object files
" >&5
1870 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1871 echo $ac_n "(cached
) $ac_c" 1>&6
1873 lt_cv_ld_reload_flag='-r'
1876 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1877 reload_flag=$lt_cv_ld_reload_flag
1878 test -n "$reload_flag" && reload_flag=" $reload_flag"
1880 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1881 echo "configure
:1882: checking
for BSD-compatible nm
" >&5
1882 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1883 echo $ac_n "(cached
) $ac_c" 1>&6
1885 if test -n "$NM"; then
1886 # Let the user override the test.
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1890 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1891 test -z "$ac_dir" && ac_dir=.
1892 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1893 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1894 # Check to see if the nm accepts a BSD-compat flag.
1895 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1896 # nm: unknown option "B
" ignored
1897 # Tru64's nm complains that /dev/null is an invalid object file
1898 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1899 lt_cv_path_NM="$tmp_nm -B"
1901 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1902 lt_cv_path_NM="$tmp_nm -p"
1905 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1906 continue # so that we can try to find one that supports BSD flags
1911 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1916 echo "$ac_t""$NM" 1>&6
1918 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1919 echo "configure
:1920: checking how to recognise dependant libraries
" >&5
1920 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1921 echo $ac_n "(cached
) $ac_c" 1>&6
1923 lt_cv_file_magic_cmd='$MAGIC_CMD'
1924 lt_cv_file_magic_test_file=
1925 lt_cv_deplibs_check_method='unknown'
1926 # Need to set the preceding variable on all platforms that support
1927 # interlibrary dependencies.
1928 # 'none' -- dependencies not supported.
1929 # `unknown' -- same as none, but documents that we really don't know.
1930 # 'pass_all' -- all dependencies passed with no checks.
1931 # 'test_compile' -- check by making test program.
1932 # 'file_magic [regex]' -- check by looking for files in library path
1933 # which responds to the $file_magic_cmd with a given egrep regex.
1934 # If you have `file' or equivalent on your system and you're not sure
1935 # whether `pass_all' will *always* work, you probably want this one.
1939 lt_cv_deplibs_check_method=pass_all
1943 lt_cv_deplibs_check_method=pass_all
1947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1948 lt_cv_file_magic_cmd='/usr/bin/file -L'
1949 lt_cv_file_magic_test_file=/shlib/libc.so
1952 cygwin* | mingw* |pw32*)
1953 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1954 lt_cv_file_magic_cmd='$OBJDUMP -f'
1957 darwin* | rhapsody*)
1958 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1959 lt_cv_file_magic_cmd='/usr/bin/file -L'
1961 rhapsody* | darwin1.012)
1962 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1965 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1971 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1974 # Not sure whether the presence of OpenBSD here was a mistake.
1975 # Let's accept both of them until this is cleared up.
1976 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1977 lt_cv_file_magic_cmd=/usr/bin/file
1978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1982 lt_cv_deplibs_check_method=pass_all
1987 lt_cv_deplibs_check_method=pass_all
1993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1994 lt_cv_file_magic_cmd=/usr/bin/file
1995 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1999 lt_cv_file_magic_cmd=/usr/bin/file
2000 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2008 # this will be overridden with pass_all, but let us keep it just in case
2009 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2013 *-32|*"-32 ") libmagic=32-bit;;
2014 *-n32|*"-n32 ") libmagic=N32;;
2015 *-64|*"-64 ") libmagic=64-bit;;
2016 *) libmagic=never-match;;
2018 # this will be overridden with pass_all, but let us keep it just in case
2019 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2022 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2023 lt_cv_deplibs_check_method=pass_all
2026 # This must be Linux ELF.
2029 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2030 lt_cv_deplibs_check_method=pass_all ;;
2032 # glibc up to 2.1.1 does not perform some relocations on ARM
2033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2035 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2039 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2040 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2042 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2048 lt_cv_file_magic_cmd=/usr/bin/file
2049 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2052 osf3* | osf4* | osf5*)
2053 # this will be overridden with pass_all, but let us keep it just in case
2054 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2055 lt_cv_file_magic_test_file=/shlib/libc.so
2056 lt_cv_deplibs_check_method=pass_all
2060 lt_cv_deplibs_check_method=pass_all
2064 lt_cv_deplibs_check_method=pass_all
2065 lt_cv_file_magic_test_file=/lib/libc.so
2068 sysv5uw[78]* | sysv4*uw2*)
2069 lt_cv_deplibs_check_method=pass_all
2072 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2073 case $host_vendor in
2075 lt_cv_deplibs_check_method=pass_all
2078 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]'
2079 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2087 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2088 file_magic_cmd=$lt_cv_file_magic_cmd
2089 deplibs_check_method=$lt_cv_deplibs_check_method
2091 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2092 echo "configure
:2093: checking
for object suffix
" >&5
2093 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2094 echo $ac_n "(cached
) $ac_c" 1>&6
2097 echo 'int i = 1;' > conftest.$ac_ext
2098 if { (eval echo configure:2099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2099 for ac_file in conftest.*; do
2102 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2106 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2111 echo "$ac_t""$ac_cv_objext" 1>&6
2112 OBJEXT=$ac_cv_objext
2113 ac_objext=$ac_cv_objext
2115 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2117 # Only perform the check for file, if the check method requires it
2118 case $deplibs_check_method in
2120 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2121 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2122 echo "configure
:2123: checking
for ${ac_tool_prefix}file" >&5
2123 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2124 echo $ac_n "(cached
) $ac_c" 1>&6
2128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2134 ac_save_MAGIC_CMD="$MAGIC_CMD"
2135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2136 ac_dummy="/usr
/bin
:$PATH"
2137 for ac_dir in $ac_dummy; do
2138 test -z "$ac_dir" && ac_dir=.
2139 if test -f $ac_dir/${ac_tool_prefix}file; then
2140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2141 if test -n "$file_magic_test_file"; then
2142 case $deplibs_check_method in
2144 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2147 egrep "$file_magic_regex" > /dev/null; then
2152 *** Warning: the command libtool uses to detect shared libraries,
2153 *** $file_magic_cmd, produces output that libtool cannot recognize.
2154 *** The result is that libtool may fail to recognize shared libraries
2155 *** as such. This will affect the creation of libtool libraries that
2156 *** depend on shared libraries, but programs linked with such libtool
2157 *** libraries will work regardless of this problem. Nevertheless, you
2158 *** may want to report the problem to your system manager and/or to
2159 *** bug-libtool@gnu.org
2169 MAGIC_CMD="$ac_save_MAGIC_CMD"
2174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2175 if test -n "$MAGIC_CMD"; then
2176 echo "$ac_t""$MAGIC_CMD" 1>&6
2178 echo "$ac_t""no
" 1>&6
2181 if test -z "$lt_cv_path_MAGIC_CMD"; then
2182 if test -n "$ac_tool_prefix"; then
2183 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2184 echo "configure
:2185: checking
for file" >&5
2185 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2186 echo $ac_n "(cached
) $ac_c" 1>&6
2190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2196 ac_save_MAGIC_CMD="$MAGIC_CMD"
2197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2198 ac_dummy="/usr
/bin
:$PATH"
2199 for ac_dir in $ac_dummy; do
2200 test -z "$ac_dir" && ac_dir=.
2201 if test -f $ac_dir/file; then
2202 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2203 if test -n "$file_magic_test_file"; then
2204 case $deplibs_check_method in
2206 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2209 egrep "$file_magic_regex" > /dev/null; then
2214 *** Warning: the command libtool uses to detect shared libraries,
2215 *** $file_magic_cmd, produces output that libtool cannot recognize.
2216 *** The result is that libtool may fail to recognize shared libraries
2217 *** as such. This will affect the creation of libtool libraries that
2218 *** depend on shared libraries, but programs linked with such libtool
2219 *** libraries will work regardless of this problem. Nevertheless, you
2220 *** may want to report the problem to your system manager and/or to
2221 *** bug-libtool@gnu.org
2231 MAGIC_CMD="$ac_save_MAGIC_CMD"
2236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2237 if test -n "$MAGIC_CMD"; then
2238 echo "$ac_t""$MAGIC_CMD" 1>&6
2240 echo "$ac_t""no
" 1>&6
2252 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2254 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2255 echo "configure
:2256: checking
for $ac_word" >&5
2256 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2257 echo $ac_n "(cached
) $ac_c" 1>&6
2259 if test -n "$RANLIB"; then
2260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2264 for ac_dir in $ac_dummy; do
2265 test -z "$ac_dir" && ac_dir=.
2266 if test -f $ac_dir/$ac_word; then
2267 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2274 RANLIB="$ac_cv_prog_RANLIB"
2275 if test -n "$RANLIB"; then
2276 echo "$ac_t""$RANLIB" 1>&6
2278 echo "$ac_t""no
" 1>&6
2282 if test -z "$ac_cv_prog_RANLIB"; then
2283 if test -n "$ac_tool_prefix"; then
2284 # Extract the first word of "ranlib
", so it can be a program name with args.
2285 set dummy ranlib; ac_word=$2
2286 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2287 echo "configure
:2288: checking
for $ac_word" >&5
2288 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2289 echo $ac_n "(cached
) $ac_c" 1>&6
2291 if test -n "$RANLIB"; then
2292 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2296 for ac_dir in $ac_dummy; do
2297 test -z "$ac_dir" && ac_dir=.
2298 if test -f $ac_dir/$ac_word; then
2299 ac_cv_prog_RANLIB="ranlib
"
2304 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2307 RANLIB="$ac_cv_prog_RANLIB"
2308 if test -n "$RANLIB"; then
2309 echo "$ac_t""$RANLIB" 1>&6
2311 echo "$ac_t""no
" 1>&6
2319 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2320 set dummy ${ac_tool_prefix}strip; ac_word=$2
2321 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2322 echo "configure
:2323: checking
for $ac_word" >&5
2323 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2324 echo $ac_n "(cached
) $ac_c" 1>&6
2326 if test -n "$STRIP"; then
2327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2331 for ac_dir in $ac_dummy; do
2332 test -z "$ac_dir" && ac_dir=.
2333 if test -f $ac_dir/$ac_word; then
2334 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2341 STRIP="$ac_cv_prog_STRIP"
2342 if test -n "$STRIP"; then
2343 echo "$ac_t""$STRIP" 1>&6
2345 echo "$ac_t""no
" 1>&6
2349 if test -z "$ac_cv_prog_STRIP"; then
2350 if test -n "$ac_tool_prefix"; then
2351 # Extract the first word of "strip
", so it can be a program name with args.
2352 set dummy strip; ac_word=$2
2353 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2354 echo "configure
:2355: checking
for $ac_word" >&5
2355 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2356 echo $ac_n "(cached
) $ac_c" 1>&6
2358 if test -n "$STRIP"; then
2359 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2363 for ac_dir in $ac_dummy; do
2364 test -z "$ac_dir" && ac_dir=.
2365 if test -f $ac_dir/$ac_word; then
2366 ac_cv_prog_STRIP="strip
"
2371 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2374 STRIP="$ac_cv_prog_STRIP"
2375 if test -n "$STRIP"; then
2376 echo "$ac_t""$STRIP" 1>&6
2378 echo "$ac_t""no
" 1>&6
2387 # Check for any special flags to pass to ltconfig.
2388 libtool_flags="--cache-file=$cache_file"
2389 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2390 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2391 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2392 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2393 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2394 libtool_flags="$libtool_flags --enable-dlopen"
2396 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2397 if test "${enable_libtool_lock+set}" = set; then
2398 enableval="$enable_libtool_lock"
2402 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2403 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2405 # Check whether --with-pic or --without-pic was given.
2406 if test "${with_pic+set}" = set; then
2413 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2414 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2416 # Some flags need to be propagated to the compiler or linker for good
2420 # Find out which ABI we are using.
2421 echo '#line 2422 "configure
"' > conftest.$ac_ext
2422 if { (eval echo configure:2423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2423 if test "$lt_cv_prog_gnu_ld" = yes; then
2424 case `/usr/bin/file conftest.$ac_objext` in
2426 LD="${LD-ld} -melf32bsmip"
2429 LD="${LD-ld} -melf32bmipn32"
2432 LD="${LD-ld} -melf64bmip"
2436 case `/usr/bin/file conftest.$ac_objext` in
2453 # Find out which ABI we are using.
2454 echo 'int i;' > conftest.$ac_ext
2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2456 case "`/usr/bin/file conftest.o`" in
2468 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2469 # Find out which ABI we are using.
2470 echo 'int i;' > conftest.$ac_ext
2471 if { (eval echo configure:2472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2472 case "`/usr/bin/file conftest.o`" in
2476 LD="${LD-ld} -m elf_i386
"
2478 ppc64-*linux*|powerpc64-*linux*)
2479 LD="${LD-ld} -m elf32ppclinux
"
2482 LD="${LD-ld} -m elf_s390
"
2485 LD="${LD-ld} -m elf32_sparc
"
2492 LD="${LD-ld} -m elf_x86_64
"
2494 ppc*-*linux*|powerpc*-*linux*)
2495 LD="${LD-ld} -m elf64ppc
"
2498 LD="${LD-ld} -m elf64_s390
"
2501 LD="${LD-ld} -m elf64_sparc
"
2511 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2512 SAVE_CFLAGS="$CFLAGS"
2513 CFLAGS="$CFLAGS -belf"
2514 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2515 echo "configure
:2516: checking whether the C compiler needs
-belf" >&5
2516 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2517 echo $ac_n "(cached
) $ac_c" 1>&6
2521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2525 cross_compiling=$ac_cv_prog_cc_cross
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure
"
2529 #include "confdefs.h
"
2535 if { (eval echo configure:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2537 lt_cv_cc_needs_belf=yes
2539 echo "configure
: failed program was
:" >&5
2540 cat conftest.$ac_ext >&5
2542 lt_cv_cc_needs_belf=no
2546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2550 cross_compiling=$ac_cv_prog_cc_cross
2554 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2555 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2556 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2557 CFLAGS="$SAVE_CFLAGS"
2564 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2565 echo "configure
:2566: checking how to run the C
++ preprocessor
" >&5
2566 if test -z "$CXXCPP"; then
2567 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2568 echo $ac_n "(cached
) $ac_c" 1>&6
2571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2572 ac_cpp='$CXXCPP $CPPFLAGS'
2573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2575 cross_compiling=$ac_cv_prog_cxx_cross
2576 CXXCPP="${CXX-g++} -E"
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure
"
2579 #include "confdefs.h
"
2582 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2583 { (eval echo configure:2584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2585 if test -z "$ac_err"; then
2589 echo "configure
: failed program was
:" >&5
2590 cat conftest.$ac_ext >&5
2595 ac_cv_prog_CXXCPP="$CXXCPP"
2597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2601 cross_compiling=$ac_cv_prog_cc_cross
2604 CXXCPP="$ac_cv_prog_CXXCPP"
2605 echo "$ac_t""$CXXCPP" 1>&6
2608 # Save cache, so that ltconfig can load it
2609 cat > confcache <<\EOF
2610 # This file is a shell script that caches the results of configure
2611 # tests run on this system so they can be shared between configure
2612 # scripts and configure runs. It is not useful on other systems.
2613 # If it contains results you don't want to keep, you may remove or edit it.
2615 # By default, configure uses ./config.cache as the cache file,
2616 # creating it if it does not exist already. You can give configure
2617 # the --cache-file=FILE option to use a different cache file; that is
2618 # what configure does when it calls configure scripts in
2619 # subdirectories, so they share the cache.
2620 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2621 # config.status only pays attention to the cache file if you give it the
2622 # --recheck option to rerun configure.
2625 # The following way of writing the cache mishandles newlines in values,
2626 # but we know of no workaround that is simple, portable, and efficient.
2627 # So, don't put newlines in cache variables' values.
2628 # Ultrix sh set writes to stderr and can't be redirected directly,
2629 # and sets the high bit in the cache file unless we assign to the vars.
2631 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2633 # `set' does not quote correctly, so add quotes (double-quote substitution
2634 # turns \\\\ into \\, and sed turns \\ into \).
2636 -e "s
/'/'\\\\''/g
" \
2637 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2640 # `set' quotes correctly as required by POSIX, so do not add quotes.
2641 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2644 if cmp -s $cache_file confcache; then
2647 if test -w $cache_file; then
2648 echo "updating cache
$cache_file"
2649 cat confcache > $cache_file
2651 echo "not updating unwritable cache
$cache_file"
2657 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2658 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2659 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2660 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2661 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2662 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2663 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2664 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2665 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2666 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2668 # Reload cache, that may have been modified by ltconfig
2669 if test -r "$cache_file"; then
2670 echo "loading cache
$cache_file"
2673 echo "creating cache
$cache_file"
2678 # This can be used to rebuild libtool when needed
2679 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2681 # Always use our own libtool.
2682 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2684 # Redirect the config.log output again, so that the ltconfig log is not
2685 # clobbered by the next message.
2686 exec 5>>./config.log
2690 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2692 lt_save_CFLAGS="$CFLAGS"
2693 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2694 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2695 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2696 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2697 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2698 deplibs_check_method="$deplibs_check_method" \
2699 file_magic_cmd="$file_magic_cmd" \
2700 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2701 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2702 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2704 CFLAGS="$lt_save_CFLAGS"
2706 # Redirect the config.log output again, so that the ltconfig log is not
2707 # clobbered by the next message.
2708 exec 5>>./config.log
2718 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2727 if test -d $srcdir/testsuite; then
2729 TESTSUBDIR_FALSE='#'
2735 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2736 if test "${enable_getenv_properties+set}" = set; then
2737 enableval="$enable_getenv_properties"
2742 if test -z "$enable_getenv_properties"; then
2743 enable_getenv_properties=${enable_getenv_properties_default-yes}
2745 if test "$enable_getenv_properties" = no; then
2746 cat >> confdefs.h <<\EOF
2747 #define DISABLE_GETENV_PROPERTIES 1
2752 if test -z "$enable_main_args"; then
2753 enable_main_args=${enable_main_args_default-yes}
2755 if test "$enable_main_args" = no; then
2756 cat >> confdefs.h <<\EOF
2757 #define DISABLE_MAIN_ARGS 1
2763 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2764 if test "${enable_hash_synchronization+set}" = set; then
2765 enableval="$enable_hash_synchronization"
2770 if test -z "$enable_hash_synchronization"; then
2771 enable_hash_synchronization=$enable_hash_synchronization_default
2774 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
2775 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
2776 if test "${enable_libgcj_multifile+set}" = set; then
2777 enableval="$enable_libgcj_multifile"
2778 case "${enableval}" in
2779 yes) enable_libgcj_multifile=yes ;;
2780 no) enable_libgcj_multifile=no ;;
2781 *) { echo "configure
: error
: bad value
${enableval} for --enable-libgcj-multifile" 1>&2; exit 1; } ;;
2784 enable_libgcj_multifile=no
2789 if test "$enable_libgcj_multifile" = yes; then
2797 if test "${slow_pthread_self}" = "yes"; then
2798 cat >> confdefs.h <<\EOF
2799 #define SLOW_PTHREAD_SELF 1
2807 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2808 if test "${enable_libgcj_debug+set}" = set; then
2809 enableval="$enable_libgcj_debug"
2810 if test "$enable_libgcj_debug" = yes; then
2811 cat >> confdefs.h <<\EOF
2820 # Check whether --enable-interpreter or --disable-interpreter was given.
2821 if test "${enable_interpreter+set}" = set; then
2822 enableval="$enable_interpreter"
2823 if test "$enable_interpreter" = yes; then
2824 # This can also be set in configure.host.
2825 libgcj_interpreter=yes
2826 elif test "$enable_interpreter" = no; then
2827 libgcj_interpreter=no
2832 if test "$libgcj_interpreter" = yes; then
2833 cat >> confdefs.h <<\EOF
2834 #define INTERPRETER 1
2838 INTERPRETER="$libgcj_interpreter"
2841 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2842 echo "configure
:2843: checking
for exception model to use
" >&5
2845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2846 ac_cpp='$CXXCPP $CPPFLAGS'
2847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2849 cross_compiling=$ac_cv_prog_cxx_cross
2851 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2852 if test "${enable_sjlj_exceptions+set}" = set; then
2853 enableval="$enable_sjlj_exceptions"
2856 cat > conftest.$ac_ext << EOF
2857 #line 2858 "configure
"
2866 old_CXXFLAGS="$CXXFLAGS"
2868 if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2870 enable_sjlj_exceptions=yes
2871 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2872 enable_sjlj_exceptions=no
2875 CXXFLAGS="$old_CXXFLAGS"
2879 if test x$enable_sjlj_exceptions = xyes; then
2880 cat >> confdefs.h <<\EOF
2881 #define SJLJ_EXCEPTIONS 1
2884 ac_exception_model_name=sjlj
2885 elif test x$enable_sjlj_exceptions = xno; then
2886 ac_exception_model_name="call frame
"
2888 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2895 cross_compiling=$ac_cv_prog_cc_cross
2897 echo "$ac_t""$ac_exception_model_name" 1>&6
2899 # If we are non using SJLJ exceptions, and this host does not have support
2900 # for unwinding from a signal handler, enable checked dereferences and divides.
2901 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2902 CHECKREFSPEC=-fcheck-references
2903 DIVIDESPEC=-fuse-divide-subroutine
2907 # Check whether --enable-java-net or --disable-java-net was given.
2908 if test "${enable_java_net+set}" = set; then
2909 enableval="$enable_java_net"
2914 if test -z "$enable_java_net"; then
2915 enable_java_net=${enable_java_net_default-yes}
2917 if test "$enable_java_net" = no; then
2918 cat >> confdefs.h <<\EOF
2919 #define DISABLE_JAVA_NET 1
2924 # Check whether --with-libffi or --without-libffi was given.
2925 if test "${with_libffi+set}" = set; then
2926 withval="$with_libffi"
2929 with_libffi=${with_libffi_default-yes}
2935 if test "$with_libffi" != no; then
2936 cat >> confdefs.h <<\EOF
2937 #define USE_LIBFFI 1
2940 LIBFFI=../libffi/libffi_convenience.la
2941 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2946 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2947 if test "${enable_jvmpi+set}" = set; then
2948 enableval="$enable_jvmpi"
2953 if test "$enable_jvmpi" != no; then
2954 cat >> confdefs.h <<\EOF
2955 #define ENABLE_JVMPI 1
2960 TARGET_ECOS=${PROCESS-"no"}
2961 # Check whether --with-ecos or --without-ecos was given.
2962 if test "${with_ecos+set}" = set; then
2963 withval="$with_ecos"
2964 TARGET_ECOS="$with_ecos"
2970 case "$TARGET_ECOS" in
2975 PLATFORMOBJS=win32.lo
2978 echo $ac_n "checking whether
'ld' is
at least
2.13""...
$ac_c" 1>&6
2979 echo "configure
:2980: checking whether
'ld' is
at least
2.13" >&5
2980 LD_PROG=`$CC --print-prog-name=ld`
2981 LD_VERSION=`$LD_PROG --version`
2982 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
2983 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
2984 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
2987 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
2991 if test "x
$LD_OK" != x; then
2992 echo "$ac_t""yes; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
2994 echo "$ac_t""no
; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
2995 echo "configure
: warning
: ld
<2.13 detected
; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack...
" 1>&2
2996 cat >> confdefs.h <<\EOF
2997 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3005 PLATFORMOBJS=posix.lo
3013 cat >> confdefs.h <<\EOF
3017 PLATFORMOBJS=posix.lo
3024 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
3025 echo "configure
:3026: checking how to run the C preprocessor
" >&5
3026 # On Suns, sometimes $CPP names a directory.
3027 if test -n "$CPP" && test -d "$CPP"; then
3030 if test -z "$CPP"; then
3031 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3032 echo $ac_n "(cached
) $ac_c" 1>&6
3034 # This must be in double quotes, not single quotes, because CPP may get
3035 # substituted into the Makefile and "${CC-cc}" will confuse make.
3037 # On the NeXT, cc -E runs the code through the compiler's parser,
3038 # not just through cpp.
3039 cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure
"
3041 #include "confdefs.h
"
3045 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3046 { (eval echo configure:3047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3048 if test -z "$ac_err"; then
3052 echo "configure
: failed program was
:" >&5
3053 cat conftest.$ac_ext >&5
3055 CPP="${CC-cc} -E -traditional-cpp"
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure
"
3058 #include "confdefs.h
"
3062 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3063 { (eval echo configure:3064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3065 if test -z "$ac_err"; then
3069 echo "configure
: failed program was
:" >&5
3070 cat conftest.$ac_ext >&5
3072 CPP="${CC-cc} -nologo -E"
3073 cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure
"
3075 #include "confdefs.h
"
3079 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3080 { (eval echo configure:3081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3082 if test -z "$ac_err"; then
3086 echo "configure
: failed program was
:" >&5
3087 cat conftest.$ac_ext >&5
3096 ac_cv_prog_CPP="$CPP"
3098 CPP="$ac_cv_prog_CPP"
3100 ac_cv_prog_CPP="$CPP"
3102 echo "$ac_t""$CPP" 1>&6
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure
"
3106 #include "confdefs.h
"
3109 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3110 egrep "uint32_t
" >/dev/null 2>&1; then
3112 cat >> confdefs.h <<\EOF
3113 #define HAVE_INT32_DEFINED 1
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure
"
3121 #include "confdefs.h
"
3122 #include <inttypes.h>
3124 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3125 egrep "uint32_t
" >/dev/null 2>&1; then
3127 cat >> confdefs.h <<\EOF
3128 #define HAVE_INT32_DEFINED 1
3134 cat > conftest.$ac_ext <<EOF
3135 #line 3136 "configure
"
3136 #include "confdefs.h
"
3137 #include <sys/types.h>
3139 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3140 egrep "u_int32_t
" >/dev/null 2>&1; then
3142 cat >> confdefs.h <<\EOF
3143 #define HAVE_BSD_INT32_DEFINED 1
3149 cat > conftest.$ac_ext <<EOF
3150 #line 3151 "configure
"
3151 #include "confdefs.h
"
3152 #include <sys/config.h>
3154 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3155 egrep "u_int32_t
" >/dev/null 2>&1; then
3157 cat >> confdefs.h <<\EOF
3158 #define HAVE_BSD_INT32_DEFINED 1
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure
"
3168 #include "confdefs.h
"
3171 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3172 egrep "mktime
" >/dev/null 2>&1; then
3174 cat >> confdefs.h <<\EOF
3175 #define HAVE_MKTIME 1
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure
"
3183 #include "confdefs.h
"
3186 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3187 egrep "localtime
" >/dev/null 2>&1; then
3189 cat >> confdefs.h <<\EOF
3190 #define HAVE_LOCALTIME 1
3197 test -d java || mkdir java
3198 test -d java/io || mkdir java/io
3199 test -d gnu || mkdir gnu
3203 test -d java/lang || mkdir java/lang
3207 test -d java/net || mkdir java/net
3211 test -d gnu/java || mkdir gnu/java
3212 test -d gnu/java/net || mkdir gnu/java/net
3218 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3226 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs
-rpath `${PWDCMD-pwd}`/.libs
"
3229 # Check whether --with-system-zlib or --without-system-zlib was given.
3230 if test "${with_system_zlib+set}" = set; then
3231 withval="$with_system_zlib"
3240 # If we find X, set shell vars x_includes and x_libraries to the
3241 # paths, otherwise set no_x=yes.
3242 # Uses ac_ vars as temps to allow command line to override cache and checks.
3243 # --without-x overrides everything else, but does not touch the cache.
3244 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
3245 echo "configure
:3246: checking
for X
" >&5
3247 # Check whether --with-x or --without-x was given.
3248 if test "${with_x+set}" = set; then
3253 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3254 if test "x
$with_x" = xno; then
3255 # The user explicitly disabled X.
3258 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
3259 # Both variables are already set.
3262 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3263 echo $ac_n "(cached
) $ac_c" 1>&6
3265 # One or both of the vars are not set, and there is no cached value.
3266 ac_x_includes=NO ac_x_libraries=NO
3268 if mkdir conftestdir; then
3270 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3271 cat > Imakefile <<'EOF'
3273 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3275 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3276 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
3277 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3278 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3279 for ac_extension in a so sl; do
3280 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3281 test -f $ac_im_libdir/libX11.$ac_extension; then
3282 ac_im_usrlibdir=$ac_im_libdir; break
3285 # Screen out bogus values from the imake configuration. They are
3286 # bogus both because they are the default anyway, and because
3287 # using them would break gcc on systems where it needs fixed includes.
3288 case "$ac_im_incroot" in
3290 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
3292 case "$ac_im_usrlibdir" in
3294 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3301 if test "$ac_x_includes" = NO; then
3302 # Guess where to find include files, by looking for this one X11 .h file.
3303 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3305 # First, try using that file with no special directory specified.
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure
"
3308 #include "confdefs.h
"
3309 #include <$x_direct_test_include>
3311 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3312 { (eval echo configure:3313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3314 if test -z "$ac_err"; then
3316 # We can compile using X headers with no special include directory.
3320 echo "configure
: failed program was
:" >&5
3321 cat conftest.$ac_ext >&5
3323 # Look for the header file in a standard set of common directories.
3324 # Check X11 before X11Rn because it is often a symlink to the current release.
3327 /usr/X11R6/include \
3328 /usr/X11R5/include \
3329 /usr/X11R4/include \
3332 /usr/include/X11R6 \
3333 /usr/include/X11R5 \
3334 /usr/include/X11R4 \
3336 /usr/local/X11/include \
3337 /usr/local/X11R6/include \
3338 /usr/local/X11R5/include \
3339 /usr/local/X11R4/include \
3341 /usr/local/include/X11 \
3342 /usr/local/include/X11R6 \
3343 /usr/local/include/X11R5 \
3344 /usr/local/include/X11R4 \
3348 /usr/XFree86/include/X11 \
3351 /usr/local/include \
3352 /usr/unsupported/include \
3353 /usr/athena/include \
3354 /usr/local/x11r5/include \
3355 /usr/lpp/Xamples/include \
3357 /usr/openwin/include \
3358 /usr/openwin/share/include \
3361 if test -r "$ac_dir/$x_direct_test_include"; then
3362 ac_x_includes=$ac_dir
3368 fi # $ac_x_includes = NO
3370 if test "$ac_x_libraries" = NO; then
3371 # Check for the libraries.
3373 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3374 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3376 # See if we find them without any special options.
3377 # Don't add to $LIBS permanently.
3378 ac_save_LIBS="$LIBS"
3379 LIBS="-l$x_direct_test_library $LIBS"
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure
"
3382 #include "confdefs.h
"
3385 ${x_direct_test_function}()
3388 if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3390 LIBS="$ac_save_LIBS"
3391 # We can link X programs with no special library path.
3394 echo "configure
: failed program was
:" >&5
3395 cat conftest.$ac_ext >&5
3397 LIBS="$ac_save_LIBS"
3398 # First see if replacing the include by lib works.
3399 # Check X11 before X11Rn because it is often a symlink to the current release.
3400 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3411 /usr/local/X11/lib \
3412 /usr/local/X11R6/lib \
3413 /usr/local/X11R5/lib \
3414 /usr/local/X11R4/lib \
3416 /usr/local/lib/X11 \
3417 /usr/local/lib/X11R6 \
3418 /usr/local/lib/X11R5 \
3419 /usr/local/lib/X11R4 \
3423 /usr/XFree86/lib/X11 \
3427 /usr/unsupported/lib \
3429 /usr/local/x11r5/lib \
3430 /usr/lpp/Xamples/lib \
3434 /usr/openwin/share/lib \
3437 for ac_extension in a so sl; do
3438 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3439 ac_x_libraries=$ac_dir
3446 fi # $ac_x_libraries = NO
3448 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3449 # Didn't find X anywhere. Cache the known absence of X.
3450 ac_cv_have_x="have_x
=no
"
3452 # Record where we found X for the cache.
3453 ac_cv_have_x="have_x
=yes \
3454 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
3458 eval "$ac_cv_have_x"
3461 if test "$have_x" != yes; then
3462 echo "$ac_t""$have_x" 1>&6
3465 # If each of the values was on the command line, it overrides each guess.
3466 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
3467 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3468 # Update the cache value to reflect the command line values.
3469 ac_cv_have_x="have_x
=yes \
3470 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
3471 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
3474 if test "$no_x" = yes; then
3475 # Not all programs may use this symbol, but it does not hurt to define it.
3476 cat >> confdefs.h <<\EOF
3477 #define X_DISPLAY_MISSING 1
3480 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3482 if test -n "$x_includes"; then
3483 X_CFLAGS="$X_CFLAGS -I$x_includes"
3486 # It would also be nice to do this for all -L options, not just this one.
3487 if test -n "$x_libraries"; then
3488 X_LIBS="$X_LIBS -L$x_libraries"
3489 # For Solaris; some versions of Sun CC require a space after -R and
3490 # others require no space. Words are not sufficient . . . .
3491 case "`(uname -sr) 2>/dev/null`" in
3493 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
3494 echo "configure
:3495: checking whether
-R must be followed by a space
" >&5
3495 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure
"
3498 #include "confdefs.h
"
3504 if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 echo "configure
: failed program was
:" >&5
3509 cat conftest.$ac_ext >&5
3514 if test $ac_R_nospace = yes; then
3515 echo "$ac_t""no
" 1>&6
3516 X_LIBS="$X_LIBS -R$x_libraries"
3518 LIBS="$ac_xsave_LIBS -R $x_libraries"
3519 cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure
"
3521 #include "confdefs.h
"
3527 if { (eval echo configure:3528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3531 echo "configure
: failed program was
:" >&5
3532 cat conftest.$ac_ext >&5
3537 if test $ac_R_space = yes; then
3538 echo "$ac_t""yes" 1>&6
3539 X_LIBS="$X_LIBS -R $x_libraries"
3541 echo "$ac_t""neither works
" 1>&6
3544 LIBS="$ac_xsave_LIBS"
3548 # Check for system-dependent libraries X programs must link with.
3549 # Do this before checking for the system-independent R6 libraries
3550 # (-lICE), since we may need -lsocket or whatever for X linking.
3552 if test "$ISC" = yes; then
3553 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3555 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3556 # libraries were built with DECnet support. And karl@cs.umb.edu says
3557 # the Alpha needs dnet_stub (dnet does not exist).
3558 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
3559 echo "configure
:3560: checking
for dnet_ntoa
in -ldnet" >&5
3560 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3562 echo $ac_n "(cached
) $ac_c" 1>&6
3564 ac_save_LIBS="$LIBS"
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure
"
3568 #include "confdefs.h
"
3569 /* Override any gcc2 internal prototype to avoid an error. */
3570 /* We use char because int might match the return type of a gcc2
3571 builtin and then its argument prototype would still apply. */
3578 if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3580 eval "ac_cv_lib_
$ac_lib_var=yes"
3582 echo "configure
: failed program was
:" >&5
3583 cat conftest.$ac_ext >&5
3585 eval "ac_cv_lib_
$ac_lib_var=no
"
3588 LIBS="$ac_save_LIBS"
3591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3592 echo "$ac_t""yes" 1>&6
3593 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3595 echo "$ac_t""no
" 1>&6
3598 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3599 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
3600 echo "configure
:3601: checking
for dnet_ntoa
in -ldnet_stub" >&5
3601 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3603 echo $ac_n "(cached
) $ac_c" 1>&6
3605 ac_save_LIBS="$LIBS"
3606 LIBS="-ldnet_stub $LIBS"
3607 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure
"
3609 #include "confdefs.h
"
3610 /* Override any gcc2 internal prototype to avoid an error. */
3611 /* We use char because int might match the return type of a gcc2
3612 builtin and then its argument prototype would still apply. */
3619 if { (eval echo configure:3620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3621 eval "ac_cv_lib_
$ac_lib_var=yes"
3623 echo "configure
: failed program was
:" >&5
3624 cat conftest.$ac_ext >&5
3626 eval "ac_cv_lib_
$ac_lib_var=no
"
3629 LIBS="$ac_save_LIBS"
3632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3633 echo "$ac_t""yes" 1>&6
3634 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3636 echo "$ac_t""no
" 1>&6
3641 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3642 # to get the SysV transport functions.
3643 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3645 # The nsl library prevents programs from opening the X display
3646 # on Irix 5.2, according to dickey@clark.net.
3647 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
3648 echo "configure
:3649: checking
for gethostbyname
" >&5
3649 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3650 echo $ac_n "(cached
) $ac_c" 1>&6
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure
"
3654 #include "confdefs.h
"
3655 /* System header to define __stub macros and hopefully few prototypes,
3656 which can conflict with char gethostbyname(); below. */
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3661 char gethostbyname();
3665 /* The GNU C library defines this for functions which it implements
3666 to always fail with ENOSYS. Some functions are actually named
3667 something starting with __ and the normal name is an alias. */
3668 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3676 if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3678 eval "ac_cv_func_gethostbyname
=yes"
3680 echo "configure
: failed program was
:" >&5
3681 cat conftest.$ac_ext >&5
3683 eval "ac_cv_func_gethostbyname
=no
"
3688 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3689 echo "$ac_t""yes" 1>&6
3692 echo "$ac_t""no
" 1>&6
3695 if test $ac_cv_func_gethostbyname = no; then
3696 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
3697 echo "configure
:3698: checking
for gethostbyname
in -lnsl" >&5
3698 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3700 echo $ac_n "(cached
) $ac_c" 1>&6
3702 ac_save_LIBS="$LIBS"
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure
"
3706 #include "confdefs.h
"
3707 /* Override any gcc2 internal prototype to avoid an error. */
3708 /* We use char because int might match the return type of a gcc2
3709 builtin and then its argument prototype would still apply. */
3710 char gethostbyname();
3716 if { (eval echo configure:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3718 eval "ac_cv_lib_
$ac_lib_var=yes"
3720 echo "configure
: failed program was
:" >&5
3721 cat conftest.$ac_ext >&5
3723 eval "ac_cv_lib_
$ac_lib_var=no
"
3726 LIBS="$ac_save_LIBS"
3729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3730 echo "$ac_t""yes" 1>&6
3731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3733 echo "$ac_t""no
" 1>&6
3738 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3739 # socket/setsockopt and other routines are undefined under SCO ODT
3740 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3741 # on later versions), says simon@lia.di.epfl.ch: it contains
3742 # gethostby* variants that don't use the nameserver (or something).
3743 # -lsocket must be given before -lnsl if both are needed.
3744 # We assume that if connect needs -lnsl, so does gethostbyname.
3745 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
3746 echo "configure
:3747: checking
for connect
" >&5
3747 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3748 echo $ac_n "(cached
) $ac_c" 1>&6
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure
"
3752 #include "confdefs.h
"
3753 /* System header to define __stub macros and hopefully few prototypes,
3754 which can conflict with char connect(); below. */
3756 /* Override any gcc2 internal prototype to avoid an error. */
3757 /* We use char because int might match the return type of a gcc2
3758 builtin and then its argument prototype would still apply. */
3763 /* The GNU C library defines this for functions which it implements
3764 to always fail with ENOSYS. Some functions are actually named
3765 something starting with __ and the normal name is an alias. */
3766 #if defined (__stub_connect) || defined (__stub___connect)
3774 if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3776 eval "ac_cv_func_connect
=yes"
3778 echo "configure
: failed program was
:" >&5
3779 cat conftest.$ac_ext >&5
3781 eval "ac_cv_func_connect
=no
"
3786 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3787 echo "$ac_t""yes" 1>&6
3790 echo "$ac_t""no
" 1>&6
3793 if test $ac_cv_func_connect = no; then
3794 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
3795 echo "configure
:3796: checking
for connect
in -lsocket" >&5
3796 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3798 echo $ac_n "(cached
) $ac_c" 1>&6
3800 ac_save_LIBS="$LIBS"
3801 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure
"
3804 #include "confdefs.h
"
3805 /* Override any gcc2 internal prototype to avoid an error. */
3806 /* We use char because int might match the return type of a gcc2
3807 builtin and then its argument prototype would still apply. */
3814 if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3816 eval "ac_cv_lib_
$ac_lib_var=yes"
3818 echo "configure
: failed program was
:" >&5
3819 cat conftest.$ac_ext >&5
3821 eval "ac_cv_lib_
$ac_lib_var=no
"
3824 LIBS="$ac_save_LIBS"
3827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3828 echo "$ac_t""yes" 1>&6
3829 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3831 echo "$ac_t""no
" 1>&6
3836 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3837 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
3838 echo "configure
:3839: checking
for remove
" >&5
3839 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3840 echo $ac_n "(cached
) $ac_c" 1>&6
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure
"
3844 #include "confdefs.h
"
3845 /* System header to define __stub macros and hopefully few prototypes,
3846 which can conflict with char remove(); below. */
3848 /* Override any gcc2 internal prototype to avoid an error. */
3849 /* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3855 /* The GNU C library defines this for functions which it implements
3856 to always fail with ENOSYS. Some functions are actually named
3857 something starting with __ and the normal name is an alias. */
3858 #if defined (__stub_remove) || defined (__stub___remove)
3866 if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3868 eval "ac_cv_func_remove
=yes"
3870 echo "configure
: failed program was
:" >&5
3871 cat conftest.$ac_ext >&5
3873 eval "ac_cv_func_remove
=no
"
3878 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3879 echo "$ac_t""yes" 1>&6
3882 echo "$ac_t""no
" 1>&6
3885 if test $ac_cv_func_remove = no; then
3886 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
3887 echo "configure
:3888: checking
for remove
in -lposix" >&5
3888 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3890 echo $ac_n "(cached
) $ac_c" 1>&6
3892 ac_save_LIBS="$LIBS"
3893 LIBS="-lposix $LIBS"
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure
"
3896 #include "confdefs.h
"
3897 /* Override any gcc2 internal prototype to avoid an error. */
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3906 if { (eval echo configure:3907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3908 eval "ac_cv_lib_
$ac_lib_var=yes"
3910 echo "configure
: failed program was
:" >&5
3911 cat conftest.$ac_ext >&5
3913 eval "ac_cv_lib_
$ac_lib_var=no
"
3916 LIBS="$ac_save_LIBS"
3919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3920 echo "$ac_t""yes" 1>&6
3921 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3923 echo "$ac_t""no
" 1>&6
3928 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3929 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
3930 echo "configure
:3931: checking
for shmat
" >&5
3931 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3932 echo $ac_n "(cached
) $ac_c" 1>&6
3934 cat > conftest.$ac_ext <<EOF
3935 #line 3936 "configure
"
3936 #include "confdefs.h
"
3937 /* System header to define __stub macros and hopefully few prototypes,
3938 which can conflict with char shmat(); below. */
3940 /* Override any gcc2 internal prototype to avoid an error. */
3941 /* We use char because int might match the return type of a gcc2
3942 builtin and then its argument prototype would still apply. */
3947 /* The GNU C library defines this for functions which it implements
3948 to always fail with ENOSYS. Some functions are actually named
3949 something starting with __ and the normal name is an alias. */
3950 #if defined (__stub_shmat) || defined (__stub___shmat)
3958 if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3960 eval "ac_cv_func_shmat
=yes"
3962 echo "configure
: failed program was
:" >&5
3963 cat conftest.$ac_ext >&5
3965 eval "ac_cv_func_shmat
=no
"
3970 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3971 echo "$ac_t""yes" 1>&6
3974 echo "$ac_t""no
" 1>&6
3977 if test $ac_cv_func_shmat = no; then
3978 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
3979 echo "configure
:3980: checking
for shmat
in -lipc" >&5
3980 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3982 echo $ac_n "(cached
) $ac_c" 1>&6
3984 ac_save_LIBS="$LIBS"
3986 cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure
"
3988 #include "confdefs.h
"
3989 /* Override any gcc2 internal prototype to avoid an error. */
3990 /* We use char because int might match the return type of a gcc2
3991 builtin and then its argument prototype would still apply. */
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4000 eval "ac_cv_lib_
$ac_lib_var=yes"
4002 echo "configure
: failed program was
:" >&5
4003 cat conftest.$ac_ext >&5
4005 eval "ac_cv_lib_
$ac_lib_var=no
"
4008 LIBS="$ac_save_LIBS"
4011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4012 echo "$ac_t""yes" 1>&6
4013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4015 echo "$ac_t""no
" 1>&6
4021 # Check for libraries that X11R6 Xt/Xaw programs need.
4022 ac_save_LDFLAGS="$LDFLAGS"
4023 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4024 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4025 # check for ICE first), but we must link in the order -lSM -lICE or
4026 # we get undefined symbols. So assume we have SM if we have ICE.
4027 # These have to be linked with before -lX11, unlike the other
4028 # libraries we check for below, so use a different variable.
4029 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4030 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
4031 echo "configure
:4032: checking
for IceConnectionNumber
in -lICE" >&5
4032 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4034 echo $ac_n "(cached
) $ac_c" 1>&6
4036 ac_save_LIBS="$LIBS"
4037 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4038 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure
"
4040 #include "confdefs.h
"
4041 /* Override any gcc2 internal prototype to avoid an error. */
4042 /* We use char because int might match the return type of a gcc2
4043 builtin and then its argument prototype would still apply. */
4044 char IceConnectionNumber();
4047 IceConnectionNumber()
4050 if { (eval echo configure:4051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4052 eval "ac_cv_lib_
$ac_lib_var=yes"
4054 echo "configure
: failed program was
:" >&5
4055 cat conftest.$ac_ext >&5
4057 eval "ac_cv_lib_
$ac_lib_var=no
"
4060 LIBS="$ac_save_LIBS"
4063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4064 echo "$ac_t""yes" 1>&6
4065 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4067 echo "$ac_t""no
" 1>&6
4070 LDFLAGS="$ac_save_LDFLAGS"
4075 # Check whether --enable-java-awt or --disable-java-awt was given.
4076 if test "${enable_java_awt+set}" = set; then
4077 enableval="$enable_java_awt"
4082 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4085 # The default toolkit to use is the first one specified.
4089 for peer in $peerlibs ; do
4092 if test "$no_x" = yes; then
4093 echo "*** xlib peers requested but no X library available
" 1>&2
4097 if test -z "$TOOLKIT"; then
4098 TOOLKIT=gnu.awt.xlib.XToolkit
4103 if test "$no_x" = yes; then
4104 echo "*** xlib peers requested but no X library available
" 1>&2
4108 if test -z "$TOOLKIT"; then
4109 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4111 test -d jniinclude || mkdir jniinclude
4120 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
4127 if test "$use_xlib_awt" = yes; then
4136 if test "$use_gtk_awt" = yes; then
4147 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
4148 echo "configure
:4149: checking
for garbage collector to use
" >&5
4149 # Check whether --enable-java-gc or --disable-java-gc was given.
4150 if test "${enable_java_gc+set}" = set; then
4151 enableval="$enable_java_gc"
4167 echo "$ac_t""boehm
" 1>&6
4168 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4169 JC1GCSPEC='-fuse-boehm-gc'
4170 GCTESTSPEC="-L`${PWDCMD-pwd}`/..
/boehm-gc
/.libs
-rpath `${PWDCMD-pwd}`/..
/boehm-gc
/.libs
"
4172 GCINCS="`cat ../boehm-gc/boehm-cflags`"
4175 cat >> confdefs.h <<\EOF
4176 #define HAVE_BOEHM_GC 1
4181 echo "$ac_t""none
" 1>&6
4186 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
4199 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
4200 echo "configure
:4201: checking
for thread model used by GCC
" >&5
4201 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4202 echo "$ac_t""$THREADS" 1>&6
4212 cat >> confdefs.h <<\EOF
4213 #define LINUX_THREADS 1
4221 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4222 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
4225 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
4241 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4246 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4247 # merely adds pthread_* functions) but it does have a -pthread switch
4248 # which is required at link-time to select -lc_r *instead* of -lc.
4249 THREADLDFLAGS=-pthread
4250 # Don't set THREADSPEC here as might be expected since -pthread is
4251 # not processed when found within a spec file, it must come from
4252 # the command line. For now, the user must provide the -pthread
4253 # switch to link code compiled with gcj. In future, consider adding
4254 # support for weak references to pthread_* functions ala gthr.h API.
4255 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4258 # FreeBSD 5 implements a model much closer to other modern UNIX
4259 # which support threads. However, it still does not support
4261 THREADLDFLAGS=-pthread
4265 THREADCXXFLAGS=-pthread
4266 # boehm-gc needs some functions from librt, so link that too.
4267 THREADLIBS='-lpthread -lrt'
4268 THREADSPEC='-lpthread -lrt'
4271 THREADLIBS=-lpthread
4272 THREADSPEC=-lpthread
4275 THREADOBJS=posix-threads.lo
4276 THREADH=posix-threads.h
4277 # MIT pthreads doesn't seem to have the mutexattr functions.
4278 # But for now we don't check for it. We just assume you aren't
4279 # using MIT pthreads.
4280 cat >> confdefs.h <<\EOF
4281 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4285 # If we're using the Boehm GC, then we happen to know that it
4286 # defines _REENTRANT, so we don't bother. Eww.
4287 if test "$GC" != boehm; then
4288 cat >> confdefs.h <<\EOF
4289 #define _REENTRANT 1
4293 cat >> confdefs.h <<\EOF
4294 #define _POSIX_PTHREAD_SEMANTICS 1
4300 THREADOBJS=win32-threads.lo
4301 THREADH=win32-threads.h
4305 THREADOBJS=no-threads.lo
4306 THREADH=no-threads.h
4318 if test -d sysdep; then true; else mkdir sysdep; fi
4322 # Hash synchronization is only useful with posix threads right now.
4323 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none
"; then
4324 HASH_SYNC_SPEC=-fhash-synchronization
4325 cat >> confdefs.h <<\EOF
4326 #define JV_HASH_SYNCHRONIZATION 1
4335 if test "$GCC" = yes; then
4347 # We're in the tree with gcc, and need to include some of its headers.
4348 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4350 # Figure out where generated headers like libgcj-config.h get installed.
4351 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4352 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4353 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4354 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
4358 if test "x
${with_newlib}" = "xyes
"; then
4359 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4360 # may not work correctly, because the compiler may not be able to
4363 # We assume newlib. This lets us hard-code the functions we know
4365 cat >> confdefs.h <<\EOF
4366 #define HAVE_MEMMOVE 1
4369 cat >> confdefs.h <<\EOF
4370 #define HAVE_MEMCPY 1
4373 cat >> confdefs.h <<\EOF
4374 #define HAVE_STRERROR 1
4377 cat >> confdefs.h <<\EOF
4381 cat >> confdefs.h <<\EOF
4382 #define HAVE_GMTIME_R 1
4385 cat >> confdefs.h <<\EOF
4386 #define HAVE_LOCALTIME_R 1
4389 cat >> confdefs.h <<\EOF
4390 #define HAVE_USLEEP_DECL 1
4393 cat >> confdefs.h <<\EOF
4394 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4397 cat >> confdefs.h <<\EOF
4398 #define HAVE_ALLOCA 1
4402 cat >> confdefs.h <<\EOF
4408 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4410 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4411 echo "configure
:4412: checking
for $ac_func" >&5
4412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4413 echo $ac_n "(cached
) $ac_c" 1>&6
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure
"
4417 #include "confdefs.h
"
4418 /* System header to define __stub macros and hopefully few prototypes,
4419 which can conflict with char $ac_func(); below. */
4421 /* Override any gcc2 internal prototype to avoid an error. */
4422 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */
4428 /* The GNU C library defines this for functions which it implements
4429 to always fail with ENOSYS. Some functions are actually named
4430 something starting with __ and the normal name is an alias. */
4431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4441 eval "ac_cv_func_
$ac_func=yes"
4443 echo "configure
: failed program was
:" >&5
4444 cat conftest.$ac_ext >&5
4446 eval "ac_cv_func_
$ac_func=no
"
4451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4452 echo "$ac_t""yes" 1>&6
4453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4454 cat >> confdefs.h <<EOF
4455 #define $ac_tr_func 1
4459 echo "$ac_t""no
" 1>&6
4463 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4465 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4466 echo "configure
:4467: checking
for $ac_func" >&5
4467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4468 echo $ac_n "(cached
) $ac_c" 1>&6
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure
"
4472 #include "confdefs.h
"
4473 /* System header to define __stub macros and hopefully few prototypes,
4474 which can conflict with char $ac_func(); below. */
4476 /* Override any gcc2 internal prototype to avoid an error. */
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4483 /* The GNU C library defines this for functions which it implements
4484 to always fail with ENOSYS. Some functions are actually named
4485 something starting with __ and the normal name is an alias. */
4486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4494 if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4496 eval "ac_cv_func_
$ac_func=yes"
4498 echo "configure
: failed program was
:" >&5
4499 cat conftest.$ac_ext >&5
4501 eval "ac_cv_func_
$ac_func=no
"
4506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4507 echo "$ac_t""yes" 1>&6
4508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4509 cat >> confdefs.h <<EOF
4510 #define $ac_tr_func 1
4514 echo "$ac_t""no
" 1>&6
4518 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4520 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4521 echo "configure
:4522: checking
for $ac_func" >&5
4522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4523 echo $ac_n "(cached
) $ac_c" 1>&6
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure
"
4527 #include "confdefs.h
"
4528 /* System header to define __stub macros and hopefully few prototypes,
4529 which can conflict with char $ac_func(); below. */
4531 /* Override any gcc2 internal prototype to avoid an error. */
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4538 /* The GNU C library defines this for functions which it implements
4539 to always fail with ENOSYS. Some functions are actually named
4540 something starting with __ and the normal name is an alias. */
4541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 eval "ac_cv_func_
$ac_func=yes"
4553 echo "configure
: failed program was
:" >&5
4554 cat conftest.$ac_ext >&5
4556 eval "ac_cv_func_
$ac_func=no
"
4561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4564 cat >> confdefs.h <<EOF
4565 #define $ac_tr_func 1
4569 echo "$ac_t""no
" 1>&6
4573 for ac_func in nl_langinfo setlocale
4575 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4576 echo "configure
:4577: checking
for $ac_func" >&5
4577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4578 echo $ac_n "(cached
) $ac_c" 1>&6
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure
"
4582 #include "confdefs.h
"
4583 /* System header to define __stub macros and hopefully few prototypes,
4584 which can conflict with char $ac_func(); below. */
4586 /* Override any gcc2 internal prototype to avoid an error. */
4587 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */
4593 /* The GNU C library defines this for functions which it implements
4594 to always fail with ENOSYS. Some functions are actually named
4595 something starting with __ and the normal name is an alias. */
4596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4604 if { (eval echo configure:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4606 eval "ac_cv_func_
$ac_func=yes"
4608 echo "configure
: failed program was
:" >&5
4609 cat conftest.$ac_ext >&5
4611 eval "ac_cv_func_
$ac_func=no
"
4616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4617 echo "$ac_t""yes" 1>&6
4618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4619 cat >> confdefs.h <<EOF
4620 #define $ac_tr_func 1
4624 echo "$ac_t""no
" 1>&6
4628 for ac_func in inet_aton inet_addr
4630 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4631 echo "configure
:4632: checking
for $ac_func" >&5
4632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4633 echo $ac_n "(cached
) $ac_c" 1>&6
4635 cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure
"
4637 #include "confdefs.h
"
4638 /* System header to define __stub macros and hopefully few prototypes,
4639 which can conflict with char $ac_func(); below. */
4641 /* Override any gcc2 internal prototype to avoid an error. */
4642 /* We use char because int might match the return type of a gcc2
4643 builtin and then its argument prototype would still apply. */
4648 /* The GNU C library defines this for functions which it implements
4649 to always fail with ENOSYS. Some functions are actually named
4650 something starting with __ and the normal name is an alias. */
4651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4659 if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4661 eval "ac_cv_func_
$ac_func=yes"
4663 echo "configure
: failed program was
:" >&5
4664 cat conftest.$ac_ext >&5
4666 eval "ac_cv_func_
$ac_func=no
"
4671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4674 cat >> confdefs.h <<EOF
4675 #define $ac_tr_func 1
4679 echo "$ac_t""no
" 1>&6
4683 for ac_func in inet_pton uname inet_ntoa
4685 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4686 echo "configure
:4687: checking
for $ac_func" >&5
4687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4688 echo $ac_n "(cached
) $ac_c" 1>&6
4690 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure
"
4692 #include "confdefs.h
"
4693 /* System header to define __stub macros and hopefully few prototypes,
4694 which can conflict with char $ac_func(); below. */
4696 /* Override any gcc2 internal prototype to avoid an error. */
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4703 /* The GNU C library defines this for functions which it implements
4704 to always fail with ENOSYS. Some functions are actually named
4705 something starting with __ and the normal name is an alias. */
4706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4714 if { (eval echo configure:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4716 eval "ac_cv_func_
$ac_func=yes"
4718 echo "configure
: failed program was
:" >&5
4719 cat conftest.$ac_ext >&5
4721 eval "ac_cv_func_
$ac_func=no
"
4726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4727 echo "$ac_t""yes" 1>&6
4728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4729 cat >> confdefs.h <<EOF
4730 #define $ac_tr_func 1
4734 echo "$ac_t""no
" 1>&6
4738 for ac_func in fork execvp pipe sigaction ftruncate
4740 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4741 echo "configure
:4742: checking
for $ac_func" >&5
4742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4743 echo $ac_n "(cached
) $ac_c" 1>&6
4745 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure
"
4747 #include "confdefs.h
"
4748 /* System header to define __stub macros and hopefully few prototypes,
4749 which can conflict with char $ac_func(); below. */
4751 /* Override any gcc2 internal prototype to avoid an error. */
4752 /* We use char because int might match the return type of a gcc2
4753 builtin and then its argument prototype would still apply. */
4758 /* The GNU C library defines this for functions which it implements
4759 to always fail with ENOSYS. Some functions are actually named
4760 something starting with __ and the normal name is an alias. */
4761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4769 if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4771 eval "ac_cv_func_
$ac_func=yes"
4773 echo "configure
: failed program was
:" >&5
4774 cat conftest.$ac_ext >&5
4776 eval "ac_cv_func_
$ac_func=no
"
4781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4782 echo "$ac_t""yes" 1>&6
4783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4784 cat >> confdefs.h <<EOF
4785 #define $ac_tr_func 1
4789 echo "$ac_t""no
" 1>&6
4793 for ac_hdr in execinfo.h unistd.h dlfcn.h
4795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4796 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
4797 echo "configure
:4798: checking
for $ac_hdr" >&5
4798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4799 echo $ac_n "(cached
) $ac_c" 1>&6
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure
"
4803 #include "confdefs.h
"
4806 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4807 { (eval echo configure:4808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4809 if test -z "$ac_err"; then
4811 eval "ac_cv_header_
$ac_safe=yes"
4814 echo "configure
: failed program was
:" >&5
4815 cat conftest.$ac_ext >&5
4817 eval "ac_cv_header_
$ac_safe=no
"
4821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4822 echo "$ac_t""yes" 1>&6
4823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4824 cat >> confdefs.h <<EOF
4825 #define $ac_tr_hdr 1
4829 echo "$ac_t""no
" 1>&6
4833 echo $ac_n "checking
for backtrace
""...
$ac_c" 1>&6
4834 echo "configure
:4835: checking
for backtrace
" >&5
4835 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
4836 echo $ac_n "(cached
) $ac_c" 1>&6
4838 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure
"
4840 #include "confdefs.h
"
4841 /* System header to define __stub macros and hopefully few prototypes,
4842 which can conflict with char backtrace(); below. */
4844 /* Override any gcc2 internal prototype to avoid an error. */
4845 /* We use char because int might match the return type of a gcc2
4846 builtin and then its argument prototype would still apply. */
4851 /* The GNU C library defines this for functions which it implements
4852 to always fail with ENOSYS. Some functions are actually named
4853 something starting with __ and the normal name is an alias. */
4854 #if defined (__stub_backtrace) || defined (__stub___backtrace)
4862 if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4864 eval "ac_cv_func_backtrace
=yes"
4866 echo "configure
: failed program was
:" >&5
4867 cat conftest.$ac_ext >&5
4869 eval "ac_cv_func_backtrace
=no
"
4874 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
4875 echo "$ac_t""yes" 1>&6
4879 # Has broken backtrace()
4882 cat >> confdefs.h <<\EOF
4883 #define HAVE_BACKTRACE 1
4890 echo "$ac_t""no
" 1>&6
4894 # Has backtrace() defined in libgcj itself
4895 cat >> confdefs.h <<\EOF
4896 #define HAVE_BACKTRACE 1
4905 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
4906 echo "configure
:4907: checking
for dladdr
in -ldl" >&5
4907 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
4908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4909 echo $ac_n "(cached
) $ac_c" 1>&6
4911 ac_save_LIBS="$LIBS"
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure
"
4915 #include "confdefs.h
"
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4925 if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4927 eval "ac_cv_lib_
$ac_lib_var=yes"
4929 echo "configure
: failed program was
:" >&5
4930 cat conftest.$ac_ext >&5
4932 eval "ac_cv_lib_
$ac_lib_var=no
"
4935 LIBS="$ac_save_LIBS"
4938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4939 echo "$ac_t""yes" 1>&6
4941 cat >> confdefs.h <<\EOF
4942 #define HAVE_DLADDR 1
4946 echo "$ac_t""no
" 1>&6
4949 if test x"$build" = x"$host"; then
4950 for ac_file in /proc/self/exe
4953 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
4954 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
4955 echo "configure
:4956: checking
for $ac_file" >&5
4956 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
4957 echo $ac_n "(cached
) $ac_c" 1>&6
4959 if test "$cross_compiling" = yes; then
4960 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
4962 if test -r $ac_file; then
4963 eval "ac_cv_file_
$ac_safe=yes"
4965 eval "ac_cv_file_
$ac_safe=no
"
4969 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
4970 echo "$ac_t""yes" 1>&6
4971 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4972 cat >> confdefs.h <<EOF
4973 #define $ac_tr_file 1
4976 cat >> confdefs.h <<\EOF
4977 #define HAVE_PROC_SELF_EXE 1
4981 echo "$ac_t""no
" 1>&6
4989 cat >> confdefs.h <<\EOF
4990 #define HAVE_PROC_SELF_EXE 1
4999 am_cv_lib_iconv_ldpath=
5000 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5001 if test "${with_libiconv_prefix+set}" = set; then
5002 withval="$with_libiconv_prefix"
5004 for dir in `echo "$withval" | tr : ' '`; do
5005 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
5006 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib
"; fi
5012 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
5013 echo "configure
:5014: checking
for iconv" >&5
5014 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5015 echo $ac_n "(cached
) $ac_c" 1>&6
5018 am_cv_func_iconv="no
, consider installing GNU libiconv
"
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure
"
5022 #include "confdefs.h
"
5026 iconv_t cd = iconv_open("","");
5027 iconv(cd,NULL,NULL,NULL,NULL);
5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033 am_cv_func_iconv=yes
5035 echo "configure
: failed program was
:" >&5
5036 cat conftest.$ac_ext >&5
5039 if test "$am_cv_func_iconv" != yes; then
5040 am_save_LIBS="$LIBS"
5041 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure
"
5044 #include "confdefs.h
"
5048 iconv_t cd = iconv_open("","");
5049 iconv(cd,NULL,NULL,NULL,NULL);
5053 if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5056 am_cv_func_iconv=yes
5058 echo "configure
: failed program was
:" >&5
5059 cat conftest.$ac_ext >&5
5062 LIBS="$am_save_LIBS"
5067 echo "$ac_t""$am_cv_func_iconv" 1>&6
5068 if test "$am_cv_func_iconv" = yes; then
5069 cat >> confdefs.h <<\EOF
5070 #define HAVE_ICONV 1
5073 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
5074 echo "configure
:5075: checking
for iconv declaration
" >&5
5075 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5076 echo $ac_n "(cached
) $ac_c" 1>&6
5079 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure
"
5081 #include "confdefs.h
"
5089 #if defined(__STDC__) || defined(__cplusplus)
5090 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5099 if { (eval echo configure:5100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5101 am_cv_proto_iconv_arg1=""
5103 echo "configure
: failed program was
:" >&5
5104 cat conftest.$ac_ext >&5
5106 am_cv_proto_iconv_arg1="const
"
5109 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
);"
5112 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5113 echo "$ac_t""$
{ac_t
:-
5114 }$am_cv_proto_iconv" 1>&6
5115 cat >> confdefs.h <<EOF
5116 #define ICONV_CONST $am_cv_proto_iconv_arg1
5121 if test "$am_cv_lib_iconv" = yes; then
5122 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5126 for ac_hdr in locale.h
5128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5129 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5130 echo "configure
:5131: checking
for $ac_hdr" >&5
5131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5132 echo $ac_n "(cached
) $ac_c" 1>&6
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure
"
5136 #include "confdefs.h
"
5139 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5140 { (eval echo configure:5141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5142 if test -z "$ac_err"; then
5144 eval "ac_cv_header_
$ac_safe=yes"
5147 echo "configure
: failed program was
:" >&5
5148 cat conftest.$ac_ext >&5
5150 eval "ac_cv_header_
$ac_safe=no
"
5154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5155 echo "$ac_t""yes" 1>&6
5156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5157 cat >> confdefs.h <<EOF
5158 #define $ac_tr_hdr 1
5162 echo "$ac_t""no
" 1>&6
5166 if test $ac_cv_header_locale_h = yes; then
5167 echo $ac_n "checking
for LC_MESSAGES
""...
$ac_c" 1>&6
5168 echo "configure
:5169: checking
for LC_MESSAGES
" >&5
5169 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5170 echo $ac_n "(cached
) $ac_c" 1>&6
5172 cat > conftest.$ac_ext <<EOF
5173 #line 5174 "configure
"
5174 #include "confdefs.h
"
5180 if { (eval echo configure:5181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5182 am_cv_val_LC_MESSAGES=yes
5184 echo "configure
: failed program was
:" >&5
5185 cat conftest.$ac_ext >&5
5187 am_cv_val_LC_MESSAGES=no
5192 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5193 if test $am_cv_val_LC_MESSAGES = yes; then
5194 cat >> confdefs.h <<\EOF
5195 #define HAVE_LC_MESSAGES 1
5200 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
5201 echo "configure
:5202: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
5202 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5203 echo $ac_n "(cached
) $ac_c" 1>&6
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure
"
5207 #include "confdefs.h
"
5208 #include <sys/types.h>
5211 struct tm *tp; tp->tm_sec;
5214 if { (eval echo configure:5215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5216 ac_cv_struct_tm=time.h
5218 echo "configure
: failed program was
:" >&5
5219 cat conftest.$ac_ext >&5
5221 ac_cv_struct_tm=sys/time.h
5226 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5227 if test $ac_cv_struct_tm = sys/time.h; then
5228 cat >> confdefs.h <<\EOF
5229 #define TM_IN_SYS_TIME 1
5234 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
5235 echo "configure
:5236: checking
for tm_zone
in struct tm
" >&5
5236 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5237 echo $ac_n "(cached
) $ac_c" 1>&6
5239 cat > conftest.$ac_ext <<EOF
5240 #line 5241 "configure
"
5241 #include "confdefs.h
"
5242 #include <sys/types.h>
5243 #include <$ac_cv_struct_tm>
5245 struct tm tm; tm.tm_zone;
5248 if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5250 ac_cv_struct_tm_zone=yes
5252 echo "configure
: failed program was
:" >&5
5253 cat conftest.$ac_ext >&5
5255 ac_cv_struct_tm_zone=no
5260 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5261 if test "$ac_cv_struct_tm_zone" = yes; then
5262 cat >> confdefs.h <<\EOF
5263 #define HAVE_TM_ZONE 1
5267 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
5268 echo "configure
:5269: checking
for tzname
" >&5
5269 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5270 echo $ac_n "(cached
) $ac_c" 1>&6
5272 cat > conftest.$ac_ext <<EOF
5273 #line 5274 "configure
"
5274 #include "confdefs.h
"
5276 #ifndef tzname /* For SGI. */
5277 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5283 if { (eval echo configure:5284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5285 ac_cv_var_tzname=yes
5287 echo "configure
: failed program was
:" >&5
5288 cat conftest.$ac_ext >&5
5295 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5296 if test $ac_cv_var_tzname = yes; then
5297 cat >> confdefs.h <<\EOF
5298 #define HAVE_TZNAME 1
5305 for ac_func in gethostbyname_r
5307 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5308 echo "configure
:5309: checking
for $ac_func" >&5
5309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5310 echo $ac_n "(cached
) $ac_c" 1>&6
5312 cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure
"
5314 #include "confdefs.h
"
5315 /* System header to define __stub macros and hopefully few prototypes,
5316 which can conflict with char $ac_func(); below. */
5318 /* Override any gcc2 internal prototype to avoid an error. */
5319 /* We use char because int might match the return type of a gcc2
5320 builtin and then its argument prototype would still apply. */
5325 /* The GNU C library defines this for functions which it implements
5326 to always fail with ENOSYS. Some functions are actually named
5327 something starting with __ and the normal name is an alias. */
5328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5336 if { (eval echo configure:5337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5338 eval "ac_cv_func_
$ac_func=yes"
5340 echo "configure
: failed program was
:" >&5
5341 cat conftest.$ac_ext >&5
5343 eval "ac_cv_func_
$ac_func=no
"
5348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5349 echo "$ac_t""yes" 1>&6
5350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5351 cat >> confdefs.h <<EOF
5352 #define $ac_tr_func 1
5355 cat >> confdefs.h <<\EOF
5356 #define HAVE_GETHOSTBYNAME_R 1
5359 # There are two different kinds of gethostbyname_r.
5360 # We look for the one that returns `int'.
5361 # Hopefully this check is robust enough.
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure
"
5364 #include "confdefs.h
"
5367 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5368 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
5371 cat >> confdefs.h <<\EOF
5372 #define GETHOSTBYNAME_R_RETURNS_INT 1
5380 *" -D_REENTRANT "*) ;;
5382 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
5383 echo "configure
:5384: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
5384 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5385 echo $ac_n "(cached
) $ac_c" 1>&6
5389 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5390 ac_cpp='$CXXCPP $CPPFLAGS'
5391 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5392 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5393 cross_compiling=$ac_cv_prog_cxx_cross
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure
"
5397 #include "confdefs.h
"
5400 gethostbyname_r("", 0, 0);
5403 if { (eval echo configure:5404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5405 libjava_cv_gethostbyname_r_needs_reentrant=no
5407 echo "configure
: failed program was
:" >&5
5408 cat conftest.$ac_ext >&5
5410 CPPFLAGS_SAVE="$CPPFLAGS"
5411 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5412 cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure
"
5414 #include "confdefs.h
"
5417 gethostbyname_r("", 0, 0);
5420 if { (eval echo configure:5421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5422 libjava_cv_gethostbyname_r_needs_reentrant=yes
5424 echo "configure
: failed program was
:" >&5
5425 cat conftest.$ac_ext >&5
5427 libjava_cv_gethostbyname_r_needs_reentrant=fail
5430 CPPFLAGS="$CPPFLAGS_SAVE"
5435 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5438 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5439 cross_compiling=$ac_cv_prog_cc_cross
5444 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5445 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5446 cat >> confdefs.h <<\EOF
5447 #define _REENTRANT 1
5454 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
5455 echo "configure
:5456: checking
for struct hostent_data
" >&5
5456 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5457 echo $ac_n "(cached
) $ac_c" 1>&6
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure
"
5461 #include "confdefs.h
"
5463 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5464 # define _REENTRANT 1
5468 struct hostent_data data;
5471 if { (eval echo configure:5472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5473 libjava_cv_struct_hostent_data=yes
5475 echo "configure
: failed program was
:" >&5
5476 cat conftest.$ac_ext >&5
5478 libjava_cv_struct_hostent_data=no
5483 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5484 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
5485 cat >> confdefs.h <<\EOF
5486 #define HAVE_STRUCT_HOSTENT_DATA 1
5492 echo "$ac_t""no
" 1>&6
5497 # FIXME: libjava source code expects to find a prototype for
5498 # gethostbyaddr_r in netdb.h. The outer check ensures that
5499 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5500 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5501 # linkage check is enough, yet C++ code requires proper prototypes.)
5502 cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure
"
5504 #include "confdefs.h
"
5507 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5508 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
5511 for ac_func in gethostbyaddr_r
5513 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5514 echo "configure
:5515: checking
for $ac_func" >&5
5515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5516 echo $ac_n "(cached
) $ac_c" 1>&6
5518 cat > conftest.$ac_ext <<EOF
5519 #line 5520 "configure
"
5520 #include "confdefs.h
"
5521 /* System header to define __stub macros and hopefully few prototypes,
5522 which can conflict with char $ac_func(); below. */
5524 /* Override any gcc2 internal prototype to avoid an error. */
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5531 /* The GNU C library defines this for functions which it implements
5532 to always fail with ENOSYS. Some functions are actually named
5533 something starting with __ and the normal name is an alias. */
5534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5542 if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5544 eval "ac_cv_func_
$ac_func=yes"
5546 echo "configure
: failed program was
:" >&5
5547 cat conftest.$ac_ext >&5
5549 eval "ac_cv_func_
$ac_func=no
"
5554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5555 echo "$ac_t""yes" 1>&6
5556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5557 cat >> confdefs.h <<EOF
5558 #define $ac_tr_func 1
5561 cat >> confdefs.h <<\EOF
5562 #define HAVE_GETHOSTBYADDR_R 1
5565 # There are two different kinds of gethostbyaddr_r.
5566 # We look for the one that returns `int'.
5567 # Hopefully this check is robust enough.
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure
"
5570 #include "confdefs.h
"
5573 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5574 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
5577 cat >> confdefs.h <<\EOF
5578 #define GETHOSTBYADDR_R_RETURNS_INT 1
5585 echo "$ac_t""no
" 1>&6
5593 for ac_func in gethostname
5595 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5596 echo "configure
:5597: checking
for $ac_func" >&5
5597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5598 echo $ac_n "(cached
) $ac_c" 1>&6
5600 cat > conftest.$ac_ext <<EOF
5601 #line 5602 "configure
"
5602 #include "confdefs.h
"
5603 /* System header to define __stub macros and hopefully few prototypes,
5604 which can conflict with char $ac_func(); below. */
5606 /* Override any gcc2 internal prototype to avoid an error. */
5607 /* We use char because int might match the return type of a gcc2
5608 builtin and then its argument prototype would still apply. */
5613 /* The GNU C library defines this for functions which it implements
5614 to always fail with ENOSYS. Some functions are actually named
5615 something starting with __ and the normal name is an alias. */
5616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5624 if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5626 eval "ac_cv_func_
$ac_func=yes"
5628 echo "configure
: failed program was
:" >&5
5629 cat conftest.$ac_ext >&5
5631 eval "ac_cv_func_
$ac_func=no
"
5636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5637 echo "$ac_t""yes" 1>&6
5638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5639 cat >> confdefs.h <<EOF
5640 #define $ac_tr_func 1
5643 cat >> confdefs.h <<\EOF
5644 #define HAVE_GETHOSTNAME 1
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure
"
5649 #include "confdefs.h
"
5652 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5653 egrep "gethostname
" >/dev/null 2>&1; then
5656 cat >> confdefs.h <<\EOF
5657 #define HAVE_GETHOSTNAME_DECL 1
5664 echo "$ac_t""no
" 1>&6
5669 for ac_func in usleep
5671 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5672 echo "configure
:5673: checking
for $ac_func" >&5
5673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5674 echo $ac_n "(cached
) $ac_c" 1>&6
5676 cat > conftest.$ac_ext <<EOF
5677 #line 5678 "configure
"
5678 #include "confdefs.h
"
5679 /* System header to define __stub macros and hopefully few prototypes,
5680 which can conflict with char $ac_func(); below. */
5682 /* Override any gcc2 internal prototype to avoid an error. */
5683 /* We use char because int might match the return type of a gcc2
5684 builtin and then its argument prototype would still apply. */
5689 /* The GNU C library defines this for functions which it implements
5690 to always fail with ENOSYS. Some functions are actually named
5691 something starting with __ and the normal name is an alias. */
5692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5700 if { (eval echo configure:5701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5702 eval "ac_cv_func_
$ac_func=yes"
5704 echo "configure
: failed program was
:" >&5
5705 cat conftest.$ac_ext >&5
5707 eval "ac_cv_func_
$ac_func=no
"
5712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5713 echo "$ac_t""yes" 1>&6
5714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5715 cat >> confdefs.h <<EOF
5716 #define $ac_tr_func 1
5719 cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure
"
5721 #include "confdefs.h
"
5724 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5725 egrep "usleep" >/dev/null 2>&1; then
5728 cat >> confdefs.h <<\EOF
5729 #define HAVE_USLEEP_DECL 1
5736 echo "$ac_t""no
" 1>&6
5741 # Look for these functions in the thread library, but only bother
5742 # if using POSIX threads.
5743 if test "$THREADS" = posix; then
5745 LIBS="$LIBS $THREADLIBS"
5746 # Some POSIX thread systems don't have pthread_mutexattr_settype.
5748 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
5750 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5751 echo "configure
:5752: checking
for $ac_func" >&5
5752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5753 echo $ac_n "(cached
) $ac_c" 1>&6
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure
"
5757 #include "confdefs.h
"
5758 /* System header to define __stub macros and hopefully few prototypes,
5759 which can conflict with char $ac_func(); below. */
5761 /* Override any gcc2 internal prototype to avoid an error. */
5762 /* We use char because int might match the return type of a gcc2
5763 builtin and then its argument prototype would still apply. */
5768 /* The GNU C library defines this for functions which it implements
5769 to always fail with ENOSYS. Some functions are actually named
5770 something starting with __ and the normal name is an alias. */
5771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5781 eval "ac_cv_func_
$ac_func=yes"
5783 echo "configure
: failed program was
:" >&5
5784 cat conftest.$ac_ext >&5
5786 eval "ac_cv_func_
$ac_func=no
"
5791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5792 echo "$ac_t""yes" 1>&6
5793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5794 cat >> confdefs.h <<EOF
5795 #define $ac_tr_func 1
5799 echo "$ac_t""no
" 1>&6
5804 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
5805 # Solaris 7 the name librt is preferred.
5806 for ac_func in sched_yield
5808 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5809 echo "configure
:5810: checking
for $ac_func" >&5
5810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5811 echo $ac_n "(cached
) $ac_c" 1>&6
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure
"
5815 #include "confdefs.h
"
5816 /* System header to define __stub macros and hopefully few prototypes,
5817 which can conflict with char $ac_func(); below. */
5819 /* Override any gcc2 internal prototype to avoid an error. */
5820 /* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5826 /* The GNU C library defines this for functions which it implements
5827 to always fail with ENOSYS. Some functions are actually named
5828 something starting with __ and the normal name is an alias. */
5829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5837 if { (eval echo configure:5838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5839 eval "ac_cv_func_
$ac_func=yes"
5841 echo "configure
: failed program was
:" >&5
5842 cat conftest.$ac_ext >&5
5844 eval "ac_cv_func_
$ac_func=no
"
5849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5850 echo "$ac_t""yes" 1>&6
5851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5852 cat >> confdefs.h <<EOF
5853 #define $ac_tr_func 1
5857 echo "$ac_t""no
" 1>&6
5858 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
5859 echo "configure
:5860: checking
for sched_yield
in -lrt" >&5
5860 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5862 echo $ac_n "(cached
) $ac_c" 1>&6
5864 ac_save_LIBS="$LIBS"
5866 cat > conftest.$ac_ext <<EOF
5867 #line 5868 "configure
"
5868 #include "confdefs.h
"
5869 /* Override any gcc2 internal prototype to avoid an error. */
5870 /* We use char because int might match the return type of a gcc2
5871 builtin and then its argument prototype would still apply. */
5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880 eval "ac_cv_lib_
$ac_lib_var=yes"
5882 echo "configure
: failed program was
:" >&5
5883 cat conftest.$ac_ext >&5
5885 eval "ac_cv_lib_
$ac_lib_var=no
"
5888 LIBS="$ac_save_LIBS"
5891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5892 echo "$ac_t""yes" 1>&6
5894 cat >> confdefs.h <<\EOF
5895 #define HAVE_SCHED_YIELD 1
5898 THREADLIBS="$THREADLIBS -lrt"
5899 THREADSPEC="$THREADSPEC -lrt"
5901 echo "$ac_t""no
" 1>&6
5903 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
5904 echo "configure
:5905: checking
for sched_yield
in -lposix4" >&5
5905 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
5906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5907 echo $ac_n "(cached
) $ac_c" 1>&6
5909 ac_save_LIBS="$LIBS"
5910 LIBS="-lposix4 $LIBS"
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure
"
5913 #include "confdefs.h
"
5914 /* Override any gcc2 internal prototype to avoid an error. */
5915 /* We use char because int might match the return type of a gcc2
5916 builtin and then its argument prototype would still apply. */
5923 if { (eval echo configure:5924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5925 eval "ac_cv_lib_
$ac_lib_var=yes"
5927 echo "configure
: failed program was
:" >&5
5928 cat conftest.$ac_ext >&5
5930 eval "ac_cv_lib_
$ac_lib_var=no
"
5933 LIBS="$ac_save_LIBS"
5936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5937 echo "$ac_t""yes" 1>&6
5939 cat >> confdefs.h <<\EOF
5940 #define HAVE_SCHED_YIELD 1
5943 THREADLIBS="$THREADLIBS -lposix4"
5944 THREADSPEC="$THREADSPEC -lposix4"
5946 echo "$ac_t""no
" 1>&6
5956 # We can save a little space at runtime if the mutex has m_count
5957 # or __m_count. This is a nice hack for Linux.
5958 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure
"
5960 #include "confdefs.h
"
5961 #include <pthread.h>
5964 extern pthread_mutex_t *mutex; int q = mutex->m_count;
5968 if { (eval echo configure:5969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5970 cat >> confdefs.h <<\EOF
5971 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
5975 echo "configure
: failed program was
:" >&5
5976 cat conftest.$ac_ext >&5
5979 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure
"
5981 #include "confdefs.h
"
5982 #include <pthread.h>
5985 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
5989 if { (eval echo configure:5990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5991 cat >> confdefs.h <<\EOF
5992 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
5996 echo "configure
: failed program was
:" >&5
5997 cat conftest.$ac_ext >&5
6004 # We require a way to get the time.
6006 for ac_func in gettimeofday time ftime
6008 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6009 echo "configure
:6010: checking
for $ac_func" >&5
6010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6011 echo $ac_n "(cached
) $ac_c" 1>&6
6013 cat > conftest.$ac_ext <<EOF
6014 #line 6015 "configure
"
6015 #include "confdefs.h
"
6016 /* System header to define __stub macros and hopefully few prototypes,
6017 which can conflict with char $ac_func(); below. */
6019 /* Override any gcc2 internal prototype to avoid an error. */
6020 /* We use char because int might match the return type of a gcc2
6021 builtin and then its argument prototype would still apply. */
6026 /* The GNU C library defines this for functions which it implements
6027 to always fail with ENOSYS. Some functions are actually named
6028 something starting with __ and the normal name is an alias. */
6029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6037 if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6039 eval "ac_cv_func_
$ac_func=yes"
6041 echo "configure
: failed program was
:" >&5
6042 cat conftest.$ac_ext >&5
6044 eval "ac_cv_func_
$ac_func=no
"
6049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6050 echo "$ac_t""yes" 1>&6
6051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6052 cat >> confdefs.h <<EOF
6053 #define $ac_tr_func 1
6057 echo "$ac_t""no
" 1>&6
6061 if test "$time_found" = no; then
6062 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
6065 for ac_func in memmove
6067 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6068 echo "configure
:6069: checking
for $ac_func" >&5
6069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6070 echo $ac_n "(cached
) $ac_c" 1>&6
6072 cat > conftest.$ac_ext <<EOF
6073 #line 6074 "configure
"
6074 #include "confdefs.h
"
6075 /* System header to define __stub macros and hopefully few prototypes,
6076 which can conflict with char $ac_func(); below. */
6078 /* Override any gcc2 internal prototype to avoid an error. */
6079 /* We use char because int might match the return type of a gcc2
6080 builtin and then its argument prototype would still apply. */
6085 /* The GNU C library defines this for functions which it implements
6086 to always fail with ENOSYS. Some functions are actually named
6087 something starting with __ and the normal name is an alias. */
6088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6096 if { (eval echo configure:6097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6098 eval "ac_cv_func_
$ac_func=yes"
6100 echo "configure
: failed program was
:" >&5
6101 cat conftest.$ac_ext >&5
6103 eval "ac_cv_func_
$ac_func=no
"
6108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6109 echo "$ac_t""yes" 1>&6
6110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6111 cat >> confdefs.h <<EOF
6112 #define $ac_tr_func 1
6116 echo "$ac_t""no
" 1>&6
6121 # We require memcpy.
6123 for ac_func in memcpy
6125 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6126 echo "configure
:6127: checking
for $ac_func" >&5
6127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6128 echo $ac_n "(cached
) $ac_c" 1>&6
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure
"
6132 #include "confdefs.h
"
6133 /* System header to define __stub macros and hopefully few prototypes,
6134 which can conflict with char $ac_func(); below. */
6136 /* Override any gcc2 internal prototype to avoid an error. */
6137 /* We use char because int might match the return type of a gcc2
6138 builtin and then its argument prototype would still apply. */
6143 /* The GNU C library defines this for functions which it implements
6144 to always fail with ENOSYS. Some functions are actually named
6145 something starting with __ and the normal name is an alias. */
6146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6154 if { (eval echo configure:6155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6156 eval "ac_cv_func_
$ac_func=yes"
6158 echo "configure
: failed program was
:" >&5
6159 cat conftest.$ac_ext >&5
6161 eval "ac_cv_func_
$ac_func=no
"
6166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6167 echo "$ac_t""yes" 1>&6
6168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6169 cat >> confdefs.h <<EOF
6170 #define $ac_tr_func 1
6174 echo "$ac_t""no
" 1>&6
6178 if test "$memcpy_found" = no; then
6179 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
6182 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
6183 echo "configure
:6184: checking
for dlopen
in -ldl" >&5
6184 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6186 echo $ac_n "(cached
) $ac_c" 1>&6
6188 ac_save_LIBS="$LIBS"
6190 cat > conftest.$ac_ext <<EOF
6191 #line 6192 "configure
"
6192 #include "confdefs.h
"
6193 /* Override any gcc2 internal prototype to avoid an error. */
6194 /* We use char because int might match the return type of a gcc2
6195 builtin and then its argument prototype would still apply. */
6202 if { (eval echo configure:6203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6204 eval "ac_cv_lib_
$ac_lib_var=yes"
6206 echo "configure
: failed program was
:" >&5
6207 cat conftest.$ac_ext >&5
6209 eval "ac_cv_lib_
$ac_lib_var=no
"
6212 LIBS="$ac_save_LIBS"
6215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6216 echo "$ac_t""yes" 1>&6
6218 cat >> confdefs.h <<\EOF
6219 #define HAVE_DLOPEN 1
6223 echo "$ac_t""no
" 1>&6
6227 # Some library-finding code we stole from Tcl.
6228 #--------------------------------------------------------------------
6229 # Check for the existence of the -lsocket and -lnsl libraries.
6230 # The order here is important, so that they end up in the right
6231 # order in the command line generated by make. Here are some
6232 # special considerations:
6233 # 1. Use "connect
" and "accept
" to check for -lsocket, and
6234 # "gethostbyname
" to check for -lnsl.
6235 # 2. Use each function name only once: can't redo a check because
6236 # autoconf caches the results of the last check and won't redo it.
6237 # 3. Use -lnsl and -lsocket only if they supply procedures that
6238 # aren't already present in the normal libraries. This is because
6239 # IRIX 5.2 has libraries, but they aren't needed and they're
6240 # bogus: they goof up name resolution if used.
6241 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6242 # To get around this problem, check for both libraries together
6243 # if -lsocket doesn't work by itself.
6244 #--------------------------------------------------------------------
6246 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
6247 echo "configure
:6248: checking
for socket libraries
" >&5
6248 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6249 echo $ac_n "(cached
) $ac_c" 1>&6
6253 unset ac_cv_func_connect
6254 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6255 echo "configure
:6256: checking
for connect
" >&5
6256 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6257 echo $ac_n "(cached
) $ac_c" 1>&6
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure
"
6261 #include "confdefs.h
"
6262 /* System header to define __stub macros and hopefully few prototypes,
6263 which can conflict with char connect(); below. */
6265 /* Override any gcc2 internal prototype to avoid an error. */
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6272 /* The GNU C library defines this for functions which it implements
6273 to always fail with ENOSYS. Some functions are actually named
6274 something starting with __ and the normal name is an alias. */
6275 #if defined (__stub_connect) || defined (__stub___connect)
6283 if { (eval echo configure:6284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6285 eval "ac_cv_func_connect
=yes"
6287 echo "configure
: failed program was
:" >&5
6288 cat conftest.$ac_ext >&5
6290 eval "ac_cv_func_connect
=no
"
6295 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6296 echo "$ac_t""yes" 1>&6
6299 echo "$ac_t""no
" 1>&6
6303 if test "$gcj_checkSocket" = 1; then
6304 unset ac_cv_func_connect
6305 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
6306 echo "configure
:6307: checking
for main
in -lsocket" >&5
6307 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6309 echo $ac_n "(cached
) $ac_c" 1>&6
6311 ac_save_LIBS="$LIBS"
6312 LIBS="-lsocket $LIBS"
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure
"
6315 #include "confdefs.h
"
6321 if { (eval echo configure:6322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6323 eval "ac_cv_lib_
$ac_lib_var=yes"
6325 echo "configure
: failed program was
:" >&5
6326 cat conftest.$ac_ext >&5
6328 eval "ac_cv_lib_
$ac_lib_var=no
"
6331 LIBS="$ac_save_LIBS"
6334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6335 echo "$ac_t""yes" 1>&6
6336 gcj_cv_lib_sockets="-lsocket"
6338 echo "$ac_t""no
" 1>&6
6343 if test "$gcj_checkBoth" = 1; then
6345 LIBS="$LIBS -lsocket -lnsl"
6346 unset ac_cv_func_accept
6347 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
6348 echo "configure
:6349: checking
for accept
" >&5
6349 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6350 echo $ac_n "(cached
) $ac_c" 1>&6
6352 cat > conftest.$ac_ext <<EOF
6353 #line 6354 "configure
"
6354 #include "confdefs.h
"
6355 /* System header to define __stub macros and hopefully few prototypes,
6356 which can conflict with char accept(); below. */
6358 /* Override any gcc2 internal prototype to avoid an error. */
6359 /* We use char because int might match the return type of a gcc2
6360 builtin and then its argument prototype would still apply. */
6365 /* The GNU C library defines this for functions which it implements
6366 to always fail with ENOSYS. Some functions are actually named
6367 something starting with __ and the normal name is an alias. */
6368 #if defined (__stub_accept) || defined (__stub___accept)
6376 if { (eval echo configure:6377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6378 eval "ac_cv_func_accept
=yes"
6380 echo "configure
: failed program was
:" >&5
6381 cat conftest.$ac_ext >&5
6383 eval "ac_cv_func_accept
=no
"
6388 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6389 echo "$ac_t""yes" 1>&6
6391 gcj_cv_lib_sockets="-lsocket -lnsl"
6393 echo "$ac_t""no
" 1>&6
6396 unset ac_cv_func_accept
6399 unset ac_cv_func_gethostbyname
6401 LIBS="$LIBS $gcj_cv_lib_sockets"
6402 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6403 echo "configure
:6404: checking
for gethostbyname
" >&5
6404 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6405 echo $ac_n "(cached
) $ac_c" 1>&6
6407 cat > conftest.$ac_ext <<EOF
6408 #line 6409 "configure
"
6409 #include "confdefs.h
"
6410 /* System header to define __stub macros and hopefully few prototypes,
6411 which can conflict with char gethostbyname(); below. */
6413 /* Override any gcc2 internal prototype to avoid an error. */
6414 /* We use char because int might match the return type of a gcc2
6415 builtin and then its argument prototype would still apply. */
6416 char gethostbyname();
6420 /* The GNU C library defines this for functions which it implements
6421 to always fail with ENOSYS. Some functions are actually named
6422 something starting with __ and the normal name is an alias. */
6423 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6431 if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6433 eval "ac_cv_func_gethostbyname
=yes"
6435 echo "configure
: failed program was
:" >&5
6436 cat conftest.$ac_ext >&5
6438 eval "ac_cv_func_gethostbyname
=no
"
6443 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6444 echo "$ac_t""yes" 1>&6
6447 echo "$ac_t""no
" 1>&6
6448 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
6449 echo "configure
:6450: checking
for main
in -lnsl" >&5
6450 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6452 echo $ac_n "(cached
) $ac_c" 1>&6
6454 ac_save_LIBS="$LIBS"
6456 cat > conftest.$ac_ext <<EOF
6457 #line 6458 "configure
"
6458 #include "confdefs.h
"
6464 if { (eval echo configure:6465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 eval "ac_cv_lib_
$ac_lib_var=yes"
6468 echo "configure
: failed program was
:" >&5
6469 cat conftest.$ac_ext >&5
6471 eval "ac_cv_lib_
$ac_lib_var=no
"
6474 LIBS="$ac_save_LIBS"
6477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6478 echo "$ac_t""yes" 1>&6
6479 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6481 echo "$ac_t""no
" 1>&6
6486 unset ac_cv_func_gethostbyname
6491 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6492 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6494 if test "$with_system_zlib" = yes; then
6495 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
6496 echo "configure
:6497: checking
for deflate
in -lz" >&5
6497 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6499 echo $ac_n "(cached
) $ac_c" 1>&6
6501 ac_save_LIBS="$LIBS"
6503 cat > conftest.$ac_ext <<EOF
6504 #line 6505 "configure
"
6505 #include "confdefs.h
"
6506 /* Override any gcc2 internal prototype to avoid an error. */
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6515 if { (eval echo configure:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6517 eval "ac_cv_lib_
$ac_lib_var=yes"
6519 echo "configure
: failed program was
:" >&5
6520 cat conftest.$ac_ext >&5
6522 eval "ac_cv_lib_
$ac_lib_var=no
"
6525 LIBS="$ac_save_LIBS"
6528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6529 echo "$ac_t""yes" 1>&6
6532 echo "$ac_t""no
" 1>&6
6538 # Test for Gtk stuff, if asked for.
6539 if test "$use_gtk_awt" = yes; then
6540 # Check whether --enable-gtktest or --disable-gtktest was given.
6541 if test "${enable_gtktest+set}" = set; then
6542 enableval="$enable_gtktest"
6549 pkg_config_args=gtk+-2.0
6554 pkg_config_args="$pkg_config_args gthread-2.0
"
6561 # Extract the first word of "pkg-config
", so it can be a program name with args.
6562 set dummy pkg-config; ac_word=$2
6563 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6564 echo "configure
:6565: checking
for $ac_word" >&5
6565 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6566 echo $ac_n "(cached
) $ac_c" 1>&6
6568 case "$PKG_CONFIG" in
6570 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6573 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6578 for ac_dir in $ac_dummy; do
6579 test -z "$ac_dir" && ac_dir=.
6580 if test -f $ac_dir/$ac_word; then
6581 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6586 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
6590 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6591 if test -n "$PKG_CONFIG"; then
6592 echo "$ac_t""$PKG_CONFIG" 1>&6
6594 echo "$ac_t""no
" 1>&6
6598 if test x$PKG_CONFIG != xno ; then
6599 if pkg-config --atleast-pkgconfig-version 0.7 ; then
6602 echo *** pkg-config too old; version 0.7 or better required.
6610 min_gtk_version=2.0.0
6611 echo $ac_n "checking
for GTK
+ - version
>= $min_gtk_version""...
$ac_c" 1>&6
6612 echo "configure
:6613: checking
for GTK
+ - version
>= $min_gtk_version" >&5
6614 if test x$PKG_CONFIG != xno ; then
6615 ## don't try to run the test against uninstalled libtool libs
6616 if $PKG_CONFIG --uninstalled $pkg_config_args; then
6617 echo "Will use uninstalled version of GTK
+ found
in PKG_CONFIG_PATH
"
6621 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
6628 if test x"$no_gtk" = x ; then
6629 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
6630 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
6631 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6632 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6633 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6634 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6635 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6636 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6637 if test "x
$enable_gtktest" = "xyes
" ; then
6638 ac_save_CFLAGS="$CFLAGS"
6639 ac_save_LIBS="$LIBS"
6640 CFLAGS="$CFLAGS $GTK_CFLAGS"
6641 LIBS="$GTK_LIBS $LIBS"
6643 if test "$cross_compiling" = yes; then
6644 echo $ac_n "cross compiling
; assumed OK...
$ac_c"
6646 cat > conftest.$ac_ext <<EOF
6647 #line 6648 "configure
"
6648 #include "confdefs.h
"
6650 #include <gtk/gtk.h>
6657 int major, minor, micro;
6660 system ("touch conf.gtktest
");
6662 /* HP/UX 9 (%@#!) writes to sscanf strings */
6663 tmp_version = g_strdup("$min_gtk_version");
6664 if (sscanf(tmp_version, "%d.
%d.
%d
", &major, &minor, µ) != 3) {
6665 printf("%s
, bad version string
\n", "$min_gtk_version");
6669 if ((gtk_major_version != $gtk_config_major_version) ||
6670 (gtk_minor_version != $gtk_config_minor_version) ||
6671 (gtk_micro_version != $gtk_config_micro_version))
6673 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned
%d.
%d.
%d
, but GTK
+ (%d.
%d.
%d
)\n",
6674 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
6675 gtk_major_version, gtk_minor_version, gtk_micro_version);
6676 printf ("*** was found
! If pkg-config was correct
, then it is best
\n");
6677 printf ("*** to remove the old version of GTK
+. You may also be able to fix the error
\n");
6678 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable
, or by editing
\n");
6679 printf("*** /etc
/ld.so.conf. Make sure you have run ldconfig
if that is
\n");
6680 printf("*** required on your system.
\n");
6681 printf("*** If pkg-config was wrong
, set the environment variable PKG_CONFIG_PATH
\n");
6682 printf("*** to point to the correct configuration files
\n");
6684 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
6685 (gtk_minor_version != GTK_MINOR_VERSION) ||
6686 (gtk_micro_version != GTK_MICRO_VERSION))
6688 printf("*** GTK
+ header files
(version
%d.
%d.
%d
) do not match
\n",
6689 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6690 printf("*** library
(version
%d.
%d.
%d
)\n",
6691 gtk_major_version, gtk_minor_version, gtk_micro_version);
6695 if ((gtk_major_version > major) ||
6696 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6697 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
6703 printf("\n*** An old version of GTK
+ (%d.
%d.
%d
) was found.
\n",
6704 gtk_major_version, gtk_minor_version, gtk_micro_version);
6705 printf("*** You need a version of GTK
+ newer than
%d.
%d.
%d. The latest version of
\n",
6706 major, minor, micro);
6707 printf("*** GTK
+ is always available from
ftp://ftp.gtk.org.
\n");
6709 printf("*** If you have already installed a sufficiently new version
, this error
\n");
6710 printf("*** probably means that the wrong copy of the pkg-config shell
script is
\n");
6711 printf("*** being found. The easiest way to fix this is to remove the old version
\n");
6712 printf("*** of GTK
+, but you can also
set the PKG_CONFIG environment to point to the
\n");
6713 printf("*** correct copy of pkg-config.
(In this
case, you will have to
\n");
6714 printf("*** modify your LD_LIBRARY_PATH enviroment variable
, or edit
/etc
/ld.so.conf
\n");
6715 printf("*** so that the correct libraries are found
at run-time
))\n");
6722 if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6726 echo "configure
: failed program was
:" >&5
6727 cat conftest.$ac_ext >&5
6734 CFLAGS="$ac_save_CFLAGS"
6735 LIBS="$ac_save_LIBS"
6738 if test "x
$no_gtk" = x ; then
6739 echo "$ac_t""yes (version
$gtk_config_major_version.
$gtk_config_minor_version.
$gtk_config_micro_version)" 1>&6
6742 echo "$ac_t""no
" 1>&6
6743 if test "$PKG_CONFIG" = "no
" ; then
6744 echo "*** A new enough version of pkg-config was not found.
"
6745 echo "*** See http
://pkgconfig.sourceforge.net
"
6747 if test -f conf.gtktest ; then
6750 echo "*** Could not run GTK
+ test program
, checking why...
"
6751 ac_save_CFLAGS="$CFLAGS"
6752 ac_save_LIBS="$LIBS"
6753 CFLAGS="$CFLAGS $GTK_CFLAGS"
6754 LIBS="$LIBS $GTK_LIBS"
6755 cat > conftest.$ac_ext <<EOF
6756 #line 6757 "configure
"
6757 #include "confdefs.h
"
6759 #include <gtk/gtk.h>
6763 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
6766 if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6768 echo "*** The
test program compiled
, but did not run. This usually means
"
6769 echo "*** that the run-time linker is not finding GTK
+ or finding the wrong
"
6770 echo "*** version of GTK
+. If it is not finding GTK
+, you
'll need to set your"
6771 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6772 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6773 echo "*** is required on your system"
6775 echo "*** If you have an old version installed, it is best to remove it, although"
6776 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6778 echo "configure: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6781 echo "*** The test program failed to compile or link. See the file config.log for the"
6782 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
6785 CFLAGS="$ac_save_CFLAGS"
6786 LIBS="$ac_save_LIBS"
6797 # Check whether --enable-glibtest or --disable-glibtest was given.
6798 if test "${enable_glibtest+set}" = set; then
6799 enableval="$enable_glibtest"
6806 pkg_config_args=glib-2.0
6807 for module in . gthread
6811 pkg_config_args="$pkg_config_args gmodule-2.0"
6814 pkg_config_args="$pkg_config_args gobject-2.0"
6817 pkg_config_args="$pkg_config_args gthread-2.0"
6822 # Extract the first word of "pkg-config", so it can be a program name with args.
6823 set dummy pkg-config; ac_word=$2
6824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6825 echo "configure:6826: checking for $ac_word" >&5
6826 if eval "test \"`echo '$
''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6829 case "$PKG_CONFIG" in
6831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6834 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6839 for ac_dir in $ac_dummy; do
6840 test -z "$ac_dir" && ac_dir=.
6841 if test -f $ac_dir/$ac_word; then
6842 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6847 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6851 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6852 if test -n "$PKG_CONFIG"; then
6853 echo "$ac_t""$PKG_CONFIG" 1>&6
6855 echo "$ac_t""no" 1>&6
6861 if test x$PKG_CONFIG != xno ; then
6862 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
6865 echo *** pkg-config too old; version 0.7 or better required.
6873 min_glib_version=2.0.0
6874 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
6875 echo "configure:6876: checking for GLIB - version >= $min_glib_version" >&5
6877 if test x$PKG_CONFIG != xno ; then
6878 ## don't try to run the
test against uninstalled libtool libs
6879 if $PKG_CONFIG --uninstalled $pkg_config_args; then
6880 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
6884 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
6891 if test x
"$no_glib" = x
; then
6892 GLIB_GENMARSHAL
=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
6893 GOBJECT_QUERY
=`$PKG_CONFIG --variable=gobject_query glib-2.0`
6894 GLIB_MKENUMS
=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
6896 GLIB_CFLAGS
=`$PKG_CONFIG --cflags $pkg_config_args`
6897 GLIB_LIBS
=`$PKG_CONFIG --libs $pkg_config_args`
6898 glib_config_major_version
=`$PKG_CONFIG --modversion glib-2.0 | \
6899 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6900 glib_config_minor_version
=`$PKG_CONFIG --modversion glib-2.0 | \
6901 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6902 glib_config_micro_version
=`$PKG_CONFIG --modversion glib-2.0 | \
6903 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6904 if test "x$enable_glibtest" = "xyes" ; then
6905 ac_save_CFLAGS
="$CFLAGS"
6906 ac_save_LIBS
="$LIBS"
6907 CFLAGS
="$CFLAGS $GLIB_CFLAGS"
6908 LIBS
="$GLIB_LIBS $LIBS"
6910 if test "$cross_compiling" = yes; then
6911 echo $ac_n "cross compiling; assumed OK... $ac_c"
6913 cat > conftest.
$ac_ext <<EOF
6914 #line 6915 "configure"
6915 #include "confdefs.h"
6924 int major, minor, micro;
6927 system ("touch conf.glibtest");
6929 /* HP/UX 9 (%@#!) writes to sscanf strings */
6930 tmp_version = g_strdup("$min_glib_version");
6931 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
6932 printf("%s, bad version string\n", "$min_glib_version");
6936 if ((glib_major_version != $glib_config_major_version) ||
6937 (glib_minor_version != $glib_config_minor_version) ||
6938 (glib_micro_version != $glib_config_micro_version))
6940 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
6941 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
6942 glib_major_version, glib_minor_version, glib_micro_version);
6943 printf ("*** was found! If pkg-config was correct, then it is best\n");
6944 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
6945 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6946 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6947 printf("*** required on your system.\n");
6948 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
6949 printf("*** to point to the correct configuration files\n");
6951 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
6952 (glib_minor_version != GLIB_MINOR_VERSION) ||
6953 (glib_micro_version != GLIB_MICRO_VERSION))
6955 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
6956 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
6957 printf("*** library (version %d.%d.%d)\n",
6958 glib_major_version, glib_minor_version, glib_micro_version);
6962 if ((glib_major_version > major) ||
6963 ((glib_major_version == major) && (glib_minor_version > minor)) ||
6964 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
6970 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
6971 glib_major_version, glib_minor_version, glib_micro_version);
6972 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
6973 major, minor, micro);
6974 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
6976 printf("*** If you have already installed a sufficiently new version, this error\n");
6977 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
6978 printf("*** being found. The easiest way to fix this is to remove the old version\n");
6979 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
6980 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
6981 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6982 printf("*** so that the correct libraries are found at run-time))\n");
6989 if { (eval echo configure
:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6993 echo "configure: failed program was:" >&5
6994 cat conftest.
$ac_ext >&5
7001 CFLAGS
="$ac_save_CFLAGS"
7002 LIBS
="$ac_save_LIBS"
7005 if test "x$no_glib" = x
; then
7006 echo "$ac_t""yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" 1>&6
7009 echo "$ac_t""no" 1>&6
7010 if test "$PKG_CONFIG" = "no" ; then
7011 echo "*** A new enough version of pkg-config was not found."
7012 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
7014 if test -f conf.glibtest
; then
7017 echo "*** Could not run GLIB test program, checking why..."
7018 ac_save_CFLAGS
="$CFLAGS"
7019 ac_save_LIBS
="$LIBS"
7020 CFLAGS
="$CFLAGS $GLIB_CFLAGS"
7021 LIBS
="$LIBS $GLIB_LIBS"
7022 cat > conftest.
$ac_ext <<EOF
7023 #line 7024 "configure"
7024 #include "confdefs.h"
7030 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
7033 if { (eval echo configure
:7034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7035 echo "*** The test program compiled, but did not run. This usually means"
7036 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7037 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7038 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7039 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7040 echo "*** is required on your system"
7042 echo "*** If you have an old version installed, it is best to remove it, although"
7043 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7045 echo "configure: failed program was:" >&5
7046 cat conftest.
$ac_ext >&5
7048 echo "*** The test program failed to compile or link. See the file config.log for the"
7049 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
7052 CFLAGS
="$ac_save_CFLAGS"
7053 LIBS
="$ac_save_LIBS"
7070 enable_libarttest
=no
7071 # Check whether --with-libart-prefix or --without-libart-prefix was given.
7072 if test "${with_libart_prefix+set}" = set; then
7073 withval
="$with_libart_prefix"
7074 libart_prefix
="$withval"
7079 # Check whether --with-libart-exec-prefix or --without-libart-exec-prefix was given.
7080 if test "${with_libart_exec_prefix+set}" = set; then
7081 withval
="$with_libart_exec_prefix"
7082 libart_exec_prefix
="$withval"
7084 libart_exec_prefix
=""
7087 # Check whether --enable-libarttest or --disable-libarttest was given.
7088 if test "${enable_libarttest+set}" = set; then
7089 enableval
="$enable_libarttest"
7092 enable_libarttest
=yes
7096 if test x
$libart_exec_prefix != x
; then
7097 libart_args
="$libart_args --exec-prefix=$libart_exec_prefix"
7098 if test x
${LIBART_CONFIG+set} != xset
; then
7099 LIBART_CONFIG
=$libart_exec_prefix/bin
/libart-config
7102 if test x
$libart_prefix != x
; then
7103 libart_args
="$libart_args --prefix=$libart_prefix"
7104 if test x
${LIBART_CONFIG+set} != xset
; then
7105 LIBART_CONFIG
=$libart_prefix/bin
/libart-config
7109 # Extract the first word of "libart2-config", so it can be a program name with args.
7110 set dummy libart2-config
; ac_word
=$2
7111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7112 echo "configure:7113: checking for $ac_word" >&5
7113 if eval "test \"`echo '$''{'ac_cv_path_LIBART_CONFIG'+set}'`\" = set"; then
7114 echo $ac_n "(cached) $ac_c" 1>&6
7116 case "$LIBART_CONFIG" in
7118 ac_cv_path_LIBART_CONFIG
="$LIBART_CONFIG" # Let the user override the test with a path.
7121 ac_cv_path_LIBART_CONFIG
="$LIBART_CONFIG" # Let the user override the test with a dos path.
7124 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7126 for ac_dir
in $ac_dummy; do
7127 test -z "$ac_dir" && ac_dir
=.
7128 if test -f $ac_dir/$ac_word; then
7129 ac_cv_path_LIBART_CONFIG
="$ac_dir/$ac_word"
7134 test -z "$ac_cv_path_LIBART_CONFIG" && ac_cv_path_LIBART_CONFIG
="no"
7138 LIBART_CONFIG
="$ac_cv_path_LIBART_CONFIG"
7139 if test -n "$LIBART_CONFIG"; then
7140 echo "$ac_t""$LIBART_CONFIG" 1>&6
7142 echo "$ac_t""no" 1>&6
7145 if test "$LIBART_CONFIG" = "no" ; then
7146 # Extract the first word of "libart-config", so it can be a program name with args.
7147 set dummy libart-config
; ac_word
=$2
7148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7149 echo "configure:7150: checking for $ac_word" >&5
7150 if eval "test \"`echo '$''{'ac_cv_path_LIBART_CONFIG'+set}'`\" = set"; then
7151 echo $ac_n "(cached) $ac_c" 1>&6
7153 case "$LIBART_CONFIG" in
7155 ac_cv_path_LIBART_CONFIG
="$LIBART_CONFIG" # Let the user override the test with a path.
7158 ac_cv_path_LIBART_CONFIG
="$LIBART_CONFIG" # Let the user override the test with a dos path.
7161 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7163 for ac_dir
in $ac_dummy; do
7164 test -z "$ac_dir" && ac_dir
=.
7165 if test -f $ac_dir/$ac_word; then
7166 ac_cv_path_LIBART_CONFIG
="$ac_dir/$ac_word"
7171 test -z "$ac_cv_path_LIBART_CONFIG" && ac_cv_path_LIBART_CONFIG
="no"
7175 LIBART_CONFIG
="$ac_cv_path_LIBART_CONFIG"
7176 if test -n "$LIBART_CONFIG"; then
7177 echo "$ac_t""$LIBART_CONFIG" 1>&6
7179 echo "$ac_t""no" 1>&6
7183 min_libart_version
=2.1.0
7184 echo $ac_n "checking for LIBART - version >= $min_libart_version""... $ac_c" 1>&6
7185 echo "configure:7186: checking for LIBART - version >= $min_libart_version" >&5
7187 if test "$LIBART_CONFIG" = "no" ; then
7190 LIBART_CFLAGS
=`$LIBART_CONFIG $libartconf_args --cflags`
7191 LIBART_LIBS
=`$LIBART_CONFIG $libartconf_args --libs`
7193 libart_major_version
=`$LIBART_CONFIG $libart_args --version | \
7194 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7195 libart_minor_version
=`$LIBART_CONFIG $libart_args --version | \
7196 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7197 libart_micro_version
=`$LIBART_CONFIG $libart_config_args --version | \
7198 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7199 if test "x$enable_libarttest" = "xyes" ; then
7200 ac_save_CFLAGS
="$CFLAGS"
7201 ac_save_LIBS
="$LIBS"
7202 CFLAGS
="$CFLAGS $LIBART_CFLAGS"
7203 LIBS
="$LIBS $LIBART_LIBS"
7204 rm -f conf.libarttest
7205 if test "$cross_compiling" = yes; then
7206 echo $ac_n "cross compiling; assumed OK... $ac_c"
7208 cat > conftest.
$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7215 #include <libart_lgpl/libart.h>
7218 my_strdup (char *str)
7224 new_str = malloc ((strlen (str) + 1) * sizeof(char));
7225 strcpy (new_str, str);
7235 int major, minor, micro;
7238 system ("touch conf.libarttest");
7240 /* HP/UX 9 (%@#!) writes to sscanf strings */
7241 tmp_version = my_strdup("$min_libart_version");
7242 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7243 printf("%s, bad version string\n", "$min_libart_version");
7247 if (($libart_major_version > major) ||
7248 (($libart_major_version == major) && ($libart_minor_version > minor)) ||
7249 (($libart_major_version == major) && ($libart_minor_version == minor) && ($libart_micro_version >= micro)))
7255 printf("\n*** 'libart-config --version' returned %d.%d.%d, but the minimum version\n", $libart_major_version, $libart_minor_version, $libart_micro_version);
7256 printf("*** of LIBART required is %d.%d.%d. If libart-config is correct, then it is\n", major, minor, micro);
7257 printf("*** best to upgrade to the required version.\n");
7258 printf("*** If libart-config was wrong, set the environment variable LIBART_CONFIG\n");
7259 printf("*** to point to the correct copy of libart-config, and remove the file\n");
7260 printf("*** config.cache before re-running configure\n");
7267 if { (eval echo configure
:7268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7271 echo "configure: failed program was:" >&5
7272 cat conftest.
$ac_ext >&5
7279 CFLAGS
="$ac_save_CFLAGS"
7280 LIBS
="$ac_save_LIBS"
7283 if test "x$no_libart" = x
; then
7284 echo "$ac_t""yes" 1>&6
7287 echo "$ac_t""no" 1>&6
7288 if test "$LIBART_CONFIG" = "no" ; then
7289 echo "*** The libart-config script installed by LIBART could not be found"
7290 echo "*** If LIBART was installed in PREFIX, make sure PREFIX/bin is in"
7291 echo "*** your path, or set the LIBART_CONFIG environment variable to the"
7292 echo "*** full path to libart-config."
7294 if test -f conf.libarttest
; then
7297 echo "*** Could not run LIBART test program, checking why..."
7298 CFLAGS
="$CFLAGS $LIBART_CFLAGS"
7299 LIBS
="$LIBS $LIBART_LIBS"
7300 cat > conftest.
$ac_ext <<EOF
7301 #line 7302 "configure"
7302 #include "confdefs.h"
7305 #include <libart_lgpl/libart.h>
7311 if { (eval echo configure
:7312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7313 echo "*** The test program compiled, but did not run. This usually means"
7314 echo "*** that the run-time linker is not finding LIBART or finding the wrong"
7315 echo "*** version of LIBART. If it is not finding LIBART, you'll need to set your"
7316 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7317 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7318 echo "*** is required on your system"
7320 echo "*** If you have an old version installed, it is best to remove it, although"
7321 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7323 echo "configure: failed program was:" >&5
7324 cat conftest.
$ac_ext >&5
7326 echo "*** The test program failed to compile or link. See the file config.log for the"
7327 echo "*** exact error that occured. This usually means LIBART was incorrectly installed"
7328 echo "*** or that you have moved LIBART since it was installed. In the latter case, you"
7329 echo "*** may want to edit the libart-config script: $LIBART_CONFIG"
7332 CFLAGS
="$ac_save_CFLAGS"
7333 LIBS
="$ac_save_LIBS"
7342 rm -f conf.libarttest
7346 # On Solaris, and maybe other architectures, the Boehm collector
7348 if test "$GC" = boehm
; then
7349 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
7350 echo "configure:7351: checking for main in -ldl" >&5
7351 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
7352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7355 ac_save_LIBS
="$LIBS"
7357 cat > conftest.
$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7365 if { (eval echo configure
:7366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7367 eval "ac_cv_lib_$ac_lib_var=yes"
7369 echo "configure: failed program was:" >&5
7370 cat conftest.
$ac_ext >&5
7372 eval "ac_cv_lib_$ac_lib_var=no"
7375 LIBS
="$ac_save_LIBS"
7378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7379 echo "$ac_t""yes" 1>&6
7380 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
7382 echo "$ac_t""no" 1>&6
7388 if test -z "${with_multisubdir}"; then
7392 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7396 # Which gcj do we use?
7398 built_gcc_dir
="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7399 if test -n "${with_cross_host}"; then
7400 # We are being configured with a cross compiler. We can't
7401 # use ac_exeext, because that is for the target platform.
7404 case "${with_cross_host}" in
7406 cross_host_exeext
=.exe
7409 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
7410 if test x
"$build_alias" = x
"$with_cross_host"; then
7411 # Ordinary cross (host!=target and host=build)
7414 # Canadian cross (host!=target and host!=build)
7421 # We are being configured with a native or crossed-native compiler
7422 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
7423 if test x
"$build" = x
"$host"; then
7424 # True native build (host=target and host=build)
7427 # Crossed-native build (host=target and host!=build)
7434 case "${which_gcj}" in
7436 GCJ
="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
7439 # See the comment in Makefile.am about CANADIAN being a misnomer
7442 if test "x${with_newlib}" = "xyes"; then
7443 # FIXME (comment): Why is this needed?
7445 GCJ
="${target_alias}-gcj"
7447 GCJ
="${target_alias}-gcj -B`${PWDCMD-pwd}`/"
7451 # See the comment in Makefile.am about CANADIAN being a misnomer
7454 GCJ
="gcj -B`${PWDCMD-pwd}`/"
7458 # Create it, so that compile/link tests don't fail
7459 test -f libgcj.spec ||
touch libgcj.spec
7461 # We must search the source tree for java.lang, since we still don't
7462 # have libgcj.jar nor java/lang/*.class
7463 GCJ_SAVE_CPPFLAGS
=$CPPFLAGS
7464 CPPFLAGS
="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7466 # Since some classes depend on this one, we need its source available
7467 # before we can do any GCJ compilation test :-(
7468 if test ! -f gnu
/classpath
/Configuration.java
; then
7469 test -d gnu || mkdir gnu
7470 test -d gnu
/classpath || mkdir gnu
/classpath
7471 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7472 -e 's,@TOOLKIT@,$TOOLKIT,' \
7473 < $srcdir/gnu
/classpath
/Configuration.java.
in \
7474 > gnu
/classpath
/Configuration.java
7475 # We do not want to redirect the output of the grep below to /dev/null,
7476 # but we add /dev/null to the input list so that grep will print the
7477 # filename of Configuration.java in case it finds any matches.
7478 if grep @ gnu
/classpath
/Configuration.java
/dev
/null
; then
7479 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
7483 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
7484 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
7485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7486 echo "configure:7487: checking for $ac_word" >&5
7487 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7488 echo $ac_n "(cached) $ac_c" 1>&6
7490 if test -n "$GCJ"; then
7491 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
7493 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7495 for ac_dir
in $ac_dummy; do
7496 test -z "$ac_dir" && ac_dir
=.
7497 if test -f $ac_dir/$ac_word; then
7498 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
7505 GCJ
="$ac_cv_prog_GCJ"
7506 if test -n "$GCJ"; then
7507 echo "$ac_t""$GCJ" 1>&6
7509 echo "$ac_t""no" 1>&6
7513 if test -z "$ac_cv_prog_GCJ"; then
7514 if test -n "$ac_tool_prefix"; then
7515 # Extract the first word of "gcj", so it can be a program name with args.
7516 set dummy gcj
; ac_word
=$2
7517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7518 echo "configure:7519: checking for $ac_word" >&5
7519 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7520 echo $ac_n "(cached) $ac_c" 1>&6
7522 if test -n "$GCJ"; then
7523 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
7525 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7527 for ac_dir
in $ac_dummy; do
7528 test -z "$ac_dir" && ac_dir
=.
7529 if test -f $ac_dir/$ac_word; then
7530 ac_cv_prog_GCJ
="gcj"
7535 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ
="no"
7538 GCJ
="$ac_cv_prog_GCJ"
7539 if test -n "$GCJ"; then
7540 echo "$ac_t""$GCJ" 1>&6
7542 echo "$ac_t""no" 1>&6
7550 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
7554 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
7556 lt_save_CFLAGS
="$CFLAGS"
7557 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="$CPPFLAGS" \
7558 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
7559 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
7560 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
7561 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
7562 deplibs_check_method
="$deplibs_check_method" \
7563 file_magic_cmd
="$file_magic_cmd" \
7564 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
7565 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
7566 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
7568 CFLAGS
="$lt_save_CFLAGS"
7570 # Redirect the config.log output again, so that the ltconfig log is not
7571 # clobbered by the next message.
7572 exec 5>>.
/config.log
7577 CPPFLAGS
=$GCJ_SAVE_CPPFLAGS
7579 echo $ac_n "checking size of void *""... $ac_c" 1>&6
7580 echo "configure:7581: checking size of void *" >&5
7581 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7582 echo $ac_n "(cached) $ac_c" 1>&6
7584 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7585 cat > conftest.
$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 #include "confdefs.h"
7589 #include <sys/types.h>
7593 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7596 if { (eval echo configure
:7597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7598 ac_cv_sizeof_void_p
=$ac_size
7600 echo "configure: failed program was:" >&5
7601 cat conftest.
$ac_ext >&5
7604 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
7609 if test x
$ac_cv_sizeof_void_p = x
; then
7610 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
7612 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7613 cat >> confdefs.h
<<EOF
7614 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7623 if test -z "$ZLIBSPEC"; then
7624 # Use zlib from the GCC tree.
7625 ZINCS
='-I$(top_srcdir)/../zlib'
7626 ZLIBS
=..
/zlib
/libzgcj_convenience.la
7629 SYS_ZLIBS
="$ZLIBSPEC"
7641 if test "$CANADIAN" = yes; then
7650 if test "$NULL_TARGET" = yes; then
7652 NULL_TARGET_FALSE
='#'
7654 NULL_TARGET_TRUE
='#'
7659 if test "$NATIVE" = yes ||
test "$NULL_TARGET" = yes; then
7668 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7669 NEEDS_DATA_START_TRUE
=
7670 NEEDS_DATA_START_FALSE
='#'
7672 NEEDS_DATA_START_TRUE
='#'
7673 NEEDS_DATA_START_FALSE
=
7677 if test -n "$with_cross_host" &&
7678 test x
"$with_cross_host" != x
"no"; then
7679 toolexecdir
='$(exec_prefix)/$(target_alias)'
7680 toolexecmainlibdir
='$(toolexecdir)/lib'
7682 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
7683 toolexecmainlibdir
='$(libdir)'
7685 multi_os_directory
=`$CC -print-multi-os-directory`
7686 case $multi_os_directory in
7687 .
) toolexeclibdir
=$toolexecmainlibdir ;; # Avoid trailing /.
7688 *) toolexeclibdir
=$toolexecmainlibdir/$multi_os_directory ;;
7694 # Determine gcj version number.
7696 gcjversion
=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7698 GCJVERSION
=$gcjversion
7700 cat >> confdefs.h
<<EOF
7701 #define GCJVERSION "$GCJVERSION"
7705 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
7707 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7709 echo "configure:7710: checking for $ac_hdr" >&5
7710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7711 echo $ac_n "(cached) $ac_c" 1>&6
7713 cat > conftest.
$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7718 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7719 { (eval echo configure
:7720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7720 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7721 if test -z "$ac_err"; then
7723 eval "ac_cv_header_$ac_safe=yes"
7726 echo "configure: failed program was:" >&5
7727 cat conftest.
$ac_ext >&5
7729 eval "ac_cv_header_$ac_safe=no"
7733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7734 echo "$ac_t""yes" 1>&6
7735 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7736 cat >> confdefs.h
<<EOF
7737 #define $ac_tr_hdr 1
7741 echo "$ac_t""no" 1>&6
7745 for ac_hdr
in dirent.h
7747 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7749 echo "configure:7750: checking for $ac_hdr" >&5
7750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6
7753 cat > conftest.
$ac_ext <<EOF
7754 #line 7755 "configure"
7755 #include "confdefs.h"
7758 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7759 { (eval echo configure
:7760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7760 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7761 if test -z "$ac_err"; then
7763 eval "ac_cv_header_$ac_safe=yes"
7766 echo "configure: failed program was:" >&5
7767 cat conftest.
$ac_ext >&5
7769 eval "ac_cv_header_$ac_safe=no"
7773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7774 echo "$ac_t""yes" 1>&6
7775 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7776 cat >> confdefs.h
<<EOF
7777 #define $ac_tr_hdr 1
7781 echo "$ac_t""no" 1>&6
7785 for ac_hdr
in inttypes.h
7787 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7789 echo "configure:7790: checking for $ac_hdr" >&5
7790 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7793 cat > conftest.
$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7798 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7799 { (eval echo configure
:7800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7800 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7801 if test -z "$ac_err"; then
7803 eval "ac_cv_header_$ac_safe=yes"
7806 echo "configure: failed program was:" >&5
7807 cat conftest.
$ac_ext >&5
7809 eval "ac_cv_header_$ac_safe=no"
7813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7814 echo "$ac_t""yes" 1>&6
7815 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7816 cat >> confdefs.h
<<EOF
7817 #define $ac_tr_hdr 1
7820 cat >> confdefs.h
<<\EOF
7821 #define HAVE_INTTYPES_H 1
7824 cat >> confdefs.h
<<\EOF
7825 #define JV_HAVE_INTTYPES_H 1
7830 echo "$ac_t""no" 1>&6
7834 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7835 echo "configure:7836: checking for sys/wait.h that is POSIX.1 compatible" >&5
7836 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7837 echo $ac_n "(cached) $ac_c" 1>&6
7839 cat > conftest.
$ac_ext <<EOF
7840 #line 7841 "configure"
7841 #include "confdefs.h"
7842 #include <sys/types.h>
7843 #include <sys/wait.h>
7845 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7848 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7853 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7856 if { (eval echo configure
:7857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7858 ac_cv_header_sys_wait_h
=yes
7860 echo "configure: failed program was:" >&5
7861 cat conftest.
$ac_ext >&5
7863 ac_cv_header_sys_wait_h
=no
7868 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7869 if test $ac_cv_header_sys_wait_h = yes; then
7870 cat >> confdefs.h
<<\EOF
7871 #define HAVE_SYS_WAIT_H 1
7877 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7878 echo "configure:7879: checking for ANSI C header files" >&5
7879 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7882 cat > conftest.
$ac_ext <<EOF
7883 #line 7884 "configure"
7884 #include "confdefs.h"
7890 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7891 { (eval echo configure
:7892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7892 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7893 if test -z "$ac_err"; then
7895 ac_cv_header_stdc
=yes
7898 echo "configure: failed program was:" >&5
7899 cat conftest.
$ac_ext >&5
7901 ac_cv_header_stdc
=no
7905 if test $ac_cv_header_stdc = yes; then
7906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7907 cat > conftest.
$ac_ext <<EOF
7908 #line 7909 "configure"
7909 #include "confdefs.h"
7912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7913 egrep "memchr" >/dev
/null
2>&1; then
7917 ac_cv_header_stdc
=no
7923 if test $ac_cv_header_stdc = yes; then
7924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7925 cat > conftest.
$ac_ext <<EOF
7926 #line 7927 "configure"
7927 #include "confdefs.h"
7930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7931 egrep "free" >/dev
/null
2>&1; then
7935 ac_cv_header_stdc
=no
7941 if test $ac_cv_header_stdc = yes; then
7942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7943 if test "$cross_compiling" = yes; then
7946 cat > conftest.
$ac_ext <<EOF
7947 #line 7948 "configure"
7948 #include "confdefs.h"
7950 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7951 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7953 int main () { int i; for (i = 0; i < 256; i++)
7954 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7958 if { (eval echo configure
:7959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7962 echo "configure: failed program was:" >&5
7963 cat conftest.
$ac_ext >&5
7965 ac_cv_header_stdc
=no
7973 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7974 if test $ac_cv_header_stdc = yes; then
7975 cat >> confdefs.h
<<\EOF
7976 #define STDC_HEADERS 1
7981 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
7982 echo "configure:7983: checking for ssize_t" >&5
7983 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7986 cat > conftest.
$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 #include <sys/types.h>
7995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7996 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7998 ac_cv_type_ssize_t
=yes
8001 ac_cv_type_ssize_t
=no
8006 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
8007 if test $ac_cv_type_ssize_t = no
; then
8008 cat >> confdefs.h
<<\EOF
8015 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
8016 echo "configure:8017: checking for in_addr_t" >&5
8017 cat > conftest.
$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8020 #include <sys/types.h>
8025 #if HAVE_NETINET_IN_H
8026 #include <netinet/in.h>
8032 if { (eval echo configure
:8033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8034 cat >> confdefs.h
<<\EOF
8035 #define HAVE_IN_ADDR_T 1
8038 echo "$ac_t""yes" 1>&6
8040 echo "configure: failed program was:" >&5
8041 cat conftest.
$ac_ext >&5
8043 echo "$ac_t""no" 1>&6
8047 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
8048 echo "configure:8049: checking whether struct ip_mreq is in netinet/in.h" >&5
8049 cat > conftest.
$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8052 #include <netinet/in.h>
8054 struct ip_mreq mreq;
8057 if { (eval echo configure
:8058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8059 cat >> confdefs.h
<<\EOF
8060 #define HAVE_STRUCT_IP_MREQ 1
8063 echo "$ac_t""yes" 1>&6
8065 echo "configure: failed program was:" >&5
8066 cat conftest.
$ac_ext >&5
8068 echo "$ac_t""no" 1>&6
8072 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
8073 echo "configure:8074: checking whether struct ipv6_mreq is in netinet/in.h" >&5
8074 cat > conftest.
$ac_ext <<EOF
8075 #line 8076 "configure"
8076 #include "confdefs.h"
8077 #include <netinet/in.h>
8079 struct ipv6_mreq mreq6;
8082 if { (eval echo configure
:8083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8084 cat >> confdefs.h
<<\EOF
8085 #define HAVE_STRUCT_IPV6_MREQ 1
8088 echo "$ac_t""yes" 1>&6
8090 echo "configure: failed program was:" >&5
8091 cat conftest.
$ac_ext >&5
8093 echo "$ac_t""no" 1>&6
8097 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
8098 echo "configure:8099: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
8099 cat > conftest.
$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8102 #include <netinet/in.h>
8104 struct sockaddr_in6 addr6;
8107 if { (eval echo configure
:8108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8109 cat >> confdefs.h
<<\EOF
8110 #define HAVE_INET6 1
8113 echo "$ac_t""yes" 1>&6
8115 echo "configure: failed program was:" >&5
8116 cat conftest.
$ac_ext >&5
8118 echo "$ac_t""no" 1>&6
8122 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
8123 echo "configure:8124: checking for socklen_t in sys/socket.h" >&5
8124 cat > conftest.
$ac_ext <<EOF
8125 #line 8126 "configure"
8126 #include "confdefs.h"
8127 #define _POSIX_PII_SOCKET
8128 #include <sys/types.h>
8129 #include <sys/socket.h>
8134 if { (eval echo configure
:8135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8136 cat >> confdefs.h
<<\EOF
8137 #define HAVE_SOCKLEN_T 1
8140 echo "$ac_t""yes" 1>&6
8142 echo "configure: failed program was:" >&5
8143 cat conftest.
$ac_ext >&5
8145 echo "$ac_t""no" 1>&6
8149 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
8150 echo "configure:8151: checking for tm_gmtoff in struct tm" >&5
8151 cat > conftest.
$ac_ext <<EOF
8152 #line 8153 "configure"
8153 #include "confdefs.h"
8156 struct tm tim; tim.tm_gmtoff = 0;
8159 if { (eval echo configure
:8160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8161 cat >> confdefs.h
<<\EOF
8162 #define STRUCT_TM_HAS_GMTOFF 1
8165 echo "$ac_t""yes" 1>&6
8167 echo "configure: failed program was:" >&5
8168 cat conftest.
$ac_ext >&5
8170 echo "$ac_t""no" 1>&6
8171 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
8172 echo "configure:8173: checking for global timezone variable" >&5
8173 cat > conftest.
$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8178 void i(){long z2 = 2*timezone;}
8181 if { (eval echo configure
:8182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8183 cat >> confdefs.h
<<\EOF
8184 #define HAVE_TIMEZONE 1
8187 echo "$ac_t""yes" 1>&6
8189 echo "configure: failed program was:" >&5
8190 cat conftest.
$ac_ext >&5
8192 echo "$ac_t""no" 1>&6
8193 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
8194 echo "configure:8195: checking for global _timezone variable" >&5
8195 cat > conftest.
$ac_ext <<EOF
8196 #line 8197 "configure"
8197 #include "confdefs.h"
8200 long z2 = _timezone;
8203 if { (eval echo configure
:8204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8205 cat >> confdefs.h
<<\EOF
8206 #define HAVE_UNDERSCORE_TIMEZONE 1
8209 echo "$ac_t""yes" 1>&6
8211 echo "configure: failed program was:" >&5
8212 cat conftest.
$ac_ext >&5
8214 echo "$ac_t""no" 1>&6
8222 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8223 # for constant arguments. Useless!
8224 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8225 echo "configure:8226: checking for working alloca.h" >&5
8226 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8229 cat > conftest.
$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8234 char *p = alloca(2 * sizeof(int));
8237 if { (eval echo configure
:8238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8239 ac_cv_header_alloca_h
=yes
8241 echo "configure: failed program was:" >&5
8242 cat conftest.
$ac_ext >&5
8244 ac_cv_header_alloca_h
=no
8249 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8250 if test $ac_cv_header_alloca_h = yes; then
8251 cat >> confdefs.h
<<\EOF
8252 #define HAVE_ALLOCA_H 1
8257 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8258 echo "configure:8259: checking for alloca" >&5
8259 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8260 echo $ac_n "(cached) $ac_c" 1>&6
8262 cat > conftest.
$ac_ext <<EOF
8263 #line 8264 "configure"
8264 #include "confdefs.h"
8267 # define alloca __builtin_alloca
8270 # include <malloc.h>
8271 # define alloca _alloca
8274 # include <alloca.h>
8279 # ifndef alloca /* predefined by HP cc +Olibcalls */
8288 char *p = (char *) alloca(1);
8291 if { (eval echo configure
:8292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8293 ac_cv_func_alloca_works
=yes
8295 echo "configure: failed program was:" >&5
8296 cat conftest.
$ac_ext >&5
8298 ac_cv_func_alloca_works
=no
8303 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8304 if test $ac_cv_func_alloca_works = yes; then
8305 cat >> confdefs.h
<<\EOF
8306 #define HAVE_ALLOCA 1
8311 if test $ac_cv_func_alloca_works = no
; then
8312 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8313 # that cause trouble. Some versions do not even contain alloca or
8314 # contain a buggy version. If you still want to use their alloca,
8315 # use ar to extract alloca.o from them instead of compiling alloca.c.
8316 ALLOCA
=alloca.
${ac_objext}
8317 cat >> confdefs.h
<<\EOF
8322 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8323 echo "configure:8324: checking whether alloca needs Cray hooks" >&5
8324 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
8327 cat > conftest.
$ac_ext <<EOF
8328 #line 8329 "configure"
8329 #include "confdefs.h"
8330 #if defined(CRAY) && ! defined(CRAY2)
8337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8338 egrep "webecray" >/dev
/null
2>&1; then
8349 echo "$ac_t""$ac_cv_os_cray" 1>&6
8350 if test $ac_cv_os_cray = yes; then
8351 for ac_func
in _getb67 GETB67 getb67
; do
8352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8353 echo "configure:8354: checking for $ac_func" >&5
8354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8357 cat > conftest.
$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 /* System header to define __stub macros and hopefully few prototypes,
8361 which can conflict with char $ac_func(); below. */
8363 /* Override any gcc2 internal prototype to avoid an error. */
8364 /* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8370 /* The GNU C library defines this for functions which it implements
8371 to always fail with ENOSYS. Some functions are actually named
8372 something starting with __ and the normal name is an alias. */
8373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8381 if { (eval echo configure
:8382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8383 eval "ac_cv_func_$ac_func=yes"
8385 echo "configure: failed program was:" >&5
8386 cat conftest.
$ac_ext >&5
8388 eval "ac_cv_func_$ac_func=no"
8393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8394 echo "$ac_t""yes" 1>&6
8395 cat >> confdefs.h
<<EOF
8396 #define CRAY_STACKSEG_END $ac_func
8401 echo "$ac_t""no" 1>&6
8407 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8408 echo "configure:8409: checking stack direction for C alloca" >&5
8409 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8410 echo $ac_n "(cached) $ac_c" 1>&6
8412 if test "$cross_compiling" = yes; then
8413 ac_cv_c_stack_direction
=0
8415 cat > conftest.
$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8418 find_stack_direction ()
8420 static char *addr = 0;
8425 return find_stack_direction ();
8428 return (&dummy > addr) ? 1 : -1;
8432 exit (find_stack_direction() < 0);
8435 if { (eval echo configure
:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8437 ac_cv_c_stack_direction
=1
8439 echo "configure: failed program was:" >&5
8440 cat conftest.
$ac_ext >&5
8442 ac_cv_c_stack_direction
=-1
8449 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8450 cat >> confdefs.h
<<EOF
8451 #define STACK_DIRECTION $ac_cv_c_stack_direction
8456 for ac_hdr
in stdlib.h unistd.h sys
/stat.h sys
/types.h
8458 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8460 echo "configure:8461: checking for $ac_hdr" >&5
8461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8462 echo $ac_n "(cached) $ac_c" 1>&6
8464 cat > conftest.
$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8469 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8470 { (eval echo configure
:8471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8471 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8472 if test -z "$ac_err"; then
8474 eval "ac_cv_header_$ac_safe=yes"
8477 echo "configure: failed program was:" >&5
8478 cat conftest.
$ac_ext >&5
8480 eval "ac_cv_header_$ac_safe=no"
8484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8485 echo "$ac_t""yes" 1>&6
8486 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8487 cat >> confdefs.h
<<EOF
8488 #define $ac_tr_hdr 1
8492 echo "$ac_t""no" 1>&6
8496 for ac_func
in getpagesize
8498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8499 echo "configure:8500: checking for $ac_func" >&5
8500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8501 echo $ac_n "(cached) $ac_c" 1>&6
8503 cat > conftest.
$ac_ext <<EOF
8504 #line 8505 "configure"
8505 #include "confdefs.h"
8506 /* System header to define __stub macros and hopefully few prototypes,
8507 which can conflict with char $ac_func(); below. */
8509 /* Override any gcc2 internal prototype to avoid an error. */
8510 /* We use char because int might match the return type of a gcc2
8511 builtin and then its argument prototype would still apply. */
8516 /* The GNU C library defines this for functions which it implements
8517 to always fail with ENOSYS. Some functions are actually named
8518 something starting with __ and the normal name is an alias. */
8519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8527 if { (eval echo configure
:8528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8529 eval "ac_cv_func_$ac_func=yes"
8531 echo "configure: failed program was:" >&5
8532 cat conftest.
$ac_ext >&5
8534 eval "ac_cv_func_$ac_func=no"
8539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8540 echo "$ac_t""yes" 1>&6
8541 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8542 cat >> confdefs.h
<<EOF
8543 #define $ac_tr_func 1
8547 echo "$ac_t""no" 1>&6
8551 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8552 echo "configure:8553: checking for working mmap" >&5
8553 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8554 echo $ac_n "(cached) $ac_c" 1>&6
8556 if test "$cross_compiling" = yes; then
8557 ac_cv_func_mmap_fixed_mapped
=no
8559 cat > conftest.
$ac_ext <<EOF
8560 #line 8561 "configure"
8561 #include "confdefs.h"
8563 /* Thanks to Mike Haertel and Jim Avera for this test.
8564 Here is a matrix of mmap possibilities:
8565 mmap private not fixed
8566 mmap private fixed at somewhere currently unmapped
8567 mmap private fixed at somewhere already mapped
8568 mmap shared not fixed
8569 mmap shared fixed at somewhere currently unmapped
8570 mmap shared fixed at somewhere already mapped
8571 For private mappings, we should verify that changes cannot be read()
8572 back from the file, nor mmap's back from the file at a different
8573 address. (There have been systems where private was not correctly
8574 implemented like the infamous i386 svr4.0, and systems where the
8575 VM page cache was not coherent with the filesystem buffer cache
8576 like early versions of FreeBSD and possibly contemporary NetBSD.)
8577 For shared mappings, we should conversely verify that changes get
8578 propogated back to all the places they're supposed to be.
8580 Grep wants private fixed already mapped.
8581 The main things grep needs to know about mmap are:
8582 * does it exist and is it safe to write into the mmap'd area
8583 * how to use it (BSD variants) */
8584 #include <sys/types.h>
8586 #include <sys/mman.h>
8588 #if HAVE_SYS_TYPES_H
8589 # include <sys/types.h>
8593 # include <stdlib.h>
8597 # include <sys/stat.h>
8601 # include <unistd.h>
8604 /* This mess was copied from the GNU getpagesize.h. */
8605 #ifndef HAVE_GETPAGESIZE
8607 /* Assume that all systems that can run configure have sys/param.h. */
8608 # ifndef HAVE_SYS_PARAM_H
8609 # define HAVE_SYS_PARAM_H 1
8612 # ifdef _SC_PAGESIZE
8613 # define getpagesize() sysconf(_SC_PAGESIZE)
8614 # else /* no _SC_PAGESIZE */
8615 # ifdef HAVE_SYS_PARAM_H
8616 # include <sys/param.h>
8617 # ifdef EXEC_PAGESIZE
8618 # define getpagesize() EXEC_PAGESIZE
8619 # else /* no EXEC_PAGESIZE */
8621 # define getpagesize() NBPG * CLSIZE
8624 # endif /* no CLSIZE */
8625 # else /* no NBPG */
8627 # define getpagesize() NBPC
8628 # else /* no NBPC */
8630 # define getpagesize() PAGESIZE
8631 # endif /* PAGESIZE */
8632 # endif /* no NBPC */
8633 # endif /* no NBPG */
8634 # endif /* no EXEC_PAGESIZE */
8635 # else /* no HAVE_SYS_PARAM_H */
8636 # define getpagesize() 8192 /* punt totally */
8637 # endif /* no HAVE_SYS_PARAM_H */
8638 # endif /* no _SC_PAGESIZE */
8640 #endif /* no HAVE_GETPAGESIZE */
8643 extern "C" { void *malloc(unsigned); }
8651 char *data, *data2, *data3;
8655 pagesize = getpagesize();
8658 * First, make a file with some known garbage in it.
8660 data = malloc(pagesize);
8663 for (i = 0; i < pagesize; ++i)
8664 *(data + i) = rand();
8666 fd = creat("conftestmmap", 0600);
8669 if (write(fd, data, pagesize) != pagesize)
8674 * Next, try to mmap the file at a fixed address which
8675 * already has something else allocated at it. If we can,
8676 * also make sure that we see the same garbage.
8678 fd = open("conftestmmap", O_RDWR);
8681 data2 = malloc(2 * pagesize);
8684 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8685 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8686 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8688 for (i = 0; i < pagesize; ++i)
8689 if (*(data + i) != *(data2 + i))
8693 * Finally, make sure that changes to the mapped area
8694 * do not percolate back to the file as seen by read().
8695 * (This is a bug on some variants of i386 svr4.0.)
8697 for (i = 0; i < pagesize; ++i)
8698 *(data2 + i) = *(data2 + i) + 1;
8699 data3 = malloc(pagesize);
8702 if (read(fd, data3, pagesize) != pagesize)
8704 for (i = 0; i < pagesize; ++i)
8705 if (*(data + i) != *(data3 + i))
8708 unlink("conftestmmap");
8713 if { (eval echo configure
:8714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8715 ac_cv_func_mmap_fixed_mapped
=yes
8717 echo "configure: failed program was:" >&5
8718 cat conftest.
$ac_ext >&5
8720 ac_cv_func_mmap_fixed_mapped
=no
8727 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8728 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8729 cat >> confdefs.h
<<\EOF
8738 # Extract the first word of "$ac_prog", so it can be a program name with args.
8739 set dummy
$ac_prog; ac_word
=$2
8740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8741 echo "configure:8742: checking for $ac_word" >&5
8742 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8743 echo $ac_n "(cached) $ac_c" 1>&6
8745 if test -n "$PERL"; then
8746 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
8748 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8750 for ac_dir
in $ac_dummy; do
8751 test -z "$ac_dir" && ac_dir
=.
8752 if test -f $ac_dir/$ac_word; then
8753 ac_cv_prog_PERL
="$ac_prog"
8760 PERL
="$ac_cv_prog_PERL"
8761 if test -n "$PERL"; then
8762 echo "$ac_t""$PERL" 1>&6
8764 echo "$ac_t""no" 1>&6
8767 test -n "$PERL" && break
8769 test -n "$PERL" || PERL
="false"
8776 SIGNAL_HANDLER
=include
/i386-signal.h
8778 sparc
*-sun-solaris*)
8779 SIGNAL_HANDLER
=include
/sparc-signal.h
8782 # SYSDEP_SOURCES=sysdep/ia64.c
8783 # test -d sysdep || mkdir sysdep
8786 SIGNAL_HANDLER
=include
/dwarf2-signal.h
8789 SIGNAL_HANDLER
=include
/powerpc-signal.h
8792 SIGNAL_HANDLER
=include
/dwarf2-signal.h
8795 SIGNAL_HANDLER
=include
/s390-signal.h
8798 SIGNAL_HANDLER
=include
/x86_64-signal.h
8801 SIGNAL_HANDLER
=include
/dwarf2-signal.h
8803 sh-
*-linux* | sh
[34]*-*-linux*)
8804 SIGNAL_HANDLER
=include
/dwarf2-signal.h
8807 SIGNAL_HANDLER
=include
/win32-signal.h
8810 SIGNAL_HANDLER
=include
/default-signal.h
8814 # If we're using sjlj exceptions, forget what we just learned.
8815 if test "$enable_sjlj_exceptions" = yes; then
8816 SIGNAL_HANDLER
=include
/default-signal.h
8819 # Define here any compiler flags that you need in order to make backtrace() work.
8823 BACKTRACESPEC
=-fno-omit-frame-pointer
8832 if test "${multilib}" = "yes"; then
8833 multilib_arg
="--enable-multilib"
8840 here
=`${PWDCMD-pwd}`
8843 # We get this from the environment.
8847 cat > confcache
<<\EOF
8848 # This file is a shell script that caches the results of configure
8849 # tests run on this system so they can be shared between configure
8850 # scripts and configure runs. It is not useful on other systems.
8851 # If it contains results you don't want to keep, you may remove or edit it.
8853 # By default, configure uses ./config.cache as the cache file,
8854 # creating it if it does not exist already. You can give configure
8855 # the --cache-file=FILE option to use a different cache file; that is
8856 # what configure does when it calls configure scripts in
8857 # subdirectories, so they share the cache.
8858 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8859 # config.status only pays attention to the cache file if you give it the
8860 # --recheck option to rerun configure.
8863 # The following way of writing the cache mishandles newlines in values,
8864 # but we know of no workaround that is simple, portable, and efficient.
8865 # So, don't put newlines in cache variables' values.
8866 # Ultrix sh set writes to stderr and can't be redirected directly,
8867 # and sets the high bit in the cache file unless we assign to the vars.
8869 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8871 # `set' does not quote correctly, so add quotes (double-quote substitution
8872 # turns \\\\ into \\, and sed turns \\ into \).
8874 -e "s/'/'\\\\''/g" \
8875 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8878 # `set' quotes correctly as required by POSIX, so do not add quotes.
8879 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8882 if cmp -s $cache_file confcache
; then
8885 if test -w $cache_file; then
8886 echo "updating cache $cache_file"
8887 cat confcache
> $cache_file
8889 echo "not updating unwritable cache $cache_file"
8894 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8896 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8897 # Let make expand exec_prefix.
8898 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8900 # Any assignment to VPATH causes Sun make to only execute
8901 # the first set of double-colon rules, so remove it if not needed.
8902 # If there is a colon in the path, we need to keep it.
8903 if test "x$srcdir" = x.
; then
8904 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8907 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8909 DEFS
=-DHAVE_CONFIG_H
8911 # Without the "./", some shells look in PATH for config.status.
8912 : ${CONFIG_STATUS=./config.status}
8914 echo creating
$CONFIG_STATUS
8915 rm -f $CONFIG_STATUS
8916 cat > $CONFIG_STATUS <<EOF
8918 # Generated automatically by configure.
8919 # Run this file to recreate the current configuration.
8920 # This directory was configured as follows,
8921 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8923 # $0 $ac_configure_args
8925 # Compiler output produced by configure, useful for debugging
8926 # configure, is in ./config.log if it exists.
8928 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8931 case "\$ac_option" in
8932 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8933 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8934 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8935 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8936 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8938 -help | --help | --hel | --he | --h)
8939 echo "\$ac_cs_usage"; exit 0 ;;
8940 *) echo "\$ac_cs_usage"; exit 1 ;;
8944 ac_given_srcdir=$srcdir
8945 ac_given_INSTALL="$INSTALL"
8947 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
8949 cat >> $CONFIG_STATUS <<EOF
8951 # Protect against being on the right side of a sed subst in config.status.
8952 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8953 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8957 s%@CFLAGS@%$CFLAGS%g
8958 s%@CPPFLAGS@%$CPPFLAGS%g
8959 s%@CXXFLAGS@%$CXXFLAGS%g
8960 s%@FFLAGS@%$FFLAGS%g
8962 s%@LDFLAGS@%$LDFLAGS%g
8964 s%@exec_prefix@%$exec_prefix%g
8965 s%@prefix@%$prefix%g
8966 s%@program_transform_name@%$program_transform_name%g
8967 s%@bindir@%$bindir%g
8968 s%@sbindir@%$sbindir%g
8969 s%@libexecdir@%$libexecdir%g
8970 s%@datadir@%$datadir%g
8971 s%@sysconfdir@%$sysconfdir%g
8972 s%@sharedstatedir@%$sharedstatedir%g
8973 s%@localstatedir@%$localstatedir%g
8974 s%@libdir@%$libdir%g
8975 s%@includedir@%$includedir%g
8976 s%@oldincludedir@%$oldincludedir%g
8977 s%@infodir@%$infodir%g
8978 s%@mandir@%$mandir%g
8980 s%@libgcj_basedir@%$libgcj_basedir%g
8981 s%@mkinstalldirs@%$mkinstalldirs%g
8983 s%@host_alias@%$host_alias%g
8984 s%@host_cpu@%$host_cpu%g
8985 s%@host_vendor@%$host_vendor%g
8986 s%@host_os@%$host_os%g
8987 s%@target@%$target%g
8988 s%@target_alias@%$target_alias%g
8989 s%@target_cpu@%$target_cpu%g
8990 s%@target_vendor@%$target_vendor%g
8991 s%@target_os@%$target_os%g
8993 s%@build_alias@%$build_alias%g
8994 s%@build_cpu@%$build_cpu%g
8995 s%@build_vendor@%$build_vendor%g
8996 s%@build_os@%$build_os%g
8998 s%@glibjava_CXX@%$glibjava_CXX%g
9000 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9001 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9002 s%@INSTALL_DATA@%$INSTALL_DATA%g
9003 s%@PACKAGE@%$PACKAGE%g
9004 s%@VERSION@%$VERSION%g
9005 s%@ACLOCAL@%$ACLOCAL%g
9006 s%@AUTOCONF@%$AUTOCONF%g
9007 s%@AUTOMAKE@%$AUTOMAKE%g
9008 s%@AUTOHEADER@%$AUTOHEADER%g
9009 s%@MAKEINFO@%$MAKEINFO%g
9010 s%@SET_MAKE@%$SET_MAKE%g
9013 s%@RANLIB@%$RANLIB%g
9014 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
9015 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
9017 s%@EXEEXT@%$EXEEXT%g
9018 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
9019 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
9020 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
9021 s%@INCLTDL@%$INCLTDL%g
9022 s%@LIBLTDL@%$LIBLTDL%g
9023 s%@DIRLTDL@%$DIRLTDL%g
9024 s%@OBJEXT@%$OBJEXT%g
9026 s%@LIBTOOL@%$LIBTOOL%g
9027 s%@CXXCPP@%$CXXCPP%g
9028 s%@subdirs@%$subdirs%g
9029 s%@COMPPATH@%$COMPPATH%g
9030 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
9031 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
9032 s%@ONESTEP_TRUE@%$ONESTEP_TRUE%g
9033 s%@ONESTEP_FALSE@%$ONESTEP_FALSE%g
9034 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
9035 s%@INTERPRETER@%$INTERPRETER%g
9036 s%@LIBFFI@%$LIBFFI%g
9037 s%@LIBFFIINCS@%$LIBFFIINCS%g
9038 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
9040 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
9041 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
9042 s%@ZLIBSPEC@%$ZLIBSPEC%g
9043 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
9044 s%@X_CFLAGS@%$X_CFLAGS%g
9045 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9046 s%@X_LIBS@%$X_LIBS%g
9047 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9048 s%@TOOLKIT@%$TOOLKIT%g
9049 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
9050 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
9051 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
9052 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
9053 s%@GCLIBS@%$GCLIBS%g
9054 s%@GCINCS@%$GCINCS%g
9055 s%@GCDEPS@%$GCDEPS%g
9056 s%@GCOBJS@%$GCOBJS%g
9057 s%@GCSPEC@%$GCSPEC%g
9058 s%@JC1GCSPEC@%$JC1GCSPEC%g
9059 s%@GCTESTSPEC@%$GCTESTSPEC%g
9060 s%@THREADLIBS@%$THREADLIBS%g
9061 s%@THREADINCS@%$THREADINCS%g
9062 s%@THREADDEPS@%$THREADDEPS%g
9063 s%@THREADOBJS@%$THREADOBJS%g
9064 s%@THREADSPEC@%$THREADSPEC%g
9065 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
9066 s%@THREADCXXFLAGS@%$THREADCXXFLAGS%g
9067 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
9068 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
9069 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
9070 s%@tool_include_dir@%$tool_include_dir%g
9071 s%@gcc_version@%$gcc_version%g
9072 s%@LIBICONV@%$LIBICONV%g
9073 s%@PKG_CONFIG@%$PKG_CONFIG%g
9074 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
9075 s%@GTK_LIBS@%$GTK_LIBS%g
9076 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
9077 s%@GLIB_LIBS@%$GLIB_LIBS%g
9078 s%@GLIB_GENMARSHAL@%$GLIB_GENMARSHAL%g
9079 s%@GOBJECT_QUERY@%$GOBJECT_QUERY%g
9080 s%@GLIB_MKENUMS@%$GLIB_MKENUMS%g
9081 s%@LIBART_CONFIG@%$LIBART_CONFIG%g
9082 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
9083 s%@LIBART_LIBS@%$LIBART_LIBS%g
9085 s%@GCJFLAGS@%$GCJFLAGS%g
9087 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
9089 s%@DIVIDESPEC@%$DIVIDESPEC%g
9090 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
9091 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
9092 s%@IEEESPEC@%$IEEESPEC%g
9093 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
9094 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
9095 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
9096 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
9097 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
9098 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
9099 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
9100 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
9101 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
9102 s%@toolexecdir@%$toolexecdir%g
9103 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
9104 s%@toolexeclibdir@%$toolexeclibdir%g
9105 s%@GCJVERSION@%$GCJVERSION%g
9106 s%@ALLOCA@%$ALLOCA%g
9108 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
9109 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
9115 cat >> $CONFIG_STATUS <<\EOF
9117 # Split the substitutions into bite-sized pieces for seds with
9118 # small command number limits, like on Digital OSF/1 and HP-UX.
9119 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9120 ac_file
=1 # Number of current file.
9121 ac_beg
=1 # First line for current file.
9122 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9125 while $ac_more_lines; do
9126 if test $ac_beg -gt 1; then
9127 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9129 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9131 if test ! -s conftest.s
$ac_file; then
9133 rm -f conftest.s
$ac_file
9135 if test -z "$ac_sed_cmds"; then
9136 ac_sed_cmds
="sed -f conftest.s$ac_file"
9138 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9140 ac_file
=`expr $ac_file + 1`
9142 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9145 if test -z "$ac_sed_cmds"; then
9150 cat >> $CONFIG_STATUS <<EOF
9152 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
9154 cat >> $CONFIG_STATUS <<\EOF
9155 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9156 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9158 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9159 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9160 *) ac_file_in
="${ac_file}.in" ;;
9163 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9165 # Remove last slash and all that follows it. Not all systems have dirname.
9166 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9167 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9168 # The file is in a subdirectory.
9169 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9170 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9171 # A "../" for each directory in $ac_dir_suffix.
9172 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9174 ac_dir_suffix
= ac_dots
=
9177 case "$ac_given_srcdir" in
9179 if test -z "$ac_dots"; then top_srcdir
=.
9180 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9181 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9183 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9184 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9187 case "$ac_given_INSTALL" in
9188 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9189 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9192 echo creating
"$ac_file"
9194 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9196 *Makefile
*) ac_comsub
="1i\\
9197 # $configure_input" ;;
9201 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9203 s%@configure_input@%$configure_input%g
9204 s%@srcdir@%$srcdir%g
9205 s%@top_srcdir@%$top_srcdir%g
9206 s%@INSTALL@%$INSTALL%g
9207 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9211 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9212 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9214 # ac_d sets the value in "#define NAME VALUE" lines.
9215 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9216 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9219 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9220 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9221 ac_uB
='\([ ]\)%\1#\2define\3'
9224 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9225 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9226 ac_eB
='$%\1#\2define\3'
9230 if test "${CONFIG_HEADERS+set}" != set; then
9232 cat >> $CONFIG_STATUS <<EOF
9233 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
9235 cat >> $CONFIG_STATUS <<\EOF
9237 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9238 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9240 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9241 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9242 *) ac_file_in
="${ac_file}.in" ;;
9245 echo creating
$ac_file
9247 rm -f conftest.frag conftest.
in conftest.out
9248 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9249 cat $ac_file_inputs > conftest.
in
9253 # Transform confdefs.h into a sed script conftest.vals that substitutes
9254 # the proper values into config.h.in to produce config.h. And first:
9255 # Protect against being on the right side of a sed subst in config.status.
9256 # Protect against being in an unquoted here document in config.status.
9258 cat > conftest.hdr
<<\EOF
9261 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9265 sed -n -f conftest.hdr confdefs.h > conftest.vals
9268 # This sed command replaces #undef with comments. This is necessary, for
9269 # example, in the case of _POSIX_SOURCE, which is predefined and required
9270 # on some systems where configure will not decide to define it.
9271 cat >> conftest.vals <<\EOF
9272 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9275 # Break up conftest.vals because some shells have a limit on
9276 # the size of here documents, and old seds have small limits too.
9281 ac_lines=`grep -c . conftest.vals
`
9282 # grep -c gives empty output for an empty file on some AIX systems.
9283 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9284 # Write a limited-size here document to conftest.frag.
9285 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9286 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9288 sed -f conftest.frag conftest.in > conftest.out
9290 mv conftest.out conftest.in
9292 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9294 mv conftest.tail conftest.vals
9298 cat >> $CONFIG_STATUS <<\EOF
9299 rm -f conftest.frag conftest.h
9300 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9301 cat conftest.in >> conftest.h
9303 if cmp -s $ac_file conftest.h 2>/dev/null; then
9304 echo "$ac_file is unchanged"
9307 # Remove last slash and all that follows it. Not all systems have dirname.
9308 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9309 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9310 # The file is in a subdirectory.
9311 test ! -d "$ac_dir" && mkdir "$ac_dir"
9314 mv conftest.h $ac_file
9320 cat >> $CONFIG_STATUS <<EOF
9321 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc java/net/natInetAddress${PLATFORMNET}.cc java/net/natNetworkInterface${PLATFORMNET}.cc gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
9322 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc java/net/natInetAddress.cc java/net/natNetworkInterface.cc gnu/java/net/natPlainSocketImpl.cc gnu/java/net/natPlainDatagramSocketImpl.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
9325 cat >> $CONFIG_STATUS <<\EOF
9326 srcdir=$ac_given_srcdir
9327 while test -n "$ac_sources"; do
9328 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9329 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9331 echo "linking $srcdir/$ac_source to $ac_dest"
9333 if test ! -r $srcdir/$ac_source; then
9334 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9338 # Make relative symlinks.
9339 # Remove last slash and all that follows it. Not all systems have dirname.
9340 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9341 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9342 # The dest file is in a subdirectory.
9343 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9344 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9345 # A "../" for each directory in $ac_dest_dir_suffix.
9346 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9348 ac_dest_dir_suffix= ac_dots=
9352 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9353 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9356 # Make a symlink if possible; otherwise try a hard link.
9357 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9358 ln $srcdir/$ac_source $ac_dest; then :
9360 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9364 cat >> $CONFIG_STATUS <<EOF
9369 with_multisubdir=${with_multisubdir}
9370 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9371 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9372 libgcj_basedir=${libgcj_basedir}
9375 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9378 cat >> $CONFIG_STATUS <<\EOF
9380 for am_file in include/config.h gcj/libgcj-config.h; do
9381 case " $CONFIG_HEADERS " in
9383 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9386 am_indx=`expr "$am_indx" + 1`
9388 # Only add multilib support code if we just rebuilt top-level Makefile.
9389 case " $CONFIG_FILES " in
9391 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9392 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9396 # Make subdirectories and `.d
' files. Look in both srcdir and
9397 # builddir for the .java files.
9400 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) ;
9401 find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) | \
9402 fgrep -v testsuite | \
9403 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/'\;'s
/\.c
/.d
/' | \
9405 echo "include $f" >> deps.mk
9408 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
9410 if test ! -d $d; then
9411 $libgcj_basedir/../mkinstalldirs $d
9419 chmod +x $CONFIG_STATUS
9420 rm -fr confdefs* $ac_clean_files
9421 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9423 if test "$no_recursion" != yes; then
9425 # Remove --cache-file and --srcdir arguments so they do not pile up.
9426 ac_sub_configure_args=
9428 for ac_arg in $ac_configure_args; do
9429 if test -n "$ac_prev"; then
9434 -cache-file | --cache-file | --cache-fil | --cache-fi \
9435 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9436 ac_prev=cache_file ;;
9437 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9438 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9440 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9442 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9444 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9448 for ac_config_dir in $DIRLTDL; do
9450 # Do not complain, so a configure script can configure whichever
9451 # parts of a large source tree are present.
9452 if test ! -d $srcdir/$ac_config_dir; then
9456 echo configuring in $ac_config_dir
9461 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9463 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9471 # A "../" for each directory in /$ac_config_dir.
9472 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
9475 .) # No --srcdir option. We are building in place.
9476 ac_sub_srcdir=$srcdir ;;
9477 /*) # Absolute path.
9478 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9480 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9483 # Check for guested configure; otherwise get Cygnus style configure.
9484 if test -f $ac_sub_srcdir/configure; then
9485 ac_sub_configure=$ac_sub_srcdir/configure
9486 elif test -f $ac_sub_srcdir/configure.in; then
9487 ac_sub_configure=$ac_configure
9489 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9493 # The recursion is here.
9494 if test -n "$ac_sub_configure"; then
9496 # Make the cache file name correct relative to the subdirectory.
9497 case "$cache_file" in
9498 /*) ac_sub_cache_file=$cache_file ;;
9500 ac_sub_cache_file="$ac_dots$cache_file" ;;
9502 case "$ac_given_INSTALL" in
9503 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9504 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9507 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9508 # The eval makes quoting arguments work.
9509 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9512 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }