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 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock avoid locking (might break parallel builds)"
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
37 --enable-fast-character prefer speed over size for Character"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --without-libffi don't use libffi"
55 --disable-jvmpi disable JVMPI support"
57 --with-ecos enable runtime eCos target support"
59 --with-system-zlib use installed libz"
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
63 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
65 --with-x use the X Window System"
67 --enable-java-awt list of AWT peer implementations to be built"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file
=.
/config.cache
82 program_transform_name
=s
,x
,x
,
91 bindir
='${exec_prefix}/bin'
92 sbindir
='${exec_prefix}/sbin'
93 libexecdir
='${exec_prefix}/libexec'
94 datadir
='${prefix}/share'
95 sysconfdir
='${prefix}/etc'
96 sharedstatedir
='${prefix}/com'
97 localstatedir
='${prefix}/var'
98 libdir
='${exec_prefix}/lib'
99 includedir
='${prefix}/include'
100 oldincludedir
='/usr/include'
101 infodir
='${prefix}/info'
102 mandir
='${prefix}/man'
104 # Initialize some other variables.
107 SHELL
=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
115 # If the previous option needs an argument, assign it.
116 if test -n "$ac_prev"; then
117 eval "$ac_prev=\$ac_option"
123 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 # Accept the important Cygnus configure options, so we can diagnose typos.
131 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
133 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
134 bindir
="$ac_optarg" ;;
136 -build |
--build |
--buil |
--bui |
--bu)
138 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
139 build
="$ac_optarg" ;;
141 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
142 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
143 ac_prev
=cache_file
;;
144 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
145 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
146 cache_file
="$ac_optarg" ;;
148 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
150 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
152 datadir
="$ac_optarg" ;;
154 -disable-* |
--disable-*)
155 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}=no" ;;
163 -enable-* |
--enable-*)
164 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}='$ac_optarg'" ;;
176 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
177 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
178 |
--exec |
--exe |
--ex)
179 ac_prev
=exec_prefix
;;
180 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
181 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
182 |
--exec=* |
--exe=* |
--ex=*)
183 exec_prefix
="$ac_optarg" ;;
185 -gas |
--gas |
--ga |
--g)
186 # Obsolete; use --with-gas.
189 -help |
--help |
--hel |
--he)
190 # Omit some internal or obsolete options to make the list less imposing.
191 # This message is too long to be a string in the A/UX 3.1 sh.
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
196 --cache-file=FILE cache test results in FILE
197 --help print this message
198 --no-create do not create output files
199 --quiet, --silent do not print \`checking...' messages
200 --site-file=FILE use FILE as the site file
201 --version print the version of autoconf that created configure
202 Directory and file names:
203 --prefix=PREFIX install architecture-independent files in PREFIX
205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 --bindir=DIR user executables in DIR [EPREFIX/bin]
208 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
209 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
210 --datadir=DIR read-only architecture-independent data in DIR
212 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
213 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
216 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
217 --includedir=DIR C header files in DIR [PREFIX/include]
218 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
219 --infodir=DIR info documentation in DIR [PREFIX/info]
220 --mandir=DIR man documentation in DIR [PREFIX/man]
221 --srcdir=DIR find the sources in DIR [configure dir or ..]
222 --program-prefix=PREFIX prepend PREFIX to installed program names
223 --program-suffix=SUFFIX append SUFFIX to installed program names
224 --program-transform-name=PROGRAM
225 run sed PROGRAM on installed program names
229 --build=BUILD configure for building on BUILD [BUILD=HOST]
230 --host=HOST configure for HOST [guessed]
231 --target=TARGET configure for TARGET [TARGET=HOST]
232 Features and packages:
233 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
234 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
235 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
236 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
237 --x-includes=DIR X include files are in DIR
238 --x-libraries=DIR X library files are in DIR
240 if test -n "$ac_help"; then
241 echo "--enable and --with options recognized:$ac_help"
245 -host |
--host |
--hos |
--ho)
247 -host=* |
--host=* |
--hos=* |
--ho=*)
250 -includedir |
--includedir |
--includedi |
--included |
--include \
251 |
--includ |
--inclu |
--incl |
--inc)
252 ac_prev
=includedir
;;
253 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
254 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
255 includedir
="$ac_optarg" ;;
257 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
259 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
260 infodir
="$ac_optarg" ;;
262 -libdir |
--libdir |
--libdi |
--libd)
264 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
265 libdir
="$ac_optarg" ;;
267 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
268 |
--libexe |
--libex |
--libe)
269 ac_prev
=libexecdir
;;
270 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
271 |
--libexe=* |
--libex=* |
--libe=*)
272 libexecdir
="$ac_optarg" ;;
274 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
275 |
--localstate |
--localstat |
--localsta |
--localst \
276 |
--locals |
--local |
--loca |
--loc |
--lo)
277 ac_prev
=localstatedir
;;
278 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
279 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
280 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
281 localstatedir
="$ac_optarg" ;;
283 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
285 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
286 mandir
="$ac_optarg" ;;
289 # Obsolete; use --without-fp.
292 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
296 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
297 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
300 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
301 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
302 |
--oldin |
--oldi |
--old |
--ol |
--o)
303 ac_prev
=oldincludedir
;;
304 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
305 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
306 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
307 oldincludedir
="$ac_optarg" ;;
309 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
311 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
312 prefix
="$ac_optarg" ;;
314 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
315 |
--program-pre |
--program-pr |
--program-p)
316 ac_prev
=program_prefix
;;
317 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
318 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
319 program_prefix
="$ac_optarg" ;;
321 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
322 |
--program-suf |
--program-su |
--program-s)
323 ac_prev
=program_suffix
;;
324 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
325 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
326 program_suffix
="$ac_optarg" ;;
328 -program-transform-name |
--program-transform-name \
329 |
--program-transform-nam |
--program-transform-na \
330 |
--program-transform-n |
--program-transform- \
331 |
--program-transform |
--program-transfor \
332 |
--program-transfo |
--program-transf \
333 |
--program-trans |
--program-tran \
334 |
--progr-tra |
--program-tr |
--program-t)
335 ac_prev
=program_transform_name
;;
336 -program-transform-name=* |
--program-transform-name=* \
337 |
--program-transform-nam=* |
--program-transform-na=* \
338 |
--program-transform-n=* |
--program-transform-=* \
339 |
--program-transform=* |
--program-transfor=* \
340 |
--program-transfo=* |
--program-transf=* \
341 |
--program-trans=* |
--program-tran=* \
342 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
343 program_transform_name
="$ac_optarg" ;;
345 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
346 |
-silent |
--silent |
--silen |
--sile |
--sil)
349 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
351 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
353 sbindir
="$ac_optarg" ;;
355 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
356 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
357 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
359 ac_prev
=sharedstatedir
;;
360 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
361 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
362 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
364 sharedstatedir
="$ac_optarg" ;;
366 -site |
--site |
--sit)
368 -site=* |
--site=* |
--sit=*)
371 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
373 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
374 sitefile
="$ac_optarg" ;;
376 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
378 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
379 srcdir
="$ac_optarg" ;;
381 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
382 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
383 ac_prev
=sysconfdir
;;
384 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
385 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
386 sysconfdir
="$ac_optarg" ;;
388 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
390 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
391 target
="$ac_optarg" ;;
393 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
396 -version |
--version |
--versio |
--versi |
--vers)
397 echo "configure generated by autoconf version 2.13"
401 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package
=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* |
--without-*)
414 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package
=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
427 |
--x-incl |
--x-inc |
--x-in |
--x-i)
428 ac_prev
=x_includes
;;
429 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
430 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
431 x_includes
="$ac_optarg" ;;
433 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
434 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
435 ac_prev
=x_libraries
;;
436 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
437 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
438 x_libraries
="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE
; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
489 |
--no-cr |
--no-c) ;;
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
492 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest
* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file
=java
/lang
/System.java
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted
=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted
=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$sitefile"; then
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE
; then
544 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 CONFIG_SITE
="$sitefile"
552 for ac_site_file
in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp
='$CPP $CPPFLAGS'
570 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling
=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
585 ac_n
= ac_c
='\c' ac_t
=
590 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
591 echo "configure:592: checking whether ln -s works" >&5
592 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
593 echo $ac_n "(cached) $ac_c" 1>&6
596 if ln -s X conftestdata
2>/dev
/null
599 ac_cv_prog_LN_S
="ln -s"
604 LN_S
="$ac_cv_prog_LN_S"
605 if test "$ac_cv_prog_LN_S" = "ln -s"; then
606 echo "$ac_t""yes" 1>&6
608 echo "$ac_t""no" 1>&6
612 # Check whether --with-target-subdir or --without-target-subdir was given.
613 if test "${with_target_subdir+set}" = set; then
614 withval
="$with_target_subdir"
618 # Check whether --with-cross-host or --without-cross-host was given.
619 if test "${with_cross_host+set}" = set; then
620 withval
="$with_cross_host"
625 # Find a good install program. We prefer a C program (faster),
626 # so one script is as good as another. But avoid the broken or
627 # incompatible versions:
628 # SysV /etc/install, /usr/sbin/install
629 # SunOS /usr/etc/install
632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
635 # ./install, which can be erroneously created by make from ./install.sh.
636 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
637 echo "configure:638: checking for a BSD compatible install" >&5
638 if test -z "$INSTALL"; then
639 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
643 for ac_dir
in $PATH; do
644 # Account for people who put trailing slashes in PATH elements.
646 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
648 # OSF1 and SCO ODT 3.0 have their own names for install.
649 # Don't use installbsd from OSF since it installs stuff as root
651 for ac_prog
in ginstall scoinst
install; do
652 if test -f $ac_dir/$ac_prog; then
653 if test $ac_prog = install &&
654 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
655 # AIX install. It has an incompatible calling convention.
658 ac_cv_path_install
="$ac_dir/$ac_prog -c"
669 if test "${ac_cv_path_install+set}" = set; then
670 INSTALL
="$ac_cv_path_install"
672 # As a last resort, use the slow shell script. We don't cache a
673 # path for INSTALL within a source directory, because that will
674 # break other packages using the cache if that directory is
675 # removed, or if the path is relative.
676 INSTALL
="$ac_install_sh"
679 echo "$ac_t""$INSTALL" 1>&6
681 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
682 # It thinks the first close brace ends the variable substitution.
683 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
685 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
687 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
689 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
690 echo "configure:691: checking whether build environment is sane" >&5
693 echo timestamp
> conftestfile
694 # Do `set' in a subshell so we don't clobber the current shell's
695 # arguments. Must try -L first in case configure is actually a
696 # symlink; some systems play weird games with the mod time of symlinks
697 # (eg FreeBSD returns the mod time of the symlink's containing
700 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
701 if test "$*" = "X"; then
703 set X
`ls -t $srcdir/configure conftestfile`
705 if test "$*" != "X $srcdir/configure conftestfile" \
706 && test "$*" != "X conftestfile $srcdir/configure"; then
708 # If neither matched, then we have a broken ls. This can happen
709 # if, for instance, CONFIG_SHELL is bash and it inherits a
710 # broken ls alias from the environment. This has actually
711 # happened. Such a system could not be considered "sane".
712 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
713 alias in your environment" 1>&2; exit 1; }
716 test "$2" = conftestfile
722 { echo "configure: error: newly created file is older than distributed files!
723 Check your system clock" 1>&2; exit 1; }
726 echo "$ac_t""yes" 1>&6
727 if test "$program_transform_name" = s
,x
,x
,; then
728 program_transform_name
=
730 # Double any \ or $. echo might interpret backslashes.
731 cat <<\EOF_SED
> conftestsed
732 s
,\\,\\\\,g
; s
,\$
,$$
,g
734 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
737 test "$program_prefix" != NONE
&&
738 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
739 # Use a double $ so make ignores it.
740 test "$program_suffix" != NONE
&&
741 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
743 # sed with no file args requires a program.
744 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
746 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
747 echo "configure:748: checking whether ${MAKE-make} sets \${MAKE}" >&5
748 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
749 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 cat > conftestmake
<<\EOF
754 @
echo 'ac_maketemp="${MAKE}"'
756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
757 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
758 if test -n "$ac_maketemp"; then
759 eval ac_cv_prog_make_
${ac_make}_set
=yes
761 eval ac_cv_prog_make_
${ac_make}_set
=no
765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
766 echo "$ac_t""yes" 1>&6
769 echo "$ac_t""no" 1>&6
770 SET_MAKE
="MAKE=${MAKE-make}"
773 if test $host != $build; then
774 ac_tool_prefix
=${host_alias}-
779 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
780 echo "configure:781: checking for Cygwin environment" >&5
781 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 cat > conftest.
$ac_ext <<EOF
785 #line 786 "configure"
786 #include "confdefs.h"
791 #define __CYGWIN__ __CYGWIN32__
796 if { (eval echo configure
:797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
800 echo "configure: failed program was:" >&5
801 cat conftest.
$ac_ext >&5
809 echo "$ac_t""$ac_cv_cygwin" 1>&6
811 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
812 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
813 echo "configure:814: checking for mingw32 environment" >&5
814 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 cat > conftest.
$ac_ext <<EOF
818 #line 819 "configure"
819 #include "confdefs.h"
825 if { (eval echo configure
:826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
829 echo "configure: failed program was:" >&5
830 cat conftest.
$ac_ext >&5
838 echo "$ac_t""$ac_cv_mingw32" 1>&6
840 test "$ac_cv_mingw32" = yes && MINGW32
=yes
842 # Check whether --enable-multilib or --disable-multilib was given.
843 if test "${enable_multilib+set}" = set; then
844 enableval
="$enable_multilib"
845 case "${enableval}" in
848 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
855 # When building with srcdir == objdir, links to the source files will
856 # be created in directories within the target_subdir. We have to
857 # adjust toplevel_srcdir accordingly, so that configure finds
858 # install-sh and other auxiliary files that live in the top-level
860 if test "${srcdir}" = "."; then
861 if test -z "${with_target_subdir}"; then
864 if test "${with_target_subdir}" != "."; then
865 toprel
="${with_multisrctop}../.."
867 toprel
="${with_multisrctop}.."
874 libgcj_basedir
=$srcdir/$toprel/.
/libjava
878 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
879 if test -f $ac_dir/install-sh
; then
881 ac_install_sh
="$ac_aux_dir/install-sh -c"
883 elif test -f $ac_dir/install.sh
; then
885 ac_install_sh
="$ac_aux_dir/install.sh -c"
889 if test -z "$ac_aux_dir"; then
890 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
892 ac_config_guess=$ac_aux_dir/config.guess
893 ac_config_sub=$ac_aux_dir/config.sub
894 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
897 # This overrides the previous occurrence for automake, but not for
898 # autoconf, which is exactly what we want.
900 for ac_dir in .. $srcdir/..; do
901 if test -f $ac_dir/install-sh; then
903 ac_install_sh="$ac_aux_dir/install-sh
-c"
905 elif test -f $ac_dir/install.sh; then
907 ac_install_sh="$ac_aux_dir/install.sh
-c"
911 if test -z "$ac_aux_dir"; then
912 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
914 ac_config_guess=$ac_aux_dir/config.guess
915 ac_config_sub=$ac_aux_dir/config.sub
916 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
920 # This works around an automake problem.
921 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs
"
925 # Do some error checking and defaulting for the host and target type.
927 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
930 # 1. You are not allowed to specify --host, --target, and nonopt at the
932 # 2. Host defaults to nonopt.
933 # 3. If nonopt is not specified, then host defaults to the current host,
934 # as determined by config.guess.
935 # 4. Target and build default to nonopt.
936 # 5. If nonopt is not specified, then target and build default to host.
938 # The aliases save the names the user supplied, while $host etc.
939 # will get canonicalized.
940 case $host---$target---$nonopt in
941 NONE---*---* | *---NONE---* | *---*---NONE) ;;
942 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
946 # Make sure we can run config.sub.
947 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
948 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
951 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
952 echo "configure
:953: checking
host system
type" >&5
955 case "$host_alias" in
959 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
960 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
962 *) host_alias=$nonopt ;;
966 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
967 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
968 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
969 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
970 echo "$ac_t""$host" 1>&6
972 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
973 echo "configure
:974: checking target system
type" >&5
976 case "$target_alias" in
979 NONE) target_alias=$host_alias ;;
980 *) target_alias=$nonopt ;;
984 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
985 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
986 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
987 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
988 echo "$ac_t""$target" 1>&6
990 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
991 echo "configure
:992: checking build system
type" >&5
994 case "$build_alias" in
997 NONE) build_alias=$host_alias ;;
998 *) build_alias=$nonopt ;;
1002 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1003 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1004 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1005 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1006 echo "$ac_t""$build" 1>&6
1008 test "$host_alias" != "$target_alias" &&
1009 test "$program_prefix$program_suffix$program_transform_name" = \
1011 program_prefix=${target_alias}-
1017 # Extract the first word of "gcc
", so it can be a program name with args.
1018 set dummy gcc; ac_word=$2
1019 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1020 echo "configure
:1021: checking
for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1022 echo $ac_n "(cached
) $ac_c" 1>&6
1024 if test -n "$CC"; then
1025 ac_cv_prog_CC="$CC" # Let the user override the test.
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1029 for ac_dir in $ac_dummy; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1040 if test -n "$CC"; then
1041 echo "$ac_t""$CC" 1>&6
1043 echo "$ac_t""no
" 1>&6
1046 if test -z "$CC"; then
1047 # Extract the first word of "cc
", so it can be a program name with args.
1048 set dummy cc; ac_word=$2
1049 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1050 echo "configure
:1051: checking
for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1052 echo $ac_n "(cached
) $ac_c" 1>&6
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC="$CC" # Let the user override the test.
1057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1060 for ac_dir in $ac_dummy; do
1061 test -z "$ac_dir" && ac_dir=.
1062 if test -f $ac_dir/$ac_word; then
1063 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1064 ac_prog_rejected=yes
1072 if test $ac_prog_rejected = yes; then
1073 # We found a bogon in the path, so make sure we never use it.
1074 set dummy $ac_cv_prog_CC
1076 if test $# -gt 0; then
1077 # We chose a different compiler from the bogus one.
1078 # However, it has the same basename, so the bogon will be chosen
1079 # first if we set CC to just the basename; use the full file name.
1081 set dummy "$ac_dir/$ac_word" "$@
"
1089 if test -n "$CC"; then
1090 echo "$ac_t""$CC" 1>&6
1092 echo "$ac_t""no
" 1>&6
1095 if test -z "$CC"; then
1096 case "`uname -s`" in
1098 # Extract the first word of "cl
", so it can be a program name with args.
1099 set dummy cl; ac_word=$2
1100 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1101 echo "configure
:1102: checking
for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1103 echo $ac_n "(cached
) $ac_c" 1>&6
1105 if test -n "$CC"; then
1106 ac_cv_prog_CC="$CC" # Let the user override the test.
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1121 if test -n "$CC"; then
1122 echo "$ac_t""$CC" 1>&6
1124 echo "$ac_t""no
" 1>&6
1129 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1133 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1134 echo "configure
:1135: checking whether we are using GNU C
" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1136 echo $ac_n "(cached
) $ac_c" 1>&6
1138 cat > conftest.c <<EOF
1143 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1150 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1152 if test $ac_cv_prog_gcc = yes; then
1158 ac_test_CFLAGS="${CFLAGS+set}"
1159 ac_save_CFLAGS="$CFLAGS"
1161 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1162 echo "configure
:1163: checking whether
${CC-cc} accepts
-g" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1164 echo $ac_n "(cached
) $ac_c" 1>&6
1166 echo 'void f(){}' > conftest.c
1167 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1176 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1177 if test "$ac_test_CFLAGS" = set; then
1178 CFLAGS="$ac_save_CFLAGS"
1179 elif test $ac_cv_prog_cc_g = yes; then
1180 if test "$GCC" = yes; then
1186 if test "$GCC" = yes; then
1193 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1195 # Extract the first word of "$ac_prog", so it can be a program name with args.
1196 set dummy $ac_prog; ac_word=$2
1197 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1198 echo "configure
:1199: checking
for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1200 echo $ac_n "(cached
) $ac_c" 1>&6
1202 if test -n "$CXX"; then
1203 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_CXX="$ac_prog"
1217 CXX="$ac_cv_prog_CXX"
1218 if test -n "$CXX"; then
1219 echo "$ac_t""$CXX" 1>&6
1221 echo "$ac_t""no
" 1>&6
1224 test -n "$CXX" && break
1226 test -n "$CXX" || CXX="gcc
"
1230 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1231 echo "configure
:1232: checking whether we are using GNU C
++" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1233 echo $ac_n "(cached
) $ac_c" 1>&6
1235 cat > conftest.C <<EOF
1240 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1247 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1249 if test $ac_cv_prog_gxx = yes; then
1255 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1256 ac_save_CXXFLAGS="$CXXFLAGS"
1258 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1259 echo "configure
:1260: checking whether
${CXX-g++} accepts
-g" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1261 echo $ac_n "(cached
) $ac_c" 1>&6
1263 echo 'void f(){}' > conftest.cc
1264 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1265 ac_cv_prog_cxx_g=yes
1273 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1274 if test "$ac_test_CXXFLAGS" = set; then
1275 CXXFLAGS="$ac_save_CXXFLAGS"
1276 elif test $ac_cv_prog_cxx_g = yes; then
1277 if test "$GXX" = yes; then
1283 if test "$GXX" = yes; then
1297 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1298 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1300 cat >> confdefs.h <<EOF
1301 #define PACKAGE "$PACKAGE"
1304 cat >> confdefs.h <<EOF
1305 #define VERSION "$VERSION"
1310 missing_dir=`cd $ac_aux_dir && pwd`
1311 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
1312 echo "configure
:1313: checking
for working aclocal
" >&5
1313 # Run test in a subshell; some versions of sh will print an error if
1314 # an executable is not found, even if stderr is redirected.
1315 # Redirect stdin to placate older versions of autoconf. Sigh.
1316 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1318 echo "$ac_t""found
" 1>&6
1320 ACLOCAL="$missing_dir/missing aclocal
"
1321 echo "$ac_t""missing
" 1>&6
1324 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1325 echo "configure
:1326: checking
for working autoconf
" >&5
1326 # Run test in a subshell; some versions of sh will print an error if
1327 # an executable is not found, even if stderr is redirected.
1328 # Redirect stdin to placate older versions of autoconf. Sigh.
1329 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1331 echo "$ac_t""found
" 1>&6
1333 AUTOCONF="$missing_dir/missing autoconf
"
1334 echo "$ac_t""missing
" 1>&6
1337 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
1338 echo "configure
:1339: checking
for working automake
" >&5
1339 # Run test in a subshell; some versions of sh will print an error if
1340 # an executable is not found, even if stderr is redirected.
1341 # Redirect stdin to placate older versions of autoconf. Sigh.
1342 if (automake --version) < /dev/null > /dev/null 2>&1; then
1344 echo "$ac_t""found
" 1>&6
1346 AUTOMAKE="$missing_dir/missing automake
"
1347 echo "$ac_t""missing
" 1>&6
1350 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1351 echo "configure
:1352: checking
for working autoheader
" >&5
1352 # Run test in a subshell; some versions of sh will print an error if
1353 # an executable is not found, even if stderr is redirected.
1354 # Redirect stdin to placate older versions of autoconf. Sigh.
1355 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1356 AUTOHEADER=autoheader
1357 echo "$ac_t""found
" 1>&6
1359 AUTOHEADER="$missing_dir/missing autoheader
"
1360 echo "$ac_t""missing
" 1>&6
1363 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1364 echo "configure
:1365: checking
for working makeinfo
" >&5
1365 # Run test in a subshell; some versions of sh will print an error if
1366 # an executable is not found, even if stderr is redirected.
1367 # Redirect stdin to placate older versions of autoconf. Sigh.
1368 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1370 echo "$ac_t""found
" 1>&6
1372 MAKEINFO="$missing_dir/missing makeinfo
"
1373 echo "$ac_t""missing
" 1>&6
1378 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1379 # run it explicitly here, it will be run implicitly before
1380 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1381 # be run before AC_CANONICAL_HOST.
1382 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1383 echo "configure
:1384: checking build system
type" >&5
1386 case "$build_alias" in
1389 NONE) build_alias=$host_alias ;;
1390 *) build_alias=$nonopt ;;
1394 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1395 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398 echo "$ac_t""$build" 1>&6
1401 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}as; ac_word=$2
1403 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1404 echo "configure
:1405: checking
for $ac_word" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1406 echo $ac_n "(cached
) $ac_c" 1>&6
1408 if test -n "$AS"; then
1409 ac_cv_prog_AS="$AS" # Let the user override the test.
1411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1413 for ac_dir in $ac_dummy; do
1414 test -z "$ac_dir" && ac_dir=.
1415 if test -f $ac_dir/$ac_word; then
1416 ac_cv_prog_AS="${ac_tool_prefix}as
"
1421 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1425 if test -n "$AS"; then
1426 echo "$ac_t""$AS" 1>&6
1428 echo "$ac_t""no
" 1>&6
1433 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1434 set dummy ${ac_tool_prefix}ar; ac_word=$2
1435 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1436 echo "configure
:1437: checking
for $ac_word" >&5
1437 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1438 echo $ac_n "(cached
) $ac_c" 1>&6
1440 if test -n "$AR"; then
1441 ac_cv_prog_AR="$AR" # Let the user override the test.
1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1445 for ac_dir in $ac_dummy; do
1446 test -z "$ac_dir" && ac_dir=.
1447 if test -f $ac_dir/$ac_word; then
1448 ac_cv_prog_AR="${ac_tool_prefix}ar"
1453 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1457 if test -n "$AR"; then
1458 echo "$ac_t""$AR" 1>&6
1460 echo "$ac_t""no
" 1>&6
1465 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1466 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1467 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1468 echo "configure
:1469: checking
for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1470 echo $ac_n "(cached
) $ac_c" 1>&6
1472 if test -n "$RANLIB"; then
1473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1477 for ac_dir in $ac_dummy; do
1478 test -z "$ac_dir" && ac_dir=.
1479 if test -f $ac_dir/$ac_word; then
1480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1487 RANLIB="$ac_cv_prog_RANLIB"
1488 if test -n "$RANLIB"; then
1489 echo "$ac_t""$RANLIB" 1>&6
1491 echo "$ac_t""no
" 1>&6
1495 if test -z "$ac_cv_prog_RANLIB"; then
1496 if test -n "$ac_tool_prefix"; then
1497 # Extract the first word of "ranlib
", so it can be a program name with args.
1498 set dummy ranlib; ac_word=$2
1499 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1500 echo "configure
:1501: checking
for $ac_word" >&5
1501 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1502 echo $ac_n "(cached
) $ac_c" 1>&6
1504 if test -n "$RANLIB"; then
1505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1509 for ac_dir in $ac_dummy; do
1510 test -z "$ac_dir" && ac_dir=.
1511 if test -f $ac_dir/$ac_word; then
1512 ac_cv_prog_RANLIB="ranlib
"
1517 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1520 RANLIB="$ac_cv_prog_RANLIB"
1521 if test -n "$RANLIB"; then
1522 echo "$ac_t""$RANLIB" 1>&6
1524 echo "$ac_t""no
" 1>&6
1533 # Find a good install program. We prefer a C program (faster),
1534 # so one script is as good as another. But avoid the broken or
1535 # incompatible versions:
1536 # SysV /etc/install, /usr/sbin/install
1537 # SunOS /usr/etc/install
1538 # IRIX /sbin/install
1540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1543 # ./install, which can be erroneously created by make from ./install.sh.
1544 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1545 echo "configure
:1546: checking
for a BSD compatible
install" >&5
1546 if test -z "$INSTALL"; then
1547 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1548 echo $ac_n "(cached
) $ac_c" 1>&6
1550 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1551 for ac_dir in $PATH; do
1552 # Account for people who put trailing slashes in PATH elements.
1554 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1559 for ac_prog in ginstall scoinst install; do
1560 if test -f $ac_dir/$ac_prog; then
1561 if test $ac_prog = install &&
1562 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1563 # AIX install. It has an incompatible calling convention.
1566 ac_cv_path_install="$ac_dir/$ac_prog -c"
1577 if test "${ac_cv_path_install+set}" = set; then
1578 INSTALL="$ac_cv_path_install"
1580 # As a last resort, use the slow shell script. We don't cache a
1581 # path for INSTALL within a source directory, because that will
1582 # break other packages using the cache if that directory is
1583 # removed, or if the path is relative.
1584 INSTALL="$ac_install_sh"
1587 echo "$ac_t""$INSTALL" 1>&6
1589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1590 # It thinks the first close brace ends the variable substitution.
1591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1598 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1599 echo "configure
:1600: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1600 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1601 if test "${enable_maintainer_mode+set}" = set; then
1602 enableval="$enable_maintainer_mode"
1603 USE_MAINTAINER_MODE=$enableval
1605 USE_MAINTAINER_MODE=no
1608 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1611 if test $USE_MAINTAINER_MODE = yes; then
1612 MAINTAINER_MODE_TRUE=
1613 MAINTAINER_MODE_FALSE='#'
1615 MAINTAINER_MODE_TRUE='#'
1616 MAINTAINER_MODE_FALSE=
1618 MAINT=$MAINTAINER_MODE_TRUE
1622 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1623 # at least currently, we never actually build a program, so we never
1624 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1625 # fails, because we are probably configuring with a cross compiler
1626 # which cant create executables. So we include AC_EXEEXT to keep
1627 # automake happy, but we dont execute it, since we dont care about
1630 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1631 # to nothing, so nothing would remain between `then' and `fi' if it
1632 # were not for the `:' below.
1636 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1637 echo "configure
:1638: checking
for executable suffix
" >&5
1638 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1639 echo $ac_n "(cached
) $ac_c" 1>&6
1641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1645 echo 'int main () { return 0; }' > conftest.$ac_ext
1647 if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1648 for file in conftest.*; do
1650 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1651 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1655 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1658 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1663 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1664 echo "$ac_t""${ac_cv_exeext}" 1>&6
1669 # configure.host sets the following important variables
1670 # libgcj_cflags - host specific C compiler flags
1671 # libgcj_cxxflags - host specific C++ compiler flags
1672 # libgcj_javaflags - host specific Java compiler flags
1678 . ${srcdir}/configure.host
1680 LIBGCJ_CFLAGS="${libgcj_cflags}"
1681 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1682 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1692 # Only use libltdl for native builds.
1693 if test -z "${with_cross_host}"; then
1694 case $enable_ltdl_convenience in
1695 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1696 "") enable_ltdl_convenience=yes
1697 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1699 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1700 INCLTDL='-I${top_srcdir}/''libltdl'
1704 cat >> confdefs.h <<\EOF
1708 # Sigh. Libtool's macro doesn't do the right thing.
1709 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1710 # FIXME: this is a hack.
1711 sub_auxdir="`cd $ac_aux_dir && pwd`"
1712 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1717 # Check whether --enable-shared or --disable-shared was given.
1718 if test "${enable_shared+set}" = set; then
1719 enableval="$enable_shared"
1720 p=${PACKAGE-default}
1722 yes) enable_shared=yes ;;
1723 no) enable_shared=no ;;
1726 # Look at the argument we got. We use all the common list separators.
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1728 for pkg in $enableval; do
1729 if test "X
$pkg" = "X
$p"; then
1740 # Check whether --enable-static or --disable-static was given.
1741 if test "${enable_static+set}" = set; then
1742 enableval="$enable_static"
1743 p=${PACKAGE-default}
1745 yes) enable_static=yes ;;
1746 no) enable_static=no ;;
1749 # Look at the argument we got. We use all the common list separators.
1750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1751 for pkg in $enableval; do
1752 if test "X
$pkg" = "X
$p"; then
1763 # Check whether --enable-fast-install or --disable-fast-install was given.
1764 if test "${enable_fast_install+set}" = set; then
1765 enableval="$enable_fast_install"
1766 p=${PACKAGE-default}
1768 yes) enable_fast_install=yes ;;
1769 no) enable_fast_install=no ;;
1771 enable_fast_install=no
1772 # Look at the argument we got. We use all the common list separators.
1773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1774 for pkg in $enableval; do
1775 if test "X
$pkg" = "X
$p"; then
1776 enable_fast_install=yes
1783 enable_fast_install=yes
1786 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1787 if test "${with_gnu_ld+set}" = set; then
1788 withval="$with_gnu_ld"
1789 test "$withval" = no || with_gnu_ld=yes
1795 if test "$GCC" = yes; then
1796 # Check if gcc -print-prog-name=ld gives a path.
1797 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1798 echo "configure
:1799: checking
for ld used by GCC
" >&5
1801 # gcc leaves a trailing carriage return which upsets mingw
1802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1807 # Accept absolute paths.
1808 [\\/]* | [A-Za-z]:[\\/]*)
1809 re_direlt='/[^/][^/]*/\.\./'
1810 # Canonicalize the path of ld
1811 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1813 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1815 test -z "$LD" && LD="$ac_prog"
1818 # If it fails, then pretend we aren't using GCC.
1822 # If it is relative, then search for the first ld in PATH.
1826 elif test "$with_gnu_ld" = yes; then
1827 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1828 echo "configure
:1829: checking
for GNU ld
" >&5
1830 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1831 echo "configure
:1832: checking
for non-GNU ld
" >&5
1833 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1834 echo $ac_n "(cached
) $ac_c" 1>&6
1836 if test -z "$LD"; then
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1838 for ac_dir in $PATH; do
1839 test -z "$ac_dir" && ac_dir=.
1840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1841 lt_cv_path_LD="$ac_dir/$ac_prog"
1842 # Check to see if the program is GNU ld. I'd rather use --version,
1843 # but apparently some GNU ld's only accept -v.
1844 # Break only if it was the GNU/non-GNU ld that we prefer.
1845 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1846 test "$with_gnu_ld" != no && break
1848 test "$with_gnu_ld" != yes && break
1854 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1859 if test -n "$LD"; then
1860 echo "$ac_t""$LD" 1>&6
1862 echo "$ac_t""no
" 1>&6
1864 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1865 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1866 echo "configure
:1867: checking
if the linker
($LD) is GNU ld
" >&5
1867 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1868 echo $ac_n "(cached
) $ac_c" 1>&6
1870 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1871 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1872 lt_cv_prog_gnu_ld=yes
1874 lt_cv_prog_gnu_ld=no
1878 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1879 with_gnu_ld=$lt_cv_prog_gnu_ld
1882 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1883 echo "configure
:1884: checking
for $LD option to reload object files
" >&5
1884 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1885 echo $ac_n "(cached
) $ac_c" 1>&6
1887 lt_cv_ld_reload_flag='-r'
1890 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1891 reload_flag=$lt_cv_ld_reload_flag
1892 test -n "$reload_flag" && reload_flag=" $reload_flag"
1894 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1895 echo "configure
:1896: checking
for BSD-compatible nm
" >&5
1896 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1897 echo $ac_n "(cached
) $ac_c" 1>&6
1899 if test -n "$NM"; then
1900 # Let the user override the test.
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1904 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1905 test -z "$ac_dir" && ac_dir=.
1906 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1907 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1908 # Check to see if the nm accepts a BSD-compat flag.
1909 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1910 # nm: unknown option "B
" ignored
1911 # Tru64's nm complains that /dev/null is an invalid object file
1912 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1913 lt_cv_path_NM="$tmp_nm -B"
1915 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1916 lt_cv_path_NM="$tmp_nm -p"
1919 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1920 continue # so that we can try to find one that supports BSD flags
1925 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1930 echo "$ac_t""$NM" 1>&6
1932 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1933 echo "configure
:1934: checking how to recognise dependant libraries
" >&5
1934 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1935 echo $ac_n "(cached
) $ac_c" 1>&6
1937 lt_cv_file_magic_cmd='$MAGIC_CMD'
1938 lt_cv_file_magic_test_file=
1939 lt_cv_deplibs_check_method='unknown'
1940 # Need to set the preceding variable on all platforms that support
1941 # interlibrary dependencies.
1942 # 'none' -- dependencies not supported.
1943 # `unknown' -- same as none, but documents that we really don't know.
1944 # 'pass_all' -- all dependencies passed with no checks.
1945 # 'test_compile' -- check by making test program.
1946 # 'file_magic [regex]' -- check by looking for files in library path
1947 # which responds to the $file_magic_cmd with a given egrep regex.
1948 # If you have `file' or equivalent on your system and you're not sure
1949 # whether `pass_all' will *always* work, you probably want this one.
1953 lt_cv_deplibs_check_method=pass_all
1957 lt_cv_deplibs_check_method=pass_all
1961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1962 lt_cv_file_magic_cmd='/usr/bin/file -L'
1963 lt_cv_file_magic_test_file=/shlib/libc.so
1966 cygwin* | mingw* |pw32*)
1967 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1968 lt_cv_file_magic_cmd='$OBJDUMP -f'
1971 darwin* | rhapsody*)
1972 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1973 lt_cv_file_magic_cmd='/usr/bin/file -L'
1975 rhapsody* | darwin1.012)
1976 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1979 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1985 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1988 # Not sure whether the presence of OpenBSD here was a mistake.
1989 # Let's accept both of them until this is cleared up.
1990 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1991 lt_cv_file_magic_cmd=/usr/bin/file
1992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1996 lt_cv_deplibs_check_method=pass_all
2001 lt_cv_deplibs_check_method=pass_all
2005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2006 lt_cv_file_magic_cmd=/usr/bin/file
2007 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2013 # this will be overridden with pass_all, but let us keep it just in case
2014 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2018 *-32|*"-32 ") libmagic=32-bit;;
2019 *-n32|*"-n32 ") libmagic=N32;;
2020 *-64|*"-64 ") libmagic=64-bit;;
2021 *) libmagic=never-match;;
2023 # this will be overridden with pass_all, but let us keep it just in case
2024 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2027 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2028 lt_cv_deplibs_check_method=pass_all
2031 # This must be Linux ELF.
2034 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2035 lt_cv_deplibs_check_method=pass_all ;;
2037 # glibc up to 2.1.1 does not perform some relocations on ARM
2038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2040 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2044 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2045 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2047 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2053 lt_cv_file_magic_cmd=/usr/bin/file
2054 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2057 osf3* | osf4* | osf5*)
2058 # this will be overridden with pass_all, but let us keep it just in case
2059 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2060 lt_cv_file_magic_test_file=/shlib/libc.so
2061 lt_cv_deplibs_check_method=pass_all
2065 lt_cv_deplibs_check_method=pass_all
2069 lt_cv_deplibs_check_method=pass_all
2070 lt_cv_file_magic_test_file=/lib/libc.so
2073 sysv5uw[78]* | sysv4*uw2*)
2074 lt_cv_deplibs_check_method=pass_all
2077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2078 case $host_vendor in
2080 lt_cv_deplibs_check_method=pass_all
2083 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]'
2084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2092 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2093 file_magic_cmd=$lt_cv_file_magic_cmd
2094 deplibs_check_method=$lt_cv_deplibs_check_method
2096 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2097 echo "configure
:2098: checking
for object suffix
" >&5
2098 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2099 echo $ac_n "(cached
) $ac_c" 1>&6
2102 echo 'int i = 1;' > conftest.$ac_ext
2103 if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2104 for ac_file in conftest.*; do
2107 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2111 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2116 echo "$ac_t""$ac_cv_objext" 1>&6
2117 OBJEXT=$ac_cv_objext
2118 ac_objext=$ac_cv_objext
2120 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2122 # Only perform the check for file, if the check method requires it
2123 case $deplibs_check_method in
2125 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2126 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2127 echo "configure
:2128: checking
for ${ac_tool_prefix}file" >&5
2128 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2129 echo $ac_n "(cached
) $ac_c" 1>&6
2133 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2136 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2139 ac_save_MAGIC_CMD="$MAGIC_CMD"
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2141 ac_dummy="/usr
/bin
:$PATH"
2142 for ac_dir in $ac_dummy; do
2143 test -z "$ac_dir" && ac_dir=.
2144 if test -f $ac_dir/${ac_tool_prefix}file; then
2145 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2146 if test -n "$file_magic_test_file"; then
2147 case $deplibs_check_method in
2149 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2152 egrep "$file_magic_regex" > /dev/null; then
2157 *** Warning: the command libtool uses to detect shared libraries,
2158 *** $file_magic_cmd, produces output that libtool cannot recognize.
2159 *** The result is that libtool may fail to recognize shared libraries
2160 *** as such. This will affect the creation of libtool libraries that
2161 *** depend on shared libraries, but programs linked with such libtool
2162 *** libraries will work regardless of this problem. Nevertheless, you
2163 *** may want to report the problem to your system manager and/or to
2164 *** bug-libtool@gnu.org
2174 MAGIC_CMD="$ac_save_MAGIC_CMD"
2179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2180 if test -n "$MAGIC_CMD"; then
2181 echo "$ac_t""$MAGIC_CMD" 1>&6
2183 echo "$ac_t""no
" 1>&6
2186 if test -z "$lt_cv_path_MAGIC_CMD"; then
2187 if test -n "$ac_tool_prefix"; then
2188 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2189 echo "configure
:2190: checking
for file" >&5
2190 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2191 echo $ac_n "(cached
) $ac_c" 1>&6
2195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2198 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2201 ac_save_MAGIC_CMD="$MAGIC_CMD"
2202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2203 ac_dummy="/usr
/bin
:$PATH"
2204 for ac_dir in $ac_dummy; do
2205 test -z "$ac_dir" && ac_dir=.
2206 if test -f $ac_dir/file; then
2207 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2208 if test -n "$file_magic_test_file"; then
2209 case $deplibs_check_method in
2211 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2214 egrep "$file_magic_regex" > /dev/null; then
2219 *** Warning: the command libtool uses to detect shared libraries,
2220 *** $file_magic_cmd, produces output that libtool cannot recognize.
2221 *** The result is that libtool may fail to recognize shared libraries
2222 *** as such. This will affect the creation of libtool libraries that
2223 *** depend on shared libraries, but programs linked with such libtool
2224 *** libraries will work regardless of this problem. Nevertheless, you
2225 *** may want to report the problem to your system manager and/or to
2226 *** bug-libtool@gnu.org
2236 MAGIC_CMD="$ac_save_MAGIC_CMD"
2241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2242 if test -n "$MAGIC_CMD"; then
2243 echo "$ac_t""$MAGIC_CMD" 1>&6
2245 echo "$ac_t""no
" 1>&6
2257 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2259 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2260 echo "configure
:2261: checking
for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2262 echo $ac_n "(cached
) $ac_c" 1>&6
2264 if test -n "$RANLIB"; then
2265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2269 for ac_dir in $ac_dummy; do
2270 test -z "$ac_dir" && ac_dir=.
2271 if test -f $ac_dir/$ac_word; then
2272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2279 RANLIB="$ac_cv_prog_RANLIB"
2280 if test -n "$RANLIB"; then
2281 echo "$ac_t""$RANLIB" 1>&6
2283 echo "$ac_t""no
" 1>&6
2287 if test -z "$ac_cv_prog_RANLIB"; then
2288 if test -n "$ac_tool_prefix"; then
2289 # Extract the first word of "ranlib
", so it can be a program name with args.
2290 set dummy ranlib; ac_word=$2
2291 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2292 echo "configure
:2293: checking
for $ac_word" >&5
2293 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2294 echo $ac_n "(cached
) $ac_c" 1>&6
2296 if test -n "$RANLIB"; then
2297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2301 for ac_dir in $ac_dummy; do
2302 test -z "$ac_dir" && ac_dir=.
2303 if test -f $ac_dir/$ac_word; then
2304 ac_cv_prog_RANLIB="ranlib
"
2309 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2312 RANLIB="$ac_cv_prog_RANLIB"
2313 if test -n "$RANLIB"; then
2314 echo "$ac_t""$RANLIB" 1>&6
2316 echo "$ac_t""no
" 1>&6
2324 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}strip; ac_word=$2
2326 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2327 echo "configure
:2328: checking
for $ac_word" >&5
2328 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2329 echo $ac_n "(cached
) $ac_c" 1>&6
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2336 for ac_dir in $ac_dummy; do
2337 test -z "$ac_dir" && ac_dir=.
2338 if test -f $ac_dir/$ac_word; then
2339 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2346 STRIP="$ac_cv_prog_STRIP"
2347 if test -n "$STRIP"; then
2348 echo "$ac_t""$STRIP" 1>&6
2350 echo "$ac_t""no
" 1>&6
2354 if test -z "$ac_cv_prog_STRIP"; then
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "strip
", so it can be a program name with args.
2357 set dummy strip; ac_word=$2
2358 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2359 echo "configure
:2360: checking
for $ac_word" >&5
2360 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2361 echo $ac_n "(cached
) $ac_c" 1>&6
2363 if test -n "$STRIP"; then
2364 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2368 for ac_dir in $ac_dummy; do
2369 test -z "$ac_dir" && ac_dir=.
2370 if test -f $ac_dir/$ac_word; then
2371 ac_cv_prog_STRIP="strip
"
2376 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2379 STRIP="$ac_cv_prog_STRIP"
2380 if test -n "$STRIP"; then
2381 echo "$ac_t""$STRIP" 1>&6
2383 echo "$ac_t""no
" 1>&6
2392 # Check for any special flags to pass to ltconfig.
2393 libtool_flags="--cache-file=$cache_file"
2394 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2395 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2396 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2397 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2398 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2399 libtool_flags="$libtool_flags --enable-dlopen"
2401 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2402 if test "${enable_libtool_lock+set}" = set; then
2403 enableval="$enable_libtool_lock"
2407 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2408 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2410 # Check whether --with-pic or --without-pic was given.
2411 if test "${with_pic+set}" = set; then
2418 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2419 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2421 # Some flags need to be propagated to the compiler or linker for good
2425 # Find out which ABI we are using.
2426 echo '#line 2427 "configure
"' > conftest.$ac_ext
2427 if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2428 case `/usr/bin/file conftest.$ac_objext` in
2444 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2445 SAVE_CFLAGS="$CFLAGS"
2446 CFLAGS="$CFLAGS -belf"
2447 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2448 echo "configure
:2449: checking whether the C compiler needs
-belf" >&5
2449 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2450 echo $ac_n "(cached
) $ac_c" 1>&6
2454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2458 cross_compiling=$ac_cv_prog_cc_cross
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure
"
2462 #include "confdefs.h
"
2468 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2470 lt_cv_cc_needs_belf=yes
2472 echo "configure
: failed program was
:" >&5
2473 cat conftest.$ac_ext >&5
2475 lt_cv_cc_needs_belf=no
2479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2483 cross_compiling=$ac_cv_prog_cc_cross
2487 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2488 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2489 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2490 CFLAGS="$SAVE_CFLAGS"
2497 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2498 echo "configure
:2499: checking how to run the C
++ preprocessor
" >&5
2499 if test -z "$CXXCPP"; then
2500 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2501 echo $ac_n "(cached
) $ac_c" 1>&6
2504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505 ac_cpp='$CXXCPP $CPPFLAGS'
2506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508 cross_compiling=$ac_cv_prog_cxx_cross
2509 CXXCPP="${CXX-g++} -E"
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure
"
2512 #include "confdefs.h
"
2515 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2518 if test -z "$ac_err"; then
2522 echo "configure
: failed program was
:" >&5
2523 cat conftest.$ac_ext >&5
2528 ac_cv_prog_CXXCPP="$CXXCPP"
2530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2534 cross_compiling=$ac_cv_prog_cc_cross
2537 CXXCPP="$ac_cv_prog_CXXCPP"
2538 echo "$ac_t""$CXXCPP" 1>&6
2541 # Save cache, so that ltconfig can load it
2542 cat > confcache <<\EOF
2543 # This file is a shell script that caches the results of configure
2544 # tests run on this system so they can be shared between configure
2545 # scripts and configure runs. It is not useful on other systems.
2546 # If it contains results you don't want to keep, you may remove or edit it.
2548 # By default, configure uses ./config.cache as the cache file,
2549 # creating it if it does not exist already. You can give configure
2550 # the --cache-file=FILE option to use a different cache file; that is
2551 # what configure does when it calls configure scripts in
2552 # subdirectories, so they share the cache.
2553 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2554 # config.status only pays attention to the cache file if you give it the
2555 # --recheck option to rerun configure.
2558 # The following way of writing the cache mishandles newlines in values,
2559 # but we know of no workaround that is simple, portable, and efficient.
2560 # So, don't put newlines in cache variables' values.
2561 # Ultrix sh set writes to stderr and can't be redirected directly,
2562 # and sets the high bit in the cache file unless we assign to the vars.
2564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2566 # `set' does not quote correctly, so add quotes (double-quote substitution
2567 # turns \\\\ into \\, and sed turns \\ into \).
2569 -e "s
/'/'\\\\''/g
" \
2570 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2573 # `set' quotes correctly as required by POSIX, so do not add quotes.
2574 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2577 if cmp -s $cache_file confcache; then
2580 if test -w $cache_file; then
2581 echo "updating cache
$cache_file"
2582 cat confcache > $cache_file
2584 echo "not updating unwritable cache
$cache_file"
2590 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2591 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2592 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2593 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2594 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2595 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2596 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2597 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2598 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2599 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2601 # Reload cache, that may have been modified by ltconfig
2602 if test -r "$cache_file"; then
2603 echo "loading cache
$cache_file"
2606 echo "creating cache
$cache_file"
2611 # This can be used to rebuild libtool when needed
2612 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2614 # Always use our own libtool.
2615 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2617 # Redirect the config.log output again, so that the ltconfig log is not
2618 # clobbered by the next message.
2619 exec 5>>./config.log
2623 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2625 lt_save_CFLAGS="$CFLAGS"
2626 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2627 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2628 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2629 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2630 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2631 deplibs_check_method="$deplibs_check_method" \
2632 file_magic_cmd="$file_magic_cmd" \
2633 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2634 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2635 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2637 CFLAGS="$lt_save_CFLAGS"
2639 # Redirect the config.log output again, so that the ltconfig log is not
2640 # clobbered by the next message.
2641 exec 5>>./config.log
2651 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2660 if test -d $srcdir/testsuite; then
2662 TESTSUBDIR_FALSE='#'
2668 # Check whether --enable-fast-character or --disable-fast-character was given.
2669 if test "${enable_fast_character+set}" = set; then
2670 enableval="$enable_fast_character"
2674 cat >> confdefs.h <<\EOF
2675 #define COMPACT_CHARACTER 1
2681 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2682 if test "${enable_getenv_properties+set}" = set; then
2683 enableval="$enable_getenv_properties"
2688 if test -z "$enable_getenv_properties"; then
2689 enable_getenv_properties=${enable_getenv_properties_default-yes}
2691 if test "$enable_getenv_properties" = no; then
2692 cat >> confdefs.h <<\EOF
2693 #define DISABLE_GETENV_PROPERTIES 1
2699 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2700 if test "${enable_hash_synchronization+set}" = set; then
2701 enableval="$enable_hash_synchronization"
2706 if test -z "$enable_hash_synchronization"; then
2707 enable_hash_synchronization=$enable_hash_synchronization_default
2713 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2714 if test "${enable_libgcj_debug+set}" = set; then
2715 enableval="$enable_libgcj_debug"
2716 if test "$enable_libgcj_debug" = yes; then
2717 cat >> confdefs.h <<\EOF
2726 # Check whether --enable-interpreter or --disable-interpreter was given.
2727 if test "${enable_interpreter+set}" = set; then
2728 enableval="$enable_interpreter"
2729 if test "$enable_interpreter" = yes; then
2730 # This can also be set in configure.host.
2731 libgcj_interpreter=yes
2732 elif test "$enable_interpreter" = no; then
2733 libgcj_interpreter=no
2738 if test "$libgcj_interpreter" = yes; then
2739 cat >> confdefs.h <<\EOF
2740 #define INTERPRETER 1
2745 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2746 echo "configure
:2747: checking
for exception model to use
" >&5
2749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2750 ac_cpp='$CXXCPP $CPPFLAGS'
2751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2753 cross_compiling=$ac_cv_prog_cxx_cross
2755 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2756 if test "${enable_sjlj_exceptions+set}" = set; then
2757 enableval="$enable_sjlj_exceptions"
2760 cat > conftest.$ac_ext << EOF
2761 #line 2762 "configure
"
2770 old_CXXFLAGS="$CXXFLAGS"
2772 if { (eval echo configure:2773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2773 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2774 enable_sjlj_exceptions=yes
2775 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2776 enable_sjlj_exceptions=no
2779 CXXFLAGS="$old_CXXFLAGS"
2783 if test x$enable_sjlj_exceptions = xyes; then
2784 cat >> confdefs.h <<\EOF
2785 #define SJLJ_EXCEPTIONS 1
2788 ac_exception_model_name=sjlj
2789 elif test x$enable_sjlj_exceptions = xno; then
2790 ac_exception_model_name="call frame
"
2792 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2799 cross_compiling=$ac_cv_prog_cc_cross
2801 echo "$ac_t""$ac_exception_model_name" 1>&6
2803 # Check whether --enable-java-net or --disable-java-net was given.
2804 if test "${enable_java_net+set}" = set; then
2805 enableval="$enable_java_net"
2810 if test -z "$enable_java_net"; then
2811 enable_java_net=${enable_java_net_default-yes}
2813 if test "$enable_java_net" = no; then
2814 cat >> confdefs.h <<\EOF
2815 #define DISABLE_JAVA_NET 1
2820 # Check whether --with-libffi or --without-libffi was given.
2821 if test "${with_libffi+set}" = set; then
2822 withval="$with_libffi"
2825 with_libffi=${with_libffi_default-yes}
2831 if test "$with_libffi" != no; then
2832 cat >> confdefs.h <<\EOF
2833 #define USE_LIBFFI 1
2836 LIBFFI=../libffi/libfficonvenience.la
2837 LIBFFIINCS="-I$
(top_srcdir
)/..
/libffi
/include
-I$
(MULTIBUILDTOP
)..
/libffi
/include
"
2842 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2843 if test "${enable_jvmpi+set}" = set; then
2844 enableval="$enable_jvmpi"
2849 if test "$enable_jvmpi" != no; then
2850 cat >> confdefs.h <<\EOF
2851 #define ENABLE_JVMPI 1
2857 # Check whether --with-ecos or --without-ecos was given.
2858 if test "${with_ecos+set}" = set; then
2859 withval="$with_ecos"
2860 TARGET_ECOS="$with_ecos"
2865 case "$TARGET_ECOS" in
2867 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2868 PROCESS=${PROCESS-Posix}
2871 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2873 cat >> confdefs.h <<\EOF
2880 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
2881 echo "configure
:2882: checking how to run the C preprocessor
" >&5
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2886 if test -z "$CPP"; then
2887 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2888 echo $ac_n "(cached
) $ac_c" 1>&6
2890 # This must be in double quotes, not single quotes, because CPP may get
2891 # substituted into the Makefile and "${CC-cc}" will confuse make.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp.
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure
"
2897 #include "confdefs.h
"
2901 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2902 { (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2904 if test -z "$ac_err"; then
2908 echo "configure
: failed program was
:" >&5
2909 cat conftest.$ac_ext >&5
2911 CPP="${CC-cc} -E -traditional-cpp"
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure
"
2914 #include "confdefs.h
"
2918 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2919 { (eval echo configure:2920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2921 if test -z "$ac_err"; then
2925 echo "configure
: failed program was
:" >&5
2926 cat conftest.$ac_ext >&5
2928 CPP="${CC-cc} -nologo -E"
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure
"
2931 #include "confdefs.h
"
2935 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2936 { (eval echo configure:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2938 if test -z "$ac_err"; then
2942 echo "configure
: failed program was
:" >&5
2943 cat conftest.$ac_ext >&5
2952 ac_cv_prog_CPP="$CPP"
2954 CPP="$ac_cv_prog_CPP"
2956 ac_cv_prog_CPP="$CPP"
2958 echo "$ac_t""$CPP" 1>&6
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure
"
2962 #include "confdefs.h
"
2965 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2966 egrep "uint32_t
" >/dev/null 2>&1; then
2968 cat >> confdefs.h <<\EOF
2969 #define HAVE_INT32_DEFINED 1
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure
"
2977 #include "confdefs.h
"
2978 #include <inttypes.h>
2980 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2981 egrep "uint32_t
" >/dev/null 2>&1; then
2983 cat >> confdefs.h <<\EOF
2984 #define HAVE_INT32_DEFINED 1
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure
"
2992 #include "confdefs.h
"
2993 #include <sys/types.h>
2995 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2996 egrep "u_int32_t
" >/dev/null 2>&1; then
2998 cat >> confdefs.h <<\EOF
2999 #define HAVE_BSD_INT32_DEFINED 1
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure
"
3007 #include "confdefs.h
"
3008 #include <sys/config.h>
3010 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3011 egrep "u_int32_t
" >/dev/null 2>&1; then
3013 cat >> confdefs.h <<\EOF
3014 #define HAVE_BSD_INT32_DEFINED 1
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure
"
3024 #include "confdefs.h
"
3027 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3028 egrep "mktime
" >/dev/null 2>&1; then
3030 cat >> confdefs.h <<\EOF
3031 #define HAVE_MKTIME 1
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure
"
3039 #include "confdefs.h
"
3042 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3043 egrep "localtime
" >/dev/null 2>&1; then
3045 cat >> confdefs.h <<\EOF
3046 #define HAVE_LOCALTIME 1
3053 test -d java || mkdir java
3054 test -d java/io || mkdir java/io
3055 test -d gnu || mkdir gnu
3058 test -d java/lang || mkdir java/lang
3065 LIBGCJTESTSPEC="-L`pwd`/.libs
-rpath `pwd`/.libs
"
3068 # Check whether --with-system-zlib or --without-system-zlib was given.
3069 if test "${with_system_zlib+set}" = set; then
3070 withval="$with_system_zlib"
3081 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
3082 echo "configure
:3083: checking
for garbage collector to use
" >&5
3083 # Check whether --enable-java-gc or --disable-java-gc was given.
3084 if test "${enable_java_gc+set}" = set; then
3085 enableval="$enable_java_gc"
3101 echo "$ac_t""boehm
" 1>&6
3102 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3103 # We include the path to the boehm-gc build directory.
3104 # See Makefile.am to understand why.
3105 GCLIBS="$GCDEPS -L\$
(here
)/..
/boehm-gc
/$libsubdir"
3106 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3108 JC1GCSPEC='-fuse-boehm-gc'
3109 GCTESTSPEC="-L`pwd`/..
/boehm-gc
/.libs
-rpath `pwd`/..
/boehm-gc
/.libs
"
3110 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3113 cat >> confdefs.h <<\EOF
3114 #define HAVE_BOEHM_GC 1
3119 echo "$ac_t""none
" 1>&6
3124 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
3137 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
3138 echo "configure
:3139: checking
for thread model used by GCC
" >&5
3139 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3140 echo "$ac_t""$THREADS" 1>&6
3150 cat >> confdefs.h <<\EOF
3151 #define LINUX_THREADS 1
3157 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3158 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
3161 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
3175 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3178 THREADLIBS=-lpthread
3179 THREADSPEC=-lpthread
3182 THREADOBJS=posix-threads.lo
3183 THREADH=posix-threads.h
3184 # MIT pthreads doesn't seem to have the mutexattr functions.
3185 # But for now we don't check for it. We just assume you aren't
3186 # using MIT pthreads.
3187 cat >> confdefs.h <<\EOF
3188 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3192 # If we're using the Boehm GC, then we happen to know that it
3193 # defines _REENTRANT, so we don't bother. Eww.
3194 if test "$GC" != boehm; then
3195 cat >> confdefs.h <<\EOF
3196 #define _REENTRANT 1
3200 cat >> confdefs.h <<\EOF
3201 #define _POSIX_PTHREAD_SEMANTICS 1
3207 THREADOBJS=no-threads.lo
3208 THREADH=no-threads.h
3219 # Hash synchronization is only useful with posix threads right now.
3220 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix
"; then
3221 HASH_SYNC_SPEC=-fhash-synchronization
3222 cat >> confdefs.h <<\EOF
3223 #define JV_HASH_SYNCHRONIZATION 1
3232 if test "$GCC" = yes; then
3244 # We're in the tree with gcc, and need to include some of its headers.
3245 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3247 if test -n "${with_cross_host}"; then
3248 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3249 # may not work correctly, because the compiler may not be able to
3252 # We assume newlib. This lets us hard-code the functions we know
3254 cat >> confdefs.h <<\EOF
3255 #define HAVE_MEMMOVE 1
3258 cat >> confdefs.h <<\EOF
3259 #define HAVE_MEMCPY 1
3262 cat >> confdefs.h <<\EOF
3263 #define HAVE_STRERROR 1
3266 cat >> confdefs.h <<\EOF
3267 #define HAVE_GMTIME_R 1
3270 cat >> confdefs.h <<\EOF
3271 #define HAVE_LOCALTIME_R 1
3274 cat >> confdefs.h <<\EOF
3275 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3278 cat >> confdefs.h <<\EOF
3279 #define HAVE_ALLOCA 1
3283 cat >> confdefs.h <<\EOF
3289 ZLIBTESTSPEC="-L`pwd`/..
/zlib
/.libs
-rpath `pwd`/..
/zlib
/.libs
"
3291 # If Canadian cross, then don't pick up tools from the build
3293 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3296 GCJ="${target_alias}-gcj"
3300 for ac_func in strerror ioctl select fstat open fsync sleep
3302 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3303 echo "configure
:3304: checking
for $ac_func" >&5
3304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3305 echo $ac_n "(cached
) $ac_c" 1>&6
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure
"
3309 #include "confdefs.h
"
3310 /* System header to define __stub macros and hopefully few prototypes,
3311 which can conflict with char $ac_func(); below. */
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3320 /* The GNU C library defines this for functions which it implements
3321 to always fail with ENOSYS. Some functions are actually named
3322 something starting with __ and the normal name is an alias. */
3323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3331 if { (eval echo configure:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3333 eval "ac_cv_func_
$ac_func=yes"
3335 echo "configure
: failed program was
:" >&5
3336 cat conftest.$ac_ext >&5
3338 eval "ac_cv_func_
$ac_func=no
"
3343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3344 echo "$ac_t""yes" 1>&6
3345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3346 cat >> confdefs.h <<EOF
3347 #define $ac_tr_func 1
3351 echo "$ac_t""no
" 1>&6
3355 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3357 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3358 echo "configure
:3359: checking
for $ac_func" >&5
3359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3360 echo $ac_n "(cached
) $ac_c" 1>&6
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure
"
3364 #include "confdefs.h
"
3365 /* System header to define __stub macros and hopefully few prototypes,
3366 which can conflict with char $ac_func(); below. */
3368 /* Override any gcc2 internal prototype to avoid an error. */
3369 /* We use char because int might match the return type of a gcc2
3370 builtin and then its argument prototype would still apply. */
3375 /* The GNU C library defines this for functions which it implements
3376 to always fail with ENOSYS. Some functions are actually named
3377 something starting with __ and the normal name is an alias. */
3378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3386 if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3388 eval "ac_cv_func_
$ac_func=yes"
3390 echo "configure
: failed program was
:" >&5
3391 cat conftest.$ac_ext >&5
3393 eval "ac_cv_func_
$ac_func=no
"
3398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3399 echo "$ac_t""yes" 1>&6
3400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3401 cat >> confdefs.h <<EOF
3402 #define $ac_tr_func 1
3406 echo "$ac_t""no
" 1>&6
3410 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3412 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3413 echo "configure
:3414: checking
for $ac_func" >&5
3414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3415 echo $ac_n "(cached
) $ac_c" 1>&6
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure
"
3419 #include "confdefs.h
"
3420 /* System header to define __stub macros and hopefully few prototypes,
3421 which can conflict with char $ac_func(); below. */
3423 /* Override any gcc2 internal prototype to avoid an error. */
3424 /* We use char because int might match the return type of a gcc2
3425 builtin and then its argument prototype would still apply. */
3430 /* The GNU C library defines this for functions which it implements
3431 to always fail with ENOSYS. Some functions are actually named
3432 something starting with __ and the normal name is an alias. */
3433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3441 if { (eval echo configure:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3443 eval "ac_cv_func_
$ac_func=yes"
3445 echo "configure
: failed program was
:" >&5
3446 cat conftest.$ac_ext >&5
3448 eval "ac_cv_func_
$ac_func=no
"
3453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3456 cat >> confdefs.h <<EOF
3457 #define $ac_tr_func 1
3461 echo "$ac_t""no
" 1>&6
3465 for ac_func in nl_langinfo setlocale
3467 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3468 echo "configure
:3469: checking
for $ac_func" >&5
3469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3470 echo $ac_n "(cached
) $ac_c" 1>&6
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure
"
3474 #include "confdefs.h
"
3475 /* System header to define __stub macros and hopefully few prototypes,
3476 which can conflict with char $ac_func(); below. */
3478 /* Override any gcc2 internal prototype to avoid an error. */
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
3485 /* The GNU C library defines this for functions which it implements
3486 to always fail with ENOSYS. Some functions are actually named
3487 something starting with __ and the normal name is an alias. */
3488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3496 if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3498 eval "ac_cv_func_
$ac_func=yes"
3500 echo "configure
: failed program was
:" >&5
3501 cat conftest.$ac_ext >&5
3503 eval "ac_cv_func_
$ac_func=no
"
3508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3509 echo "$ac_t""yes" 1>&6
3510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3511 cat >> confdefs.h <<EOF
3512 #define $ac_tr_func 1
3516 echo "$ac_t""no
" 1>&6
3520 for ac_func in inet_aton inet_addr
3522 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3523 echo "configure
:3524: checking
for $ac_func" >&5
3524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3525 echo $ac_n "(cached
) $ac_c" 1>&6
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure
"
3529 #include "confdefs.h
"
3530 /* System header to define __stub macros and hopefully few prototypes,
3531 which can conflict with char $ac_func(); below. */
3533 /* Override any gcc2 internal prototype to avoid an error. */
3534 /* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3540 /* The GNU C library defines this for functions which it implements
3541 to always fail with ENOSYS. Some functions are actually named
3542 something starting with __ and the normal name is an alias. */
3543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3553 eval "ac_cv_func_
$ac_func=yes"
3555 echo "configure
: failed program was
:" >&5
3556 cat conftest.$ac_ext >&5
3558 eval "ac_cv_func_
$ac_func=no
"
3563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3566 cat >> confdefs.h <<EOF
3567 #define $ac_tr_func 1
3571 echo "$ac_t""no
" 1>&6
3575 for ac_func in inet_pton uname inet_ntoa
3577 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3578 echo "configure
:3579: checking
for $ac_func" >&5
3579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3580 echo $ac_n "(cached
) $ac_c" 1>&6
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure
"
3584 #include "confdefs.h
"
3585 /* System header to define __stub macros and hopefully few prototypes,
3586 which can conflict with char $ac_func(); below. */
3588 /* Override any gcc2 internal prototype to avoid an error. */
3589 /* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3595 /* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3606 if { (eval echo configure:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3608 eval "ac_cv_func_
$ac_func=yes"
3610 echo "configure
: failed program was
:" >&5
3611 cat conftest.$ac_ext >&5
3613 eval "ac_cv_func_
$ac_func=no
"
3618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3621 cat >> confdefs.h <<EOF
3622 #define $ac_tr_func 1
3626 echo "$ac_t""no
" 1>&6
3630 for ac_func in backtrace fork execvp pipe sigaction
3632 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3633 echo "configure
:3634: checking
for $ac_func" >&5
3634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3635 echo $ac_n "(cached
) $ac_c" 1>&6
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure
"
3639 #include "confdefs.h
"
3640 /* System header to define __stub macros and hopefully few prototypes,
3641 which can conflict with char $ac_func(); below. */
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3650 /* The GNU C library defines this for functions which it implements
3651 to always fail with ENOSYS. Some functions are actually named
3652 something starting with __ and the normal name is an alias. */
3653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3663 eval "ac_cv_func_
$ac_func=yes"
3665 echo "configure
: failed program was
:" >&5
3666 cat conftest.$ac_ext >&5
3668 eval "ac_cv_func_
$ac_func=no
"
3673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3674 echo "$ac_t""yes" 1>&6
3675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3676 cat >> confdefs.h <<EOF
3677 #define $ac_tr_func 1
3681 echo "$ac_t""no
" 1>&6
3685 for ac_hdr in execinfo.h unistd.h dlfcn.h
3687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3688 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3689 echo "configure
:3690: checking
for $ac_hdr" >&5
3690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3691 echo $ac_n "(cached
) $ac_c" 1>&6
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure
"
3695 #include "confdefs.h
"
3698 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3699 { (eval echo configure:3700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3701 if test -z "$ac_err"; then
3703 eval "ac_cv_header_
$ac_safe=yes"
3706 echo "configure
: failed program was
:" >&5
3707 cat conftest.$ac_ext >&5
3709 eval "ac_cv_header_
$ac_safe=no
"
3713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3716 cat >> confdefs.h <<EOF
3717 #define $ac_tr_hdr 1
3721 echo "$ac_t""no
" 1>&6
3725 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
3726 echo "configure
:3727: checking
for dladdr
in -ldl" >&5
3727 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3729 echo $ac_n "(cached
) $ac_c" 1>&6
3731 ac_save_LIBS="$LIBS"
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure
"
3735 #include "confdefs.h
"
3736 /* Override any gcc2 internal prototype to avoid an error. */
3737 /* We use char because int might match the return type of a gcc2
3738 builtin and then its argument prototype would still apply. */
3745 if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3747 eval "ac_cv_lib_
$ac_lib_var=yes"
3749 echo "configure
: failed program was
:" >&5
3750 cat conftest.$ac_ext >&5
3752 eval "ac_cv_lib_
$ac_lib_var=no
"
3755 LIBS="$ac_save_LIBS"
3758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3759 echo "$ac_t""yes" 1>&6
3761 cat >> confdefs.h <<\EOF
3762 #define HAVE_DLADDR 1
3766 echo "$ac_t""no
" 1>&6
3769 for ac_file in /proc/self/exe
3772 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3773 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
3774 echo "configure
:3775: checking
for $ac_file" >&5
3775 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3776 echo $ac_n "(cached
) $ac_c" 1>&6
3778 if test "$cross_compiling" = yes; then
3779 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
3781 if test -r $ac_file; then
3782 eval "ac_cv_file_
$ac_safe=yes"
3784 eval "ac_cv_file_
$ac_safe=no
"
3788 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3789 echo "$ac_t""yes" 1>&6
3790 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3791 cat >> confdefs.h <<EOF
3792 #define $ac_tr_file 1
3795 cat >> confdefs.h <<\EOF
3796 #define HAVE_PROC_SELF_EXE 1
3800 echo "$ac_t""no
" 1>&6
3808 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3809 if test "${with_libiconv_prefix+set}" = set; then
3810 withval="$with_libiconv_prefix"
3812 for dir in `echo "$withval" | tr : ' '`; do
3813 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
3814 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib
"; fi
3820 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
3821 echo "configure
:3822: checking
for iconv" >&5
3822 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3823 echo $ac_n "(cached
) $ac_c" 1>&6
3826 am_cv_func_iconv="no
, consider installing GNU libiconv
"
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure
"
3830 #include "confdefs.h
"
3834 iconv_t cd = iconv_open("","");
3835 iconv(cd,NULL,NULL,NULL,NULL);
3839 if { (eval echo configure:3840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3841 am_cv_func_iconv=yes
3843 echo "configure
: failed program was
:" >&5
3844 cat conftest.$ac_ext >&5
3847 if test "$am_cv_func_iconv" != yes; then
3848 am_save_LIBS="$LIBS"
3849 LIBS="$LIBS -liconv"
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure
"
3852 #include "confdefs.h
"
3856 iconv_t cd = iconv_open("","");
3857 iconv(cd,NULL,NULL,NULL,NULL);
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3864 am_cv_func_iconv=yes
3866 echo "configure
: failed program was
:" >&5
3867 cat conftest.$ac_ext >&5
3870 LIBS="$am_save_LIBS"
3875 echo "$ac_t""$am_cv_func_iconv" 1>&6
3876 if test "$am_cv_func_iconv" = yes; then
3877 cat >> confdefs.h <<\EOF
3878 #define HAVE_ICONV 1
3881 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
3882 echo "configure
:3883: checking
for iconv declaration
" >&5
3883 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3884 echo $ac_n "(cached
) $ac_c" 1>&6
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure
"
3889 #include "confdefs.h
"
3897 #if defined(__STDC__) || defined(__cplusplus)
3898 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3907 if { (eval echo configure:3908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909 am_cv_proto_iconv_arg1=""
3911 echo "configure
: failed program was
:" >&5
3912 cat conftest.$ac_ext >&5
3914 am_cv_proto_iconv_arg1="const
"
3917 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
);"
3920 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3921 echo "$ac_t""$
{ac_t
:-
3922 }$am_cv_proto_iconv" 1>&6
3923 cat >> confdefs.h <<EOF
3924 #define ICONV_CONST $am_cv_proto_iconv_arg1
3929 if test "$am_cv_lib_iconv" = yes; then
3935 for ac_func in gethostbyname_r
3937 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3938 echo "configure
:3939: checking
for $ac_func" >&5
3939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3940 echo $ac_n "(cached
) $ac_c" 1>&6
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure
"
3944 #include "confdefs.h
"
3945 /* System header to define __stub macros and hopefully few prototypes,
3946 which can conflict with char $ac_func(); below. */
3948 /* Override any gcc2 internal prototype to avoid an error. */
3949 /* We use char because int might match the return type of a gcc2
3950 builtin and then its argument prototype would still apply. */
3955 /* The GNU C library defines this for functions which it implements
3956 to always fail with ENOSYS. Some functions are actually named
3957 something starting with __ and the normal name is an alias. */
3958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3968 eval "ac_cv_func_
$ac_func=yes"
3970 echo "configure
: failed program was
:" >&5
3971 cat conftest.$ac_ext >&5
3973 eval "ac_cv_func_
$ac_func=no
"
3978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3979 echo "$ac_t""yes" 1>&6
3980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3981 cat >> confdefs.h <<EOF
3982 #define $ac_tr_func 1
3985 cat >> confdefs.h <<\EOF
3986 #define HAVE_GETHOSTBYNAME_R 1
3989 # There are two different kinds of gethostbyname_r.
3990 # We look for the one that returns `int'.
3991 # Hopefully this check is robust enough.
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure
"
3994 #include "confdefs.h
"
3997 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3998 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
4001 cat >> confdefs.h <<\EOF
4002 #define GETHOSTBYNAME_R_RETURNS_INT 1
4010 *" -D_REENTRANT "*) ;;
4012 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
4013 echo "configure
:4014: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
4014 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4015 echo $ac_n "(cached
) $ac_c" 1>&6
4019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4020 ac_cpp='$CXXCPP $CPPFLAGS'
4021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4023 cross_compiling=$ac_cv_prog_cxx_cross
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure
"
4027 #include "confdefs.h
"
4030 gethostbyname_r("", 0, 0);
4033 if { (eval echo configure:4034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4035 libjava_cv_gethostbyname_r_needs_reentrant=no
4037 echo "configure
: failed program was
:" >&5
4038 cat conftest.$ac_ext >&5
4040 CPPFLAGS_SAVE="$CPPFLAGS"
4041 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure
"
4044 #include "confdefs.h
"
4047 gethostbyname_r("", 0, 0);
4050 if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4052 libjava_cv_gethostbyname_r_needs_reentrant=yes
4054 echo "configure
: failed program was
:" >&5
4055 cat conftest.$ac_ext >&5
4057 libjava_cv_gethostbyname_r_needs_reentrant=fail
4060 CPPFLAGS="$CPPFLAGS_SAVE"
4065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4069 cross_compiling=$ac_cv_prog_cc_cross
4074 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4075 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4076 cat >> confdefs.h <<\EOF
4077 #define _REENTRANT 1
4084 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
4085 echo "configure
:4086: checking
for struct hostent_data
" >&5
4086 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4087 echo $ac_n "(cached
) $ac_c" 1>&6
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure
"
4091 #include "confdefs.h
"
4093 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4094 # define _REENTRANT 1
4098 struct hostent_data data;
4101 if { (eval echo configure:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4103 libjava_cv_struct_hostent_data=yes
4105 echo "configure
: failed program was
:" >&5
4106 cat conftest.$ac_ext >&5
4108 libjava_cv_struct_hostent_data=no
4113 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4114 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
4115 cat >> confdefs.h <<\EOF
4116 #define HAVE_STRUCT_HOSTENT_DATA 1
4122 echo "$ac_t""no
" 1>&6
4127 for ac_func in gethostbyaddr_r
4129 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4130 echo "configure
:4131: checking
for $ac_func" >&5
4131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4132 echo $ac_n "(cached
) $ac_c" 1>&6
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure
"
4136 #include "confdefs.h
"
4137 /* System header to define __stub macros and hopefully few prototypes,
4138 which can conflict with char $ac_func(); below. */
4140 /* Override any gcc2 internal prototype to avoid an error. */
4141 /* We use char because int might match the return type of a gcc2
4142 builtin and then its argument prototype would still apply. */
4147 /* The GNU C library defines this for functions which it implements
4148 to always fail with ENOSYS. Some functions are actually named
4149 something starting with __ and the normal name is an alias. */
4150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4158 if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4160 eval "ac_cv_func_
$ac_func=yes"
4162 echo "configure
: failed program was
:" >&5
4163 cat conftest.$ac_ext >&5
4165 eval "ac_cv_func_
$ac_func=no
"
4170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4171 echo "$ac_t""yes" 1>&6
4172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4173 cat >> confdefs.h <<EOF
4174 #define $ac_tr_func 1
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_GETHOSTBYADDR_R 1
4181 # There are two different kinds of gethostbyaddr_r.
4182 # We look for the one that returns `int'.
4183 # Hopefully this check is robust enough.
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure
"
4186 #include "confdefs.h
"
4189 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4190 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
4193 cat >> confdefs.h <<\EOF
4194 #define GETHOSTBYADDR_R_RETURNS_INT 1
4201 echo "$ac_t""no
" 1>&6
4206 for ac_func in gethostname
4208 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4209 echo "configure
:4210: checking
for $ac_func" >&5
4210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4211 echo $ac_n "(cached
) $ac_c" 1>&6
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure
"
4215 #include "confdefs.h
"
4216 /* System header to define __stub macros and hopefully few prototypes,
4217 which can conflict with char $ac_func(); below. */
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4226 /* The GNU C library defines this for functions which it implements
4227 to always fail with ENOSYS. Some functions are actually named
4228 something starting with __ and the normal name is an alias. */
4229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4239 eval "ac_cv_func_
$ac_func=yes"
4241 echo "configure
: failed program was
:" >&5
4242 cat conftest.$ac_ext >&5
4244 eval "ac_cv_func_
$ac_func=no
"
4249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4252 cat >> confdefs.h <<EOF
4253 #define $ac_tr_func 1
4256 cat >> confdefs.h <<\EOF
4257 #define HAVE_GETHOSTNAME 1
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure
"
4262 #include "confdefs.h
"
4265 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4266 egrep "gethostname
" >/dev/null 2>&1; then
4269 cat >> confdefs.h <<\EOF
4270 #define HAVE_GETHOSTNAME_DECL 1
4277 echo "$ac_t""no
" 1>&6
4282 # Look for these functions in the thread library, but only bother
4283 # if using POSIX threads.
4284 if test "$THREADS" = posix; then
4286 LIBS="$LIBS $THREADLIBS"
4287 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4289 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4291 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4292 echo "configure
:4293: checking
for $ac_func" >&5
4293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4294 echo $ac_n "(cached
) $ac_c" 1>&6
4296 cat > conftest.$ac_ext <<EOF
4297 #line 4298 "configure
"
4298 #include "confdefs.h
"
4299 /* System header to define __stub macros and hopefully few prototypes,
4300 which can conflict with char $ac_func(); below. */
4302 /* Override any gcc2 internal prototype to avoid an error. */
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4309 /* The GNU C library defines this for functions which it implements
4310 to always fail with ENOSYS. Some functions are actually named
4311 something starting with __ and the normal name is an alias. */
4312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4322 eval "ac_cv_func_
$ac_func=yes"
4324 echo "configure
: failed program was
:" >&5
4325 cat conftest.$ac_ext >&5
4327 eval "ac_cv_func_
$ac_func=no
"
4332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4333 echo "$ac_t""yes" 1>&6
4334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4335 cat >> confdefs.h <<EOF
4336 #define $ac_tr_func 1
4340 echo "$ac_t""no
" 1>&6
4345 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4346 # Solaris 7 the name librt is preferred.
4347 for ac_func in sched_yield
4349 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4350 echo "configure
:4351: checking
for $ac_func" >&5
4351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4352 echo $ac_n "(cached
) $ac_c" 1>&6
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure
"
4356 #include "confdefs.h
"
4357 /* System header to define __stub macros and hopefully few prototypes,
4358 which can conflict with char $ac_func(); below. */
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4367 /* The GNU C library defines this for functions which it implements
4368 to always fail with ENOSYS. Some functions are actually named
4369 something starting with __ and the normal name is an alias. */
4370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4378 if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4380 eval "ac_cv_func_
$ac_func=yes"
4382 echo "configure
: failed program was
:" >&5
4383 cat conftest.$ac_ext >&5
4385 eval "ac_cv_func_
$ac_func=no
"
4390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4393 cat >> confdefs.h <<EOF
4394 #define $ac_tr_func 1
4398 echo "$ac_t""no
" 1>&6
4399 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
4400 echo "configure
:4401: checking
for sched_yield
in -lrt" >&5
4401 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4403 echo $ac_n "(cached
) $ac_c" 1>&6
4405 ac_save_LIBS="$LIBS"
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure
"
4409 #include "confdefs.h
"
4410 /* Override any gcc2 internal prototype to avoid an error. */
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4419 if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4421 eval "ac_cv_lib_
$ac_lib_var=yes"
4423 echo "configure
: failed program was
:" >&5
4424 cat conftest.$ac_ext >&5
4426 eval "ac_cv_lib_
$ac_lib_var=no
"
4429 LIBS="$ac_save_LIBS"
4432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4435 cat >> confdefs.h <<\EOF
4436 #define HAVE_SCHED_YIELD 1
4439 THREADLIBS="$THREADLIBS -lrt"
4440 THREADSPEC="$THREADSPEC -lrt"
4442 echo "$ac_t""no
" 1>&6
4444 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
4445 echo "configure
:4446: checking
for sched_yield
in -lposix4" >&5
4446 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4448 echo $ac_n "(cached
) $ac_c" 1>&6
4450 ac_save_LIBS="$LIBS"
4451 LIBS="-lposix4 $LIBS"
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure
"
4454 #include "confdefs.h
"
4455 /* Override any gcc2 internal prototype to avoid an error. */
4456 /* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4466 eval "ac_cv_lib_
$ac_lib_var=yes"
4468 echo "configure
: failed program was
:" >&5
4469 cat conftest.$ac_ext >&5
4471 eval "ac_cv_lib_
$ac_lib_var=no
"
4474 LIBS="$ac_save_LIBS"
4477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4480 cat >> confdefs.h <<\EOF
4481 #define HAVE_SCHED_YIELD 1
4484 THREADLIBS="$THREADLIBS -lposix4"
4485 THREADSPEC="$THREADSPEC -lposix4"
4487 echo "$ac_t""no
" 1>&6
4497 # We can save a little space at runtime if the mutex has m_count
4498 # or __m_count. This is a nice hack for Linux.
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure
"
4501 #include "confdefs.h
"
4502 #include <pthread.h>
4505 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4509 if { (eval echo configure:4510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4511 cat >> confdefs.h <<\EOF
4512 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4516 echo "configure
: failed program was
:" >&5
4517 cat conftest.$ac_ext >&5
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure
"
4522 #include "confdefs.h
"
4523 #include <pthread.h>
4526 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4530 if { (eval echo configure:4531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4532 cat >> confdefs.h <<\EOF
4533 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4537 echo "configure
: failed program was
:" >&5
4538 cat conftest.$ac_ext >&5
4545 # We require a way to get the time.
4547 for ac_func in gettimeofday time ftime
4549 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4550 echo "configure
:4551: checking
for $ac_func" >&5
4551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4552 echo $ac_n "(cached
) $ac_c" 1>&6
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure
"
4556 #include "confdefs.h
"
4557 /* System header to define __stub macros and hopefully few prototypes,
4558 which can conflict with char $ac_func(); below. */
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 /* We use char because int might match the return type of a gcc2
4562 builtin and then its argument prototype would still apply. */
4567 /* The GNU C library defines this for functions which it implements
4568 to always fail with ENOSYS. Some functions are actually named
4569 something starting with __ and the normal name is an alias. */
4570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4580 eval "ac_cv_func_
$ac_func=yes"
4582 echo "configure
: failed program was
:" >&5
4583 cat conftest.$ac_ext >&5
4585 eval "ac_cv_func_
$ac_func=no
"
4590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4591 echo "$ac_t""yes" 1>&6
4592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4593 cat >> confdefs.h <<EOF
4594 #define $ac_tr_func 1
4598 echo "$ac_t""no
" 1>&6
4602 if test "$time_found" = no; then
4603 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
4606 for ac_func in memmove
4608 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4609 echo "configure
:4610: checking
for $ac_func" >&5
4610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4611 echo $ac_n "(cached
) $ac_c" 1>&6
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure
"
4615 #include "confdefs.h
"
4616 /* System header to define __stub macros and hopefully few prototypes,
4617 which can conflict with char $ac_func(); below. */
4619 /* Override any gcc2 internal prototype to avoid an error. */
4620 /* We use char because int might match the return type of a gcc2
4621 builtin and then its argument prototype would still apply. */
4626 /* The GNU C library defines this for functions which it implements
4627 to always fail with ENOSYS. Some functions are actually named
4628 something starting with __ and the normal name is an alias. */
4629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4639 eval "ac_cv_func_
$ac_func=yes"
4641 echo "configure
: failed program was
:" >&5
4642 cat conftest.$ac_ext >&5
4644 eval "ac_cv_func_
$ac_func=no
"
4649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4652 cat >> confdefs.h <<EOF
4653 #define $ac_tr_func 1
4657 echo "$ac_t""no
" 1>&6
4662 # We require memcpy.
4664 for ac_func in memcpy
4666 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4667 echo "configure
:4668: checking
for $ac_func" >&5
4668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4669 echo $ac_n "(cached
) $ac_c" 1>&6
4671 cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure
"
4673 #include "confdefs.h
"
4674 /* System header to define __stub macros and hopefully few prototypes,
4675 which can conflict with char $ac_func(); below. */
4677 /* Override any gcc2 internal prototype to avoid an error. */
4678 /* We use char because int might match the return type of a gcc2
4679 builtin and then its argument prototype would still apply. */
4684 /* The GNU C library defines this for functions which it implements
4685 to always fail with ENOSYS. Some functions are actually named
4686 something starting with __ and the normal name is an alias. */
4687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4695 if { (eval echo configure:4696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4697 eval "ac_cv_func_
$ac_func=yes"
4699 echo "configure
: failed program was
:" >&5
4700 cat conftest.$ac_ext >&5
4702 eval "ac_cv_func_
$ac_func=no
"
4707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4708 echo "$ac_t""yes" 1>&6
4709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4710 cat >> confdefs.h <<EOF
4711 #define $ac_tr_func 1
4715 echo "$ac_t""no
" 1>&6
4719 if test "$memcpy_found" = no; then
4720 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
4723 # Some library-finding code we stole from Tcl.
4724 #--------------------------------------------------------------------
4725 # Check for the existence of the -lsocket and -lnsl libraries.
4726 # The order here is important, so that they end up in the right
4727 # order in the command line generated by make. Here are some
4728 # special considerations:
4729 # 1. Use "connect
" and "accept
" to check for -lsocket, and
4730 # "gethostbyname
" to check for -lnsl.
4731 # 2. Use each function name only once: can't redo a check because
4732 # autoconf caches the results of the last check and won't redo it.
4733 # 3. Use -lnsl and -lsocket only if they supply procedures that
4734 # aren't already present in the normal libraries. This is because
4735 # IRIX 5.2 has libraries, but they aren't needed and they're
4736 # bogus: they goof up name resolution if used.
4737 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4738 # To get around this problem, check for both libraries together
4739 # if -lsocket doesn't work by itself.
4740 #--------------------------------------------------------------------
4742 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
4743 echo "configure
:4744: checking
for socket libraries
" >&5
4744 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4745 echo $ac_n "(cached
) $ac_c" 1>&6
4749 unset ac_cv_func_connect
4750 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
4751 echo "configure
:4752: checking
for connect
" >&5
4752 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4753 echo $ac_n "(cached
) $ac_c" 1>&6
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure
"
4757 #include "confdefs.h
"
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char connect(); below. */
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4768 /* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771 #if defined (__stub_connect) || defined (__stub___connect)
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4781 eval "ac_cv_func_connect
=yes"
4783 echo "configure
: failed program was
:" >&5
4784 cat conftest.$ac_ext >&5
4786 eval "ac_cv_func_connect
=no
"
4791 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4795 echo "$ac_t""no
" 1>&6
4799 if test "$gcj_checkSocket" = 1; then
4800 unset ac_cv_func_connect
4801 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
4802 echo "configure
:4803: checking
for main
in -lsocket" >&5
4803 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4805 echo $ac_n "(cached
) $ac_c" 1>&6
4807 ac_save_LIBS="$LIBS"
4808 LIBS="-lsocket $LIBS"
4809 cat > conftest.$ac_ext <<EOF
4810 #line 4811 "configure
"
4811 #include "confdefs.h
"
4817 if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4819 eval "ac_cv_lib_
$ac_lib_var=yes"
4821 echo "configure
: failed program was
:" >&5
4822 cat conftest.$ac_ext >&5
4824 eval "ac_cv_lib_
$ac_lib_var=no
"
4827 LIBS="$ac_save_LIBS"
4830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4831 echo "$ac_t""yes" 1>&6
4832 gcj_cv_lib_sockets="-lsocket"
4834 echo "$ac_t""no
" 1>&6
4839 if test "$gcj_checkBoth" = 1; then
4841 LIBS="$LIBS -lsocket -lnsl"
4842 unset ac_cv_func_accept
4843 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
4844 echo "configure
:4845: checking
for accept
" >&5
4845 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4846 echo $ac_n "(cached
) $ac_c" 1>&6
4848 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure
"
4850 #include "confdefs.h
"
4851 /* System header to define __stub macros and hopefully few prototypes,
4852 which can conflict with char accept(); below. */
4854 /* Override any gcc2 internal prototype to avoid an error. */
4855 /* We use char because int might match the return type of a gcc2
4856 builtin and then its argument prototype would still apply. */
4861 /* The GNU C library defines this for functions which it implements
4862 to always fail with ENOSYS. Some functions are actually named
4863 something starting with __ and the normal name is an alias. */
4864 #if defined (__stub_accept) || defined (__stub___accept)
4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4874 eval "ac_cv_func_accept
=yes"
4876 echo "configure
: failed program was
:" >&5
4877 cat conftest.$ac_ext >&5
4879 eval "ac_cv_func_accept
=no
"
4884 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4887 gcj_cv_lib_sockets="-lsocket -lnsl"
4889 echo "$ac_t""no
" 1>&6
4892 unset ac_cv_func_accept
4895 unset ac_cv_func_gethostbyname
4897 LIBS="$LIBS $gcj_cv_lib_sockets"
4898 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
4899 echo "configure
:4900: checking
for gethostbyname
" >&5
4900 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4901 echo $ac_n "(cached
) $ac_c" 1>&6
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure
"
4905 #include "confdefs.h
"
4906 /* System header to define __stub macros and hopefully few prototypes,
4907 which can conflict with char gethostbyname(); below. */
4909 /* Override any gcc2 internal prototype to avoid an error. */
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4912 char gethostbyname();
4916 /* The GNU C library defines this for functions which it implements
4917 to always fail with ENOSYS. Some functions are actually named
4918 something starting with __ and the normal name is an alias. */
4919 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4929 eval "ac_cv_func_gethostbyname
=yes"
4931 echo "configure
: failed program was
:" >&5
4932 cat conftest.$ac_ext >&5
4934 eval "ac_cv_func_gethostbyname
=no
"
4939 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4943 echo "$ac_t""no
" 1>&6
4944 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
4945 echo "configure
:4946: checking
for main
in -lnsl" >&5
4946 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4948 echo $ac_n "(cached
) $ac_c" 1>&6
4950 ac_save_LIBS="$LIBS"
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure
"
4954 #include "confdefs.h
"
4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4962 eval "ac_cv_lib_
$ac_lib_var=yes"
4964 echo "configure
: failed program was
:" >&5
4965 cat conftest.$ac_ext >&5
4967 eval "ac_cv_lib_
$ac_lib_var=no
"
4970 LIBS="$ac_save_LIBS"
4973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4977 echo "$ac_t""no
" 1>&6
4982 unset ac_cv_func_gethostbyname
4987 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4988 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4990 if test "$with_system_zlib" = yes; then
4991 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
4992 echo "configure
:4993: checking
for deflate
in -lz" >&5
4993 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4995 echo $ac_n "(cached
) $ac_c" 1>&6
4997 ac_save_LIBS="$LIBS"
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure
"
5001 #include "confdefs.h
"
5002 /* Override any gcc2 internal prototype to avoid an error. */
5003 /* We use char because int might match the return type of a gcc2
5004 builtin and then its argument prototype would still apply. */
5011 if { (eval echo configure:5012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5013 eval "ac_cv_lib_
$ac_lib_var=yes"
5015 echo "configure
: failed program was
:" >&5
5016 cat conftest.$ac_ext >&5
5018 eval "ac_cv_lib_
$ac_lib_var=no
"
5021 LIBS="$ac_save_LIBS"
5024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5025 echo "$ac_t""yes" 1>&6
5028 echo "$ac_t""no
" 1>&6
5034 ZLIBTESTSPEC="-L`pwd`/..
/zlib
/.libs
-rpath `pwd`/..
/zlib
/.libs
"
5037 # On Solaris, and maybe other architectures, the Boehm collector
5039 if test "$GC" = boehm; then
5040 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
5041 echo "configure
:5042: checking
for main
in -ldl" >&5
5042 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5044 echo $ac_n "(cached
) $ac_c" 1>&6
5046 ac_save_LIBS="$LIBS"
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure
"
5050 #include "confdefs.h
"
5056 if { (eval echo configure:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5058 eval "ac_cv_lib_
$ac_lib_var=yes"
5060 echo "configure
: failed program was
:" >&5
5061 cat conftest.$ac_ext >&5
5063 eval "ac_cv_lib_
$ac_lib_var=no
"
5066 LIBS="$ac_save_LIBS"
5069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5070 echo "$ac_t""yes" 1>&6
5071 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5073 echo "$ac_t""no
" 1>&6
5078 if test -z "${with_multisubdir}"; then
5082 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5085 if test -x "${builddotdot}/..
/..
/gcc
/gcj
"; then
5086 dir="`cd ${builddotdot}/../../gcc && pwd`"
5087 GCJ="$dir/gcj
-B`pwd`/ -B$dir/"
5095 # Create it, so that compile/link tests don't fail
5096 test -f libgcj.spec || touch libgcj.spec
5098 # We must search the source tree for java.lang, since we still don't
5099 # have libgcj.jar nor java/lang/*.class
5100 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5101 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5103 # Since some classes depend on this one, we need its source available
5104 # before we can do any GCJ compilation test :-(
5105 if test ! -f gnu/classpath/Configuration.java; then
5106 test -d gnu || mkdir gnu
5107 test -d gnu/classpath || mkdir gnu/classpath
5108 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5109 < $srcdir/gnu/classpath/Configuration.java.in \
5110 > gnu/classpath/Configuration.java
5111 # We do not want to redirect the output of the grep below to /dev/null,
5112 # but we add /dev/null to the input list so that grep will print the
5113 # filename of Configuration.java in case it finds any matches.
5114 if grep @ gnu/classpath/Configuration.java /dev/null; then
5115 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
5119 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5121 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5122 echo "configure
:5123: checking
for $ac_word" >&5
5123 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5124 echo $ac_n "(cached
) $ac_c" 1>&6
5126 if test -n "$GCJ"; then
5127 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5131 for ac_dir in $ac_dummy; do
5132 test -z "$ac_dir" && ac_dir=.
5133 if test -f $ac_dir/$ac_word; then
5134 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
5141 GCJ="$ac_cv_prog_GCJ"
5142 if test -n "$GCJ"; then
5143 echo "$ac_t""$GCJ" 1>&6
5145 echo "$ac_t""no
" 1>&6
5149 if test -z "$ac_cv_prog_GCJ"; then
5150 if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "gcj
", so it can be a program name with args.
5152 set dummy gcj; ac_word=$2
5153 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5154 echo "configure
:5155: checking
for $ac_word" >&5
5155 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5156 echo $ac_n "(cached
) $ac_c" 1>&6
5158 if test -n "$GCJ"; then
5159 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5163 for ac_dir in $ac_dummy; do
5164 test -z "$ac_dir" && ac_dir=.
5165 if test -f $ac_dir/$ac_word; then
5166 ac_cv_prog_GCJ="gcj
"
5171 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
5174 GCJ="$ac_cv_prog_GCJ"
5175 if test -n "$GCJ"; then
5176 echo "$ac_t""$GCJ" 1>&6
5178 echo "$ac_t""no
" 1>&6
5186 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5190 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
5192 lt_save_CFLAGS="$CFLAGS"
5193 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5194 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5195 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5196 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5197 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5198 deplibs_check_method="$deplibs_check_method" \
5199 file_magic_cmd="$file_magic_cmd" \
5200 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5201 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5202 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
5204 CFLAGS="$lt_save_CFLAGS"
5206 # Redirect the config.log output again, so that the ltconfig log is not
5207 # clobbered by the next message.
5208 exec 5>>./config.log
5213 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5215 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
5216 echo "configure
:5217: checking size of void
*" >&5
5217 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5218 echo $ac_n "(cached
) $ac_c" 1>&6
5220 if test "$cross_compiling" = yes; then
5221 { echo "configure
: error
: can not run
test program
while cross compiling
" 1>&2; exit 1; }
5223 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure
"
5225 #include "confdefs.h
"
5229 FILE *f=fopen("conftestval
", "w
");
5231 fprintf(f, "%d
\n", sizeof(void *));
5235 if { (eval echo configure:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5237 ac_cv_sizeof_void_p=`cat conftestval`
5239 echo "configure
: failed program was
:" >&5
5240 cat conftest.$ac_ext >&5
5242 ac_cv_sizeof_void_p=0
5248 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5249 cat >> confdefs.h <<EOF
5250 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5258 if test "x
$ZLIBSPEC" = "x-lzgcj
"; then
5259 # We include the path to the zlib build directory.
5260 # See Makefile.am to understand why.
5261 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5262 ZLIBS="$ZDEPS -L\$
(here
)/..
/zlib
/$libsubdir"
5263 ZINCS='-I$(top_srcdir)/../zlib'
5275 if test "$CANADIAN" = yes; then
5284 if test "$NULL_TARGET" = yes; then
5286 NULL_TARGET_FALSE='#'
5288 NULL_TARGET_TRUE='#'
5293 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5302 if test -z "$with_cross_host"; then
5304 USE_LIBDIR_FALSE='#'
5311 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5312 NEEDS_DATA_START_TRUE=
5313 NEEDS_DATA_START_FALSE='#'
5315 NEEDS_DATA_START_TRUE='#'
5316 NEEDS_DATA_START_FALSE=
5320 # Determine gcj version number.
5322 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5324 cat >> confdefs.h <<EOF
5325 #define GCJVERSION "$gcjvers"
5332 echo $ac_n "checking
for g
++ -ffloat-store bug
""...
$ac_c" 1>&6
5333 echo "configure
:5334: checking
for g
++ -ffloat-store bug
" >&5
5334 save_CFLAGS="$CFLAGS"
5335 CFLAGS="-x c
++ -O2 -ffloat-store"
5336 cat > conftest.$ac_ext <<EOF
5337 #line 5338 "configure
"
5338 #include "confdefs.h
"
5344 if { (eval echo configure:5345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5346 echo "$ac_t""no
" 1>&6
5348 echo "configure
: failed program was
:" >&5
5349 cat conftest.$ac_ext >&5
5351 cat >> confdefs.h <<\EOF
5352 #define __NO_MATH_INLINES 1
5355 echo "$ac_t""yes" 1>&6
5358 CFLAGS="$save_CFLAGS"
5360 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h langinfo.h locale.h
5362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5363 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5364 echo "configure
:5365: checking
for $ac_hdr" >&5
5365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5366 echo $ac_n "(cached
) $ac_c" 1>&6
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure
"
5370 #include "confdefs.h
"
5373 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5374 { (eval echo configure:5375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5376 if test -z "$ac_err"; then
5378 eval "ac_cv_header_
$ac_safe=yes"
5381 echo "configure
: failed program was
:" >&5
5382 cat conftest.$ac_ext >&5
5384 eval "ac_cv_header_
$ac_safe=no
"
5388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5389 echo "$ac_t""yes" 1>&6
5390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5391 cat >> confdefs.h <<EOF
5392 #define $ac_tr_hdr 1
5396 echo "$ac_t""no
" 1>&6
5400 for ac_hdr in dirent.h
5402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5403 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5404 echo "configure
:5405: checking
for $ac_hdr" >&5
5405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5406 echo $ac_n "(cached
) $ac_c" 1>&6
5408 cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure
"
5410 #include "confdefs.h
"
5413 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5414 { (eval echo configure:5415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5416 if test -z "$ac_err"; then
5418 eval "ac_cv_header_
$ac_safe=yes"
5421 echo "configure
: failed program was
:" >&5
5422 cat conftest.$ac_ext >&5
5424 eval "ac_cv_header_
$ac_safe=no
"
5428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5429 echo "$ac_t""yes" 1>&6
5430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5431 cat >> confdefs.h <<EOF
5432 #define $ac_tr_hdr 1
5436 echo "$ac_t""no
" 1>&6
5441 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
5442 echo "configure
:5443: checking
for ANSI C header files
" >&5
5443 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5444 echo $ac_n "(cached
) $ac_c" 1>&6
5446 cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure
"
5448 #include "confdefs.h
"
5454 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5455 { (eval echo configure:5456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5457 if test -z "$ac_err"; then
5459 ac_cv_header_stdc=yes
5462 echo "configure
: failed program was
:" >&5
5463 cat conftest.$ac_ext >&5
5465 ac_cv_header_stdc=no
5469 if test $ac_cv_header_stdc = yes; then
5470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5471 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure
"
5473 #include "confdefs.h
"
5476 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5477 egrep "memchr
" >/dev/null 2>&1; then
5481 ac_cv_header_stdc=no
5487 if test $ac_cv_header_stdc = yes; then
5488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure
"
5491 #include "confdefs.h
"
5494 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5495 egrep "free
" >/dev/null 2>&1; then
5499 ac_cv_header_stdc=no
5505 if test $ac_cv_header_stdc = yes; then
5506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5507 if test "$cross_compiling" = yes; then
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure
"
5512 #include "confdefs.h
"
5514 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5515 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5517 int main () { int i; for (i = 0; i < 256; i++)
5518 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5522 if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5526 echo "configure
: failed program was
:" >&5
5527 cat conftest.$ac_ext >&5
5529 ac_cv_header_stdc=no
5537 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5538 if test $ac_cv_header_stdc = yes; then
5539 cat >> confdefs.h <<\EOF
5540 #define STDC_HEADERS 1
5545 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
5546 echo "configure
:5547: checking
for ssize_t
" >&5
5547 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5548 echo $ac_n "(cached
) $ac_c" 1>&6
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure
"
5552 #include "confdefs.h
"
5553 #include <sys/types.h>
5559 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5560 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
5562 ac_cv_type_ssize_t=yes
5565 ac_cv_type_ssize_t=no
5570 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5571 if test $ac_cv_type_ssize_t = no; then
5572 cat >> confdefs.h <<\EOF
5579 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
5580 echo "configure
:5581: checking
for in_addr_t
" >&5
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure
"
5583 #include "confdefs.h
"
5584 #include <sys/types.h>
5589 #if HAVE_NETINET_IN_H
5590 #include <netinet/in.h>
5596 if { (eval echo configure:5597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5598 cat >> confdefs.h <<\EOF
5599 #define HAVE_IN_ADDR_T 1
5602 echo "$ac_t""yes" 1>&6
5604 echo "configure
: failed program was
:" >&5
5605 cat conftest.$ac_ext >&5
5607 echo "$ac_t""no
" 1>&6
5611 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
5612 echo "configure
:5613: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
5613 cat > conftest.$ac_ext <<EOF
5614 #line 5615 "configure
"
5615 #include "confdefs.h
"
5616 #include <netinet/in.h>
5618 struct ip_mreq mreq;
5621 if { (eval echo configure:5622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5623 cat >> confdefs.h <<\EOF
5624 #define HAVE_STRUCT_IP_MREQ 1
5627 echo "$ac_t""yes" 1>&6
5629 echo "configure
: failed program was
:" >&5
5630 cat conftest.$ac_ext >&5
5632 echo "$ac_t""no
" 1>&6
5636 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
5637 echo "configure
:5638: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
5638 cat > conftest.$ac_ext <<EOF
5639 #line 5640 "configure
"
5640 #include "confdefs.h
"
5641 #include <netinet/in.h>
5643 struct ipv6_mreq mreq6;
5646 if { (eval echo configure:5647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5648 cat >> confdefs.h <<\EOF
5649 #define HAVE_STRUCT_IPV6_MREQ 1
5652 echo "$ac_t""yes" 1>&6
5654 echo "configure
: failed program was
:" >&5
5655 cat conftest.$ac_ext >&5
5657 echo "$ac_t""no
" 1>&6
5661 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
5662 echo "configure
:5663: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure
"
5665 #include "confdefs.h
"
5666 #include <netinet/in.h>
5668 struct sockaddr_in6 addr6;
5671 if { (eval echo configure:5672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5673 cat >> confdefs.h <<\EOF
5674 #define HAVE_INET6 1
5677 echo "$ac_t""yes" 1>&6
5679 echo "configure
: failed program was
:" >&5
5680 cat conftest.$ac_ext >&5
5682 echo "$ac_t""no
" 1>&6
5686 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
5687 echo "configure
:5688: checking
for socklen_t
in sys
/socket.h
" >&5
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure
"
5690 #include "confdefs.h
"
5691 #define _POSIX_PII_SOCKET
5692 #include <sys/types.h>
5693 #include <sys/socket.h>
5698 if { (eval echo configure:5699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5700 cat >> confdefs.h <<\EOF
5701 #define HAVE_SOCKLEN_T 1
5704 echo "$ac_t""yes" 1>&6
5706 echo "configure
: failed program was
:" >&5
5707 cat conftest.$ac_ext >&5
5709 echo "$ac_t""no
" 1>&6
5713 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
5714 echo "configure
:5715: checking
for tm_gmtoff
in struct tm
" >&5
5715 cat > conftest.$ac_ext <<EOF
5716 #line 5717 "configure
"
5717 #include "confdefs.h
"
5720 struct tm tim; tim.tm_gmtoff = 0;
5723 if { (eval echo configure:5724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5725 cat >> confdefs.h <<\EOF
5726 #define STRUCT_TM_HAS_GMTOFF 1
5729 echo "$ac_t""yes" 1>&6
5731 echo "configure
: failed program was
:" >&5
5732 cat conftest.$ac_ext >&5
5734 echo "$ac_t""no
" 1>&6
5735 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
5736 echo "configure
:5737: checking
for global timezone variable
" >&5
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure
"
5739 #include "confdefs.h
"
5745 if { (eval echo configure:5746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5747 cat >> confdefs.h <<\EOF
5748 #define HAVE_TIMEZONE 1
5751 echo "$ac_t""yes" 1>&6
5753 echo "configure
: failed program was
:" >&5
5754 cat conftest.$ac_ext >&5
5756 echo "$ac_t""no
" 1>&6
5762 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5763 # for constant arguments. Useless!
5764 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
5765 echo "configure
:5766: checking
for working alloca.h
" >&5
5766 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5767 echo $ac_n "(cached
) $ac_c" 1>&6
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure
"
5771 #include "confdefs.h
"
5774 char *p = alloca(2 * sizeof(int));
5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5779 ac_cv_header_alloca_h=yes
5781 echo "configure
: failed program was
:" >&5
5782 cat conftest.$ac_ext >&5
5784 ac_cv_header_alloca_h=no
5789 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5790 if test $ac_cv_header_alloca_h = yes; then
5791 cat >> confdefs.h <<\EOF
5792 #define HAVE_ALLOCA_H 1
5797 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
5798 echo "configure
:5799: checking
for alloca
" >&5
5799 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5800 echo $ac_n "(cached
) $ac_c" 1>&6
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure
"
5804 #include "confdefs.h
"
5807 # define alloca __builtin_alloca
5810 # include <malloc.h>
5811 # define alloca _alloca
5814 # include <alloca.h>
5819 # ifndef alloca /* predefined by HP cc +Olibcalls */
5828 char *p = (char *) alloca(1);
5831 if { (eval echo configure:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5833 ac_cv_func_alloca_works=yes
5835 echo "configure
: failed program was
:" >&5
5836 cat conftest.$ac_ext >&5
5838 ac_cv_func_alloca_works=no
5843 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5844 if test $ac_cv_func_alloca_works = yes; then
5845 cat >> confdefs.h <<\EOF
5846 #define HAVE_ALLOCA 1
5851 if test $ac_cv_func_alloca_works = no; then
5852 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5853 # that cause trouble. Some versions do not even contain alloca or
5854 # contain a buggy version. If you still want to use their alloca,
5855 # use ar to extract alloca.o from them instead of compiling alloca.c.
5856 ALLOCA=alloca.${ac_objext}
5857 cat >> confdefs.h <<\EOF
5862 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
5863 echo "configure
:5864: checking whether alloca needs Cray hooks
" >&5
5864 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5865 echo $ac_n "(cached
) $ac_c" 1>&6
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure
"
5869 #include "confdefs.h
"
5870 #if defined(CRAY) && ! defined(CRAY2)
5877 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5878 egrep "webecray
" >/dev/null 2>&1; then
5889 echo "$ac_t""$ac_cv_os_cray" 1>&6
5890 if test $ac_cv_os_cray = yes; then
5891 for ac_func in _getb67 GETB67 getb67; do
5892 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5893 echo "configure
:5894: checking
for $ac_func" >&5
5894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5895 echo $ac_n "(cached
) $ac_c" 1>&6
5897 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure
"
5899 #include "confdefs.h
"
5900 /* System header to define __stub macros and hopefully few prototypes,
5901 which can conflict with char $ac_func(); below. */
5903 /* Override any gcc2 internal prototype to avoid an error. */
5904 /* We use char because int might match the return type of a gcc2
5905 builtin and then its argument prototype would still apply. */
5910 /* The GNU C library defines this for functions which it implements
5911 to always fail with ENOSYS. Some functions are actually named
5912 something starting with __ and the normal name is an alias. */
5913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5921 if { (eval echo configure:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5923 eval "ac_cv_func_
$ac_func=yes"
5925 echo "configure
: failed program was
:" >&5
5926 cat conftest.$ac_ext >&5
5928 eval "ac_cv_func_
$ac_func=no
"
5933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5934 echo "$ac_t""yes" 1>&6
5935 cat >> confdefs.h <<EOF
5936 #define CRAY_STACKSEG_END $ac_func
5941 echo "$ac_t""no
" 1>&6
5947 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
5948 echo "configure
:5949: checking stack direction
for C alloca
" >&5
5949 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5950 echo $ac_n "(cached
) $ac_c" 1>&6
5952 if test "$cross_compiling" = yes; then
5953 ac_cv_c_stack_direction=0
5955 cat > conftest.$ac_ext <<EOF
5956 #line 5957 "configure
"
5957 #include "confdefs.h
"
5958 find_stack_direction ()
5960 static char *addr = 0;
5965 return find_stack_direction ();
5968 return (&dummy > addr) ? 1 : -1;
5972 exit (find_stack_direction() < 0);
5975 if { (eval echo configure:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5977 ac_cv_c_stack_direction=1
5979 echo "configure
: failed program was
:" >&5
5980 cat conftest.$ac_ext >&5
5982 ac_cv_c_stack_direction=-1
5989 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5990 cat >> confdefs.h <<EOF
5991 #define STACK_DIRECTION $ac_cv_c_stack_direction
5999 # Extract the first word of "$ac_prog", so it can be a program name with args.
6000 set dummy $ac_prog; ac_word=$2
6001 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6002 echo "configure
:6003: checking
for $ac_word" >&5
6003 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6004 echo $ac_n "(cached
) $ac_c" 1>&6
6006 if test -n "$PERL"; then
6007 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6011 for ac_dir in $ac_dummy; do
6012 test -z "$ac_dir" && ac_dir=.
6013 if test -f $ac_dir/$ac_word; then
6014 ac_cv_prog_PERL="$ac_prog"
6021 PERL="$ac_cv_prog_PERL"
6022 if test -n "$PERL"; then
6023 echo "$ac_t""$PERL" 1>&6
6025 echo "$ac_t""no
" 1>&6
6028 test -n "$PERL" && break
6030 test -n "$PERL" || PERL="false
"
6037 SIGNAL_HANDLER=include/i386-signal.h
6040 SIGNAL_HANDLER=include/sparc-signal.h
6043 # SYSDEP_SOURCES=sysdep/ia64.c
6044 # test -d sysdep || mkdir sysdep
6047 SIGNAL_HANDLER=include/dwarf2-signal.h
6050 SIGNAL_HANDLER=include/dwarf2-signal.h
6053 SIGNAL_HANDLER=include/default-signal.h
6057 # If we're using sjlj exceptions, forget what we just learned.
6058 if test "$enable_sjlj_exceptions" = yes; then
6059 SIGNAL_HANDLER=include/default-signal.h
6066 if test "${multilib}" = "yes"; then
6067 multilib_arg="--enable-multilib"
6072 # If we find X, set shell vars x_includes and x_libraries to the
6073 # paths, otherwise set no_x=yes.
6074 # Uses ac_ vars as temps to allow command line to override cache and checks.
6075 # --without-x overrides everything else, but does not touch the cache.
6076 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
6077 echo "configure
:6078: checking
for X
" >&5
6079 # Check whether --with-x or --without-x was given.
6080 if test "${with_x+set}" = set; then
6085 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6086 if test "x
$with_x" = xno; then
6087 # The user explicitly disabled X.
6090 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
6091 # Both variables are already set.
6094 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6095 echo $ac_n "(cached
) $ac_c" 1>&6
6097 # One or both of the vars are not set, and there is no cached value.
6098 ac_x_includes=NO ac_x_libraries=NO
6100 if mkdir conftestdir; then
6102 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6103 cat > Imakefile <<'EOF'
6105 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6107 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6108 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
6109 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6110 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6111 for ac_extension in a so sl; do
6112 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6113 test -f $ac_im_libdir/libX11.$ac_extension; then
6114 ac_im_usrlibdir=$ac_im_libdir; break
6117 # Screen out bogus values from the imake configuration. They are
6118 # bogus both because they are the default anyway, and because
6119 # using them would break gcc on systems where it needs fixed includes.
6120 case "$ac_im_incroot" in
6122 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
6124 case "$ac_im_usrlibdir" in
6126 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6133 if test "$ac_x_includes" = NO; then
6134 # Guess where to find include files, by looking for this one X11 .h file.
6135 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6137 # First, try using that file with no special directory specified.
6138 cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure
"
6140 #include "confdefs.h
"
6141 #include <$x_direct_test_include>
6143 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6144 { (eval echo configure:6145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6146 if test -z "$ac_err"; then
6148 # We can compile using X headers with no special include directory.
6152 echo "configure
: failed program was
:" >&5
6153 cat conftest.$ac_ext >&5
6155 # Look for the header file in a standard set of common directories.
6156 # Check X11 before X11Rn because it is often a symlink to the current release.
6159 /usr/X11R6/include \
6160 /usr/X11R5/include \
6161 /usr/X11R4/include \
6164 /usr/include/X11R6 \
6165 /usr/include/X11R5 \
6166 /usr/include/X11R4 \
6168 /usr/local/X11/include \
6169 /usr/local/X11R6/include \
6170 /usr/local/X11R5/include \
6171 /usr/local/X11R4/include \
6173 /usr/local/include/X11 \
6174 /usr/local/include/X11R6 \
6175 /usr/local/include/X11R5 \
6176 /usr/local/include/X11R4 \
6180 /usr/XFree86/include/X11 \
6183 /usr/local/include \
6184 /usr/unsupported/include \
6185 /usr/athena/include \
6186 /usr/local/x11r5/include \
6187 /usr/lpp/Xamples/include \
6189 /usr/openwin/include \
6190 /usr/openwin/share/include \
6193 if test -r "$ac_dir/$x_direct_test_include"; then
6194 ac_x_includes=$ac_dir
6200 fi # $ac_x_includes = NO
6202 if test "$ac_x_libraries" = NO; then
6203 # Check for the libraries.
6205 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6206 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6208 # See if we find them without any special options.
6209 # Don't add to $LIBS permanently.
6210 ac_save_LIBS="$LIBS"
6211 LIBS="-l$x_direct_test_library $LIBS"
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure
"
6214 #include "confdefs.h
"
6217 ${x_direct_test_function}()
6220 if { (eval echo configure:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6222 LIBS="$ac_save_LIBS"
6223 # We can link X programs with no special library path.
6226 echo "configure
: failed program was
:" >&5
6227 cat conftest.$ac_ext >&5
6229 LIBS="$ac_save_LIBS"
6230 # First see if replacing the include by lib works.
6231 # Check X11 before X11Rn because it is often a symlink to the current release.
6232 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6243 /usr/local/X11/lib \
6244 /usr/local/X11R6/lib \
6245 /usr/local/X11R5/lib \
6246 /usr/local/X11R4/lib \
6248 /usr/local/lib/X11 \
6249 /usr/local/lib/X11R6 \
6250 /usr/local/lib/X11R5 \
6251 /usr/local/lib/X11R4 \
6255 /usr/XFree86/lib/X11 \
6259 /usr/unsupported/lib \
6261 /usr/local/x11r5/lib \
6262 /usr/lpp/Xamples/lib \
6266 /usr/openwin/share/lib \
6269 for ac_extension in a so sl; do
6270 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6271 ac_x_libraries=$ac_dir
6278 fi # $ac_x_libraries = NO
6280 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6281 # Didn't find X anywhere. Cache the known absence of X.
6282 ac_cv_have_x="have_x
=no
"
6284 # Record where we found X for the cache.
6285 ac_cv_have_x="have_x
=yes \
6286 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
6290 eval "$ac_cv_have_x"
6293 if test "$have_x" != yes; then
6294 echo "$ac_t""$have_x" 1>&6
6297 # If each of the values was on the command line, it overrides each guess.
6298 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
6299 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6300 # Update the cache value to reflect the command line values.
6301 ac_cv_have_x="have_x
=yes \
6302 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
6303 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
6306 if test "$no_x" = yes; then
6307 # Not all programs may use this symbol, but it does not hurt to define it.
6308 cat >> confdefs.h <<\EOF
6309 #define X_DISPLAY_MISSING 1
6312 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6314 if test -n "$x_includes"; then
6315 X_CFLAGS="$X_CFLAGS -I$x_includes"
6318 # It would also be nice to do this for all -L options, not just this one.
6319 if test -n "$x_libraries"; then
6320 X_LIBS="$X_LIBS -L$x_libraries"
6321 # For Solaris; some versions of Sun CC require a space after -R and
6322 # others require no space. Words are not sufficient . . . .
6323 case "`(uname -sr) 2>/dev/null`" in
6325 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
6326 echo "configure
:6327: checking whether
-R must be followed by a space
" >&5
6327 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6328 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure
"
6330 #include "confdefs.h
"
6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6340 echo "configure
: failed program was
:" >&5
6341 cat conftest.$ac_ext >&5
6346 if test $ac_R_nospace = yes; then
6347 echo "$ac_t""no
" 1>&6
6348 X_LIBS="$X_LIBS -R$x_libraries"
6350 LIBS="$ac_xsave_LIBS -R $x_libraries"
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure
"
6353 #include "confdefs.h
"
6359 if { (eval echo configure:6360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6363 echo "configure
: failed program was
:" >&5
6364 cat conftest.$ac_ext >&5
6369 if test $ac_R_space = yes; then
6370 echo "$ac_t""yes" 1>&6
6371 X_LIBS="$X_LIBS -R $x_libraries"
6373 echo "$ac_t""neither works
" 1>&6
6376 LIBS="$ac_xsave_LIBS"
6380 # Check for system-dependent libraries X programs must link with.
6381 # Do this before checking for the system-independent R6 libraries
6382 # (-lICE), since we may need -lsocket or whatever for X linking.
6384 if test "$ISC" = yes; then
6385 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6387 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6388 # libraries were built with DECnet support. And karl@cs.umb.edu says
6389 # the Alpha needs dnet_stub (dnet does not exist).
6390 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
6391 echo "configure
:6392: checking
for dnet_ntoa
in -ldnet" >&5
6392 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6394 echo $ac_n "(cached
) $ac_c" 1>&6
6396 ac_save_LIBS="$LIBS"
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure
"
6400 #include "confdefs.h
"
6401 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6412 eval "ac_cv_lib_
$ac_lib_var=yes"
6414 echo "configure
: failed program was
:" >&5
6415 cat conftest.$ac_ext >&5
6417 eval "ac_cv_lib_
$ac_lib_var=no
"
6420 LIBS="$ac_save_LIBS"
6423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6424 echo "$ac_t""yes" 1>&6
6425 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6427 echo "$ac_t""no
" 1>&6
6430 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6431 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
6432 echo "configure
:6433: checking
for dnet_ntoa
in -ldnet_stub" >&5
6433 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6435 echo $ac_n "(cached
) $ac_c" 1>&6
6437 ac_save_LIBS="$LIBS"
6438 LIBS="-ldnet_stub $LIBS"
6439 cat > conftest.$ac_ext <<EOF
6440 #line 6441 "configure
"
6441 #include "confdefs.h
"
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 /* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6453 eval "ac_cv_lib_
$ac_lib_var=yes"
6455 echo "configure
: failed program was
:" >&5
6456 cat conftest.$ac_ext >&5
6458 eval "ac_cv_lib_
$ac_lib_var=no
"
6461 LIBS="$ac_save_LIBS"
6464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6465 echo "$ac_t""yes" 1>&6
6466 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6468 echo "$ac_t""no
" 1>&6
6473 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6474 # to get the SysV transport functions.
6475 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6477 # The nsl library prevents programs from opening the X display
6478 # on Irix 5.2, according to dickey@clark.net.
6479 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6480 echo "configure
:6481: checking
for gethostbyname
" >&5
6481 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6482 echo $ac_n "(cached
) $ac_c" 1>&6
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure
"
6486 #include "confdefs.h
"
6487 /* System header to define __stub macros and hopefully few prototypes,
6488 which can conflict with char gethostbyname(); below. */
6490 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6493 char gethostbyname();
6497 /* The GNU C library defines this for functions which it implements
6498 to always fail with ENOSYS. Some functions are actually named
6499 something starting with __ and the normal name is an alias. */
6500 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6508 if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6510 eval "ac_cv_func_gethostbyname
=yes"
6512 echo "configure
: failed program was
:" >&5
6513 cat conftest.$ac_ext >&5
6515 eval "ac_cv_func_gethostbyname
=no
"
6520 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6521 echo "$ac_t""yes" 1>&6
6524 echo "$ac_t""no
" 1>&6
6527 if test $ac_cv_func_gethostbyname = no; then
6528 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
6529 echo "configure
:6530: checking
for gethostbyname
in -lnsl" >&5
6530 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6532 echo $ac_n "(cached
) $ac_c" 1>&6
6534 ac_save_LIBS="$LIBS"
6536 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure
"
6538 #include "confdefs.h
"
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542 char gethostbyname();
6548 if { (eval echo configure:6549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550 eval "ac_cv_lib_
$ac_lib_var=yes"
6552 echo "configure
: failed program was
:" >&5
6553 cat conftest.$ac_ext >&5
6555 eval "ac_cv_lib_
$ac_lib_var=no
"
6558 LIBS="$ac_save_LIBS"
6561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6562 echo "$ac_t""yes" 1>&6
6563 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6565 echo "$ac_t""no
" 1>&6
6570 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6571 # socket/setsockopt and other routines are undefined under SCO ODT
6572 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6573 # on later versions), says simon@lia.di.epfl.ch: it contains
6574 # gethostby* variants that don't use the nameserver (or something).
6575 # -lsocket must be given before -lnsl if both are needed.
6576 # We assume that if connect needs -lnsl, so does gethostbyname.
6577 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6578 echo "configure
:6579: checking
for connect
" >&5
6579 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6580 echo $ac_n "(cached
) $ac_c" 1>&6
6582 cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure
"
6584 #include "confdefs.h
"
6585 /* System header to define __stub macros and hopefully few prototypes,
6586 which can conflict with char connect(); below. */
6588 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6595 /* The GNU C library defines this for functions which it implements
6596 to always fail with ENOSYS. Some functions are actually named
6597 something starting with __ and the normal name is an alias. */
6598 #if defined (__stub_connect) || defined (__stub___connect)
6606 if { (eval echo configure:6607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6608 eval "ac_cv_func_connect
=yes"
6610 echo "configure
: failed program was
:" >&5
6611 cat conftest.$ac_ext >&5
6613 eval "ac_cv_func_connect
=no
"
6618 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6619 echo "$ac_t""yes" 1>&6
6622 echo "$ac_t""no
" 1>&6
6625 if test $ac_cv_func_connect = no; then
6626 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
6627 echo "configure
:6628: checking
for connect
in -lsocket" >&5
6628 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6630 echo $ac_n "(cached
) $ac_c" 1>&6
6632 ac_save_LIBS="$LIBS"
6633 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure
"
6636 #include "confdefs.h
"
6637 /* Override any gcc2 internal prototype to avoid an error. */
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6648 eval "ac_cv_lib_
$ac_lib_var=yes"
6650 echo "configure
: failed program was
:" >&5
6651 cat conftest.$ac_ext >&5
6653 eval "ac_cv_lib_
$ac_lib_var=no
"
6656 LIBS="$ac_save_LIBS"
6659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6660 echo "$ac_t""yes" 1>&6
6661 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6663 echo "$ac_t""no
" 1>&6
6668 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6669 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
6670 echo "configure
:6671: checking
for remove
" >&5
6671 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6672 echo $ac_n "(cached
) $ac_c" 1>&6
6674 cat > conftest.$ac_ext <<EOF
6675 #line 6676 "configure
"
6676 #include "confdefs.h
"
6677 /* System header to define __stub macros and hopefully few prototypes,
6678 which can conflict with char remove(); below. */
6680 /* Override any gcc2 internal prototype to avoid an error. */
6681 /* We use char because int might match the return type of a gcc2
6682 builtin and then its argument prototype would still apply. */
6687 /* The GNU C library defines this for functions which it implements
6688 to always fail with ENOSYS. Some functions are actually named
6689 something starting with __ and the normal name is an alias. */
6690 #if defined (__stub_remove) || defined (__stub___remove)
6698 if { (eval echo configure:6699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6700 eval "ac_cv_func_remove
=yes"
6702 echo "configure
: failed program was
:" >&5
6703 cat conftest.$ac_ext >&5
6705 eval "ac_cv_func_remove
=no
"
6710 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6711 echo "$ac_t""yes" 1>&6
6714 echo "$ac_t""no
" 1>&6
6717 if test $ac_cv_func_remove = no; then
6718 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
6719 echo "configure
:6720: checking
for remove
in -lposix" >&5
6720 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6722 echo $ac_n "(cached
) $ac_c" 1>&6
6724 ac_save_LIBS="$LIBS"
6725 LIBS="-lposix $LIBS"
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure
"
6728 #include "confdefs.h
"
6729 /* Override any gcc2 internal prototype to avoid an error. */
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6738 if { (eval echo configure:6739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6740 eval "ac_cv_lib_
$ac_lib_var=yes"
6742 echo "configure
: failed program was
:" >&5
6743 cat conftest.$ac_ext >&5
6745 eval "ac_cv_lib_
$ac_lib_var=no
"
6748 LIBS="$ac_save_LIBS"
6751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6752 echo "$ac_t""yes" 1>&6
6753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6755 echo "$ac_t""no
" 1>&6
6760 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6761 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
6762 echo "configure
:6763: checking
for shmat
" >&5
6763 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6764 echo $ac_n "(cached
) $ac_c" 1>&6
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure
"
6768 #include "confdefs.h
"
6769 /* System header to define __stub macros and hopefully few prototypes,
6770 which can conflict with char shmat(); below. */
6772 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6779 /* The GNU C library defines this for functions which it implements
6780 to always fail with ENOSYS. Some functions are actually named
6781 something starting with __ and the normal name is an alias. */
6782 #if defined (__stub_shmat) || defined (__stub___shmat)
6790 if { (eval echo configure:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6792 eval "ac_cv_func_shmat
=yes"
6794 echo "configure
: failed program was
:" >&5
6795 cat conftest.$ac_ext >&5
6797 eval "ac_cv_func_shmat
=no
"
6802 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6803 echo "$ac_t""yes" 1>&6
6806 echo "$ac_t""no
" 1>&6
6809 if test $ac_cv_func_shmat = no; then
6810 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
6811 echo "configure
:6812: checking
for shmat
in -lipc" >&5
6812 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6814 echo $ac_n "(cached
) $ac_c" 1>&6
6816 ac_save_LIBS="$LIBS"
6818 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure
"
6820 #include "confdefs.h
"
6821 /* Override any gcc2 internal prototype to avoid an error. */
6822 /* We use char because int might match the return type of a gcc2
6823 builtin and then its argument prototype would still apply. */
6830 if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6832 eval "ac_cv_lib_
$ac_lib_var=yes"
6834 echo "configure
: failed program was
:" >&5
6835 cat conftest.$ac_ext >&5
6837 eval "ac_cv_lib_
$ac_lib_var=no
"
6840 LIBS="$ac_save_LIBS"
6843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6844 echo "$ac_t""yes" 1>&6
6845 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6847 echo "$ac_t""no
" 1>&6
6853 # Check for libraries that X11R6 Xt/Xaw programs need.
6854 ac_save_LDFLAGS="$LDFLAGS"
6855 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6856 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6857 # check for ICE first), but we must link in the order -lSM -lICE or
6858 # we get undefined symbols. So assume we have SM if we have ICE.
6859 # These have to be linked with before -lX11, unlike the other
6860 # libraries we check for below, so use a different variable.
6861 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6862 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
6863 echo "configure
:6864: checking
for IceConnectionNumber
in -lICE" >&5
6864 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6866 echo $ac_n "(cached
) $ac_c" 1>&6
6868 ac_save_LIBS="$LIBS"
6869 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure
"
6872 #include "confdefs.h
"
6873 /* Override any gcc2 internal prototype to avoid an error. */
6874 /* We use char because int might match the return type of a gcc2
6875 builtin and then its argument prototype would still apply. */
6876 char IceConnectionNumber();
6879 IceConnectionNumber()
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6884 eval "ac_cv_lib_
$ac_lib_var=yes"
6886 echo "configure
: failed program was
:" >&5
6887 cat conftest.$ac_ext >&5
6889 eval "ac_cv_lib_
$ac_lib_var=no
"
6892 LIBS="$ac_save_LIBS"
6895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6896 echo "$ac_t""yes" 1>&6
6897 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6899 echo "$ac_t""no
" 1>&6
6902 LDFLAGS="$ac_save_LDFLAGS"
6907 # Check whether --enable-java-awt or --disable-java-awt was given.
6908 if test "${enable_java_awt+set}" = set; then
6909 enableval="$enable_java_awt"
6914 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6918 for peer in $peerlibs ; do
6921 if test "$no_x" = yes; then
6922 echo "*** xlib peers requested but no X library available
" 1>&2
6932 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
6939 if test "$use_xlib_awt" = yes; then
6948 if test "$use_gtk_awt" = yes; then
6960 # We get this from the environment.
6964 cat > confcache <<\EOF
6965 # This file is a shell script that caches the results of configure
6966 # tests run on this system so they can be shared between configure
6967 # scripts and configure runs. It is not useful on other systems.
6968 # If it contains results you don't want to keep, you may remove or edit it.
6970 # By default, configure uses ./config.cache as the cache file,
6971 # creating it if it does not exist already. You can give configure
6972 # the --cache-file=FILE option to use a different cache file; that is
6973 # what configure does when it calls configure scripts in
6974 # subdirectories, so they share the cache.
6975 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6976 # config.status only pays attention to the cache file if you give it the
6977 # --recheck option to rerun configure.
6980 # The following way of writing the cache mishandles newlines in values,
6981 # but we know of no workaround that is simple, portable, and efficient.
6982 # So, don't put newlines in cache variables' values.
6983 # Ultrix sh set writes to stderr and can't be redirected directly,
6984 # and sets the high bit in the cache file unless we assign to the vars.
6986 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6988 # `set' does not quote correctly, so add quotes (double-quote substitution
6989 # turns \\\\ into \\, and sed turns \\ into \).
6991 -e "s
/'/'\\\\''/g
" \
6992 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
6995 # `set' quotes correctly as required by POSIX, so do not add quotes.
6996 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6999 if cmp -s $cache_file confcache; then
7002 if test -w $cache_file; then
7003 echo "updating cache
$cache_file"
7004 cat confcache > $cache_file
7006 echo "not updating unwritable cache
$cache_file"
7011 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7013 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
7014 # Let make expand exec_prefix.
7015 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
7017 # Any assignment to VPATH causes Sun make to only execute
7018 # the first set of double-colon rules, so remove it if not needed.
7019 # If there is a colon in the path, we need to keep it.
7020 if test "x
$srcdir" = x.; then
7021 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7024 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7026 DEFS=-DHAVE_CONFIG_H
7028 # Without the ".
/", some shells look in PATH for config.status.
7029 : ${CONFIG_STATUS=./config.status}
7031 echo creating $CONFIG_STATUS
7032 rm -f $CONFIG_STATUS
7033 cat > $CONFIG_STATUS <<EOF
7035 # Generated automatically by configure.
7036 # Run this file to recreate the current configuration.
7037 # This directory was configured as follows,
7038 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7040 # $0 $ac_configure_args
7042 # Compiler output produced by configure, useful for debugging
7043 # configure, is in ./config.log if it exists.
7045 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
7048 case "\
$ac_option" in
7049 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7050 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7051 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7052 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7053 echo "$CONFIG_STATUS generated by autoconf version
2.13"
7055 -help | --help | --hel | --he | --h)
7056 echo "\
$ac_cs_usage"; exit 0 ;;
7057 *) echo "\
$ac_cs_usage"; exit 1 ;;
7061 ac_given_srcdir=$srcdir
7062 ac_given_INSTALL="$INSTALL"
7064 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu
/classpath
/Configuration.java gcj
/Makefile include
/Makefile testsuite
/Makefile include
/config.h gcj
/libgcj-config.h
" | sed "s
/:[^
]*//g
"` conftest*; exit 1' 1 2 15
7066 cat >> $CONFIG_STATUS <<EOF
7068 # Protect against being on the right side of a sed subst in config.status.
7069 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7070 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7074 s%@CFLAGS@%$CFLAGS%g
7075 s%@CPPFLAGS@%$CPPFLAGS%g
7076 s%@CXXFLAGS@%$CXXFLAGS%g
7077 s%@FFLAGS@%$FFLAGS%g
7079 s%@LDFLAGS@%$LDFLAGS%g
7081 s%@exec_prefix@%$exec_prefix%g
7082 s%@prefix@%$prefix%g
7083 s%@program_transform_name@%$program_transform_name%g
7084 s%@bindir@%$bindir%g
7085 s%@sbindir@%$sbindir%g
7086 s%@libexecdir@%$libexecdir%g
7087 s%@datadir@%$datadir%g
7088 s%@sysconfdir@%$sysconfdir%g
7089 s%@sharedstatedir@%$sharedstatedir%g
7090 s%@localstatedir@%$localstatedir%g
7091 s%@libdir@%$libdir%g
7092 s%@includedir@%$includedir%g
7093 s%@oldincludedir@%$oldincludedir%g
7094 s%@infodir@%$infodir%g
7095 s%@mandir@%$mandir%g
7097 s%@libgcj_basedir@%$libgcj_basedir%g
7098 s%@mkinstalldirs@%$mkinstalldirs%g
7100 s%@host_alias@%$host_alias%g
7101 s%@host_cpu@%$host_cpu%g
7102 s%@host_vendor@%$host_vendor%g
7103 s%@host_os@%$host_os%g
7104 s%@target@%$target%g
7105 s%@target_alias@%$target_alias%g
7106 s%@target_cpu@%$target_cpu%g
7107 s%@target_vendor@%$target_vendor%g
7108 s%@target_os@%$target_os%g
7110 s%@build_alias@%$build_alias%g
7111 s%@build_cpu@%$build_cpu%g
7112 s%@build_vendor@%$build_vendor%g
7113 s%@build_os@%$build_os%g
7116 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7117 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7118 s%@INSTALL_DATA@%$INSTALL_DATA%g
7119 s%@PACKAGE@%$PACKAGE%g
7120 s%@VERSION@%$VERSION%g
7121 s%@ACLOCAL@%$ACLOCAL%g
7122 s%@AUTOCONF@%$AUTOCONF%g
7123 s%@AUTOMAKE@%$AUTOMAKE%g
7124 s%@AUTOHEADER@%$AUTOHEADER%g
7125 s%@MAKEINFO@%$MAKEINFO%g
7126 s%@SET_MAKE@%$SET_MAKE%g
7129 s%@RANLIB@%$RANLIB%g
7130 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7131 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7133 s%@EXEEXT@%$EXEEXT%g
7134 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7135 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7136 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7137 s%@INCLTDL@%$INCLTDL%g
7138 s%@LIBLTDL@%$LIBLTDL%g
7139 s%@DIRLTDL@%$DIRLTDL%g
7140 s%@OBJEXT@%$OBJEXT%g
7142 s%@LIBTOOL@%$LIBTOOL%g
7143 s%@CXXCPP@%$CXXCPP%g
7144 s%@subdirs@%$subdirs%g
7145 s%@COMPPATH@%$COMPPATH%g
7146 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7147 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7148 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7149 s%@LIBFFI@%$LIBFFI%g
7150 s%@LIBFFIINCS@%$LIBFFIINCS%g
7152 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7153 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7154 s%@ZLIBSPEC@%$ZLIBSPEC%g
7155 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7156 s%@GCLIBS@%$GCLIBS%g
7157 s%@GCINCS@%$GCINCS%g
7158 s%@GCDEPS@%$GCDEPS%g
7159 s%@GCOBJS@%$GCOBJS%g
7160 s%@GCSPEC@%$GCSPEC%g
7161 s%@JC1GCSPEC@%$JC1GCSPEC%g
7162 s%@GCTESTSPEC@%$GCTESTSPEC%g
7163 s%@THREADLIBS@%$THREADLIBS%g
7164 s%@THREADINCS@%$THREADINCS%g
7165 s%@THREADDEPS@%$THREADDEPS%g
7166 s%@THREADOBJS@%$THREADOBJS%g
7167 s%@THREADSPEC@%$THREADSPEC%g
7168 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7169 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7170 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7171 s%@LIBICONV@%$LIBICONV%g
7173 s%@GCJFLAGS@%$GCJFLAGS%g
7177 s%@DIVIDESPEC@%$DIVIDESPEC%g
7178 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7179 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7180 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7181 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7182 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7183 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7184 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7185 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7186 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7187 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7188 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7189 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7190 s%@GCJVERSION@%$GCJVERSION%g
7191 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7192 s%@ALLOCA@%$ALLOCA%g
7194 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7195 s%@X_CFLAGS@%$X_CFLAGS%g
7196 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7197 s%@X_LIBS@%$X_LIBS%g
7198 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7199 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7200 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7201 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7202 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7208 cat >> $CONFIG_STATUS <<\EOF
7210 # Split the substitutions into bite-sized pieces for seds with
7211 # small command number limits, like on Digital OSF/1 and HP-UX.
7212 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7213 ac_file=1 # Number of current file.
7214 ac_beg=1 # First line for current file.
7215 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7218 while $ac_more_lines; do
7219 if test $ac_beg -gt 1; then
7220 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
7222 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
7224 if test ! -s conftest.s$ac_file; then
7226 rm -f conftest.s$ac_file
7228 if test -z "$ac_sed_cmds"; then
7229 ac_sed_cmds="sed -f conftest.s
$ac_file"
7231 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
7233 ac_file=`expr $ac_file + 1`
7235 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7238 if test -z "$ac_sed_cmds"; then
7243 cat >> $CONFIG_STATUS <<EOF
7245 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7247 cat >> $CONFIG_STATUS <<\EOF
7248 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
7249 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
7251 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7252 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7253 *) ac_file_in="${ac_file}.
in" ;;
7256 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7258 # Remove last slash and all that follows it. Not all systems have dirname.
7259 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7260 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7261 # The file is in a subdirectory.
7262 test ! -d "$ac_dir" && mkdir "$ac_dir"
7263 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7264 # A "..
/" for each directory in $ac_dir_suffix.
7265 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7267 ac_dir_suffix= ac_dots=
7270 case "$ac_given_srcdir" in
7272 if test -z "$ac_dots"; then top_srcdir=.
7273 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7274 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7276 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7277 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7280 case "$ac_given_INSTALL" in
7281 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7282 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7285 echo creating "$ac_file"
7287 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
7289 *Makefile*) ac_comsub="1i
\\
7290 # $configure_input" ;;
7294 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7296 s%@configure_input@%$configure_input%g
7297 s%@srcdir@%$srcdir%g
7298 s%@top_srcdir@%$top_srcdir%g
7299 s%@INSTALL@%$INSTALL%g
7300 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7304 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7305 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7307 # ac_d sets the value in "#define NAME VALUE" lines.
7308 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7309 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7312 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7313 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7314 ac_uB
='\([ ]\)%\1#\2define\3'
7317 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7318 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7319 ac_eB
='$%\1#\2define\3'
7323 if test "${CONFIG_HEADERS+set}" != set; then
7325 cat >> $CONFIG_STATUS <<EOF
7326 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7328 cat >> $CONFIG_STATUS <<\EOF
7330 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7331 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7333 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7334 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7335 *) ac_file_in
="${ac_file}.in" ;;
7338 echo creating
$ac_file
7340 rm -f conftest.frag conftest.
in conftest.out
7341 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7342 cat $ac_file_inputs > conftest.
in
7346 # Transform confdefs.h into a sed script conftest.vals that substitutes
7347 # the proper values into config.h.in to produce config.h. And first:
7348 # Protect against being on the right side of a sed subst in config.status.
7349 # Protect against being in an unquoted here document in config.status.
7351 cat > conftest.hdr
<<\EOF
7354 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7358 sed -n -f conftest.hdr confdefs.h > conftest.vals
7361 # This sed command replaces #undef with comments. This is necessary, for
7362 # example, in the case of _POSIX_SOURCE, which is predefined and required
7363 # on some systems where configure will not decide to define it.
7364 cat >> conftest.vals <<\EOF
7365 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7368 # Break up conftest.vals because some shells have a limit on
7369 # the size of here documents, and old seds have small limits too.
7374 ac_lines=`grep -c . conftest.vals
`
7375 # grep -c gives empty output for an empty file on some AIX systems.
7376 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7377 # Write a limited-size here document to conftest.frag.
7378 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7379 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7381 sed -f conftest.frag conftest.in > conftest.out
7383 mv conftest.out conftest.in
7385 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7387 mv conftest.tail conftest.vals
7391 cat >> $CONFIG_STATUS <<\EOF
7392 rm -f conftest.frag conftest.h
7393 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7394 cat conftest.in >> conftest.h
7396 if cmp -s $ac_file conftest.h 2>/dev/null; then
7397 echo "$ac_file is unchanged"
7400 # Remove last slash and all that follows it. Not all systems have dirname.
7401 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7402 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7403 # The file is in a subdirectory.
7404 test ! -d "$ac_dir" && mkdir "$ac_dir"
7407 mv conftest.h $ac_file
7413 cat >> $CONFIG_STATUS <<EOF
7414 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7415 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
7418 cat >> $CONFIG_STATUS <<\EOF
7419 srcdir=$ac_given_srcdir
7420 while test -n "$ac_sources"; do
7421 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7422 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7424 echo "linking $srcdir/$ac_source to $ac_dest"
7426 if test ! -r $srcdir/$ac_source; then
7427 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7431 # Make relative symlinks.
7432 # Remove last slash and all that follows it. Not all systems have dirname.
7433 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7434 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7435 # The dest file is in a subdirectory.
7436 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7437 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7438 # A "../" for each directory in $ac_dest_dir_suffix.
7439 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7441 ac_dest_dir_suffix= ac_dots=
7445 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7446 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7449 # Make a symlink if possible; otherwise try a hard link.
7450 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7451 ln $srcdir/$ac_source $ac_dest; then :
7453 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7457 cat >> $CONFIG_STATUS <<EOF
7462 with_multisubdir=${with_multisubdir}
7463 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7464 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7465 libgcj_basedir=${libgcj_basedir}
7470 cat >> $CONFIG_STATUS <<\EOF
7472 for am_file in include/config.h gcj/libgcj-config.h; do
7473 case " $CONFIG_HEADERS " in
7475 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7478 am_indx=`expr "$am_indx" + 1`
7480 # Only add multilib support code if we just rebuilt top-level Makefile.
7481 case " $CONFIG_FILES " in
7483 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7487 # Make subdirectories and `.d
' files. Look in both srcdir and
7488 # builddir for the .java files.
7491 ( (cd $srcdir && find . -name '*.java
' -print) ;
7492 find . -name '*.java
' -print) | \
7493 fgrep -v testsuite | \
7494 sed -e 's
/\.java
/.d
/' | \
7496 echo "include $f" >> deps.mk
7499 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
7501 $libgcj_basedir/../mkinstalldirs $d
7508 chmod +x $CONFIG_STATUS
7509 rm -fr confdefs* $ac_clean_files
7510 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7512 if test "$no_recursion" != yes; then
7514 # Remove --cache-file and --srcdir arguments so they do not pile up.
7515 ac_sub_configure_args=
7517 for ac_arg in $ac_configure_args; do
7518 if test -n "$ac_prev"; then
7523 -cache-file | --cache-file | --cache-fil | --cache-fi \
7524 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7525 ac_prev=cache_file ;;
7526 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7527 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7529 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7531 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7533 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7537 for ac_config_dir in $DIRLTDL; do
7539 # Do not complain, so a configure script can configure whichever
7540 # parts of a large source tree are present.
7541 if test ! -d $srcdir/$ac_config_dir; then
7545 echo configuring in $ac_config_dir
7550 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7552 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7560 # A "../" for each directory in /$ac_config_dir.
7561 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
7564 .) # No --srcdir option. We are building in place.
7565 ac_sub_srcdir=$srcdir ;;
7566 /*) # Absolute path.
7567 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7569 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7572 # Check for guested configure; otherwise get Cygnus style configure.
7573 if test -f $ac_sub_srcdir/configure; then
7574 ac_sub_configure=$ac_sub_srcdir/configure
7575 elif test -f $ac_sub_srcdir/configure.in; then
7576 ac_sub_configure=$ac_configure
7578 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7582 # The recursion is here.
7583 if test -n "$ac_sub_configure"; then
7585 # Make the cache file name correct relative to the subdirectory.
7586 case "$cache_file" in
7587 /*) ac_sub_cache_file=$cache_file ;;
7589 ac_sub_cache_file="$ac_dots$cache_file" ;;
7591 case "$ac_given_INSTALL" in
7592 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7593 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7596 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7597 # The eval makes quoting arguments work.
7598 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7601 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }