3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --with-newlib Configuring with newlib"
22 --enable-multilib build many library versions (default)"
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
29 --enable-static[=PKGS] build static libraries [default=yes]"
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
35 --disable-libtool-lock avoid locking (might break parallel builds)"
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --without-libffi don't use libffi"
55 --disable-jvmpi disable JVMPI support"
57 --with-ecos enable runtime eCos target support"
59 --with-system-zlib use installed libz"
61 --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 # This works around the fact that libtool configuration may change LD
591 # for this particular configuration, but some shells, instead of
592 # keeping the changes in LD private, export them just because LD is
594 ORIGINAL_LD_FOR_MULTILIBS
=$LD
596 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
597 echo "configure:598: checking whether ln -s works" >&5
598 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
602 if ln -s X conftestdata
2>/dev
/null
605 ac_cv_prog_LN_S
="ln -s"
610 LN_S
="$ac_cv_prog_LN_S"
611 if test "$ac_cv_prog_LN_S" = "ln -s"; then
612 echo "$ac_t""yes" 1>&6
614 echo "$ac_t""no" 1>&6
618 # Check whether --with-target-subdir or --without-target-subdir was given.
619 if test "${with_target_subdir+set}" = set; then
620 withval
="$with_target_subdir"
624 # Check whether --with-cross-host or --without-cross-host was given.
625 if test "${with_cross_host+set}" = set; then
626 withval
="$with_cross_host"
631 # Check whether --with-newlib or --without-newlib was given.
632 if test "${with_newlib+set}" = set; then
633 withval
="$with_newlib"
638 # Find a good install program. We prefer a C program (faster),
639 # so one script is as good as another. But avoid the broken or
640 # incompatible versions:
641 # SysV /etc/install, /usr/sbin/install
642 # SunOS /usr/etc/install
645 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
646 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
647 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
648 # ./install, which can be erroneously created by make from ./install.sh.
649 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
650 echo "configure:651: checking for a BSD compatible install" >&5
651 if test -z "$INSTALL"; then
652 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
655 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
656 for ac_dir
in $PATH; do
657 # Account for people who put trailing slashes in PATH elements.
659 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
661 # OSF1 and SCO ODT 3.0 have their own names for install.
662 # Don't use installbsd from OSF since it installs stuff as root
664 for ac_prog
in ginstall scoinst
install; do
665 if test -f $ac_dir/$ac_prog; then
666 if test $ac_prog = install &&
667 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
668 # AIX install. It has an incompatible calling convention.
671 ac_cv_path_install
="$ac_dir/$ac_prog -c"
682 if test "${ac_cv_path_install+set}" = set; then
683 INSTALL
="$ac_cv_path_install"
685 # As a last resort, use the slow shell script. We don't cache a
686 # path for INSTALL within a source directory, because that will
687 # break other packages using the cache if that directory is
688 # removed, or if the path is relative.
689 INSTALL
="$ac_install_sh"
692 echo "$ac_t""$INSTALL" 1>&6
694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
695 # It thinks the first close brace ends the variable substitution.
696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
698 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
700 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
702 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
703 echo "configure:704: checking whether build environment is sane" >&5
706 echo timestamp
> conftestfile
707 # Do `set' in a subshell so we don't clobber the current shell's
708 # arguments. Must try -L first in case configure is actually a
709 # symlink; some systems play weird games with the mod time of symlinks
710 # (eg FreeBSD returns the mod time of the symlink's containing
713 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
714 if test "$*" = "X"; then
716 set X
`ls -t $srcdir/configure conftestfile`
718 if test "$*" != "X $srcdir/configure conftestfile" \
719 && test "$*" != "X conftestfile $srcdir/configure"; then
721 # If neither matched, then we have a broken ls. This can happen
722 # if, for instance, CONFIG_SHELL is bash and it inherits a
723 # broken ls alias from the environment. This has actually
724 # happened. Such a system could not be considered "sane".
725 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
726 alias in your environment" 1>&2; exit 1; }
729 test "$2" = conftestfile
735 { echo "configure: error: newly created file is older than distributed files!
736 Check your system clock" 1>&2; exit 1; }
739 echo "$ac_t""yes" 1>&6
740 if test "$program_transform_name" = s
,x
,x
,; then
741 program_transform_name
=
743 # Double any \ or $. echo might interpret backslashes.
744 cat <<\EOF_SED
> conftestsed
745 s
,\\,\\\\,g
; s
,\$
,$$
,g
747 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
750 test "$program_prefix" != NONE
&&
751 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
752 # Use a double $ so make ignores it.
753 test "$program_suffix" != NONE
&&
754 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
756 # sed with no file args requires a program.
757 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
759 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
760 echo "configure:761: checking whether ${MAKE-make} sets \${MAKE}" >&5
761 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
762 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
763 echo $ac_n "(cached) $ac_c" 1>&6
765 cat > conftestmake
<<\EOF
767 @
echo 'ac_maketemp="${MAKE}"'
769 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
770 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
771 if test -n "$ac_maketemp"; then
772 eval ac_cv_prog_make_
${ac_make}_set
=yes
774 eval ac_cv_prog_make_
${ac_make}_set
=no
778 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
779 echo "$ac_t""yes" 1>&6
782 echo "$ac_t""no" 1>&6
783 SET_MAKE
="MAKE=${MAKE-make}"
786 if test $host != $build; then
787 ac_tool_prefix
=${host_alias}-
792 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
793 echo "configure:794: checking for Cygwin environment" >&5
794 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 cat > conftest.
$ac_ext <<EOF
798 #line 799 "configure"
799 #include "confdefs.h"
804 #define __CYGWIN__ __CYGWIN32__
809 if { (eval echo configure
:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813 echo "configure: failed program was:" >&5
814 cat conftest.
$ac_ext >&5
822 echo "$ac_t""$ac_cv_cygwin" 1>&6
824 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
825 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
826 echo "configure:827: checking for mingw32 environment" >&5
827 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 cat > conftest.
$ac_ext <<EOF
831 #line 832 "configure"
832 #include "confdefs.h"
838 if { (eval echo configure
:839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
842 echo "configure: failed program was:" >&5
843 cat conftest.
$ac_ext >&5
851 echo "$ac_t""$ac_cv_mingw32" 1>&6
853 test "$ac_cv_mingw32" = yes && MINGW32
=yes
855 # Check whether --enable-multilib or --disable-multilib was given.
856 if test "${enable_multilib+set}" = set; then
857 enableval
="$enable_multilib"
858 case "${enableval}" in
861 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
868 # When building with srcdir == objdir, links to the source files will
869 # be created in directories within the target_subdir. We have to
870 # adjust toplevel_srcdir accordingly, so that configure finds
871 # install-sh and other auxiliary files that live in the top-level
873 if test "${srcdir}" = "."; then
874 if test -z "${with_target_subdir}"; then
877 if test "${with_target_subdir}" != "."; then
878 toprel
="${with_multisrctop}../.."
880 toprel
="${with_multisrctop}.."
887 libgcj_basedir
=$srcdir/$toprel/.
/libjava
891 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
892 if test -f $ac_dir/install-sh
; then
894 ac_install_sh
="$ac_aux_dir/install-sh -c"
896 elif test -f $ac_dir/install.sh
; then
898 ac_install_sh
="$ac_aux_dir/install.sh -c"
902 if test -z "$ac_aux_dir"; then
903 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
905 ac_config_guess=$ac_aux_dir/config.guess
906 ac_config_sub=$ac_aux_dir/config.sub
907 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
910 # This overrides the previous occurrence for automake, but not for
911 # autoconf, which is exactly what we want.
913 for ac_dir in .. $srcdir/..; do
914 if test -f $ac_dir/install-sh; then
916 ac_install_sh="$ac_aux_dir/install-sh
-c"
918 elif test -f $ac_dir/install.sh; then
920 ac_install_sh="$ac_aux_dir/install.sh
-c"
924 if test -z "$ac_aux_dir"; then
925 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
927 ac_config_guess=$ac_aux_dir/config.guess
928 ac_config_sub=$ac_aux_dir/config.sub
929 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
933 # This works around an automake problem.
934 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs
"
938 # Do some error checking and defaulting for the host and target type.
940 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
943 # 1. You are not allowed to specify --host, --target, and nonopt at the
945 # 2. Host defaults to nonopt.
946 # 3. If nonopt is not specified, then host defaults to the current host,
947 # as determined by config.guess.
948 # 4. Target and build default to nonopt.
949 # 5. If nonopt is not specified, then target and build default to host.
951 # The aliases save the names the user supplied, while $host etc.
952 # will get canonicalized.
953 case $host---$target---$nonopt in
954 NONE---*---* | *---NONE---* | *---*---NONE) ;;
955 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
959 # Make sure we can run config.sub.
960 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
961 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
964 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
965 echo "configure
:966: checking
host system
type" >&5
968 case "$host_alias" in
972 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
973 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
975 *) host_alias=$nonopt ;;
979 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
980 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
981 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
982 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
983 echo "$ac_t""$host" 1>&6
985 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
986 echo "configure
:987: checking target system
type" >&5
989 case "$target_alias" in
992 NONE) target_alias=$host_alias ;;
993 *) target_alias=$nonopt ;;
997 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
998 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1001 echo "$ac_t""$target" 1>&6
1003 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1004 echo "configure
:1005: checking build system
type" >&5
1007 case "$build_alias" in
1010 NONE) build_alias=$host_alias ;;
1011 *) build_alias=$nonopt ;;
1015 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1016 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1017 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1018 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1019 echo "$ac_t""$build" 1>&6
1021 test "$host_alias" != "$target_alias" &&
1022 test "$program_prefix$program_suffix$program_transform_name" = \
1024 program_prefix=${target_alias}-
1030 # Extract the first word of "gcc
", so it can be a program name with args.
1031 set dummy gcc; ac_word=$2
1032 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1033 echo "configure
:1034: checking
for $ac_word" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1035 echo $ac_n "(cached
) $ac_c" 1>&6
1037 if test -n "$CC"; then
1038 ac_cv_prog_CC="$CC" # Let the user override the test.
1040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1042 for ac_dir in $ac_dummy; do
1043 test -z "$ac_dir" && ac_dir=.
1044 if test -f $ac_dir/$ac_word; then
1053 if test -n "$CC"; then
1054 echo "$ac_t""$CC" 1>&6
1056 echo "$ac_t""no
" 1>&6
1059 if test -z "$CC"; then
1060 # Extract the first word of "cc
", so it can be a program name with args.
1061 set dummy cc; ac_word=$2
1062 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1063 echo "configure
:1064: checking
for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached
) $ac_c" 1>&6
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC="$CC" # Let the user override the test.
1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1073 for ac_dir in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1077 ac_prog_rejected=yes
1085 if test $ac_prog_rejected = yes; then
1086 # We found a bogon in the path, so make sure we never use it.
1087 set dummy $ac_cv_prog_CC
1089 if test $# -gt 0; then
1090 # We chose a different compiler from the bogus one.
1091 # However, it has the same basename, so the bogon will be chosen
1092 # first if we set CC to just the basename; use the full file name.
1094 set dummy "$ac_dir/$ac_word" "$@
"
1102 if test -n "$CC"; then
1103 echo "$ac_t""$CC" 1>&6
1105 echo "$ac_t""no
" 1>&6
1108 if test -z "$CC"; then
1109 case "`uname -s`" in
1111 # Extract the first word of "cl
", so it can be a program name with args.
1112 set dummy cl; ac_word=$2
1113 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1114 echo "configure
:1115: checking
for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1116 echo $ac_n "(cached
) $ac_c" 1>&6
1118 if test -n "$CC"; then
1119 ac_cv_prog_CC="$CC" # Let the user override the test.
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1123 for ac_dir in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir=.
1125 if test -f $ac_dir/$ac_word; then
1134 if test -n "$CC"; then
1135 echo "$ac_t""$CC" 1>&6
1137 echo "$ac_t""no
" 1>&6
1142 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1146 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1147 echo "configure
:1148: checking whether we are using GNU C
" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1149 echo $ac_n "(cached
) $ac_c" 1>&6
1151 cat > conftest.c <<EOF
1156 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1163 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1165 if test $ac_cv_prog_gcc = yes; then
1171 ac_test_CFLAGS="${CFLAGS+set}"
1172 ac_save_CFLAGS="$CFLAGS"
1174 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1175 echo "configure
:1176: checking whether
${CC-cc} accepts
-g" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1177 echo $ac_n "(cached
) $ac_c" 1>&6
1179 echo 'void f(){}' > conftest.c
1180 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1189 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1190 if test "$ac_test_CFLAGS" = set; then
1191 CFLAGS="$ac_save_CFLAGS"
1192 elif test $ac_cv_prog_cc_g = yes; then
1193 if test "$GCC" = yes; then
1199 if test "$GCC" = yes; then
1207 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1208 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1209 # different definition of CXX than other directories, since we don't
1210 # depend on libstdc++-v3 having already been built.
1214 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1215 # flags that come in CXX while configuring libjava. They're different
1216 # from those used for all other target libraries. If CXX is set in
1217 # the environment, respect that here.
1219 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1221 # Extract the first word of "$ac_prog", so it can be a program name with args.
1222 set dummy $ac_prog; ac_word=$2
1223 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1224 echo "configure
:1225: checking
for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1226 echo $ac_n "(cached
) $ac_c" 1>&6
1228 if test -n "$glibjava_CXX"; then
1229 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1233 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 if test -f $ac_dir/$ac_word; then
1236 ac_cv_prog_glibjava_CXX="$ac_prog"
1243 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1244 if test -n "$glibjava_CXX"; then
1245 echo "$ac_t""$glibjava_CXX" 1>&6
1247 echo "$ac_t""no
" 1>&6
1250 test -n "$glibjava_CXX" && break
1252 test -n "$glibjava_CXX" || glibjava_CXX="gcc
"
1256 test -z "$glibjava_CXX" && { echo "configure
: error
: no acceptable c
++ found
in \
$PATH" 1>&2; exit 1; }
1258 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1259 echo "configure
:1260: checking whether we are using GNU C
++" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1261 echo $ac_n "(cached
) $ac_c" 1>&6
1263 cat > conftest.C <<EOF
1268 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1275 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1277 if test $ac_cv_prog_gxx = yes; then
1279 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1280 ac_save_CXXFLAGS="$CXXFLAGS"
1282 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1283 echo "configure
:1284: checking whether
${CXX-g++} accepts
-g" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1285 echo $ac_n "(cached
) $ac_c" 1>&6
1287 echo 'void f(){}' > conftest.cc
1288 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1289 ac_cv_prog_cxx_g=yes
1297 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1298 if test "$ac_test_CXXFLAGS" = set; then
1299 CXXFLAGS="$ac_save_CXXFLAGS"
1300 elif test $ac_cv_prog_cxx_g = yes; then
1307 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1317 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1318 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1320 cat >> confdefs.h <<EOF
1321 #define PACKAGE "$PACKAGE"
1324 cat >> confdefs.h <<EOF
1325 #define VERSION "$VERSION"
1330 missing_dir=`cd $ac_aux_dir && pwd`
1331 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
1332 echo "configure
:1333: checking
for working aclocal
" >&5
1333 # Run test in a subshell; some versions of sh will print an error if
1334 # an executable is not found, even if stderr is redirected.
1335 # Redirect stdin to placate older versions of autoconf. Sigh.
1336 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1338 echo "$ac_t""found
" 1>&6
1340 ACLOCAL="$missing_dir/missing aclocal
"
1341 echo "$ac_t""missing
" 1>&6
1344 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1345 echo "configure
:1346: checking
for working autoconf
" >&5
1346 # Run test in a subshell; some versions of sh will print an error if
1347 # an executable is not found, even if stderr is redirected.
1348 # Redirect stdin to placate older versions of autoconf. Sigh.
1349 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1351 echo "$ac_t""found
" 1>&6
1353 AUTOCONF="$missing_dir/missing autoconf
"
1354 echo "$ac_t""missing
" 1>&6
1357 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
1358 echo "configure
:1359: checking
for working automake
" >&5
1359 # Run test in a subshell; some versions of sh will print an error if
1360 # an executable is not found, even if stderr is redirected.
1361 # Redirect stdin to placate older versions of autoconf. Sigh.
1362 if (automake --version) < /dev/null > /dev/null 2>&1; then
1364 echo "$ac_t""found
" 1>&6
1366 AUTOMAKE="$missing_dir/missing automake
"
1367 echo "$ac_t""missing
" 1>&6
1370 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1371 echo "configure
:1372: checking
for working autoheader
" >&5
1372 # Run test in a subshell; some versions of sh will print an error if
1373 # an executable is not found, even if stderr is redirected.
1374 # Redirect stdin to placate older versions of autoconf. Sigh.
1375 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1376 AUTOHEADER=autoheader
1377 echo "$ac_t""found
" 1>&6
1379 AUTOHEADER="$missing_dir/missing autoheader
"
1380 echo "$ac_t""missing
" 1>&6
1383 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1384 echo "configure
:1385: checking
for working makeinfo
" >&5
1385 # Run test in a subshell; some versions of sh will print an error if
1386 # an executable is not found, even if stderr is redirected.
1387 # Redirect stdin to placate older versions of autoconf. Sigh.
1388 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1390 echo "$ac_t""found
" 1>&6
1392 MAKEINFO="$missing_dir/missing makeinfo
"
1393 echo "$ac_t""missing
" 1>&6
1398 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1399 # run it explicitly here, it will be run implicitly before
1400 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1401 # be run before AC_CANONICAL_HOST.
1402 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1403 echo "configure
:1404: checking build system
type" >&5
1406 case "$build_alias" in
1409 NONE) build_alias=$host_alias ;;
1410 *) build_alias=$nonopt ;;
1414 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1415 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1418 echo "$ac_t""$build" 1>&6
1421 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1422 set dummy ${ac_tool_prefix}as; ac_word=$2
1423 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1424 echo "configure
:1425: checking
for $ac_word" >&5
1425 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1426 echo $ac_n "(cached
) $ac_c" 1>&6
1428 if test -n "$AS"; then
1429 ac_cv_prog_AS="$AS" # Let the user override the test.
1431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1433 for ac_dir in $ac_dummy; do
1434 test -z "$ac_dir" && ac_dir=.
1435 if test -f $ac_dir/$ac_word; then
1436 ac_cv_prog_AS="${ac_tool_prefix}as
"
1441 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1445 if test -n "$AS"; then
1446 echo "$ac_t""$AS" 1>&6
1448 echo "$ac_t""no
" 1>&6
1453 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1454 set dummy ${ac_tool_prefix}ar; ac_word=$2
1455 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1456 echo "configure
:1457: checking
for $ac_word" >&5
1457 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1458 echo $ac_n "(cached
) $ac_c" 1>&6
1460 if test -n "$AR"; then
1461 ac_cv_prog_AR="$AR" # Let the user override the test.
1463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1465 for ac_dir in $ac_dummy; do
1466 test -z "$ac_dir" && ac_dir=.
1467 if test -f $ac_dir/$ac_word; then
1468 ac_cv_prog_AR="${ac_tool_prefix}ar"
1473 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1477 if test -n "$AR"; then
1478 echo "$ac_t""$AR" 1>&6
1480 echo "$ac_t""no
" 1>&6
1485 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1486 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1487 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1488 echo "configure
:1489: checking
for $ac_word" >&5
1489 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1490 echo $ac_n "(cached
) $ac_c" 1>&6
1492 if test -n "$RANLIB"; then
1493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1497 for ac_dir in $ac_dummy; do
1498 test -z "$ac_dir" && ac_dir=.
1499 if test -f $ac_dir/$ac_word; then
1500 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1507 RANLIB="$ac_cv_prog_RANLIB"
1508 if test -n "$RANLIB"; then
1509 echo "$ac_t""$RANLIB" 1>&6
1511 echo "$ac_t""no
" 1>&6
1515 if test -z "$ac_cv_prog_RANLIB"; then
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "ranlib
", so it can be a program name with args.
1518 set dummy ranlib; ac_word=$2
1519 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1520 echo "configure
:1521: checking
for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1522 echo $ac_n "(cached
) $ac_c" 1>&6
1524 if test -n "$RANLIB"; then
1525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1532 ac_cv_prog_RANLIB="ranlib
"
1537 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1540 RANLIB="$ac_cv_prog_RANLIB"
1541 if test -n "$RANLIB"; then
1542 echo "$ac_t""$RANLIB" 1>&6
1544 echo "$ac_t""no
" 1>&6
1553 # Find a good install program. We prefer a C program (faster),
1554 # so one script is as good as another. But avoid the broken or
1555 # incompatible versions:
1556 # SysV /etc/install, /usr/sbin/install
1557 # SunOS /usr/etc/install
1558 # IRIX /sbin/install
1560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1563 # ./install, which can be erroneously created by make from ./install.sh.
1564 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1565 echo "configure
:1566: checking
for a BSD compatible
install" >&5
1566 if test -z "$INSTALL"; then
1567 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1568 echo $ac_n "(cached
) $ac_c" 1>&6
1570 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1571 for ac_dir in $PATH; do
1572 # Account for people who put trailing slashes in PATH elements.
1574 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1576 # OSF1 and SCO ODT 3.0 have their own names for install.
1577 # Don't use installbsd from OSF since it installs stuff as root
1579 for ac_prog in ginstall scoinst install; do
1580 if test -f $ac_dir/$ac_prog; then
1581 if test $ac_prog = install &&
1582 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1583 # AIX install. It has an incompatible calling convention.
1586 ac_cv_path_install="$ac_dir/$ac_prog -c"
1597 if test "${ac_cv_path_install+set}" = set; then
1598 INSTALL="$ac_cv_path_install"
1600 # As a last resort, use the slow shell script. We don't cache a
1601 # path for INSTALL within a source directory, because that will
1602 # break other packages using the cache if that directory is
1603 # removed, or if the path is relative.
1604 INSTALL="$ac_install_sh"
1607 echo "$ac_t""$INSTALL" 1>&6
1609 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1610 # It thinks the first close brace ends the variable substitution.
1611 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1613 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1615 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1618 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1619 echo "configure
:1620: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1620 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1621 if test "${enable_maintainer_mode+set}" = set; then
1622 enableval="$enable_maintainer_mode"
1623 USE_MAINTAINER_MODE=$enableval
1625 USE_MAINTAINER_MODE=no
1628 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1631 if test $USE_MAINTAINER_MODE = yes; then
1632 MAINTAINER_MODE_TRUE=
1633 MAINTAINER_MODE_FALSE='#'
1635 MAINTAINER_MODE_TRUE='#'
1636 MAINTAINER_MODE_FALSE=
1638 MAINT=$MAINTAINER_MODE_TRUE
1644 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1645 echo "configure
:1646: checking
for executable suffix
" >&5
1646 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1647 echo $ac_n "(cached
) $ac_c" 1>&6
1649 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1653 echo 'int main () { return 0; }' > conftest.$ac_ext
1655 if { (eval echo configure:1656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1656 for file in conftest.*; do
1658 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1659 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1663 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1666 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1671 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1672 echo "$ac_t""${ac_cv_exeext}" 1>&6
1676 # configure.host sets the following important variables
1677 # libgcj_cflags - host specific C compiler flags
1678 # libgcj_cxxflags - host specific C++ compiler flags
1679 # libgcj_javaflags - host specific Java compiler flags
1685 . ${srcdir}/configure.host
1687 LIBGCJ_CFLAGS="${libgcj_cflags}"
1688 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1689 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1699 # Only use libltdl for native builds.
1700 if test -z "${with_cross_host}"; then
1701 case $enable_ltdl_convenience in
1702 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1703 "") enable_ltdl_convenience=yes
1704 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1706 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1707 INCLTDL='-I${top_srcdir}/''libltdl'
1711 cat >> confdefs.h <<\EOF
1715 # Sigh. Libtool's macro doesn't do the right thing.
1716 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1717 # FIXME: this is a hack.
1718 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1719 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1724 # Check whether --enable-shared or --disable-shared was given.
1725 if test "${enable_shared+set}" = set; then
1726 enableval="$enable_shared"
1727 p=${PACKAGE-default}
1729 yes) enable_shared=yes ;;
1730 no) enable_shared=no ;;
1733 # Look at the argument we got. We use all the common list separators.
1734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1735 for pkg in $enableval; do
1736 if test "X
$pkg" = "X
$p"; then
1747 # Check whether --enable-static or --disable-static was given.
1748 if test "${enable_static+set}" = set; then
1749 enableval="$enable_static"
1750 p=${PACKAGE-default}
1752 yes) enable_static=yes ;;
1753 no) enable_static=no ;;
1756 # Look at the argument we got. We use all the common list separators.
1757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1758 for pkg in $enableval; do
1759 if test "X
$pkg" = "X
$p"; then
1770 # Check whether --enable-fast-install or --disable-fast-install was given.
1771 if test "${enable_fast_install+set}" = set; then
1772 enableval="$enable_fast_install"
1773 p=${PACKAGE-default}
1775 yes) enable_fast_install=yes ;;
1776 no) enable_fast_install=no ;;
1778 enable_fast_install=no
1779 # Look at the argument we got. We use all the common list separators.
1780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1781 for pkg in $enableval; do
1782 if test "X
$pkg" = "X
$p"; then
1783 enable_fast_install=yes
1790 enable_fast_install=yes
1793 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1794 if test "${with_gnu_ld+set}" = set; then
1795 withval="$with_gnu_ld"
1796 test "$withval" = no || with_gnu_ld=yes
1802 if test "$GCC" = yes; then
1803 # Check if gcc -print-prog-name=ld gives a path.
1804 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1805 echo "configure
:1806: checking
for ld used by GCC
" >&5
1808 # gcc leaves a trailing carriage return which upsets mingw
1809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1814 # Accept absolute paths.
1815 [\\/]* | [A-Za-z]:[\\/]*)
1816 re_direlt='/[^/][^/]*/\.\./'
1817 # Canonicalize the path of ld
1818 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1819 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1820 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1822 test -z "$LD" && LD="$ac_prog"
1825 # If it fails, then pretend we aren't using GCC.
1829 # If it is relative, then search for the first ld in PATH.
1833 elif test "$with_gnu_ld" = yes; then
1834 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1835 echo "configure
:1836: checking
for GNU ld
" >&5
1837 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1838 echo "configure
:1839: checking
for non-GNU ld
" >&5
1840 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1841 echo $ac_n "(cached
) $ac_c" 1>&6
1843 if test -z "$LD"; then
1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1845 for ac_dir in $PATH; do
1846 test -z "$ac_dir" && ac_dir=.
1847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1848 lt_cv_path_LD="$ac_dir/$ac_prog"
1849 # Check to see if the program is GNU ld. I'd rather use --version,
1850 # but apparently some GNU ld's only accept -v.
1851 # Break only if it was the GNU/non-GNU ld that we prefer.
1852 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1853 test "$with_gnu_ld" != no && break
1855 test "$with_gnu_ld" != yes && break
1861 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1866 if test -n "$LD"; then
1867 echo "$ac_t""$LD" 1>&6
1869 echo "$ac_t""no
" 1>&6
1871 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1872 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1873 echo "configure
:1874: checking
if the linker
($LD) is GNU ld
" >&5
1874 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1875 echo $ac_n "(cached
) $ac_c" 1>&6
1877 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1878 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1879 lt_cv_prog_gnu_ld=yes
1881 lt_cv_prog_gnu_ld=no
1885 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1886 with_gnu_ld=$lt_cv_prog_gnu_ld
1889 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1890 echo "configure
:1891: checking
for $LD option to reload object files
" >&5
1891 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1892 echo $ac_n "(cached
) $ac_c" 1>&6
1894 lt_cv_ld_reload_flag='-r'
1897 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1898 reload_flag=$lt_cv_ld_reload_flag
1899 test -n "$reload_flag" && reload_flag=" $reload_flag"
1901 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1902 echo "configure
:1903: checking
for BSD-compatible nm
" >&5
1903 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1904 echo $ac_n "(cached
) $ac_c" 1>&6
1906 if test -n "$NM"; then
1907 # Let the user override the test.
1910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1911 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1912 test -z "$ac_dir" && ac_dir=.
1913 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1914 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1915 # Check to see if the nm accepts a BSD-compat flag.
1916 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1917 # nm: unknown option "B
" ignored
1918 # Tru64's nm complains that /dev/null is an invalid object file
1919 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1920 lt_cv_path_NM="$tmp_nm -B"
1922 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1923 lt_cv_path_NM="$tmp_nm -p"
1926 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1927 continue # so that we can try to find one that supports BSD flags
1932 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1937 echo "$ac_t""$NM" 1>&6
1939 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1940 echo "configure
:1941: checking how to recognise dependant libraries
" >&5
1941 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1942 echo $ac_n "(cached
) $ac_c" 1>&6
1944 lt_cv_file_magic_cmd='$MAGIC_CMD'
1945 lt_cv_file_magic_test_file=
1946 lt_cv_deplibs_check_method='unknown'
1947 # Need to set the preceding variable on all platforms that support
1948 # interlibrary dependencies.
1949 # 'none' -- dependencies not supported.
1950 # `unknown' -- same as none, but documents that we really don't know.
1951 # 'pass_all' -- all dependencies passed with no checks.
1952 # 'test_compile' -- check by making test program.
1953 # 'file_magic [regex]' -- check by looking for files in library path
1954 # which responds to the $file_magic_cmd with a given egrep regex.
1955 # If you have `file' or equivalent on your system and you're not sure
1956 # whether `pass_all' will *always* work, you probably want this one.
1960 lt_cv_deplibs_check_method=pass_all
1964 lt_cv_deplibs_check_method=pass_all
1968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1969 lt_cv_file_magic_cmd='/usr/bin/file -L'
1970 lt_cv_file_magic_test_file=/shlib/libc.so
1973 cygwin* | mingw* |pw32*)
1974 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1975 lt_cv_file_magic_cmd='$OBJDUMP -f'
1978 darwin* | rhapsody*)
1979 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1980 lt_cv_file_magic_cmd='/usr/bin/file -L'
1982 rhapsody* | darwin1.012)
1983 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1986 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1992 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1995 # Not sure whether the presence of OpenBSD here was a mistake.
1996 # Let's accept both of them until this is cleared up.
1997 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1998 lt_cv_file_magic_cmd=/usr/bin/file
1999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2003 lt_cv_deplibs_check_method=pass_all
2008 lt_cv_deplibs_check_method=pass_all
2012 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2013 lt_cv_file_magic_cmd=/usr/bin/file
2014 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2020 # this will be overridden with pass_all, but let us keep it just in case
2021 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2025 *-32|*"-32 ") libmagic=32-bit;;
2026 *-n32|*"-n32 ") libmagic=N32;;
2027 *-64|*"-64 ") libmagic=64-bit;;
2028 *) libmagic=never-match;;
2030 # this will be overridden with pass_all, but let us keep it just in case
2031 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2034 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2035 lt_cv_deplibs_check_method=pass_all
2038 # This must be Linux ELF.
2041 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2042 lt_cv_deplibs_check_method=pass_all ;;
2044 # glibc up to 2.1.1 does not perform some relocations on ARM
2045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2047 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2051 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2052 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2054 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2060 lt_cv_file_magic_cmd=/usr/bin/file
2061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2064 osf3* | osf4* | osf5*)
2065 # this will be overridden with pass_all, but let us keep it just in case
2066 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2067 lt_cv_file_magic_test_file=/shlib/libc.so
2068 lt_cv_deplibs_check_method=pass_all
2072 lt_cv_deplibs_check_method=pass_all
2076 lt_cv_deplibs_check_method=pass_all
2077 lt_cv_file_magic_test_file=/lib/libc.so
2080 sysv5uw[78]* | sysv4*uw2*)
2081 lt_cv_deplibs_check_method=pass_all
2084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2085 case $host_vendor in
2087 lt_cv_deplibs_check_method=pass_all
2090 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]'
2091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2099 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2100 file_magic_cmd=$lt_cv_file_magic_cmd
2101 deplibs_check_method=$lt_cv_deplibs_check_method
2103 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2104 echo "configure
:2105: checking
for object suffix
" >&5
2105 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2106 echo $ac_n "(cached
) $ac_c" 1>&6
2109 echo 'int i = 1;' > conftest.$ac_ext
2110 if { (eval echo configure:2111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2111 for ac_file in conftest.*; do
2114 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2118 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2123 echo "$ac_t""$ac_cv_objext" 1>&6
2124 OBJEXT=$ac_cv_objext
2125 ac_objext=$ac_cv_objext
2127 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2129 # Only perform the check for file, if the check method requires it
2130 case $deplibs_check_method in
2132 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2133 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2134 echo "configure
:2135: checking
for ${ac_tool_prefix}file" >&5
2135 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2136 echo $ac_n "(cached
) $ac_c" 1>&6
2140 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2146 ac_save_MAGIC_CMD="$MAGIC_CMD"
2147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2148 ac_dummy="/usr
/bin
:$PATH"
2149 for ac_dir in $ac_dummy; do
2150 test -z "$ac_dir" && ac_dir=.
2151 if test -f $ac_dir/${ac_tool_prefix}file; then
2152 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2153 if test -n "$file_magic_test_file"; then
2154 case $deplibs_check_method in
2156 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2158 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2159 egrep "$file_magic_regex" > /dev/null; then
2164 *** Warning: the command libtool uses to detect shared libraries,
2165 *** $file_magic_cmd, produces output that libtool cannot recognize.
2166 *** The result is that libtool may fail to recognize shared libraries
2167 *** as such. This will affect the creation of libtool libraries that
2168 *** depend on shared libraries, but programs linked with such libtool
2169 *** libraries will work regardless of this problem. Nevertheless, you
2170 *** may want to report the problem to your system manager and/or to
2171 *** bug-libtool@gnu.org
2181 MAGIC_CMD="$ac_save_MAGIC_CMD"
2186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2187 if test -n "$MAGIC_CMD"; then
2188 echo "$ac_t""$MAGIC_CMD" 1>&6
2190 echo "$ac_t""no
" 1>&6
2193 if test -z "$lt_cv_path_MAGIC_CMD"; then
2194 if test -n "$ac_tool_prefix"; then
2195 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2196 echo "configure
:2197: checking
for file" >&5
2197 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2198 echo $ac_n "(cached
) $ac_c" 1>&6
2202 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2208 ac_save_MAGIC_CMD="$MAGIC_CMD"
2209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2210 ac_dummy="/usr
/bin
:$PATH"
2211 for ac_dir in $ac_dummy; do
2212 test -z "$ac_dir" && ac_dir=.
2213 if test -f $ac_dir/file; then
2214 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2215 if test -n "$file_magic_test_file"; then
2216 case $deplibs_check_method in
2218 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2220 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2221 egrep "$file_magic_regex" > /dev/null; then
2226 *** Warning: the command libtool uses to detect shared libraries,
2227 *** $file_magic_cmd, produces output that libtool cannot recognize.
2228 *** The result is that libtool may fail to recognize shared libraries
2229 *** as such. This will affect the creation of libtool libraries that
2230 *** depend on shared libraries, but programs linked with such libtool
2231 *** libraries will work regardless of this problem. Nevertheless, you
2232 *** may want to report the problem to your system manager and/or to
2233 *** bug-libtool@gnu.org
2243 MAGIC_CMD="$ac_save_MAGIC_CMD"
2248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2249 if test -n "$MAGIC_CMD"; then
2250 echo "$ac_t""$MAGIC_CMD" 1>&6
2252 echo "$ac_t""no
" 1>&6
2264 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2266 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2267 echo "configure
:2268: checking
for $ac_word" >&5
2268 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2269 echo $ac_n "(cached
) $ac_c" 1>&6
2271 if test -n "$RANLIB"; then
2272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2276 for ac_dir in $ac_dummy; do
2277 test -z "$ac_dir" && ac_dir=.
2278 if test -f $ac_dir/$ac_word; then
2279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2286 RANLIB="$ac_cv_prog_RANLIB"
2287 if test -n "$RANLIB"; then
2288 echo "$ac_t""$RANLIB" 1>&6
2290 echo "$ac_t""no
" 1>&6
2294 if test -z "$ac_cv_prog_RANLIB"; then
2295 if test -n "$ac_tool_prefix"; then
2296 # Extract the first word of "ranlib
", so it can be a program name with args.
2297 set dummy ranlib; ac_word=$2
2298 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2299 echo "configure
:2300: checking
for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2301 echo $ac_n "(cached
) $ac_c" 1>&6
2303 if test -n "$RANLIB"; then
2304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2308 for ac_dir in $ac_dummy; do
2309 test -z "$ac_dir" && ac_dir=.
2310 if test -f $ac_dir/$ac_word; then
2311 ac_cv_prog_RANLIB="ranlib
"
2316 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2319 RANLIB="$ac_cv_prog_RANLIB"
2320 if test -n "$RANLIB"; then
2321 echo "$ac_t""$RANLIB" 1>&6
2323 echo "$ac_t""no
" 1>&6
2331 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2332 set dummy ${ac_tool_prefix}strip; ac_word=$2
2333 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2334 echo "configure
:2335: checking
for $ac_word" >&5
2335 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2336 echo $ac_n "(cached
) $ac_c" 1>&6
2338 if test -n "$STRIP"; then
2339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2343 for ac_dir in $ac_dummy; do
2344 test -z "$ac_dir" && ac_dir=.
2345 if test -f $ac_dir/$ac_word; then
2346 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2353 STRIP="$ac_cv_prog_STRIP"
2354 if test -n "$STRIP"; then
2355 echo "$ac_t""$STRIP" 1>&6
2357 echo "$ac_t""no
" 1>&6
2361 if test -z "$ac_cv_prog_STRIP"; then
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "strip
", so it can be a program name with args.
2364 set dummy strip; ac_word=$2
2365 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2366 echo "configure
:2367: checking
for $ac_word" >&5
2367 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2368 echo $ac_n "(cached
) $ac_c" 1>&6
2370 if test -n "$STRIP"; then
2371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2375 for ac_dir in $ac_dummy; do
2376 test -z "$ac_dir" && ac_dir=.
2377 if test -f $ac_dir/$ac_word; then
2378 ac_cv_prog_STRIP="strip
"
2383 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2386 STRIP="$ac_cv_prog_STRIP"
2387 if test -n "$STRIP"; then
2388 echo "$ac_t""$STRIP" 1>&6
2390 echo "$ac_t""no
" 1>&6
2399 # Check for any special flags to pass to ltconfig.
2400 libtool_flags="--cache-file=$cache_file"
2401 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2402 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2403 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2404 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2405 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2406 libtool_flags="$libtool_flags --enable-dlopen"
2408 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2409 if test "${enable_libtool_lock+set}" = set; then
2410 enableval="$enable_libtool_lock"
2414 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2415 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2417 # Check whether --with-pic or --without-pic was given.
2418 if test "${with_pic+set}" = set; then
2425 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2426 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2428 # Some flags need to be propagated to the compiler or linker for good
2432 # Find out which ABI we are using.
2433 echo '#line 2434 "configure
"' > conftest.$ac_ext
2434 if { (eval echo configure:2435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2435 case `/usr/bin/file conftest.$ac_objext` in
2451 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2452 SAVE_CFLAGS="$CFLAGS"
2453 CFLAGS="$CFLAGS -belf"
2454 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2455 echo "configure
:2456: checking whether the C compiler needs
-belf" >&5
2456 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2457 echo $ac_n "(cached
) $ac_c" 1>&6
2461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2464 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2465 cross_compiling=$ac_cv_prog_cc_cross
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure
"
2469 #include "confdefs.h
"
2475 if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2477 lt_cv_cc_needs_belf=yes
2479 echo "configure
: failed program was
:" >&5
2480 cat conftest.$ac_ext >&5
2482 lt_cv_cc_needs_belf=no
2486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2487 ac_cpp='$CPP $CPPFLAGS'
2488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2490 cross_compiling=$ac_cv_prog_cc_cross
2494 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2495 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2496 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2497 CFLAGS="$SAVE_CFLAGS"
2504 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2505 echo "configure
:2506: checking how to run the C
++ preprocessor
" >&5
2506 if test -z "$CXXCPP"; then
2507 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2508 echo $ac_n "(cached
) $ac_c" 1>&6
2511 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2512 ac_cpp='$CXXCPP $CPPFLAGS'
2513 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2514 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2515 cross_compiling=$ac_cv_prog_cxx_cross
2516 CXXCPP="${CXX-g++} -E"
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure
"
2519 #include "confdefs.h
"
2522 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2523 { (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2525 if test -z "$ac_err"; then
2529 echo "configure
: failed program was
:" >&5
2530 cat conftest.$ac_ext >&5
2535 ac_cv_prog_CXXCPP="$CXXCPP"
2537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2541 cross_compiling=$ac_cv_prog_cc_cross
2544 CXXCPP="$ac_cv_prog_CXXCPP"
2545 echo "$ac_t""$CXXCPP" 1>&6
2548 # Save cache, so that ltconfig can load it
2549 cat > confcache <<\EOF
2550 # This file is a shell script that caches the results of configure
2551 # tests run on this system so they can be shared between configure
2552 # scripts and configure runs. It is not useful on other systems.
2553 # If it contains results you don't want to keep, you may remove or edit it.
2555 # By default, configure uses ./config.cache as the cache file,
2556 # creating it if it does not exist already. You can give configure
2557 # the --cache-file=FILE option to use a different cache file; that is
2558 # what configure does when it calls configure scripts in
2559 # subdirectories, so they share the cache.
2560 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2561 # config.status only pays attention to the cache file if you give it the
2562 # --recheck option to rerun configure.
2565 # The following way of writing the cache mishandles newlines in values,
2566 # but we know of no workaround that is simple, portable, and efficient.
2567 # So, don't put newlines in cache variables' values.
2568 # Ultrix sh set writes to stderr and can't be redirected directly,
2569 # and sets the high bit in the cache file unless we assign to the vars.
2571 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2573 # `set' does not quote correctly, so add quotes (double-quote substitution
2574 # turns \\\\ into \\, and sed turns \\ into \).
2576 -e "s
/'/'\\\\''/g
" \
2577 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2580 # `set' quotes correctly as required by POSIX, so do not add quotes.
2581 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2584 if cmp -s $cache_file confcache; then
2587 if test -w $cache_file; then
2588 echo "updating cache
$cache_file"
2589 cat confcache > $cache_file
2591 echo "not updating unwritable cache
$cache_file"
2597 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2598 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2599 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2600 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2601 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2602 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2603 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2604 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2605 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2606 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2608 # Reload cache, that may have been modified by ltconfig
2609 if test -r "$cache_file"; then
2610 echo "loading cache
$cache_file"
2613 echo "creating cache
$cache_file"
2618 # This can be used to rebuild libtool when needed
2619 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2621 # Always use our own libtool.
2622 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2624 # Redirect the config.log output again, so that the ltconfig log is not
2625 # clobbered by the next message.
2626 exec 5>>./config.log
2630 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2632 lt_save_CFLAGS="$CFLAGS"
2633 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2634 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2635 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2636 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2637 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2638 deplibs_check_method="$deplibs_check_method" \
2639 file_magic_cmd="$file_magic_cmd" \
2640 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2641 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2642 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2644 CFLAGS="$lt_save_CFLAGS"
2646 # Redirect the config.log output again, so that the ltconfig log is not
2647 # clobbered by the next message.
2648 exec 5>>./config.log
2658 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2667 if test -d $srcdir/testsuite; then
2669 TESTSUBDIR_FALSE='#'
2675 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2676 if test "${enable_getenv_properties+set}" = set; then
2677 enableval="$enable_getenv_properties"
2682 if test -z "$enable_getenv_properties"; then
2683 enable_getenv_properties=${enable_getenv_properties_default-yes}
2685 if test "$enable_getenv_properties" = no; then
2686 cat >> confdefs.h <<\EOF
2687 #define DISABLE_GETENV_PROPERTIES 1
2692 if test -z "$enable_main_args"; then
2693 enable_main_args=${enable_main_args_default-yes}
2695 if test "$enable_main_args" = no; then
2696 cat >> confdefs.h <<\EOF
2697 #define DISABLE_MAIN_ARGS 1
2703 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2704 if test "${enable_hash_synchronization+set}" = set; then
2705 enableval="$enable_hash_synchronization"
2710 if test -z "$enable_hash_synchronization"; then
2711 enable_hash_synchronization=$enable_hash_synchronization_default
2714 if test "${slow_pthread_self}" = "yes"; then
2715 cat >> confdefs.h <<\EOF
2716 #define SLOW_PTHREAD_SELF 1
2724 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2725 if test "${enable_libgcj_debug+set}" = set; then
2726 enableval="$enable_libgcj_debug"
2727 if test "$enable_libgcj_debug" = yes; then
2728 cat >> confdefs.h <<\EOF
2737 # Check whether --enable-interpreter or --disable-interpreter was given.
2738 if test "${enable_interpreter+set}" = set; then
2739 enableval="$enable_interpreter"
2740 if test "$enable_interpreter" = yes; then
2741 # This can also be set in configure.host.
2742 libgcj_interpreter=yes
2743 elif test "$enable_interpreter" = no; then
2744 libgcj_interpreter=no
2749 if test "$libgcj_interpreter" = yes; then
2750 cat >> confdefs.h <<\EOF
2751 #define INTERPRETER 1
2755 INTERPRETER="$libgcj_interpreter"
2758 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2759 echo "configure
:2760: checking
for exception model to use
" >&5
2762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2763 ac_cpp='$CXXCPP $CPPFLAGS'
2764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2766 cross_compiling=$ac_cv_prog_cxx_cross
2768 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2769 if test "${enable_sjlj_exceptions+set}" = set; then
2770 enableval="$enable_sjlj_exceptions"
2773 cat > conftest.$ac_ext << EOF
2774 #line 2775 "configure
"
2783 old_CXXFLAGS="$CXXFLAGS"
2785 if { (eval echo configure:2786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2786 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2787 enable_sjlj_exceptions=yes
2788 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2789 enable_sjlj_exceptions=no
2792 CXXFLAGS="$old_CXXFLAGS"
2796 if test x$enable_sjlj_exceptions = xyes; then
2797 cat >> confdefs.h <<\EOF
2798 #define SJLJ_EXCEPTIONS 1
2801 ac_exception_model_name=sjlj
2802 elif test x$enable_sjlj_exceptions = xno; then
2803 ac_exception_model_name="call frame
"
2805 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2809 ac_cpp='$CPP $CPPFLAGS'
2810 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2811 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2812 cross_compiling=$ac_cv_prog_cc_cross
2814 echo "$ac_t""$ac_exception_model_name" 1>&6
2816 # If we are non using SJLJ exceptions, and this host does not have support
2817 # for unwinding from a signal handler, enable checked dereferences and divides.
2818 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2819 CHECKREFSPEC=-fcheck-references
2820 DIVIDESPEC=-fuse-divide-subroutine
2824 # Check whether --enable-java-net or --disable-java-net was given.
2825 if test "${enable_java_net+set}" = set; then
2826 enableval="$enable_java_net"
2831 if test -z "$enable_java_net"; then
2832 enable_java_net=${enable_java_net_default-yes}
2834 if test "$enable_java_net" = no; then
2835 cat >> confdefs.h <<\EOF
2836 #define DISABLE_JAVA_NET 1
2841 # Check whether --with-libffi or --without-libffi was given.
2842 if test "${with_libffi+set}" = set; then
2843 withval="$with_libffi"
2846 with_libffi=${with_libffi_default-yes}
2852 if test "$with_libffi" != no; then
2853 cat >> confdefs.h <<\EOF
2854 #define USE_LIBFFI 1
2857 LIBFFI=../libffi/libffi_convenience.la
2858 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2863 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2864 if test "${enable_jvmpi+set}" = set; then
2865 enableval="$enable_jvmpi"
2870 if test "$enable_jvmpi" != no; then
2871 cat >> confdefs.h <<\EOF
2872 #define ENABLE_JVMPI 1
2877 TARGET_ECOS=${PROCESS-"no"}
2878 # Check whether --with-ecos or --without-ecos was given.
2879 if test "${with_ecos+set}" = set; then
2880 withval="$with_ecos"
2881 TARGET_ECOS="$with_ecos"
2887 case "$TARGET_ECOS" in
2891 PLATFORMOBJS=win32.lo
2896 PLATFORMOBJS=posix.lo
2903 cat >> confdefs.h <<\EOF
2907 PLATFORMOBJS=posix.lo
2914 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
2915 echo "configure
:2916: checking how to run the C preprocessor
" >&5
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2920 if test -z "$CPP"; then
2921 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2922 echo $ac_n "(cached
) $ac_c" 1>&6
2924 # This must be in double quotes, not single quotes, because CPP may get
2925 # substituted into the Makefile and "${CC-cc}" will confuse make.
2927 # On the NeXT, cc -E runs the code through the compiler's parser,
2928 # not just through cpp.
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
2945 CPP="${CC-cc} -E -traditional-cpp"
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure
"
2948 #include "confdefs.h
"
2952 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2953 { (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2955 if test -z "$ac_err"; then
2959 echo "configure
: failed program was
:" >&5
2960 cat conftest.$ac_ext >&5
2962 CPP="${CC-cc} -nologo -E"
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure
"
2965 #include "confdefs.h
"
2969 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2970 { (eval echo configure:2971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2972 if test -z "$ac_err"; then
2976 echo "configure
: failed program was
:" >&5
2977 cat conftest.$ac_ext >&5
2986 ac_cv_prog_CPP="$CPP"
2988 CPP="$ac_cv_prog_CPP"
2990 ac_cv_prog_CPP="$CPP"
2992 echo "$ac_t""$CPP" 1>&6
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure
"
2996 #include "confdefs.h
"
2999 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3000 egrep "uint32_t
" >/dev/null 2>&1; then
3002 cat >> confdefs.h <<\EOF
3003 #define HAVE_INT32_DEFINED 1
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure
"
3011 #include "confdefs.h
"
3012 #include <inttypes.h>
3014 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3015 egrep "uint32_t
" >/dev/null 2>&1; then
3017 cat >> confdefs.h <<\EOF
3018 #define HAVE_INT32_DEFINED 1
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure
"
3026 #include "confdefs.h
"
3027 #include <sys/types.h>
3029 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3030 egrep "u_int32_t
" >/dev/null 2>&1; then
3032 cat >> confdefs.h <<\EOF
3033 #define HAVE_BSD_INT32_DEFINED 1
3039 cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure
"
3041 #include "confdefs.h
"
3042 #include <sys/config.h>
3044 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3045 egrep "u_int32_t
" >/dev/null 2>&1; then
3047 cat >> confdefs.h <<\EOF
3048 #define HAVE_BSD_INT32_DEFINED 1
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure
"
3058 #include "confdefs.h
"
3061 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3062 egrep "mktime
" >/dev/null 2>&1; then
3064 cat >> confdefs.h <<\EOF
3065 #define HAVE_MKTIME 1
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure
"
3073 #include "confdefs.h
"
3076 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3077 egrep "localtime
" >/dev/null 2>&1; then
3079 cat >> confdefs.h <<\EOF
3080 #define HAVE_LOCALTIME 1
3087 test -d java || mkdir java
3088 test -d java/io || mkdir java/io
3089 test -d gnu || mkdir gnu
3093 test -d java/lang || mkdir java/lang
3099 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3107 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs
-rpath `${PWDCMD-pwd}`/.libs
"
3110 # Check whether --with-system-zlib or --without-system-zlib was given.
3111 if test "${with_system_zlib+set}" = set; then
3112 withval="$with_system_zlib"
3123 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
3124 echo "configure
:3125: checking
for garbage collector to use
" >&5
3125 # Check whether --enable-java-gc or --disable-java-gc was given.
3126 if test "${enable_java_gc+set}" = set; then
3127 enableval="$enable_java_gc"
3143 echo "$ac_t""boehm
" 1>&6
3144 GCLIBS=../boehm-gc/libgcjgc_convenience.la
3145 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3146 JC1GCSPEC='-fuse-boehm-gc'
3147 GCTESTSPEC="-L`${PWDCMD-pwd}`/..
/boehm-gc
/.libs
-rpath `${PWDCMD-pwd}`/..
/boehm-gc
/.libs
"
3149 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3152 cat >> confdefs.h <<\EOF
3153 #define HAVE_BOEHM_GC 1
3158 echo "$ac_t""none
" 1>&6
3163 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
3176 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
3177 echo "configure
:3178: checking
for thread model used by GCC
" >&5
3178 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3179 echo "$ac_t""$THREADS" 1>&6
3189 cat >> confdefs.h <<\EOF
3190 #define LINUX_THREADS 1
3198 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3199 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
3202 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
3217 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3222 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3223 # merely adds pthread_* functions) but it does have a -pthread switch
3224 # which is required at link-time to select -lc_r *instead* of -lc.
3225 THREADLDFLAGS=-pthread
3226 # Don't set THREADSPEC here as might be expected since -pthread is
3227 # not processed when found within a spec file, it must come from
3228 # the command line. For now, the user must provide the -pthread
3229 # switch to link code compiled with gcj. In future, consider adding
3230 # support for weak references to pthread_* functions ala gthr.h API.
3231 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3234 # FreeBSD 5 implements a model much closer to other modern UNIX
3235 # which support threads. However, it still does not support
3237 THREADLDFLAGS=-pthread
3241 THREADLIBS=-lpthread
3242 THREADSPEC=-lpthread
3245 THREADOBJS=posix-threads.lo
3246 THREADH=posix-threads.h
3247 # MIT pthreads doesn't seem to have the mutexattr functions.
3248 # But for now we don't check for it. We just assume you aren't
3249 # using MIT pthreads.
3250 cat >> confdefs.h <<\EOF
3251 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3255 # If we're using the Boehm GC, then we happen to know that it
3256 # defines _REENTRANT, so we don't bother. Eww.
3257 if test "$GC" != boehm; then
3258 cat >> confdefs.h <<\EOF
3259 #define _REENTRANT 1
3263 cat >> confdefs.h <<\EOF
3264 #define _POSIX_PTHREAD_SEMANTICS 1
3270 THREADOBJS=win32-threads.lo
3271 THREADH=win32-threads.h
3275 THREADOBJS=no-threads.lo
3276 THREADH=no-threads.h
3287 if test -d sysdep; then true; else mkdir sysdep; fi
3291 # Hash synchronization is only useful with posix threads right now.
3292 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix
"; then
3293 HASH_SYNC_SPEC=-fhash-synchronization
3294 cat >> confdefs.h <<\EOF
3295 #define JV_HASH_SYNCHRONIZATION 1
3304 if test "$GCC" = yes; then
3316 # We're in the tree with gcc, and need to include some of its headers.
3317 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3319 # Figure out where generated headers like libgcj-config.h get installed.
3320 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
3321 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3322 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3323 tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
3327 if test "x
${with_newlib}" = "xyes
"; then
3328 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3329 # may not work correctly, because the compiler may not be able to
3332 # We assume newlib. This lets us hard-code the functions we know
3334 cat >> confdefs.h <<\EOF
3335 #define HAVE_MEMMOVE 1
3338 cat >> confdefs.h <<\EOF
3339 #define HAVE_MEMCPY 1
3342 cat >> confdefs.h <<\EOF
3343 #define HAVE_STRERROR 1
3346 cat >> confdefs.h <<\EOF
3350 cat >> confdefs.h <<\EOF
3351 #define HAVE_GMTIME_R 1
3354 cat >> confdefs.h <<\EOF
3355 #define HAVE_LOCALTIME_R 1
3358 cat >> confdefs.h <<\EOF
3359 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3362 cat >> confdefs.h <<\EOF
3363 #define HAVE_ALLOCA 1
3367 cat >> confdefs.h <<\EOF
3372 # If Canadian cross, then don't pick up tools from the build
3374 if test x"$build" != x"$with_cross_host" \
3375 && test x"$build" != x"$target"; then
3378 GCJ="${target_alias}-gcj"
3382 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3384 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3385 echo "configure
:3386: checking
for $ac_func" >&5
3386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3387 echo $ac_n "(cached
) $ac_c" 1>&6
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure
"
3391 #include "confdefs.h
"
3392 /* System header to define __stub macros and hopefully few prototypes,
3393 which can conflict with char $ac_func(); below. */
3395 /* Override any gcc2 internal prototype to avoid an error. */
3396 /* We use char because int might match the return type of a gcc2
3397 builtin and then its argument prototype would still apply. */
3402 /* The GNU C library defines this for functions which it implements
3403 to always fail with ENOSYS. Some functions are actually named
3404 something starting with __ and the normal name is an alias. */
3405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3413 if { (eval echo configure:3414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3415 eval "ac_cv_func_
$ac_func=yes"
3417 echo "configure
: failed program was
:" >&5
3418 cat conftest.$ac_ext >&5
3420 eval "ac_cv_func_
$ac_func=no
"
3425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3428 cat >> confdefs.h <<EOF
3429 #define $ac_tr_func 1
3433 echo "$ac_t""no
" 1>&6
3437 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3439 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3440 echo "configure
:3441: checking
for $ac_func" >&5
3441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3442 echo $ac_n "(cached
) $ac_c" 1>&6
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure
"
3446 #include "confdefs.h
"
3447 /* System header to define __stub macros and hopefully few prototypes,
3448 which can conflict with char $ac_func(); below. */
3450 /* Override any gcc2 internal prototype to avoid an error. */
3451 /* We use char because int might match the return type of a gcc2
3452 builtin and then its argument prototype would still apply. */
3457 /* The GNU C library defines this for functions which it implements
3458 to always fail with ENOSYS. Some functions are actually named
3459 something starting with __ and the normal name is an alias. */
3460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3468 if { (eval echo configure:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3470 eval "ac_cv_func_
$ac_func=yes"
3472 echo "configure
: failed program was
:" >&5
3473 cat conftest.$ac_ext >&5
3475 eval "ac_cv_func_
$ac_func=no
"
3480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3483 cat >> confdefs.h <<EOF
3484 #define $ac_tr_func 1
3488 echo "$ac_t""no
" 1>&6
3492 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3494 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3495 echo "configure
:3496: checking
for $ac_func" >&5
3496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3497 echo $ac_n "(cached
) $ac_c" 1>&6
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure
"
3501 #include "confdefs.h
"
3502 /* System header to define __stub macros and hopefully few prototypes,
3503 which can conflict with char $ac_func(); below. */
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3512 /* The GNU C library defines this for functions which it implements
3513 to always fail with ENOSYS. Some functions are actually named
3514 something starting with __ and the normal name is an alias. */
3515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3523 if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3525 eval "ac_cv_func_
$ac_func=yes"
3527 echo "configure
: failed program was
:" >&5
3528 cat conftest.$ac_ext >&5
3530 eval "ac_cv_func_
$ac_func=no
"
3535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3538 cat >> confdefs.h <<EOF
3539 #define $ac_tr_func 1
3543 echo "$ac_t""no
" 1>&6
3547 for ac_func in nl_langinfo setlocale
3549 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3550 echo "configure
:3551: checking
for $ac_func" >&5
3551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3552 echo $ac_n "(cached
) $ac_c" 1>&6
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure
"
3556 #include "confdefs.h
"
3557 /* System header to define __stub macros and hopefully few prototypes,
3558 which can conflict with char $ac_func(); below. */
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3567 /* The GNU C library defines this for functions which it implements
3568 to always fail with ENOSYS. Some functions are actually named
3569 something starting with __ and the normal name is an alias. */
3570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3578 if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3580 eval "ac_cv_func_
$ac_func=yes"
3582 echo "configure
: failed program was
:" >&5
3583 cat conftest.$ac_ext >&5
3585 eval "ac_cv_func_
$ac_func=no
"
3590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3593 cat >> confdefs.h <<EOF
3594 #define $ac_tr_func 1
3598 echo "$ac_t""no
" 1>&6
3602 for ac_func in inet_aton inet_addr
3604 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3605 echo "configure
:3606: checking
for $ac_func" >&5
3606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3607 echo $ac_n "(cached
) $ac_c" 1>&6
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure
"
3611 #include "confdefs.h
"
3612 /* System header to define __stub macros and hopefully few prototypes,
3613 which can conflict with char $ac_func(); below. */
3615 /* Override any gcc2 internal prototype to avoid an error. */
3616 /* We use char because int might match the return type of a gcc2
3617 builtin and then its argument prototype would still apply. */
3622 /* The GNU C library defines this for functions which it implements
3623 to always fail with ENOSYS. Some functions are actually named
3624 something starting with __ and the normal name is an alias. */
3625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3633 if { (eval echo configure:3634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3635 eval "ac_cv_func_
$ac_func=yes"
3637 echo "configure
: failed program was
:" >&5
3638 cat conftest.$ac_ext >&5
3640 eval "ac_cv_func_
$ac_func=no
"
3645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3646 echo "$ac_t""yes" 1>&6
3647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3648 cat >> confdefs.h <<EOF
3649 #define $ac_tr_func 1
3653 echo "$ac_t""no
" 1>&6
3657 for ac_func in inet_pton uname inet_ntoa
3659 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3660 echo "configure
:3661: checking
for $ac_func" >&5
3661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3662 echo $ac_n "(cached
) $ac_c" 1>&6
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure
"
3666 #include "confdefs.h
"
3667 /* System header to define __stub macros and hopefully few prototypes,
3668 which can conflict with char $ac_func(); below. */
3670 /* Override any gcc2 internal prototype to avoid an error. */
3671 /* We use char because int might match the return type of a gcc2
3672 builtin and then its argument prototype would still apply. */
3677 /* The GNU C library defines this for functions which it implements
3678 to always fail with ENOSYS. Some functions are actually named
3679 something starting with __ and the normal name is an alias. */
3680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3690 eval "ac_cv_func_
$ac_func=yes"
3692 echo "configure
: failed program was
:" >&5
3693 cat conftest.$ac_ext >&5
3695 eval "ac_cv_func_
$ac_func=no
"
3700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3701 echo "$ac_t""yes" 1>&6
3702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3703 cat >> confdefs.h <<EOF
3704 #define $ac_tr_func 1
3708 echo "$ac_t""no
" 1>&6
3712 for ac_func in fork execvp pipe sigaction
3714 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3715 echo "configure
:3716: checking
for $ac_func" >&5
3716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3717 echo $ac_n "(cached
) $ac_c" 1>&6
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure
"
3721 #include "confdefs.h
"
3722 /* System header to define __stub macros and hopefully few prototypes,
3723 which can conflict with char $ac_func(); below. */
3725 /* Override any gcc2 internal prototype to avoid an error. */
3726 /* We use char because int might match the return type of a gcc2
3727 builtin and then its argument prototype would still apply. */
3732 /* The GNU C library defines this for functions which it implements
3733 to always fail with ENOSYS. Some functions are actually named
3734 something starting with __ and the normal name is an alias. */
3735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745 eval "ac_cv_func_
$ac_func=yes"
3747 echo "configure
: failed program was
:" >&5
3748 cat conftest.$ac_ext >&5
3750 eval "ac_cv_func_
$ac_func=no
"
3755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3758 cat >> confdefs.h <<EOF
3759 #define $ac_tr_func 1
3763 echo "$ac_t""no
" 1>&6
3767 for ac_hdr in execinfo.h unistd.h dlfcn.h
3769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3770 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3771 echo "configure
:3772: checking
for $ac_hdr" >&5
3772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3773 echo $ac_n "(cached
) $ac_c" 1>&6
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure
"
3777 #include "confdefs.h
"
3780 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3781 { (eval echo configure:3782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3783 if test -z "$ac_err"; then
3785 eval "ac_cv_header_
$ac_safe=yes"
3788 echo "configure
: failed program was
:" >&5
3789 cat conftest.$ac_ext >&5
3791 eval "ac_cv_header_
$ac_safe=no
"
3795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3796 echo "$ac_t""yes" 1>&6
3797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3798 cat >> confdefs.h <<EOF
3799 #define $ac_tr_hdr 1
3803 echo "$ac_t""no
" 1>&6
3807 echo $ac_n "checking
for backtrace
""...
$ac_c" 1>&6
3808 echo "configure
:3809: checking
for backtrace
" >&5
3809 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
3810 echo $ac_n "(cached
) $ac_c" 1>&6
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure
"
3814 #include "confdefs.h
"
3815 /* System header to define __stub macros and hopefully few prototypes,
3816 which can conflict with char backtrace(); below. */
3818 /* Override any gcc2 internal prototype to avoid an error. */
3819 /* We use char because int might match the return type of a gcc2
3820 builtin and then its argument prototype would still apply. */
3825 /* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828 #if defined (__stub_backtrace) || defined (__stub___backtrace)
3836 if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3838 eval "ac_cv_func_backtrace
=yes"
3840 echo "configure
: failed program was
:" >&5
3841 cat conftest.$ac_ext >&5
3843 eval "ac_cv_func_backtrace
=no
"
3848 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3853 # Has broken backtrace()
3856 # Has broken backtrace()
3859 cat >> confdefs.h <<\EOF
3860 #define HAVE_BACKTRACE 1
3867 echo "$ac_t""no
" 1>&6
3871 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
3872 echo "configure
:3873: checking
for dladdr
in -ldl" >&5
3873 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3875 echo $ac_n "(cached
) $ac_c" 1>&6
3877 ac_save_LIBS="$LIBS"
3879 cat > conftest.$ac_ext <<EOF
3880 #line 3881 "configure
"
3881 #include "confdefs.h
"
3882 /* Override any gcc2 internal prototype to avoid an error. */
3883 /* We use char because int might match the return type of a gcc2
3884 builtin and then its argument prototype would still apply. */
3891 if { (eval echo configure:3892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3893 eval "ac_cv_lib_
$ac_lib_var=yes"
3895 echo "configure
: failed program was
:" >&5
3896 cat conftest.$ac_ext >&5
3898 eval "ac_cv_lib_
$ac_lib_var=no
"
3901 LIBS="$ac_save_LIBS"
3904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3905 echo "$ac_t""yes" 1>&6
3907 cat >> confdefs.h <<\EOF
3908 #define HAVE_DLADDR 1
3912 echo "$ac_t""no
" 1>&6
3915 if test x"$build" = x"$host"; then
3916 for ac_file in /proc/self/exe
3919 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3920 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
3921 echo "configure
:3922: checking
for $ac_file" >&5
3922 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3923 echo $ac_n "(cached
) $ac_c" 1>&6
3925 if test "$cross_compiling" = yes; then
3926 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
3928 if test -r $ac_file; then
3929 eval "ac_cv_file_
$ac_safe=yes"
3931 eval "ac_cv_file_
$ac_safe=no
"
3935 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3937 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3938 cat >> confdefs.h <<EOF
3939 #define $ac_tr_file 1
3942 cat >> confdefs.h <<\EOF
3943 #define HAVE_PROC_SELF_EXE 1
3947 echo "$ac_t""no
" 1>&6
3955 cat >> confdefs.h <<\EOF
3956 #define HAVE_PROC_SELF_EXE 1
3965 am_cv_lib_iconv_ldpath=
3966 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3967 if test "${with_libiconv_prefix+set}" = set; then
3968 withval="$with_libiconv_prefix"
3970 for dir in `echo "$withval" | tr : ' '`; do
3971 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
3972 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib
"; fi
3978 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
3979 echo "configure
:3980: checking
for iconv" >&5
3980 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3981 echo $ac_n "(cached
) $ac_c" 1>&6
3984 am_cv_func_iconv="no
, consider installing GNU libiconv
"
3986 cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure
"
3988 #include "confdefs.h
"
3992 iconv_t cd = iconv_open("","");
3993 iconv(cd,NULL,NULL,NULL,NULL);
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3999 am_cv_func_iconv=yes
4001 echo "configure
: failed program was
:" >&5
4002 cat conftest.$ac_ext >&5
4005 if test "$am_cv_func_iconv" != yes; then
4006 am_save_LIBS="$LIBS"
4007 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure
"
4010 #include "confdefs.h
"
4014 iconv_t cd = iconv_open("","");
4015 iconv(cd,NULL,NULL,NULL,NULL);
4019 if { (eval echo configure:4020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4022 am_cv_func_iconv=yes
4024 echo "configure
: failed program was
:" >&5
4025 cat conftest.$ac_ext >&5
4028 LIBS="$am_save_LIBS"
4033 echo "$ac_t""$am_cv_func_iconv" 1>&6
4034 if test "$am_cv_func_iconv" = yes; then
4035 cat >> confdefs.h <<\EOF
4036 #define HAVE_ICONV 1
4039 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
4040 echo "configure
:4041: checking
for iconv declaration
" >&5
4041 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4042 echo $ac_n "(cached
) $ac_c" 1>&6
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure
"
4047 #include "confdefs.h
"
4055 #if defined(__STDC__) || defined(__cplusplus)
4056 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4065 if { (eval echo configure:4066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4067 am_cv_proto_iconv_arg1=""
4069 echo "configure
: failed program was
:" >&5
4070 cat conftest.$ac_ext >&5
4072 am_cv_proto_iconv_arg1="const
"
4075 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
);"
4078 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4079 echo "$ac_t""$
{ac_t
:-
4080 }$am_cv_proto_iconv" 1>&6
4081 cat >> confdefs.h <<EOF
4082 #define ICONV_CONST $am_cv_proto_iconv_arg1
4087 if test "$am_cv_lib_iconv" = yes; then
4088 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
4092 if test $ac_cv_header_locale_h = yes; then
4093 echo $ac_n "checking
for LC_MESSAGES
""...
$ac_c" 1>&6
4094 echo "configure
:4095: checking
for LC_MESSAGES
" >&5
4095 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4096 echo $ac_n "(cached
) $ac_c" 1>&6
4098 cat > conftest.$ac_ext <<EOF
4099 #line 4100 "configure
"
4100 #include "confdefs.h
"
4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4108 am_cv_val_LC_MESSAGES=yes
4110 echo "configure
: failed program was
:" >&5
4111 cat conftest.$ac_ext >&5
4113 am_cv_val_LC_MESSAGES=no
4118 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4119 if test $am_cv_val_LC_MESSAGES = yes; then
4120 cat >> confdefs.h <<\EOF
4121 #define HAVE_LC_MESSAGES 1
4126 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
4127 echo "configure
:4128: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
4128 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4129 echo $ac_n "(cached
) $ac_c" 1>&6
4131 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure
"
4133 #include "confdefs.h
"
4134 #include <sys/types.h>
4137 struct tm *tp; tp->tm_sec;
4140 if { (eval echo configure:4141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4142 ac_cv_struct_tm=time.h
4144 echo "configure
: failed program was
:" >&5
4145 cat conftest.$ac_ext >&5
4147 ac_cv_struct_tm=sys/time.h
4152 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4153 if test $ac_cv_struct_tm = sys/time.h; then
4154 cat >> confdefs.h <<\EOF
4155 #define TM_IN_SYS_TIME 1
4160 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
4161 echo "configure
:4162: checking
for tm_zone
in struct tm
" >&5
4162 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4163 echo $ac_n "(cached
) $ac_c" 1>&6
4165 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure
"
4167 #include "confdefs.h
"
4168 #include <sys/types.h>
4169 #include <$ac_cv_struct_tm>
4171 struct tm tm; tm.tm_zone;
4174 if { (eval echo configure:4175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4176 ac_cv_struct_tm_zone=yes
4178 echo "configure
: failed program was
:" >&5
4179 cat conftest.$ac_ext >&5
4181 ac_cv_struct_tm_zone=no
4186 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4187 if test "$ac_cv_struct_tm_zone" = yes; then
4188 cat >> confdefs.h <<\EOF
4189 #define HAVE_TM_ZONE 1
4193 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
4194 echo "configure
:4195: checking
for tzname
" >&5
4195 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4196 echo $ac_n "(cached
) $ac_c" 1>&6
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure
"
4200 #include "confdefs.h
"
4202 #ifndef tzname /* For SGI. */
4203 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4209 if { (eval echo configure:4210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4211 ac_cv_var_tzname=yes
4213 echo "configure
: failed program was
:" >&5
4214 cat conftest.$ac_ext >&5
4221 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4222 if test $ac_cv_var_tzname = yes; then
4223 cat >> confdefs.h <<\EOF
4224 #define HAVE_TZNAME 1
4231 for ac_func in gethostbyname_r
4233 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4234 echo "configure
:4235: checking
for $ac_func" >&5
4235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4236 echo $ac_n "(cached
) $ac_c" 1>&6
4238 cat > conftest.$ac_ext <<EOF
4239 #line 4240 "configure
"
4240 #include "confdefs.h
"
4241 /* System header to define __stub macros and hopefully few prototypes,
4242 which can conflict with char $ac_func(); below. */
4244 /* Override any gcc2 internal prototype to avoid an error. */
4245 /* We use char because int might match the return type of a gcc2
4246 builtin and then its argument prototype would still apply. */
4251 /* The GNU C library defines this for functions which it implements
4252 to always fail with ENOSYS. Some functions are actually named
4253 something starting with __ and the normal name is an alias. */
4254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4264 eval "ac_cv_func_
$ac_func=yes"
4266 echo "configure
: failed program was
:" >&5
4267 cat conftest.$ac_ext >&5
4269 eval "ac_cv_func_
$ac_func=no
"
4274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4277 cat >> confdefs.h <<EOF
4278 #define $ac_tr_func 1
4281 cat >> confdefs.h <<\EOF
4282 #define HAVE_GETHOSTBYNAME_R 1
4285 # There are two different kinds of gethostbyname_r.
4286 # We look for the one that returns `int'.
4287 # Hopefully this check is robust enough.
4288 cat > conftest.$ac_ext <<EOF
4289 #line 4290 "configure
"
4290 #include "confdefs.h
"
4293 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4294 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
4297 cat >> confdefs.h <<\EOF
4298 #define GETHOSTBYNAME_R_RETURNS_INT 1
4306 *" -D_REENTRANT "*) ;;
4308 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
4309 echo "configure
:4310: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
4310 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4311 echo $ac_n "(cached
) $ac_c" 1>&6
4315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4316 ac_cpp='$CXXCPP $CPPFLAGS'
4317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4319 cross_compiling=$ac_cv_prog_cxx_cross
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure
"
4323 #include "confdefs.h
"
4326 gethostbyname_r("", 0, 0);
4329 if { (eval echo configure:4330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4331 libjava_cv_gethostbyname_r_needs_reentrant=no
4333 echo "configure
: failed program was
:" >&5
4334 cat conftest.$ac_ext >&5
4336 CPPFLAGS_SAVE="$CPPFLAGS"
4337 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure
"
4340 #include "confdefs.h
"
4343 gethostbyname_r("", 0, 0);
4346 if { (eval echo configure:4347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4348 libjava_cv_gethostbyname_r_needs_reentrant=yes
4350 echo "configure
: failed program was
:" >&5
4351 cat conftest.$ac_ext >&5
4353 libjava_cv_gethostbyname_r_needs_reentrant=fail
4356 CPPFLAGS="$CPPFLAGS_SAVE"
4361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4362 ac_cpp='$CPP $CPPFLAGS'
4363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4365 cross_compiling=$ac_cv_prog_cc_cross
4370 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4371 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4372 cat >> confdefs.h <<\EOF
4373 #define _REENTRANT 1
4380 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
4381 echo "configure
:4382: checking
for struct hostent_data
" >&5
4382 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4383 echo $ac_n "(cached
) $ac_c" 1>&6
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure
"
4387 #include "confdefs.h
"
4389 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4390 # define _REENTRANT 1
4394 struct hostent_data data;
4397 if { (eval echo configure:4398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4399 libjava_cv_struct_hostent_data=yes
4401 echo "configure
: failed program was
:" >&5
4402 cat conftest.$ac_ext >&5
4404 libjava_cv_struct_hostent_data=no
4409 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4410 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
4411 cat >> confdefs.h <<\EOF
4412 #define HAVE_STRUCT_HOSTENT_DATA 1
4418 echo "$ac_t""no
" 1>&6
4423 # FIXME: libjava source code expects to find a prototype for
4424 # gethostbyaddr_r in netdb.h. The outer check ensures that
4425 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4426 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4427 # linkage check is enough, yet C++ code requires proper prototypes.)
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure
"
4430 #include "confdefs.h
"
4433 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4434 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
4437 for ac_func in gethostbyaddr_r
4439 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4440 echo "configure
:4441: checking
for $ac_func" >&5
4441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4442 echo $ac_n "(cached
) $ac_c" 1>&6
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure
"
4446 #include "confdefs.h
"
4447 /* System header to define __stub macros and hopefully few prototypes,
4448 which can conflict with char $ac_func(); below. */
4450 /* Override any gcc2 internal prototype to avoid an error. */
4451 /* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4457 /* The GNU C library defines this for functions which it implements
4458 to always fail with ENOSYS. Some functions are actually named
4459 something starting with __ and the normal name is an alias. */
4460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4468 if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4470 eval "ac_cv_func_
$ac_func=yes"
4472 echo "configure
: failed program was
:" >&5
4473 cat conftest.$ac_ext >&5
4475 eval "ac_cv_func_
$ac_func=no
"
4480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4483 cat >> confdefs.h <<EOF
4484 #define $ac_tr_func 1
4487 cat >> confdefs.h <<\EOF
4488 #define HAVE_GETHOSTBYADDR_R 1
4491 # There are two different kinds of gethostbyaddr_r.
4492 # We look for the one that returns `int'.
4493 # Hopefully this check is robust enough.
4494 cat > conftest.$ac_ext <<EOF
4495 #line 4496 "configure
"
4496 #include "confdefs.h
"
4499 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4500 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
4503 cat >> confdefs.h <<\EOF
4504 #define GETHOSTBYADDR_R_RETURNS_INT 1
4511 echo "$ac_t""no
" 1>&6
4519 for ac_func in gethostname
4521 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4522 echo "configure
:4523: checking
for $ac_func" >&5
4523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4524 echo $ac_n "(cached
) $ac_c" 1>&6
4526 cat > conftest.$ac_ext <<EOF
4527 #line 4528 "configure
"
4528 #include "confdefs.h
"
4529 /* System header to define __stub macros and hopefully few prototypes,
4530 which can conflict with char $ac_func(); below. */
4532 /* Override any gcc2 internal prototype to avoid an error. */
4533 /* We use char because int might match the return type of a gcc2
4534 builtin and then its argument prototype would still apply. */
4539 /* The GNU C library defines this for functions which it implements
4540 to always fail with ENOSYS. Some functions are actually named
4541 something starting with __ and the normal name is an alias. */
4542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 eval "ac_cv_func_
$ac_func=yes"
4554 echo "configure
: failed program was
:" >&5
4555 cat conftest.$ac_ext >&5
4557 eval "ac_cv_func_
$ac_func=no
"
4562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4565 cat >> confdefs.h <<EOF
4566 #define $ac_tr_func 1
4569 cat >> confdefs.h <<\EOF
4570 #define HAVE_GETHOSTNAME 1
4573 cat > conftest.$ac_ext <<EOF
4574 #line 4575 "configure
"
4575 #include "confdefs.h
"
4578 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4579 egrep "gethostname
" >/dev/null 2>&1; then
4582 cat >> confdefs.h <<\EOF
4583 #define HAVE_GETHOSTNAME_DECL 1
4590 echo "$ac_t""no
" 1>&6
4595 # Look for these functions in the thread library, but only bother
4596 # if using POSIX threads.
4597 if test "$THREADS" = posix; then
4599 LIBS="$LIBS $THREADLIBS"
4600 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4602 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4604 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4605 echo "configure
:4606: checking
for $ac_func" >&5
4606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4607 echo $ac_n "(cached
) $ac_c" 1>&6
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure
"
4611 #include "confdefs.h
"
4612 /* System header to define __stub macros and hopefully few prototypes,
4613 which can conflict with char $ac_func(); below. */
4615 /* Override any gcc2 internal prototype to avoid an error. */
4616 /* We use char because int might match the return type of a gcc2
4617 builtin and then its argument prototype would still apply. */
4622 /* The GNU C library defines this for functions which it implements
4623 to always fail with ENOSYS. Some functions are actually named
4624 something starting with __ and the normal name is an alias. */
4625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4635 eval "ac_cv_func_
$ac_func=yes"
4637 echo "configure
: failed program was
:" >&5
4638 cat conftest.$ac_ext >&5
4640 eval "ac_cv_func_
$ac_func=no
"
4645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4648 cat >> confdefs.h <<EOF
4649 #define $ac_tr_func 1
4653 echo "$ac_t""no
" 1>&6
4658 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4659 # Solaris 7 the name librt is preferred.
4660 for ac_func in sched_yield
4662 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4663 echo "configure
:4664: checking
for $ac_func" >&5
4664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4665 echo $ac_n "(cached
) $ac_c" 1>&6
4667 cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure
"
4669 #include "confdefs.h
"
4670 /* System header to define __stub macros and hopefully few prototypes,
4671 which can conflict with char $ac_func(); below. */
4673 /* Override any gcc2 internal prototype to avoid an error. */
4674 /* We use char because int might match the return type of a gcc2
4675 builtin and then its argument prototype would still apply. */
4680 /* The GNU C library defines this for functions which it implements
4681 to always fail with ENOSYS. Some functions are actually named
4682 something starting with __ and the normal name is an alias. */
4683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 eval "ac_cv_func_
$ac_func=yes"
4695 echo "configure
: failed program was
:" >&5
4696 cat conftest.$ac_ext >&5
4698 eval "ac_cv_func_
$ac_func=no
"
4703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4704 echo "$ac_t""yes" 1>&6
4705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4706 cat >> confdefs.h <<EOF
4707 #define $ac_tr_func 1
4711 echo "$ac_t""no
" 1>&6
4712 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
4713 echo "configure
:4714: checking
for sched_yield
in -lrt" >&5
4714 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4716 echo $ac_n "(cached
) $ac_c" 1>&6
4718 ac_save_LIBS="$LIBS"
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure
"
4722 #include "confdefs.h
"
4723 /* Override any gcc2 internal prototype to avoid an error. */
4724 /* We use char because int might match the return type of a gcc2
4725 builtin and then its argument prototype would still apply. */
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4734 eval "ac_cv_lib_
$ac_lib_var=yes"
4736 echo "configure
: failed program was
:" >&5
4737 cat conftest.$ac_ext >&5
4739 eval "ac_cv_lib_
$ac_lib_var=no
"
4742 LIBS="$ac_save_LIBS"
4745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4746 echo "$ac_t""yes" 1>&6
4748 cat >> confdefs.h <<\EOF
4749 #define HAVE_SCHED_YIELD 1
4752 THREADLIBS="$THREADLIBS -lrt"
4753 THREADSPEC="$THREADSPEC -lrt"
4755 echo "$ac_t""no
" 1>&6
4757 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
4758 echo "configure
:4759: checking
for sched_yield
in -lposix4" >&5
4759 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4761 echo $ac_n "(cached
) $ac_c" 1>&6
4763 ac_save_LIBS="$LIBS"
4764 LIBS="-lposix4 $LIBS"
4765 cat > conftest.$ac_ext <<EOF
4766 #line 4767 "configure
"
4767 #include "confdefs.h
"
4768 /* Override any gcc2 internal prototype to avoid an error. */
4769 /* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4777 if { (eval echo configure:4778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4779 eval "ac_cv_lib_
$ac_lib_var=yes"
4781 echo "configure
: failed program was
:" >&5
4782 cat conftest.$ac_ext >&5
4784 eval "ac_cv_lib_
$ac_lib_var=no
"
4787 LIBS="$ac_save_LIBS"
4790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4791 echo "$ac_t""yes" 1>&6
4793 cat >> confdefs.h <<\EOF
4794 #define HAVE_SCHED_YIELD 1
4797 THREADLIBS="$THREADLIBS -lposix4"
4798 THREADSPEC="$THREADSPEC -lposix4"
4800 echo "$ac_t""no
" 1>&6
4810 # We can save a little space at runtime if the mutex has m_count
4811 # or __m_count. This is a nice hack for Linux.
4812 cat > conftest.$ac_ext <<EOF
4813 #line 4814 "configure
"
4814 #include "confdefs.h
"
4815 #include <pthread.h>
4818 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4822 if { (eval echo configure:4823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4824 cat >> confdefs.h <<\EOF
4825 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4829 echo "configure
: failed program was
:" >&5
4830 cat conftest.$ac_ext >&5
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure
"
4835 #include "confdefs.h
"
4836 #include <pthread.h>
4839 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4843 if { (eval echo configure:4844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4845 cat >> confdefs.h <<\EOF
4846 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4850 echo "configure
: failed program was
:" >&5
4851 cat conftest.$ac_ext >&5
4858 # We require a way to get the time.
4860 for ac_func in gettimeofday time ftime
4862 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4863 echo "configure
:4864: checking
for $ac_func" >&5
4864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4865 echo $ac_n "(cached
) $ac_c" 1>&6
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure
"
4869 #include "confdefs.h
"
4870 /* System header to define __stub macros and hopefully few prototypes,
4871 which can conflict with char $ac_func(); below. */
4873 /* Override any gcc2 internal prototype to avoid an error. */
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4880 /* The GNU C library defines this for functions which it implements
4881 to always fail with ENOSYS. Some functions are actually named
4882 something starting with __ and the normal name is an alias. */
4883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4891 if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4893 eval "ac_cv_func_
$ac_func=yes"
4895 echo "configure
: failed program was
:" >&5
4896 cat conftest.$ac_ext >&5
4898 eval "ac_cv_func_
$ac_func=no
"
4903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4904 echo "$ac_t""yes" 1>&6
4905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4906 cat >> confdefs.h <<EOF
4907 #define $ac_tr_func 1
4911 echo "$ac_t""no
" 1>&6
4915 if test "$time_found" = no; then
4916 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
4919 for ac_func in memmove
4921 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4922 echo "configure
:4923: checking
for $ac_func" >&5
4923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4924 echo $ac_n "(cached
) $ac_c" 1>&6
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure
"
4928 #include "confdefs.h
"
4929 /* System header to define __stub macros and hopefully few prototypes,
4930 which can conflict with char $ac_func(); below. */
4932 /* Override any gcc2 internal prototype to avoid an error. */
4933 /* We use char because int might match the return type of a gcc2
4934 builtin and then its argument prototype would still apply. */
4939 /* The GNU C library defines this for functions which it implements
4940 to always fail with ENOSYS. Some functions are actually named
4941 something starting with __ and the normal name is an alias. */
4942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4950 if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4952 eval "ac_cv_func_
$ac_func=yes"
4954 echo "configure
: failed program was
:" >&5
4955 cat conftest.$ac_ext >&5
4957 eval "ac_cv_func_
$ac_func=no
"
4962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4963 echo "$ac_t""yes" 1>&6
4964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4965 cat >> confdefs.h <<EOF
4966 #define $ac_tr_func 1
4970 echo "$ac_t""no
" 1>&6
4975 # We require memcpy.
4977 for ac_func in memcpy
4979 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4980 echo "configure
:4981: checking
for $ac_func" >&5
4981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4982 echo $ac_n "(cached
) $ac_c" 1>&6
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure
"
4986 #include "confdefs.h
"
4987 /* System header to define __stub macros and hopefully few prototypes,
4988 which can conflict with char $ac_func(); below. */
4990 /* Override any gcc2 internal prototype to avoid an error. */
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4997 /* The GNU C library defines this for functions which it implements
4998 to always fail with ENOSYS. Some functions are actually named
4999 something starting with __ and the normal name is an alias. */
5000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5008 if { (eval echo configure:5009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5010 eval "ac_cv_func_
$ac_func=yes"
5012 echo "configure
: failed program was
:" >&5
5013 cat conftest.$ac_ext >&5
5015 eval "ac_cv_func_
$ac_func=no
"
5020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5021 echo "$ac_t""yes" 1>&6
5022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5023 cat >> confdefs.h <<EOF
5024 #define $ac_tr_func 1
5028 echo "$ac_t""no
" 1>&6
5032 if test "$memcpy_found" = no; then
5033 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
5036 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
5037 echo "configure
:5038: checking
for dlopen
in -ldl" >&5
5038 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5039 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5040 echo $ac_n "(cached
) $ac_c" 1>&6
5042 ac_save_LIBS="$LIBS"
5044 cat > conftest.$ac_ext <<EOF
5045 #line 5046 "configure
"
5046 #include "confdefs.h
"
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
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
5072 cat >> confdefs.h <<\EOF
5073 #define HAVE_DLOPEN 1
5077 echo "$ac_t""no
" 1>&6
5081 # Some library-finding code we stole from Tcl.
5082 #--------------------------------------------------------------------
5083 # Check for the existence of the -lsocket and -lnsl libraries.
5084 # The order here is important, so that they end up in the right
5085 # order in the command line generated by make. Here are some
5086 # special considerations:
5087 # 1. Use "connect
" and "accept
" to check for -lsocket, and
5088 # "gethostbyname
" to check for -lnsl.
5089 # 2. Use each function name only once: can't redo a check because
5090 # autoconf caches the results of the last check and won't redo it.
5091 # 3. Use -lnsl and -lsocket only if they supply procedures that
5092 # aren't already present in the normal libraries. This is because
5093 # IRIX 5.2 has libraries, but they aren't needed and they're
5094 # bogus: they goof up name resolution if used.
5095 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
5096 # To get around this problem, check for both libraries together
5097 # if -lsocket doesn't work by itself.
5098 #--------------------------------------------------------------------
5100 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
5101 echo "configure
:5102: checking
for socket libraries
" >&5
5102 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
5103 echo $ac_n "(cached
) $ac_c" 1>&6
5107 unset ac_cv_func_connect
5108 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
5109 echo "configure
:5110: checking
for connect
" >&5
5110 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5111 echo $ac_n "(cached
) $ac_c" 1>&6
5113 cat > conftest.$ac_ext <<EOF
5114 #line 5115 "configure
"
5115 #include "confdefs.h
"
5116 /* System header to define __stub macros and hopefully few prototypes,
5117 which can conflict with char connect(); below. */
5119 /* Override any gcc2 internal prototype to avoid an error. */
5120 /* We use char because int might match the return type of a gcc2
5121 builtin and then its argument prototype would still apply. */
5126 /* The GNU C library defines this for functions which it implements
5127 to always fail with ENOSYS. Some functions are actually named
5128 something starting with __ and the normal name is an alias. */
5129 #if defined (__stub_connect) || defined (__stub___connect)
5137 if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5139 eval "ac_cv_func_connect
=yes"
5141 echo "configure
: failed program was
:" >&5
5142 cat conftest.$ac_ext >&5
5144 eval "ac_cv_func_connect
=no
"
5149 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5150 echo "$ac_t""yes" 1>&6
5153 echo "$ac_t""no
" 1>&6
5157 if test "$gcj_checkSocket" = 1; then
5158 unset ac_cv_func_connect
5159 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
5160 echo "configure
:5161: checking
for main
in -lsocket" >&5
5161 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5163 echo $ac_n "(cached
) $ac_c" 1>&6
5165 ac_save_LIBS="$LIBS"
5166 LIBS="-lsocket $LIBS"
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure
"
5169 #include "confdefs.h
"
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5177 eval "ac_cv_lib_
$ac_lib_var=yes"
5179 echo "configure
: failed program was
:" >&5
5180 cat conftest.$ac_ext >&5
5182 eval "ac_cv_lib_
$ac_lib_var=no
"
5185 LIBS="$ac_save_LIBS"
5188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5189 echo "$ac_t""yes" 1>&6
5190 gcj_cv_lib_sockets="-lsocket"
5192 echo "$ac_t""no
" 1>&6
5197 if test "$gcj_checkBoth" = 1; then
5199 LIBS="$LIBS -lsocket -lnsl"
5200 unset ac_cv_func_accept
5201 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
5202 echo "configure
:5203: checking
for accept
" >&5
5203 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5204 echo $ac_n "(cached
) $ac_c" 1>&6
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure
"
5208 #include "confdefs.h
"
5209 /* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char accept(); below. */
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5219 /* The GNU C library defines this for functions which it implements
5220 to always fail with ENOSYS. Some functions are actually named
5221 something starting with __ and the normal name is an alias. */
5222 #if defined (__stub_accept) || defined (__stub___accept)
5230 if { (eval echo configure:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5232 eval "ac_cv_func_accept
=yes"
5234 echo "configure
: failed program was
:" >&5
5235 cat conftest.$ac_ext >&5
5237 eval "ac_cv_func_accept
=no
"
5242 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5243 echo "$ac_t""yes" 1>&6
5245 gcj_cv_lib_sockets="-lsocket -lnsl"
5247 echo "$ac_t""no
" 1>&6
5250 unset ac_cv_func_accept
5253 unset ac_cv_func_gethostbyname
5255 LIBS="$LIBS $gcj_cv_lib_sockets"
5256 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
5257 echo "configure
:5258: checking
for gethostbyname
" >&5
5258 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5259 echo $ac_n "(cached
) $ac_c" 1>&6
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure
"
5263 #include "confdefs.h
"
5264 /* System header to define __stub macros and hopefully few prototypes,
5265 which can conflict with char gethostbyname(); below. */
5267 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5270 char gethostbyname();
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5287 eval "ac_cv_func_gethostbyname
=yes"
5289 echo "configure
: failed program was
:" >&5
5290 cat conftest.$ac_ext >&5
5292 eval "ac_cv_func_gethostbyname
=no
"
5297 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5301 echo "$ac_t""no
" 1>&6
5302 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
5303 echo "configure
:5304: checking
for main
in -lnsl" >&5
5304 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5306 echo $ac_n "(cached
) $ac_c" 1>&6
5308 ac_save_LIBS="$LIBS"
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure
"
5312 #include "confdefs.h
"
5318 if { (eval echo configure:5319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5320 eval "ac_cv_lib_
$ac_lib_var=yes"
5322 echo "configure
: failed program was
:" >&5
5323 cat conftest.$ac_ext >&5
5325 eval "ac_cv_lib_
$ac_lib_var=no
"
5328 LIBS="$ac_save_LIBS"
5331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5332 echo "$ac_t""yes" 1>&6
5333 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5335 echo "$ac_t""no
" 1>&6
5340 unset ac_cv_func_gethostbyname
5345 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5346 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5348 if test "$with_system_zlib" = yes; then
5349 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
5350 echo "configure
:5351: checking
for deflate
in -lz" >&5
5351 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5353 echo $ac_n "(cached
) $ac_c" 1>&6
5355 ac_save_LIBS="$LIBS"
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure
"
5359 #include "confdefs.h
"
5360 /* Override any gcc2 internal prototype to avoid an error. */
5361 /* We use char because int might match the return type of a gcc2
5362 builtin and then its argument prototype would still apply. */
5369 if { (eval echo configure:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5371 eval "ac_cv_lib_
$ac_lib_var=yes"
5373 echo "configure
: failed program was
:" >&5
5374 cat conftest.$ac_ext >&5
5376 eval "ac_cv_lib_
$ac_lib_var=no
"
5379 LIBS="$ac_save_LIBS"
5382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5383 echo "$ac_t""yes" 1>&6
5386 echo "$ac_t""no
" 1>&6
5392 # On Solaris, and maybe other architectures, the Boehm collector
5394 if test "$GC" = boehm; then
5395 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
5396 echo "configure
:5397: checking
for main
in -ldl" >&5
5397 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5399 echo $ac_n "(cached
) $ac_c" 1>&6
5401 ac_save_LIBS="$LIBS"
5403 cat > conftest.$ac_ext <<EOF
5404 #line 5405 "configure
"
5405 #include "confdefs.h
"
5411 if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5413 eval "ac_cv_lib_
$ac_lib_var=yes"
5415 echo "configure
: failed program was
:" >&5
5416 cat conftest.$ac_ext >&5
5418 eval "ac_cv_lib_
$ac_lib_var=no
"
5421 LIBS="$ac_save_LIBS"
5424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5425 echo "$ac_t""yes" 1>&6
5426 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5428 echo "$ac_t""no
" 1>&6
5433 if test -z "${with_multisubdir}"; then
5437 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5440 if test -x "${builddotdot}/..
/..
/gcc
/gcj
"; then
5441 dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
5442 GCJ="$dir/gcj
-B`${PWDCMD-pwd}`/ -B$dir/"
5446 GCJ="gcj
-B`${PWDCMD-pwd}`/"
5450 # Create it, so that compile/link tests don't fail
5451 test -f libgcj.spec || touch libgcj.spec
5453 # We must search the source tree for java.lang, since we still don't
5454 # have libgcj.jar nor java/lang/*.class
5455 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5456 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
5458 # Since some classes depend on this one, we need its source available
5459 # before we can do any GCJ compilation test :-(
5460 if test ! -f gnu/classpath/Configuration.java; then
5461 test -d gnu || mkdir gnu
5462 test -d gnu/classpath || mkdir gnu/classpath
5463 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5464 < $srcdir/gnu/classpath/Configuration.java.in \
5465 > gnu/classpath/Configuration.java
5466 # We do not want to redirect the output of the grep below to /dev/null,
5467 # but we add /dev/null to the input list so that grep will print the
5468 # filename of Configuration.java in case it finds any matches.
5469 if grep @ gnu/classpath/Configuration.java /dev/null; then
5470 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
5474 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
5475 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5476 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5477 echo "configure
:5478: checking
for $ac_word" >&5
5478 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5479 echo $ac_n "(cached
) $ac_c" 1>&6
5481 if test -n "$GCJ"; then
5482 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5486 for ac_dir in $ac_dummy; do
5487 test -z "$ac_dir" && ac_dir=.
5488 if test -f $ac_dir/$ac_word; then
5489 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
5496 GCJ="$ac_cv_prog_GCJ"
5497 if test -n "$GCJ"; then
5498 echo "$ac_t""$GCJ" 1>&6
5500 echo "$ac_t""no
" 1>&6
5504 if test -z "$ac_cv_prog_GCJ"; then
5505 if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "gcj
", so it can be a program name with args.
5507 set dummy gcj; ac_word=$2
5508 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5509 echo "configure
:5510: checking
for $ac_word" >&5
5510 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5511 echo $ac_n "(cached
) $ac_c" 1>&6
5513 if test -n "$GCJ"; then
5514 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5518 for ac_dir in $ac_dummy; do
5519 test -z "$ac_dir" && ac_dir=.
5520 if test -f $ac_dir/$ac_word; then
5521 ac_cv_prog_GCJ="gcj
"
5526 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
5529 GCJ="$ac_cv_prog_GCJ"
5530 if test -n "$GCJ"; then
5531 echo "$ac_t""$GCJ" 1>&6
5533 echo "$ac_t""no
" 1>&6
5541 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5545 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
5547 lt_save_CFLAGS="$CFLAGS"
5548 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5549 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5550 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5551 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5552 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5553 deplibs_check_method="$deplibs_check_method" \
5554 file_magic_cmd="$file_magic_cmd" \
5555 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5556 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5557 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
5559 CFLAGS="$lt_save_CFLAGS"
5561 # Redirect the config.log output again, so that the ltconfig log is not
5562 # clobbered by the next message.
5563 exec 5>>./config.log
5568 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5570 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
5571 echo "configure
:5572: checking size of void
*" >&5
5572 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5573 echo $ac_n "(cached
) $ac_c" 1>&6
5575 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5576 cat > conftest.$ac_ext <<EOF
5577 #line 5578 "configure
"
5578 #include "confdefs.h
"
5579 #include "confdefs.h
"
5580 #include <sys/types.h>
5584 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5587 if { (eval echo configure:5588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5589 ac_cv_sizeof_void_p=$ac_size
5591 echo "configure
: failed program was
:" >&5
5592 cat conftest.$ac_ext >&5
5595 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5600 if test x$ac_cv_sizeof_void_p = x ; then
5601 { echo "configure
: error
: cannot determine a size
for void
*" 1>&2; exit 1; }
5603 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5604 cat >> confdefs.h <<EOF
5605 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5614 if test -z "$ZLIBSPEC"; then
5615 # Use zlib from the GCC tree.
5616 ZINCS='-I$(top_srcdir)/../zlib'
5617 ZLIBS=../zlib/libzgcj_convenience.la
5620 SYS_ZLIBS="$ZLIBSPEC"
5631 if test "$CANADIAN" = yes; then
5640 if test "$NULL_TARGET" = yes; then
5642 NULL_TARGET_FALSE='#'
5644 NULL_TARGET_TRUE='#'
5649 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5658 if test -z "$with_cross_host"; then
5660 USE_LIBDIR_FALSE='#'
5667 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5668 NEEDS_DATA_START_TRUE=
5669 NEEDS_DATA_START_FALSE='#'
5671 NEEDS_DATA_START_TRUE='#'
5672 NEEDS_DATA_START_FALSE=
5676 # Determine gcj version number.
5678 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
5680 GCJVERSION=$gcjversion
5682 cat >> confdefs.h <<EOF
5683 #define GCJVERSION "$GCJVERSION"
5687 echo $ac_n "checking
for g
++ -ffloat-store bug
""...
$ac_c" 1>&6
5688 echo "configure
:5689: checking
for g
++ -ffloat-store bug
" >&5
5689 save_CFLAGS="$CFLAGS"
5690 CFLAGS="-x c
++ -O2 -ffloat-store"
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure
"
5693 #include "confdefs.h
"
5699 if { (eval echo configure:5700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5701 echo "$ac_t""no
" 1>&6
5703 echo "configure
: failed program was
:" >&5
5704 cat conftest.$ac_ext >&5
5706 cat >> confdefs.h <<\EOF
5707 #define __NO_MATH_INLINES 1
5710 echo "$ac_t""yes" 1>&6
5713 CFLAGS="$save_CFLAGS"
5715 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 stdint.h langinfo.h locale.h
5717 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5718 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5719 echo "configure
:5720: checking
for $ac_hdr" >&5
5720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5721 echo $ac_n "(cached
) $ac_c" 1>&6
5723 cat > conftest.$ac_ext <<EOF
5724 #line 5725 "configure
"
5725 #include "confdefs.h
"
5728 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5729 { (eval echo configure:5730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5731 if test -z "$ac_err"; then
5733 eval "ac_cv_header_
$ac_safe=yes"
5736 echo "configure
: failed program was
:" >&5
5737 cat conftest.$ac_ext >&5
5739 eval "ac_cv_header_
$ac_safe=no
"
5743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5744 echo "$ac_t""yes" 1>&6
5745 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5746 cat >> confdefs.h <<EOF
5747 #define $ac_tr_hdr 1
5751 echo "$ac_t""no
" 1>&6
5755 for ac_hdr in dirent.h
5757 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5758 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5759 echo "configure
:5760: checking
for $ac_hdr" >&5
5760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5761 echo $ac_n "(cached
) $ac_c" 1>&6
5763 cat > conftest.$ac_ext <<EOF
5764 #line 5765 "configure
"
5765 #include "confdefs.h
"
5768 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5769 { (eval echo configure:5770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5771 if test -z "$ac_err"; then
5773 eval "ac_cv_header_
$ac_safe=yes"
5776 echo "configure
: failed program was
:" >&5
5777 cat conftest.$ac_ext >&5
5779 eval "ac_cv_header_
$ac_safe=no
"
5783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5784 echo "$ac_t""yes" 1>&6
5785 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5786 cat >> confdefs.h <<EOF
5787 #define $ac_tr_hdr 1
5791 echo "$ac_t""no
" 1>&6
5795 for ac_hdr in inttypes.h
5797 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5798 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5799 echo "configure
:5800: checking
for $ac_hdr" >&5
5800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5801 echo $ac_n "(cached
) $ac_c" 1>&6
5803 cat > conftest.$ac_ext <<EOF
5804 #line 5805 "configure
"
5805 #include "confdefs.h
"
5808 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5809 { (eval echo configure:5810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5811 if test -z "$ac_err"; then
5813 eval "ac_cv_header_
$ac_safe=yes"
5816 echo "configure
: failed program was
:" >&5
5817 cat conftest.$ac_ext >&5
5819 eval "ac_cv_header_
$ac_safe=no
"
5823 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5824 echo "$ac_t""yes" 1>&6
5825 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5826 cat >> confdefs.h <<EOF
5827 #define $ac_tr_hdr 1
5830 cat >> confdefs.h <<\EOF
5831 #define HAVE_INTTYPES_H 1
5834 cat >> confdefs.h <<\EOF
5835 #define JV_HAVE_INTTYPES_H 1
5840 echo "$ac_t""no
" 1>&6
5844 echo $ac_n "checking
for sys
/wait.h that is POSIX
.1 compatible
""...
$ac_c" 1>&6
5845 echo "configure
:5846: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
5846 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5847 echo $ac_n "(cached
) $ac_c" 1>&6
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure
"
5851 #include "confdefs.h
"
5852 #include <sys/types.h>
5853 #include <sys/wait.h>
5855 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5858 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5863 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5866 if { (eval echo configure:5867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5868 ac_cv_header_sys_wait_h=yes
5870 echo "configure
: failed program was
:" >&5
5871 cat conftest.$ac_ext >&5
5873 ac_cv_header_sys_wait_h=no
5878 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5879 if test $ac_cv_header_sys_wait_h = yes; then
5880 cat >> confdefs.h <<\EOF
5881 #define HAVE_SYS_WAIT_H 1
5887 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
5888 echo "configure
:5889: checking
for ANSI C header files
" >&5
5889 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5890 echo $ac_n "(cached
) $ac_c" 1>&6
5892 cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure
"
5894 #include "confdefs.h
"
5900 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5901 { (eval echo configure:5902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5903 if test -z "$ac_err"; then
5905 ac_cv_header_stdc=yes
5908 echo "configure
: failed program was
:" >&5
5909 cat conftest.$ac_ext >&5
5911 ac_cv_header_stdc=no
5915 if test $ac_cv_header_stdc = yes; then
5916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5917 cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure
"
5919 #include "confdefs.h
"
5922 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5923 egrep "memchr
" >/dev/null 2>&1; then
5927 ac_cv_header_stdc=no
5933 if test $ac_cv_header_stdc = yes; then
5934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5935 cat > conftest.$ac_ext <<EOF
5936 #line 5937 "configure
"
5937 #include "confdefs.h
"
5940 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5941 egrep "free
" >/dev/null 2>&1; then
5945 ac_cv_header_stdc=no
5951 if test $ac_cv_header_stdc = yes; then
5952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5953 if test "$cross_compiling" = yes; then
5956 cat > conftest.$ac_ext <<EOF
5957 #line 5958 "configure
"
5958 #include "confdefs.h
"
5960 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5961 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5963 int main () { int i; for (i = 0; i < 256; i++)
5964 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5968 if { (eval echo configure:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5972 echo "configure
: failed program was
:" >&5
5973 cat conftest.$ac_ext >&5
5975 ac_cv_header_stdc=no
5983 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5984 if test $ac_cv_header_stdc = yes; then
5985 cat >> confdefs.h <<\EOF
5986 #define STDC_HEADERS 1
5991 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
5992 echo "configure
:5993: checking
for ssize_t
" >&5
5993 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5994 echo $ac_n "(cached
) $ac_c" 1>&6
5996 cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure
"
5998 #include "confdefs.h
"
5999 #include <sys/types.h>
6005 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6006 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
6008 ac_cv_type_ssize_t=yes
6011 ac_cv_type_ssize_t=no
6016 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6017 if test $ac_cv_type_ssize_t = no; then
6018 cat >> confdefs.h <<\EOF
6025 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
6026 echo "configure
:6027: checking
for in_addr_t
" >&5
6027 cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure
"
6029 #include "confdefs.h
"
6030 #include <sys/types.h>
6035 #if HAVE_NETINET_IN_H
6036 #include <netinet/in.h>
6042 if { (eval echo configure:6043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6044 cat >> confdefs.h <<\EOF
6045 #define HAVE_IN_ADDR_T 1
6048 echo "$ac_t""yes" 1>&6
6050 echo "configure
: failed program was
:" >&5
6051 cat conftest.$ac_ext >&5
6053 echo "$ac_t""no
" 1>&6
6057 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
6058 echo "configure
:6059: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure
"
6061 #include "confdefs.h
"
6062 #include <netinet/in.h>
6064 struct ip_mreq mreq;
6067 if { (eval echo configure:6068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6069 cat >> confdefs.h <<\EOF
6070 #define HAVE_STRUCT_IP_MREQ 1
6073 echo "$ac_t""yes" 1>&6
6075 echo "configure
: failed program was
:" >&5
6076 cat conftest.$ac_ext >&5
6078 echo "$ac_t""no
" 1>&6
6082 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
6083 echo "configure
:6084: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure
"
6086 #include "confdefs.h
"
6087 #include <netinet/in.h>
6089 struct ipv6_mreq mreq6;
6092 if { (eval echo configure:6093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6094 cat >> confdefs.h <<\EOF
6095 #define HAVE_STRUCT_IPV6_MREQ 1
6098 echo "$ac_t""yes" 1>&6
6100 echo "configure
: failed program was
:" >&5
6101 cat conftest.$ac_ext >&5
6103 echo "$ac_t""no
" 1>&6
6107 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
6108 echo "configure
:6109: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure
"
6111 #include "confdefs.h
"
6112 #include <netinet/in.h>
6114 struct sockaddr_in6 addr6;
6117 if { (eval echo configure:6118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6119 cat >> confdefs.h <<\EOF
6120 #define HAVE_INET6 1
6123 echo "$ac_t""yes" 1>&6
6125 echo "configure
: failed program was
:" >&5
6126 cat conftest.$ac_ext >&5
6128 echo "$ac_t""no
" 1>&6
6132 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
6133 echo "configure
:6134: checking
for socklen_t
in sys
/socket.h
" >&5
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure
"
6136 #include "confdefs.h
"
6137 #define _POSIX_PII_SOCKET
6138 #include <sys/types.h>
6139 #include <sys/socket.h>
6144 if { (eval echo configure:6145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6146 cat >> confdefs.h <<\EOF
6147 #define HAVE_SOCKLEN_T 1
6150 echo "$ac_t""yes" 1>&6
6152 echo "configure
: failed program was
:" >&5
6153 cat conftest.$ac_ext >&5
6155 echo "$ac_t""no
" 1>&6
6159 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
6160 echo "configure
:6161: checking
for tm_gmtoff
in struct tm
" >&5
6161 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure
"
6163 #include "confdefs.h
"
6166 struct tm tim; tim.tm_gmtoff = 0;
6169 if { (eval echo configure:6170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6171 cat >> confdefs.h <<\EOF
6172 #define STRUCT_TM_HAS_GMTOFF 1
6175 echo "$ac_t""yes" 1>&6
6177 echo "configure
: failed program was
:" >&5
6178 cat conftest.$ac_ext >&5
6180 echo "$ac_t""no
" 1>&6
6181 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
6182 echo "configure
:6183: checking
for global timezone variable
" >&5
6183 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure
"
6185 #include "confdefs.h
"
6188 void i(){long z2 = 2*timezone;}
6191 if { (eval echo configure:6192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6193 cat >> confdefs.h <<\EOF
6194 #define HAVE_TIMEZONE 1
6197 echo "$ac_t""yes" 1>&6
6199 echo "configure
: failed program was
:" >&5
6200 cat conftest.$ac_ext >&5
6202 echo "$ac_t""no
" 1>&6
6203 echo $ac_n "checking
for global _timezone variable
""...
$ac_c" 1>&6
6204 echo "configure
:6205: checking
for global _timezone variable
" >&5
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure
"
6207 #include "confdefs.h
"
6210 long z2 = _timezone;
6213 if { (eval echo configure:6214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6215 cat >> confdefs.h <<\EOF
6216 #define HAVE_UNDERSCORE_TIMEZONE 1
6219 echo "$ac_t""yes" 1>&6
6221 echo "configure
: failed program was
:" >&5
6222 cat conftest.$ac_ext >&5
6224 echo "$ac_t""no
" 1>&6
6232 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6233 # for constant arguments. Useless!
6234 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
6235 echo "configure
:6236: checking
for working alloca.h
" >&5
6236 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6237 echo $ac_n "(cached
) $ac_c" 1>&6
6239 cat > conftest.$ac_ext <<EOF
6240 #line 6241 "configure
"
6241 #include "confdefs.h
"
6244 char *p = alloca(2 * sizeof(int));
6247 if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6249 ac_cv_header_alloca_h=yes
6251 echo "configure
: failed program was
:" >&5
6252 cat conftest.$ac_ext >&5
6254 ac_cv_header_alloca_h=no
6259 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6260 if test $ac_cv_header_alloca_h = yes; then
6261 cat >> confdefs.h <<\EOF
6262 #define HAVE_ALLOCA_H 1
6267 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
6268 echo "configure
:6269: checking
for alloca
" >&5
6269 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6270 echo $ac_n "(cached
) $ac_c" 1>&6
6272 cat > conftest.$ac_ext <<EOF
6273 #line 6274 "configure
"
6274 #include "confdefs.h
"
6277 # define alloca __builtin_alloca
6280 # include <malloc.h>
6281 # define alloca _alloca
6284 # include <alloca.h>
6289 # ifndef alloca /* predefined by HP cc +Olibcalls */
6298 char *p = (char *) alloca(1);
6301 if { (eval echo configure:6302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6303 ac_cv_func_alloca_works=yes
6305 echo "configure
: failed program was
:" >&5
6306 cat conftest.$ac_ext >&5
6308 ac_cv_func_alloca_works=no
6313 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6314 if test $ac_cv_func_alloca_works = yes; then
6315 cat >> confdefs.h <<\EOF
6316 #define HAVE_ALLOCA 1
6321 if test $ac_cv_func_alloca_works = no; then
6322 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6323 # that cause trouble. Some versions do not even contain alloca or
6324 # contain a buggy version. If you still want to use their alloca,
6325 # use ar to extract alloca.o from them instead of compiling alloca.c.
6326 ALLOCA=alloca.${ac_objext}
6327 cat >> confdefs.h <<\EOF
6332 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
6333 echo "configure
:6334: checking whether alloca needs Cray hooks
" >&5
6334 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6335 echo $ac_n "(cached
) $ac_c" 1>&6
6337 cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure
"
6339 #include "confdefs.h
"
6340 #if defined(CRAY) && ! defined(CRAY2)
6347 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6348 egrep "webecray
" >/dev/null 2>&1; then
6359 echo "$ac_t""$ac_cv_os_cray" 1>&6
6360 if test $ac_cv_os_cray = yes; then
6361 for ac_func in _getb67 GETB67 getb67; do
6362 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6363 echo "configure
:6364: checking
for $ac_func" >&5
6364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6365 echo $ac_n "(cached
) $ac_c" 1>&6
6367 cat > conftest.$ac_ext <<EOF
6368 #line 6369 "configure
"
6369 #include "confdefs.h
"
6370 /* System header to define __stub macros and hopefully few prototypes,
6371 which can conflict with char $ac_func(); below. */
6373 /* Override any gcc2 internal prototype to avoid an error. */
6374 /* We use char because int might match the return type of a gcc2
6375 builtin and then its argument prototype would still apply. */
6380 /* The GNU C library defines this for functions which it implements
6381 to always fail with ENOSYS. Some functions are actually named
6382 something starting with __ and the normal name is an alias. */
6383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6391 if { (eval echo configure:6392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6393 eval "ac_cv_func_
$ac_func=yes"
6395 echo "configure
: failed program was
:" >&5
6396 cat conftest.$ac_ext >&5
6398 eval "ac_cv_func_
$ac_func=no
"
6403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6404 echo "$ac_t""yes" 1>&6
6405 cat >> confdefs.h <<EOF
6406 #define CRAY_STACKSEG_END $ac_func
6411 echo "$ac_t""no
" 1>&6
6417 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
6418 echo "configure
:6419: checking stack direction
for C alloca
" >&5
6419 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6420 echo $ac_n "(cached
) $ac_c" 1>&6
6422 if test "$cross_compiling" = yes; then
6423 ac_cv_c_stack_direction=0
6425 cat > conftest.$ac_ext <<EOF
6426 #line 6427 "configure
"
6427 #include "confdefs.h
"
6428 find_stack_direction ()
6430 static char *addr = 0;
6435 return find_stack_direction ();
6438 return (&dummy > addr) ? 1 : -1;
6442 exit (find_stack_direction() < 0);
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6447 ac_cv_c_stack_direction=1
6449 echo "configure
: failed program was
:" >&5
6450 cat conftest.$ac_ext >&5
6452 ac_cv_c_stack_direction=-1
6459 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6460 cat >> confdefs.h <<EOF
6461 #define STACK_DIRECTION $ac_cv_c_stack_direction
6469 # Extract the first word of "$ac_prog", so it can be a program name with args.
6470 set dummy $ac_prog; ac_word=$2
6471 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6472 echo "configure
:6473: checking
for $ac_word" >&5
6473 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6474 echo $ac_n "(cached
) $ac_c" 1>&6
6476 if test -n "$PERL"; then
6477 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6481 for ac_dir in $ac_dummy; do
6482 test -z "$ac_dir" && ac_dir=.
6483 if test -f $ac_dir/$ac_word; then
6484 ac_cv_prog_PERL="$ac_prog"
6491 PERL="$ac_cv_prog_PERL"
6492 if test -n "$PERL"; then
6493 echo "$ac_t""$PERL" 1>&6
6495 echo "$ac_t""no
" 1>&6
6498 test -n "$PERL" && break
6500 test -n "$PERL" || PERL="false
"
6507 SIGNAL_HANDLER=include/i386-signal.h
6509 sparc*-sun-solaris*)
6510 SIGNAL_HANDLER=include/sparc-signal.h
6513 # SYSDEP_SOURCES=sysdep/ia64.c
6514 # test -d sysdep || mkdir sysdep
6517 SIGNAL_HANDLER=include/dwarf2-signal.h
6520 SIGNAL_HANDLER=include/dwarf2-signal.h
6523 SIGNAL_HANDLER=include/dwarf2-signal.h
6526 SIGNAL_HANDLER=include/s390-signal.h
6529 SIGNAL_HANDLER=include/dwarf2-signal.h
6532 SIGNAL_HANDLER=include/win32-signal.h
6535 SIGNAL_HANDLER=include/default-signal.h
6539 # If we're using sjlj exceptions, forget what we just learned.
6540 if test "$enable_sjlj_exceptions" = yes; then
6541 SIGNAL_HANDLER=include/default-signal.h
6548 if test "${multilib}" = "yes"; then
6549 multilib_arg="--enable-multilib"
6554 # If we find X, set shell vars x_includes and x_libraries to the
6555 # paths, otherwise set no_x=yes.
6556 # Uses ac_ vars as temps to allow command line to override cache and checks.
6557 # --without-x overrides everything else, but does not touch the cache.
6558 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
6559 echo "configure
:6560: checking
for X
" >&5
6561 # Check whether --with-x or --without-x was given.
6562 if test "${with_x+set}" = set; then
6567 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6568 if test "x
$with_x" = xno; then
6569 # The user explicitly disabled X.
6572 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
6573 # Both variables are already set.
6576 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6577 echo $ac_n "(cached
) $ac_c" 1>&6
6579 # One or both of the vars are not set, and there is no cached value.
6580 ac_x_includes=NO ac_x_libraries=NO
6582 if mkdir conftestdir; then
6584 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6585 cat > Imakefile <<'EOF'
6587 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6589 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6590 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
6591 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6592 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6593 for ac_extension in a so sl; do
6594 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6595 test -f $ac_im_libdir/libX11.$ac_extension; then
6596 ac_im_usrlibdir=$ac_im_libdir; break
6599 # Screen out bogus values from the imake configuration. They are
6600 # bogus both because they are the default anyway, and because
6601 # using them would break gcc on systems where it needs fixed includes.
6602 case "$ac_im_incroot" in
6604 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
6606 case "$ac_im_usrlibdir" in
6608 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6615 if test "$ac_x_includes" = NO; then
6616 # Guess where to find include files, by looking for this one X11 .h file.
6617 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6619 # First, try using that file with no special directory specified.
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure
"
6622 #include "confdefs.h
"
6623 #include <$x_direct_test_include>
6625 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6626 { (eval echo configure:6627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6628 if test -z "$ac_err"; then
6630 # We can compile using X headers with no special include directory.
6634 echo "configure
: failed program was
:" >&5
6635 cat conftest.$ac_ext >&5
6637 # Look for the header file in a standard set of common directories.
6638 # Check X11 before X11Rn because it is often a symlink to the current release.
6641 /usr/X11R6/include \
6642 /usr/X11R5/include \
6643 /usr/X11R4/include \
6646 /usr/include/X11R6 \
6647 /usr/include/X11R5 \
6648 /usr/include/X11R4 \
6650 /usr/local/X11/include \
6651 /usr/local/X11R6/include \
6652 /usr/local/X11R5/include \
6653 /usr/local/X11R4/include \
6655 /usr/local/include/X11 \
6656 /usr/local/include/X11R6 \
6657 /usr/local/include/X11R5 \
6658 /usr/local/include/X11R4 \
6662 /usr/XFree86/include/X11 \
6665 /usr/local/include \
6666 /usr/unsupported/include \
6667 /usr/athena/include \
6668 /usr/local/x11r5/include \
6669 /usr/lpp/Xamples/include \
6671 /usr/openwin/include \
6672 /usr/openwin/share/include \
6675 if test -r "$ac_dir/$x_direct_test_include"; then
6676 ac_x_includes=$ac_dir
6682 fi # $ac_x_includes = NO
6684 if test "$ac_x_libraries" = NO; then
6685 # Check for the libraries.
6687 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6688 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6690 # See if we find them without any special options.
6691 # Don't add to $LIBS permanently.
6692 ac_save_LIBS="$LIBS"
6693 LIBS="-l$x_direct_test_library $LIBS"
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure
"
6696 #include "confdefs.h
"
6699 ${x_direct_test_function}()
6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6704 LIBS="$ac_save_LIBS"
6705 # We can link X programs with no special library path.
6708 echo "configure
: failed program was
:" >&5
6709 cat conftest.$ac_ext >&5
6711 LIBS="$ac_save_LIBS"
6712 # First see if replacing the include by lib works.
6713 # Check X11 before X11Rn because it is often a symlink to the current release.
6714 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6725 /usr/local/X11/lib \
6726 /usr/local/X11R6/lib \
6727 /usr/local/X11R5/lib \
6728 /usr/local/X11R4/lib \
6730 /usr/local/lib/X11 \
6731 /usr/local/lib/X11R6 \
6732 /usr/local/lib/X11R5 \
6733 /usr/local/lib/X11R4 \
6737 /usr/XFree86/lib/X11 \
6741 /usr/unsupported/lib \
6743 /usr/local/x11r5/lib \
6744 /usr/lpp/Xamples/lib \
6748 /usr/openwin/share/lib \
6751 for ac_extension in a so sl; do
6752 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6753 ac_x_libraries=$ac_dir
6760 fi # $ac_x_libraries = NO
6762 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6763 # Didn't find X anywhere. Cache the known absence of X.
6764 ac_cv_have_x="have_x
=no
"
6766 # Record where we found X for the cache.
6767 ac_cv_have_x="have_x
=yes \
6768 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
6772 eval "$ac_cv_have_x"
6775 if test "$have_x" != yes; then
6776 echo "$ac_t""$have_x" 1>&6
6779 # If each of the values was on the command line, it overrides each guess.
6780 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
6781 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6782 # Update the cache value to reflect the command line values.
6783 ac_cv_have_x="have_x
=yes \
6784 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
6785 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
6788 if test "$no_x" = yes; then
6789 # Not all programs may use this symbol, but it does not hurt to define it.
6790 cat >> confdefs.h <<\EOF
6791 #define X_DISPLAY_MISSING 1
6794 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6796 if test -n "$x_includes"; then
6797 X_CFLAGS="$X_CFLAGS -I$x_includes"
6800 # It would also be nice to do this for all -L options, not just this one.
6801 if test -n "$x_libraries"; then
6802 X_LIBS="$X_LIBS -L$x_libraries"
6803 # For Solaris; some versions of Sun CC require a space after -R and
6804 # others require no space. Words are not sufficient . . . .
6805 case "`(uname -sr) 2>/dev/null`" in
6807 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
6808 echo "configure
:6809: checking whether
-R must be followed by a space
" >&5
6809 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure
"
6812 #include "confdefs.h
"
6818 if { (eval echo configure:6819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6822 echo "configure
: failed program was
:" >&5
6823 cat conftest.$ac_ext >&5
6828 if test $ac_R_nospace = yes; then
6829 echo "$ac_t""no
" 1>&6
6830 X_LIBS="$X_LIBS -R$x_libraries"
6832 LIBS="$ac_xsave_LIBS -R $x_libraries"
6833 cat > conftest.$ac_ext <<EOF
6834 #line 6835 "configure
"
6835 #include "confdefs.h
"
6841 if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6845 echo "configure
: failed program was
:" >&5
6846 cat conftest.$ac_ext >&5
6851 if test $ac_R_space = yes; then
6852 echo "$ac_t""yes" 1>&6
6853 X_LIBS="$X_LIBS -R $x_libraries"
6855 echo "$ac_t""neither works
" 1>&6
6858 LIBS="$ac_xsave_LIBS"
6862 # Check for system-dependent libraries X programs must link with.
6863 # Do this before checking for the system-independent R6 libraries
6864 # (-lICE), since we may need -lsocket or whatever for X linking.
6866 if test "$ISC" = yes; then
6867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6869 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6870 # libraries were built with DECnet support. And karl@cs.umb.edu says
6871 # the Alpha needs dnet_stub (dnet does not exist).
6872 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
6873 echo "configure
:6874: checking
for dnet_ntoa
in -ldnet" >&5
6874 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6876 echo $ac_n "(cached
) $ac_c" 1>&6
6878 ac_save_LIBS="$LIBS"
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure
"
6882 #include "confdefs.h
"
6883 /* Override any gcc2 internal prototype to avoid an error. */
6884 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */
6892 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6894 eval "ac_cv_lib_
$ac_lib_var=yes"
6896 echo "configure
: failed program was
:" >&5
6897 cat conftest.$ac_ext >&5
6899 eval "ac_cv_lib_
$ac_lib_var=no
"
6902 LIBS="$ac_save_LIBS"
6905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6906 echo "$ac_t""yes" 1>&6
6907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6909 echo "$ac_t""no
" 1>&6
6912 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6913 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
6914 echo "configure
:6915: checking
for dnet_ntoa
in -ldnet_stub" >&5
6915 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6917 echo $ac_n "(cached
) $ac_c" 1>&6
6919 ac_save_LIBS="$LIBS"
6920 LIBS="-ldnet_stub $LIBS"
6921 cat > conftest.$ac_ext <<EOF
6922 #line 6923 "configure
"
6923 #include "confdefs.h
"
6924 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6933 if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6935 eval "ac_cv_lib_
$ac_lib_var=yes"
6937 echo "configure
: failed program was
:" >&5
6938 cat conftest.$ac_ext >&5
6940 eval "ac_cv_lib_
$ac_lib_var=no
"
6943 LIBS="$ac_save_LIBS"
6946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6947 echo "$ac_t""yes" 1>&6
6948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6950 echo "$ac_t""no
" 1>&6
6955 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6956 # to get the SysV transport functions.
6957 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6959 # The nsl library prevents programs from opening the X display
6960 # on Irix 5.2, according to dickey@clark.net.
6961 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6962 echo "configure
:6963: checking
for gethostbyname
" >&5
6963 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6964 echo $ac_n "(cached
) $ac_c" 1>&6
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure
"
6968 #include "confdefs.h
"
6969 /* System header to define __stub macros and hopefully few prototypes,
6970 which can conflict with char gethostbyname(); below. */
6972 /* Override any gcc2 internal prototype to avoid an error. */
6973 /* We use char because int might match the return type of a gcc2
6974 builtin and then its argument prototype would still apply. */
6975 char gethostbyname();
6979 /* The GNU C library defines this for functions which it implements
6980 to always fail with ENOSYS. Some functions are actually named
6981 something starting with __ and the normal name is an alias. */
6982 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6990 if { (eval echo configure:6991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6992 eval "ac_cv_func_gethostbyname
=yes"
6994 echo "configure
: failed program was
:" >&5
6995 cat conftest.$ac_ext >&5
6997 eval "ac_cv_func_gethostbyname
=no
"
7002 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7003 echo "$ac_t""yes" 1>&6
7006 echo "$ac_t""no
" 1>&6
7009 if test $ac_cv_func_gethostbyname = no; then
7010 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
7011 echo "configure
:7012: checking
for gethostbyname
in -lnsl" >&5
7012 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7014 echo $ac_n "(cached
) $ac_c" 1>&6
7016 ac_save_LIBS="$LIBS"
7018 cat > conftest.$ac_ext <<EOF
7019 #line 7020 "configure
"
7020 #include "confdefs.h
"
7021 /* Override any gcc2 internal prototype to avoid an error. */
7022 /* We use char because int might match the return type of a gcc2
7023 builtin and then its argument prototype would still apply. */
7024 char gethostbyname();
7030 if { (eval echo configure:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7032 eval "ac_cv_lib_
$ac_lib_var=yes"
7034 echo "configure
: failed program was
:" >&5
7035 cat conftest.$ac_ext >&5
7037 eval "ac_cv_lib_
$ac_lib_var=no
"
7040 LIBS="$ac_save_LIBS"
7043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7044 echo "$ac_t""yes" 1>&6
7045 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7047 echo "$ac_t""no
" 1>&6
7052 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7053 # socket/setsockopt and other routines are undefined under SCO ODT
7054 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7055 # on later versions), says simon@lia.di.epfl.ch: it contains
7056 # gethostby* variants that don't use the nameserver (or something).
7057 # -lsocket must be given before -lnsl if both are needed.
7058 # We assume that if connect needs -lnsl, so does gethostbyname.
7059 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
7060 echo "configure
:7061: checking
for connect
" >&5
7061 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7062 echo $ac_n "(cached
) $ac_c" 1>&6
7064 cat > conftest.$ac_ext <<EOF
7065 #line 7066 "configure
"
7066 #include "confdefs.h
"
7067 /* System header to define __stub macros and hopefully few prototypes,
7068 which can conflict with char connect(); below. */
7070 /* Override any gcc2 internal prototype to avoid an error. */
7071 /* We use char because int might match the return type of a gcc2
7072 builtin and then its argument prototype would still apply. */
7077 /* The GNU C library defines this for functions which it implements
7078 to always fail with ENOSYS. Some functions are actually named
7079 something starting with __ and the normal name is an alias. */
7080 #if defined (__stub_connect) || defined (__stub___connect)
7088 if { (eval echo configure:7089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7090 eval "ac_cv_func_connect
=yes"
7092 echo "configure
: failed program was
:" >&5
7093 cat conftest.$ac_ext >&5
7095 eval "ac_cv_func_connect
=no
"
7100 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7101 echo "$ac_t""yes" 1>&6
7104 echo "$ac_t""no
" 1>&6
7107 if test $ac_cv_func_connect = no; then
7108 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
7109 echo "configure
:7110: checking
for connect
in -lsocket" >&5
7110 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7112 echo $ac_n "(cached
) $ac_c" 1>&6
7114 ac_save_LIBS="$LIBS"
7115 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7116 cat > conftest.$ac_ext <<EOF
7117 #line 7118 "configure
"
7118 #include "confdefs.h
"
7119 /* Override any gcc2 internal prototype to avoid an error. */
7120 /* We use char because int might match the return type of a gcc2
7121 builtin and then its argument prototype would still apply. */
7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7130 eval "ac_cv_lib_
$ac_lib_var=yes"
7132 echo "configure
: failed program was
:" >&5
7133 cat conftest.$ac_ext >&5
7135 eval "ac_cv_lib_
$ac_lib_var=no
"
7138 LIBS="$ac_save_LIBS"
7141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7142 echo "$ac_t""yes" 1>&6
7143 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7145 echo "$ac_t""no
" 1>&6
7150 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7151 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
7152 echo "configure
:7153: checking
for remove
" >&5
7153 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7154 echo $ac_n "(cached
) $ac_c" 1>&6
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7158 "configure
"
7158 #include "confdefs.h
"
7159 /* System header to define __stub macros and hopefully few prototypes,
7160 which can conflict with char remove(); below. */
7162 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7169 /* The GNU C library defines this for functions which it implements
7170 to always fail with ENOSYS. Some functions are actually named
7171 something starting with __ and the normal name is an alias. */
7172 #if defined (__stub_remove) || defined (__stub___remove)
7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7182 eval "ac_cv_func_remove
=yes"
7184 echo "configure
: failed program was
:" >&5
7185 cat conftest.$ac_ext >&5
7187 eval "ac_cv_func_remove
=no
"
7192 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7193 echo "$ac_t""yes" 1>&6
7196 echo "$ac_t""no
" 1>&6
7199 if test $ac_cv_func_remove = no; then
7200 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
7201 echo "configure
:7202: checking
for remove
in -lposix" >&5
7202 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7204 echo $ac_n "(cached
) $ac_c" 1>&6
7206 ac_save_LIBS="$LIBS"
7207 LIBS="-lposix $LIBS"
7208 cat > conftest.$ac_ext <<EOF
7209 #line 7210 "configure
"
7210 #include "confdefs.h
"
7211 /* Override any gcc2 internal prototype to avoid an error. */
7212 /* We use char because int might match the return type of a gcc2
7213 builtin and then its argument prototype would still apply. */
7220 if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7222 eval "ac_cv_lib_
$ac_lib_var=yes"
7224 echo "configure
: failed program was
:" >&5
7225 cat conftest.$ac_ext >&5
7227 eval "ac_cv_lib_
$ac_lib_var=no
"
7230 LIBS="$ac_save_LIBS"
7233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7234 echo "$ac_t""yes" 1>&6
7235 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7237 echo "$ac_t""no
" 1>&6
7242 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7243 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
7244 echo "configure
:7245: checking
for shmat
" >&5
7245 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7246 echo $ac_n "(cached
) $ac_c" 1>&6
7248 cat > conftest.$ac_ext <<EOF
7249 #line 7250 "configure
"
7250 #include "confdefs.h
"
7251 /* System header to define __stub macros and hopefully few prototypes,
7252 which can conflict with char shmat(); below. */
7254 /* Override any gcc2 internal prototype to avoid an error. */
7255 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7261 /* The GNU C library defines this for functions which it implements
7262 to always fail with ENOSYS. Some functions are actually named
7263 something starting with __ and the normal name is an alias. */
7264 #if defined (__stub_shmat) || defined (__stub___shmat)
7272 if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7274 eval "ac_cv_func_shmat
=yes"
7276 echo "configure
: failed program was
:" >&5
7277 cat conftest.$ac_ext >&5
7279 eval "ac_cv_func_shmat
=no
"
7284 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7285 echo "$ac_t""yes" 1>&6
7288 echo "$ac_t""no
" 1>&6
7291 if test $ac_cv_func_shmat = no; then
7292 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
7293 echo "configure
:7294: checking
for shmat
in -lipc" >&5
7294 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7296 echo $ac_n "(cached
) $ac_c" 1>&6
7298 ac_save_LIBS="$LIBS"
7300 cat > conftest.$ac_ext <<EOF
7301 #line 7302 "configure
"
7302 #include "confdefs.h
"
7303 /* Override any gcc2 internal prototype to avoid an error. */
7304 /* We use char because int might match the return type of a gcc2
7305 builtin and then its argument prototype would still apply. */
7312 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7314 eval "ac_cv_lib_
$ac_lib_var=yes"
7316 echo "configure
: failed program was
:" >&5
7317 cat conftest.$ac_ext >&5
7319 eval "ac_cv_lib_
$ac_lib_var=no
"
7322 LIBS="$ac_save_LIBS"
7325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7326 echo "$ac_t""yes" 1>&6
7327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7329 echo "$ac_t""no
" 1>&6
7335 # Check for libraries that X11R6 Xt/Xaw programs need.
7336 ac_save_LDFLAGS="$LDFLAGS"
7337 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7338 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7339 # check for ICE first), but we must link in the order -lSM -lICE or
7340 # we get undefined symbols. So assume we have SM if we have ICE.
7341 # These have to be linked with before -lX11, unlike the other
7342 # libraries we check for below, so use a different variable.
7343 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7344 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
7345 echo "configure
:7346: checking
for IceConnectionNumber
in -lICE" >&5
7346 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7348 echo $ac_n "(cached
) $ac_c" 1>&6
7350 ac_save_LIBS="$LIBS"
7351 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7352 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure
"
7354 #include "confdefs.h
"
7355 /* Override any gcc2 internal prototype to avoid an error. */
7356 /* We use char because int might match the return type of a gcc2
7357 builtin and then its argument prototype would still apply. */
7358 char IceConnectionNumber();
7361 IceConnectionNumber()
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7366 eval "ac_cv_lib_
$ac_lib_var=yes"
7368 echo "configure
: failed program was
:" >&5
7369 cat conftest.$ac_ext >&5
7371 eval "ac_cv_lib_
$ac_lib_var=no
"
7374 LIBS="$ac_save_LIBS"
7377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7378 echo "$ac_t""yes" 1>&6
7379 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7381 echo "$ac_t""no
" 1>&6
7384 LDFLAGS="$ac_save_LDFLAGS"
7389 # Check whether --enable-java-awt or --disable-java-awt was given.
7390 if test "${enable_java_awt+set}" = set; then
7391 enableval="$enable_java_awt"
7396 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7400 for peer in $peerlibs ; do
7403 if test "$no_x" = yes; then
7404 echo "*** xlib peers requested but no X library available
" 1>&2
7419 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
7426 if test "$use_xlib_awt" = yes; then
7435 if test "$use_gtk_awt" = yes; then
7444 here=`${PWDCMD-pwd}`
7447 # We get this from the environment.
7451 cat > confcache <<\EOF
7452 # This file is a shell script that caches the results of configure
7453 # tests run on this system so they can be shared between configure
7454 # scripts and configure runs. It is not useful on other systems.
7455 # If it contains results you don't want to keep, you may remove or edit it.
7457 # By default, configure uses ./config.cache as the cache file,
7458 # creating it if it does not exist already. You can give configure
7459 # the --cache-file=FILE option to use a different cache file; that is
7460 # what configure does when it calls configure scripts in
7461 # subdirectories, so they share the cache.
7462 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7463 # config.status only pays attention to the cache file if you give it the
7464 # --recheck option to rerun configure.
7467 # The following way of writing the cache mishandles newlines in values,
7468 # but we know of no workaround that is simple, portable, and efficient.
7469 # So, don't put newlines in cache variables' values.
7470 # Ultrix sh set writes to stderr and can't be redirected directly,
7471 # and sets the high bit in the cache file unless we assign to the vars.
7473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7475 # `set' does not quote correctly, so add quotes (double-quote substitution
7476 # turns \\\\ into \\, and sed turns \\ into \).
7478 -e "s
/'/'\\\\''/g
" \
7479 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
7482 # `set' quotes correctly as required by POSIX, so do not add quotes.
7483 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7486 if cmp -s $cache_file confcache; then
7489 if test -w $cache_file; then
7490 echo "updating cache
$cache_file"
7491 cat confcache > $cache_file
7493 echo "not updating unwritable cache
$cache_file"
7498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7500 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
7501 # Let make expand exec_prefix.
7502 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
7504 # Any assignment to VPATH causes Sun make to only execute
7505 # the first set of double-colon rules, so remove it if not needed.
7506 # If there is a colon in the path, we need to keep it.
7507 if test "x
$srcdir" = x.; then
7508 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7511 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7513 DEFS=-DHAVE_CONFIG_H
7515 # Without the ".
/", some shells look in PATH for config.status.
7516 : ${CONFIG_STATUS=./config.status}
7518 echo creating $CONFIG_STATUS
7519 rm -f $CONFIG_STATUS
7520 cat > $CONFIG_STATUS <<EOF
7522 # Generated automatically by configure.
7523 # Run this file to recreate the current configuration.
7524 # This directory was configured as follows,
7525 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7527 # $0 $ac_configure_args
7529 # Compiler output produced by configure, useful for debugging
7530 # configure, is in ./config.log if it exists.
7532 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
7535 case "\
$ac_option" in
7536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7537 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7538 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7539 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7540 echo "$CONFIG_STATUS generated by autoconf version
2.13"
7542 -help | --help | --hel | --he | --h)
7543 echo "\
$ac_cs_usage"; exit 0 ;;
7544 *) echo "\
$ac_cs_usage"; exit 1 ;;
7548 ac_given_srcdir=$srcdir
7549 ac_given_INSTALL="$INSTALL"
7551 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
7553 cat >> $CONFIG_STATUS <<EOF
7555 # Protect against being on the right side of a sed subst in config.status.
7556 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7557 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7561 s%@CFLAGS@%$CFLAGS%g
7562 s%@CPPFLAGS@%$CPPFLAGS%g
7563 s%@CXXFLAGS@%$CXXFLAGS%g
7564 s%@FFLAGS@%$FFLAGS%g
7566 s%@LDFLAGS@%$LDFLAGS%g
7568 s%@exec_prefix@%$exec_prefix%g
7569 s%@prefix@%$prefix%g
7570 s%@program_transform_name@%$program_transform_name%g
7571 s%@bindir@%$bindir%g
7572 s%@sbindir@%$sbindir%g
7573 s%@libexecdir@%$libexecdir%g
7574 s%@datadir@%$datadir%g
7575 s%@sysconfdir@%$sysconfdir%g
7576 s%@sharedstatedir@%$sharedstatedir%g
7577 s%@localstatedir@%$localstatedir%g
7578 s%@libdir@%$libdir%g
7579 s%@includedir@%$includedir%g
7580 s%@oldincludedir@%$oldincludedir%g
7581 s%@infodir@%$infodir%g
7582 s%@mandir@%$mandir%g
7584 s%@libgcj_basedir@%$libgcj_basedir%g
7585 s%@mkinstalldirs@%$mkinstalldirs%g
7587 s%@host_alias@%$host_alias%g
7588 s%@host_cpu@%$host_cpu%g
7589 s%@host_vendor@%$host_vendor%g
7590 s%@host_os@%$host_os%g
7591 s%@target@%$target%g
7592 s%@target_alias@%$target_alias%g
7593 s%@target_cpu@%$target_cpu%g
7594 s%@target_vendor@%$target_vendor%g
7595 s%@target_os@%$target_os%g
7597 s%@build_alias@%$build_alias%g
7598 s%@build_cpu@%$build_cpu%g
7599 s%@build_vendor@%$build_vendor%g
7600 s%@build_os@%$build_os%g
7602 s%@glibjava_CXX@%$glibjava_CXX%g
7604 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7605 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7606 s%@INSTALL_DATA@%$INSTALL_DATA%g
7607 s%@PACKAGE@%$PACKAGE%g
7608 s%@VERSION@%$VERSION%g
7609 s%@ACLOCAL@%$ACLOCAL%g
7610 s%@AUTOCONF@%$AUTOCONF%g
7611 s%@AUTOMAKE@%$AUTOMAKE%g
7612 s%@AUTOHEADER@%$AUTOHEADER%g
7613 s%@MAKEINFO@%$MAKEINFO%g
7614 s%@SET_MAKE@%$SET_MAKE%g
7617 s%@RANLIB@%$RANLIB%g
7618 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7619 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7621 s%@EXEEXT@%$EXEEXT%g
7622 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7623 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7624 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7625 s%@INCLTDL@%$INCLTDL%g
7626 s%@LIBLTDL@%$LIBLTDL%g
7627 s%@DIRLTDL@%$DIRLTDL%g
7628 s%@OBJEXT@%$OBJEXT%g
7630 s%@LIBTOOL@%$LIBTOOL%g
7631 s%@CXXCPP@%$CXXCPP%g
7632 s%@subdirs@%$subdirs%g
7633 s%@COMPPATH@%$COMPPATH%g
7634 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7635 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7636 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7637 s%@INTERPRETER@%$INTERPRETER%g
7638 s%@LIBFFI@%$LIBFFI%g
7639 s%@LIBFFIINCS@%$LIBFFIINCS%g
7640 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7642 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7643 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7644 s%@ZLIBSPEC@%$ZLIBSPEC%g
7645 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7646 s%@GCLIBS@%$GCLIBS%g
7647 s%@GCINCS@%$GCINCS%g
7648 s%@GCDEPS@%$GCDEPS%g
7649 s%@GCOBJS@%$GCOBJS%g
7650 s%@GCSPEC@%$GCSPEC%g
7651 s%@JC1GCSPEC@%$JC1GCSPEC%g
7652 s%@GCTESTSPEC@%$GCTESTSPEC%g
7653 s%@THREADLIBS@%$THREADLIBS%g
7654 s%@THREADINCS@%$THREADINCS%g
7655 s%@THREADDEPS@%$THREADDEPS%g
7656 s%@THREADOBJS@%$THREADOBJS%g
7657 s%@THREADSPEC@%$THREADSPEC%g
7658 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
7659 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7660 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7661 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7662 s%@tool_include_dir@%$tool_include_dir%g
7663 s%@gcc_version@%$gcc_version%g
7664 s%@LIBICONV@%$LIBICONV%g
7666 s%@GCJFLAGS@%$GCJFLAGS%g
7668 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
7670 s%@DIVIDESPEC@%$DIVIDESPEC%g
7671 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
7672 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7673 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7674 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7675 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7676 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7677 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7678 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7679 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7680 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7681 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7682 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7683 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7684 s%@GCJVERSION@%$GCJVERSION%g
7685 s%@ALLOCA@%$ALLOCA%g
7687 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7688 s%@X_CFLAGS@%$X_CFLAGS%g
7689 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7690 s%@X_LIBS@%$X_LIBS%g
7691 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7692 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7693 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7694 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7695 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7701 cat >> $CONFIG_STATUS <<\EOF
7703 # Split the substitutions into bite-sized pieces for seds with
7704 # small command number limits, like on Digital OSF/1 and HP-UX.
7705 ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
7706 ac_file=1 # Number of current file.
7707 ac_beg=1 # First line for current file.
7708 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7711 while $ac_more_lines; do
7712 if test $ac_beg -gt 1; then
7713 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
7715 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
7717 if test ! -s conftest.s$ac_file; then
7719 rm -f conftest.s$ac_file
7721 if test -z "$ac_sed_cmds"; then
7722 ac_sed_cmds="sed -f conftest.s
$ac_file"
7724 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
7726 ac_file=`expr $ac_file + 1`
7728 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7731 if test -z "$ac_sed_cmds"; then
7736 cat >> $CONFIG_STATUS <<EOF
7738 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7740 cat >> $CONFIG_STATUS <<\EOF
7741 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
7742 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
7744 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7745 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7746 *) ac_file_in="${ac_file}.
in" ;;
7749 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7751 # Remove last slash and all that follows it. Not all systems have dirname.
7752 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7753 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7754 # The file is in a subdirectory.
7755 test ! -d "$ac_dir" && mkdir "$ac_dir"
7756 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7757 # A "..
/" for each directory in $ac_dir_suffix.
7758 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7760 ac_dir_suffix= ac_dots=
7763 case "$ac_given_srcdir" in
7765 if test -z "$ac_dots"; then top_srcdir=.
7766 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7767 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7769 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7770 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7773 case "$ac_given_INSTALL" in
7774 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7775 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7778 echo creating "$ac_file"
7780 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
7782 *Makefile*) ac_comsub="1i
\\
7783 # $configure_input" ;;
7787 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7789 s%@configure_input@%$configure_input%g
7790 s%@srcdir@%$srcdir%g
7791 s%@top_srcdir@%$top_srcdir%g
7792 s%@INSTALL@%$INSTALL%g
7793 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7797 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7798 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7800 # ac_d sets the value in "#define NAME VALUE" lines.
7801 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7802 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7805 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7806 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7807 ac_uB
='\([ ]\)%\1#\2define\3'
7810 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7811 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7812 ac_eB
='$%\1#\2define\3'
7816 if test "${CONFIG_HEADERS+set}" != set; then
7818 cat >> $CONFIG_STATUS <<EOF
7819 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7821 cat >> $CONFIG_STATUS <<\EOF
7823 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7826 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7827 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7828 *) ac_file_in
="${ac_file}.in" ;;
7831 echo creating
$ac_file
7833 rm -f conftest.frag conftest.
in conftest.out
7834 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7835 cat $ac_file_inputs > conftest.
in
7839 # Transform confdefs.h into a sed script conftest.vals that substitutes
7840 # the proper values into config.h.in to produce config.h. And first:
7841 # Protect against being on the right side of a sed subst in config.status.
7842 # Protect against being in an unquoted here document in config.status.
7844 cat > conftest.hdr
<<\EOF
7847 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7851 sed -n -f conftest.hdr confdefs.h > conftest.vals
7854 # This sed command replaces #undef with comments. This is necessary, for
7855 # example, in the case of _POSIX_SOURCE, which is predefined and required
7856 # on some systems where configure will not decide to define it.
7857 cat >> conftest.vals <<\EOF
7858 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7861 # Break up conftest.vals because some shells have a limit on
7862 # the size of here documents, and old seds have small limits too.
7867 ac_lines=`grep -c . conftest.vals
`
7868 # grep -c gives empty output for an empty file on some AIX systems.
7869 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7870 # Write a limited-size here document to conftest.frag.
7871 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7872 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7874 sed -f conftest.frag conftest.in > conftest.out
7876 mv conftest.out conftest.in
7878 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7880 mv conftest.tail conftest.vals
7884 cat >> $CONFIG_STATUS <<\EOF
7885 rm -f conftest.frag conftest.h
7886 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7887 cat conftest.in >> conftest.h
7889 if cmp -s $ac_file conftest.h 2>/dev/null; then
7890 echo "$ac_file is unchanged"
7893 # Remove last slash and all that follows it. Not all systems have dirname.
7894 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7895 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7896 # The file is in a subdirectory.
7897 test ! -d "$ac_dir" && mkdir "$ac_dir"
7900 mv conftest.h $ac_file
7906 cat >> $CONFIG_STATUS <<EOF
7907 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
7908 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
7911 cat >> $CONFIG_STATUS <<\EOF
7912 srcdir=$ac_given_srcdir
7913 while test -n "$ac_sources"; do
7914 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7915 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7917 echo "linking $srcdir/$ac_source to $ac_dest"
7919 if test ! -r $srcdir/$ac_source; then
7920 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7924 # Make relative symlinks.
7925 # Remove last slash and all that follows it. Not all systems have dirname.
7926 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7927 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7928 # The dest file is in a subdirectory.
7929 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7930 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7931 # A "../" for each directory in $ac_dest_dir_suffix.
7932 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7934 ac_dest_dir_suffix= ac_dots=
7938 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7939 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7942 # Make a symlink if possible; otherwise try a hard link.
7943 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7944 ln $srcdir/$ac_source $ac_dest; then :
7946 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7950 cat >> $CONFIG_STATUS <<EOF
7955 with_multisubdir=${with_multisubdir}
7956 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7957 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7958 libgcj_basedir=${libgcj_basedir}
7963 cat >> $CONFIG_STATUS <<\EOF
7965 for am_file in include/config.h gcj/libgcj-config.h; do
7966 case " $CONFIG_HEADERS " in
7968 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7971 am_indx=`expr "$am_indx" + 1`
7973 # Only add multilib support code if we just rebuilt top-level Makefile.
7974 case " $CONFIG_FILES " in
7976 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7977 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7981 # Make subdirectories and `.d
' files. Look in both srcdir and
7982 # builddir for the .java files.
7985 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' \) -print) ;
7986 find . \( -name '*.java
' -o -name '*.cc
' \) -print) | \
7987 fgrep -v testsuite | \
7988 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/' | \
7990 echo "include $f" >> deps.mk
7993 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
7995 if test ! -d $d; then
7996 $libgcj_basedir/../mkinstalldirs $d
8004 chmod +x $CONFIG_STATUS
8005 rm -fr confdefs* $ac_clean_files
8006 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8008 if test "$no_recursion" != yes; then
8010 # Remove --cache-file and --srcdir arguments so they do not pile up.
8011 ac_sub_configure_args=
8013 for ac_arg in $ac_configure_args; do
8014 if test -n "$ac_prev"; then
8019 -cache-file | --cache-file | --cache-fil | --cache-fi \
8020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8021 ac_prev=cache_file ;;
8022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8025 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8027 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8029 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8033 for ac_config_dir in $DIRLTDL; do
8035 # Do not complain, so a configure script can configure whichever
8036 # parts of a large source tree are present.
8037 if test ! -d $srcdir/$ac_config_dir; then
8041 echo configuring in $ac_config_dir
8046 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8048 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8056 # A "../" for each directory in /$ac_config_dir.
8057 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
8060 .) # No --srcdir option. We are building in place.
8061 ac_sub_srcdir=$srcdir ;;
8062 /*) # Absolute path.
8063 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8065 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8068 # Check for guested configure; otherwise get Cygnus style configure.
8069 if test -f $ac_sub_srcdir/configure; then
8070 ac_sub_configure=$ac_sub_srcdir/configure
8071 elif test -f $ac_sub_srcdir/configure.in; then
8072 ac_sub_configure=$ac_configure
8074 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8078 # The recursion is here.
8079 if test -n "$ac_sub_configure"; then
8081 # Make the cache file name correct relative to the subdirectory.
8082 case "$cache_file" in
8083 /*) ac_sub_cache_file=$cache_file ;;
8085 ac_sub_cache_file="$ac_dots$cache_file" ;;
8087 case "$ac_given_INSTALL" in
8088 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8089 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8092 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8093 # The eval makes quoting arguments work.
8094 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8097 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }