3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock avoid locking (might break parallel builds)"
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
37 --disable-getenv-properties
38 don't set system properties from GCJ_PROPERTIES"
40 --enable-hash-synchronization
41 Use global hash table for monitor locks"
43 --enable-libgcj-debug enable runtime debugging code"
45 --enable-interpreter enable interpreter"
47 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
49 --disable-java-net disable java.net"
51 --without-libffi don't use libffi"
53 --disable-jvmpi disable JVMPI support"
55 --with-ecos enable runtime eCos target support"
57 --with-system-zlib use installed libz"
59 --enable-java-gc=TYPE choose garbage collector [boehm]"
61 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
63 --with-x use the X Window System"
65 --enable-java-awt list of AWT peer implementations to be built"
67 # Initialize some variables set by options.
68 # The variables have the same names as the options, with
69 # dashes changed to underlines.
71 cache_file
=.
/config.cache
80 program_transform_name
=s
,x
,x
,
89 bindir
='${exec_prefix}/bin'
90 sbindir
='${exec_prefix}/sbin'
91 libexecdir
='${exec_prefix}/libexec'
92 datadir
='${prefix}/share'
93 sysconfdir
='${prefix}/etc'
94 sharedstatedir
='${prefix}/com'
95 localstatedir
='${prefix}/var'
96 libdir
='${exec_prefix}/lib'
97 includedir
='${prefix}/include'
98 oldincludedir
='/usr/include'
99 infodir
='${prefix}/info'
100 mandir
='${prefix}/man'
102 # Initialize some other variables.
105 SHELL
=${CONFIG_SHELL-/bin/sh}
106 # Maximum number of lines to put in a shell here document.
113 # If the previous option needs an argument, assign it.
114 if test -n "$ac_prev"; then
115 eval "$ac_prev=\$ac_option"
121 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
125 # Accept the important Cygnus configure options, so we can diagnose typos.
129 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
131 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
132 bindir
="$ac_optarg" ;;
134 -build |
--build |
--buil |
--bui |
--bu)
136 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
137 build
="$ac_optarg" ;;
139 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
140 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
141 ac_prev
=cache_file
;;
142 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
143 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
144 cache_file
="$ac_optarg" ;;
146 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
148 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
150 datadir
="$ac_optarg" ;;
152 -disable-* |
--disable-*)
153 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}=no" ;;
161 -enable-* |
--enable-*)
162 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}='$ac_optarg'" ;;
174 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
175 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
176 |
--exec |
--exe |
--ex)
177 ac_prev
=exec_prefix
;;
178 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
179 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
180 |
--exec=* |
--exe=* |
--ex=*)
181 exec_prefix
="$ac_optarg" ;;
183 -gas |
--gas |
--ga |
--g)
184 # Obsolete; use --with-gas.
187 -help |
--help |
--hel |
--he)
188 # Omit some internal or obsolete options to make the list less imposing.
189 # This message is too long to be a string in the A/UX 3.1 sh.
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
194 --cache-file=FILE cache test results in FILE
195 --help print this message
196 --no-create do not create output files
197 --quiet, --silent do not print \`checking...' messages
198 --site-file=FILE use FILE as the site file
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
243 -host |
--host |
--hos |
--ho)
245 -host=* |
--host=* |
--hos=* |
--ho=*)
248 -includedir |
--includedir |
--includedi |
--included |
--include \
249 |
--includ |
--inclu |
--incl |
--inc)
250 ac_prev
=includedir
;;
251 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
252 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
253 includedir
="$ac_optarg" ;;
255 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
257 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
258 infodir
="$ac_optarg" ;;
260 -libdir |
--libdir |
--libdi |
--libd)
262 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
263 libdir
="$ac_optarg" ;;
265 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
266 |
--libexe |
--libex |
--libe)
267 ac_prev
=libexecdir
;;
268 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
269 |
--libexe=* |
--libex=* |
--libe=*)
270 libexecdir
="$ac_optarg" ;;
272 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
273 |
--localstate |
--localstat |
--localsta |
--localst \
274 |
--locals |
--local |
--loca |
--loc |
--lo)
275 ac_prev
=localstatedir
;;
276 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
277 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
278 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
279 localstatedir
="$ac_optarg" ;;
281 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
283 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
284 mandir
="$ac_optarg" ;;
287 # Obsolete; use --without-fp.
290 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
294 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
295 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
298 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
299 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
300 |
--oldin |
--oldi |
--old |
--ol |
--o)
301 ac_prev
=oldincludedir
;;
302 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
303 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
304 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
305 oldincludedir
="$ac_optarg" ;;
307 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
309 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
310 prefix
="$ac_optarg" ;;
312 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
313 |
--program-pre |
--program-pr |
--program-p)
314 ac_prev
=program_prefix
;;
315 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
316 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
317 program_prefix
="$ac_optarg" ;;
319 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
320 |
--program-suf |
--program-su |
--program-s)
321 ac_prev
=program_suffix
;;
322 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
323 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
324 program_suffix
="$ac_optarg" ;;
326 -program-transform-name |
--program-transform-name \
327 |
--program-transform-nam |
--program-transform-na \
328 |
--program-transform-n |
--program-transform- \
329 |
--program-transform |
--program-transfor \
330 |
--program-transfo |
--program-transf \
331 |
--program-trans |
--program-tran \
332 |
--progr-tra |
--program-tr |
--program-t)
333 ac_prev
=program_transform_name
;;
334 -program-transform-name=* |
--program-transform-name=* \
335 |
--program-transform-nam=* |
--program-transform-na=* \
336 |
--program-transform-n=* |
--program-transform-=* \
337 |
--program-transform=* |
--program-transfor=* \
338 |
--program-transfo=* |
--program-transf=* \
339 |
--program-trans=* |
--program-tran=* \
340 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
341 program_transform_name
="$ac_optarg" ;;
343 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
344 |
-silent |
--silent |
--silen |
--sile |
--sil)
347 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
349 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
351 sbindir
="$ac_optarg" ;;
353 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
354 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
355 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
357 ac_prev
=sharedstatedir
;;
358 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
359 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
360 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
362 sharedstatedir
="$ac_optarg" ;;
364 -site |
--site |
--sit)
366 -site=* |
--site=* |
--sit=*)
369 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
371 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
372 sitefile
="$ac_optarg" ;;
374 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
376 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
377 srcdir
="$ac_optarg" ;;
379 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
380 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
381 ac_prev
=sysconfdir
;;
382 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
383 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
384 sysconfdir
="$ac_optarg" ;;
386 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
388 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
389 target
="$ac_optarg" ;;
391 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
394 -version |
--version |
--versio |
--versi |
--vers)
395 echo "configure generated by autoconf version 2.13"
399 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package
=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}='$ac_optarg'" ;;
411 -without-* |
--without-*)
412 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package
=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}=no" ;;
421 # Obsolete; use --with-x.
424 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
425 |
--x-incl |
--x-inc |
--x-in |
--x-i)
426 ac_prev
=x_includes
;;
427 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
428 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
429 x_includes
="$ac_optarg" ;;
431 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
432 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
433 ac_prev
=x_libraries
;;
434 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
435 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
436 x_libraries
="$ac_optarg" ;;
438 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
443 echo "configure: warning: $ac_option: invalid host type" 1>&2
445 if test "x$nonopt" != xNONE
; then
446 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454 if test -n "$ac_prev"; then
455 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460 # File descriptor usage:
463 # 2 errors and warnings
464 # 3 some systems may open it to /dev/tty
465 # 4 used on the Kubota Titan
466 # 6 checking for... messages and results
467 # 5 compiler messages saved in config.log
468 if test "$silent" = yes; then
476 This file contains any messages produced by compilers while
477 running configure, to aid debugging if configure makes a mistake.
480 # Strip out --no-create and --no-recursion so they do not pile up.
481 # Also quote any args containing shell metacharacters.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c) ;;
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
490 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
491 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
492 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
497 # Only set these to C if already set. These must not be set unconditionally
498 # because not all systems understand e.g. LANG=C (notably SCO).
499 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500 # Non-C LC_CTYPE values break the ctype check.
501 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
502 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
503 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
504 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
507 rm -rf conftest
* confdefs.h
508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
511 # A filename unique to this package, relative to the directory that
512 # configure is in, which we can look for to find out if srcdir is correct.
513 ac_unique_file
=java
/lang
/System.java
515 # Find the source files, if location was not specified.
516 if test -z "$srcdir"; then
517 ac_srcdir_defaulted
=yes
518 # Try the directory containing this script, then its parent.
520 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
521 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
523 if test ! -r $srcdir/$ac_unique_file; then
527 ac_srcdir_defaulted
=no
529 if test ! -r $srcdir/$ac_unique_file; then
530 if test "$ac_srcdir_defaulted" = yes; then
531 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
536 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538 # Prefer explicitly selected file to automatically selected ones.
539 if test -z "$sitefile"; then
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE
; then
542 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
544 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 CONFIG_SITE
="$sitefile"
550 for ac_site_file
in $CONFIG_SITE; do
551 if test -r "$ac_site_file"; then
552 echo "loading site script $ac_site_file"
557 if test -r "$cache_file"; then
558 echo "loading cache $cache_file"
561 echo "creating cache $cache_file"
566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
567 ac_cpp
='$CPP $CPPFLAGS'
568 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
569 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
570 cross_compiling
=$ac_cv_prog_cc_cross
574 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
575 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
576 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
583 ac_n
= ac_c
='\c' ac_t
=
588 # This works around the fact that libtool configuration may change LD
589 # for this particular configuration, but some shells, instead of
590 # keeping the changes in LD private, export them just because LD is
592 ORIGINAL_LD_FOR_MULTILIBS
=$LD
594 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
595 echo "configure:596: checking whether ln -s works" >&5
596 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
597 echo $ac_n "(cached) $ac_c" 1>&6
600 if ln -s X conftestdata
2>/dev
/null
603 ac_cv_prog_LN_S
="ln -s"
608 LN_S
="$ac_cv_prog_LN_S"
609 if test "$ac_cv_prog_LN_S" = "ln -s"; then
610 echo "$ac_t""yes" 1>&6
612 echo "$ac_t""no" 1>&6
616 # Check whether --with-target-subdir or --without-target-subdir was given.
617 if test "${with_target_subdir+set}" = set; then
618 withval
="$with_target_subdir"
622 # Check whether --with-cross-host or --without-cross-host was given.
623 if test "${with_cross_host+set}" = set; then
624 withval
="$with_cross_host"
629 # Find a good install program. We prefer a C program (faster),
630 # so one script is as good as another. But avoid the broken or
631 # incompatible versions:
632 # SysV /etc/install, /usr/sbin/install
633 # SunOS /usr/etc/install
636 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
637 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
638 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
639 # ./install, which can be erroneously created by make from ./install.sh.
640 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
641 echo "configure:642: checking for a BSD compatible install" >&5
642 if test -z "$INSTALL"; then
643 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
644 echo $ac_n "(cached) $ac_c" 1>&6
646 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
647 for ac_dir
in $PATH; do
648 # Account for people who put trailing slashes in PATH elements.
650 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
652 # OSF1 and SCO ODT 3.0 have their own names for install.
653 # Don't use installbsd from OSF since it installs stuff as root
655 for ac_prog
in ginstall scoinst
install; do
656 if test -f $ac_dir/$ac_prog; then
657 if test $ac_prog = install &&
658 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
659 # AIX install. It has an incompatible calling convention.
662 ac_cv_path_install
="$ac_dir/$ac_prog -c"
673 if test "${ac_cv_path_install+set}" = set; then
674 INSTALL
="$ac_cv_path_install"
676 # As a last resort, use the slow shell script. We don't cache a
677 # path for INSTALL within a source directory, because that will
678 # break other packages using the cache if that directory is
679 # removed, or if the path is relative.
680 INSTALL
="$ac_install_sh"
683 echo "$ac_t""$INSTALL" 1>&6
685 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
686 # It thinks the first close brace ends the variable substitution.
687 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
689 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
691 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
693 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
694 echo "configure:695: checking whether build environment is sane" >&5
697 echo timestamp
> conftestfile
698 # Do `set' in a subshell so we don't clobber the current shell's
699 # arguments. Must try -L first in case configure is actually a
700 # symlink; some systems play weird games with the mod time of symlinks
701 # (eg FreeBSD returns the mod time of the symlink's containing
704 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
705 if test "$*" = "X"; then
707 set X
`ls -t $srcdir/configure conftestfile`
709 if test "$*" != "X $srcdir/configure conftestfile" \
710 && test "$*" != "X conftestfile $srcdir/configure"; then
712 # If neither matched, then we have a broken ls. This can happen
713 # if, for instance, CONFIG_SHELL is bash and it inherits a
714 # broken ls alias from the environment. This has actually
715 # happened. Such a system could not be considered "sane".
716 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
717 alias in your environment" 1>&2; exit 1; }
720 test "$2" = conftestfile
726 { echo "configure: error: newly created file is older than distributed files!
727 Check your system clock" 1>&2; exit 1; }
730 echo "$ac_t""yes" 1>&6
731 if test "$program_transform_name" = s
,x
,x
,; then
732 program_transform_name
=
734 # Double any \ or $. echo might interpret backslashes.
735 cat <<\EOF_SED
> conftestsed
736 s
,\\,\\\\,g
; s
,\$
,$$
,g
738 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
741 test "$program_prefix" != NONE
&&
742 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
743 # Use a double $ so make ignores it.
744 test "$program_suffix" != NONE
&&
745 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
747 # sed with no file args requires a program.
748 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
750 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
751 echo "configure:752: checking whether ${MAKE-make} sets \${MAKE}" >&5
752 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
753 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
756 cat > conftestmake
<<\EOF
758 @
echo 'ac_maketemp="${MAKE}"'
760 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
761 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
762 if test -n "$ac_maketemp"; then
763 eval ac_cv_prog_make_
${ac_make}_set
=yes
765 eval ac_cv_prog_make_
${ac_make}_set
=no
769 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
770 echo "$ac_t""yes" 1>&6
773 echo "$ac_t""no" 1>&6
774 SET_MAKE
="MAKE=${MAKE-make}"
777 if test $host != $build; then
778 ac_tool_prefix
=${host_alias}-
783 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
784 echo "configure:785: checking for Cygwin environment" >&5
785 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 cat > conftest.
$ac_ext <<EOF
789 #line 790 "configure"
790 #include "confdefs.h"
795 #define __CYGWIN__ __CYGWIN32__
800 if { (eval echo configure
:801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
804 echo "configure: failed program was:" >&5
805 cat conftest.
$ac_ext >&5
813 echo "$ac_t""$ac_cv_cygwin" 1>&6
815 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
816 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
817 echo "configure:818: checking for mingw32 environment" >&5
818 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 cat > conftest.
$ac_ext <<EOF
822 #line 823 "configure"
823 #include "confdefs.h"
829 if { (eval echo configure
:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
833 echo "configure: failed program was:" >&5
834 cat conftest.
$ac_ext >&5
842 echo "$ac_t""$ac_cv_mingw32" 1>&6
844 test "$ac_cv_mingw32" = yes && MINGW32
=yes
846 # Check whether --enable-multilib or --disable-multilib was given.
847 if test "${enable_multilib+set}" = set; then
848 enableval
="$enable_multilib"
849 case "${enableval}" in
852 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
859 # When building with srcdir == objdir, links to the source files will
860 # be created in directories within the target_subdir. We have to
861 # adjust toplevel_srcdir accordingly, so that configure finds
862 # install-sh and other auxiliary files that live in the top-level
864 if test "${srcdir}" = "."; then
865 if test -z "${with_target_subdir}"; then
868 if test "${with_target_subdir}" != "."; then
869 toprel
="${with_multisrctop}../.."
871 toprel
="${with_multisrctop}.."
878 libgcj_basedir
=$srcdir/$toprel/.
/libjava
882 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
883 if test -f $ac_dir/install-sh
; then
885 ac_install_sh
="$ac_aux_dir/install-sh -c"
887 elif test -f $ac_dir/install.sh
; then
889 ac_install_sh
="$ac_aux_dir/install.sh -c"
893 if test -z "$ac_aux_dir"; then
894 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
896 ac_config_guess=$ac_aux_dir/config.guess
897 ac_config_sub=$ac_aux_dir/config.sub
898 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
901 # This overrides the previous occurrence for automake, but not for
902 # autoconf, which is exactly what we want.
904 for ac_dir in .. $srcdir/..; do
905 if test -f $ac_dir/install-sh; then
907 ac_install_sh="$ac_aux_dir/install-sh
-c"
909 elif test -f $ac_dir/install.sh; then
911 ac_install_sh="$ac_aux_dir/install.sh
-c"
915 if test -z "$ac_aux_dir"; then
916 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
918 ac_config_guess=$ac_aux_dir/config.guess
919 ac_config_sub=$ac_aux_dir/config.sub
920 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
924 # This works around an automake problem.
925 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs
"
929 # Do some error checking and defaulting for the host and target type.
931 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
934 # 1. You are not allowed to specify --host, --target, and nonopt at the
936 # 2. Host defaults to nonopt.
937 # 3. If nonopt is not specified, then host defaults to the current host,
938 # as determined by config.guess.
939 # 4. Target and build default to nonopt.
940 # 5. If nonopt is not specified, then target and build default to host.
942 # The aliases save the names the user supplied, while $host etc.
943 # will get canonicalized.
944 case $host---$target---$nonopt in
945 NONE---*---* | *---NONE---* | *---*---NONE) ;;
946 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
950 # Make sure we can run config.sub.
951 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
952 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
955 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
956 echo "configure
:957: checking
host system
type" >&5
959 case "$host_alias" in
963 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
964 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
966 *) host_alias=$nonopt ;;
970 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
971 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974 echo "$ac_t""$host" 1>&6
976 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
977 echo "configure
:978: checking target system
type" >&5
980 case "$target_alias" in
983 NONE) target_alias=$host_alias ;;
984 *) target_alias=$nonopt ;;
988 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
989 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992 echo "$ac_t""$target" 1>&6
994 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
995 echo "configure
:996: checking build system
type" >&5
998 case "$build_alias" in
1001 NONE) build_alias=$host_alias ;;
1002 *) build_alias=$nonopt ;;
1006 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1007 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1008 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1009 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1010 echo "$ac_t""$build" 1>&6
1012 test "$host_alias" != "$target_alias" &&
1013 test "$program_prefix$program_suffix$program_transform_name" = \
1015 program_prefix=${target_alias}-
1021 # Extract the first word of "gcc
", so it can be a program name with args.
1022 set dummy gcc; ac_word=$2
1023 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1024 echo "configure
:1025: checking
for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026 echo $ac_n "(cached
) $ac_c" 1>&6
1028 if test -n "$CC"; then
1029 ac_cv_prog_CC="$CC" # Let the user override the test.
1031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1033 for ac_dir in $ac_dummy; do
1034 test -z "$ac_dir" && ac_dir=.
1035 if test -f $ac_dir/$ac_word; then
1044 if test -n "$CC"; then
1045 echo "$ac_t""$CC" 1>&6
1047 echo "$ac_t""no
" 1>&6
1050 if test -z "$CC"; then
1051 # Extract the first word of "cc
", so it can be a program name with args.
1052 set dummy cc; ac_word=$2
1053 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1054 echo "configure
:1055: checking
for $ac_word" >&5
1055 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1056 echo $ac_n "(cached
) $ac_c" 1>&6
1058 if test -n "$CC"; then
1059 ac_cv_prog_CC="$CC" # Let the user override the test.
1061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1064 for ac_dir in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir=.
1066 if test -f $ac_dir/$ac_word; then
1067 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1068 ac_prog_rejected=yes
1076 if test $ac_prog_rejected = yes; then
1077 # We found a bogon in the path, so make sure we never use it.
1078 set dummy $ac_cv_prog_CC
1080 if test $# -gt 0; then
1081 # We chose a different compiler from the bogus one.
1082 # However, it has the same basename, so the bogon will be chosen
1083 # first if we set CC to just the basename; use the full file name.
1085 set dummy "$ac_dir/$ac_word" "$@
"
1093 if test -n "$CC"; then
1094 echo "$ac_t""$CC" 1>&6
1096 echo "$ac_t""no
" 1>&6
1099 if test -z "$CC"; then
1100 case "`uname -s`" in
1102 # Extract the first word of "cl
", so it can be a program name with args.
1103 set dummy cl; ac_word=$2
1104 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1105 echo "configure
:1106: checking
for $ac_word" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1107 echo $ac_n "(cached
) $ac_c" 1>&6
1109 if test -n "$CC"; then
1110 ac_cv_prog_CC="$CC" # Let the user override the test.
1112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1114 for ac_dir in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir=.
1116 if test -f $ac_dir/$ac_word; then
1125 if test -n "$CC"; then
1126 echo "$ac_t""$CC" 1>&6
1128 echo "$ac_t""no
" 1>&6
1133 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1137 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1138 echo "configure
:1139: checking whether we are using GNU C
" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1140 echo $ac_n "(cached
) $ac_c" 1>&6
1142 cat > conftest.c <<EOF
1147 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1154 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1156 if test $ac_cv_prog_gcc = yes; then
1162 ac_test_CFLAGS="${CFLAGS+set}"
1163 ac_save_CFLAGS="$CFLAGS"
1165 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1166 echo "configure
:1167: checking whether
${CC-cc} accepts
-g" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1168 echo $ac_n "(cached
) $ac_c" 1>&6
1170 echo 'void f(){}' > conftest.c
1171 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1180 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1181 if test "$ac_test_CFLAGS" = set; then
1182 CFLAGS="$ac_save_CFLAGS"
1183 elif test $ac_cv_prog_cc_g = yes; then
1184 if test "$GCC" = yes; then
1190 if test "$GCC" = yes; then
1198 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1199 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1200 # different definition of CXX than other directories, since we don't
1201 # depend on libstdc++-v3 having already been built.
1205 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1206 # flags that come in CXX while configuring libjava. They're different
1207 # from those used for all other target libraries. If CXX is set in
1208 # the environment, respect that here.
1210 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1212 # Extract the first word of "$ac_prog", so it can be a program name with args.
1213 set dummy $ac_prog; ac_word=$2
1214 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1215 echo "configure
:1216: checking
for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1217 echo $ac_n "(cached
) $ac_c" 1>&6
1219 if test -n "$glibjava_CXX"; then
1220 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1224 for ac_dir in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/$ac_word; then
1227 ac_cv_prog_glibjava_CXX="$ac_prog"
1234 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1235 if test -n "$glibjava_CXX"; then
1236 echo "$ac_t""$glibjava_CXX" 1>&6
1238 echo "$ac_t""no
" 1>&6
1241 test -n "$glibjava_CXX" && break
1243 test -n "$glibjava_CXX" || glibjava_CXX="gcc
"
1247 test -z "$glibjava_CXX" && { echo "configure
: error
: no acceptable c
++ found
in \
$PATH" 1>&2; exit 1; }
1249 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1250 echo "configure
:1251: checking whether we are using GNU C
++" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1252 echo $ac_n "(cached
) $ac_c" 1>&6
1254 cat > conftest.C <<EOF
1259 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1266 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1268 if test $ac_cv_prog_gxx = yes; then
1270 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1271 ac_save_CXXFLAGS="$CXXFLAGS"
1273 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1274 echo "configure
:1275: checking whether
${CXX-g++} accepts
-g" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1276 echo $ac_n "(cached
) $ac_c" 1>&6
1278 echo 'void f(){}' > conftest.cc
1279 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1280 ac_cv_prog_cxx_g=yes
1288 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1289 if test "$ac_test_CXXFLAGS" = set; then
1290 CXXFLAGS="$ac_save_CXXFLAGS"
1291 elif test $ac_cv_prog_cxx_g = yes; then
1298 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1308 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1309 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1311 cat >> confdefs.h <<EOF
1312 #define PACKAGE "$PACKAGE"
1315 cat >> confdefs.h <<EOF
1316 #define VERSION "$VERSION"
1321 missing_dir=`cd $ac_aux_dir && pwd`
1322 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
1323 echo "configure
:1324: checking
for working aclocal
" >&5
1324 # Run test in a subshell; some versions of sh will print an error if
1325 # an executable is not found, even if stderr is redirected.
1326 # Redirect stdin to placate older versions of autoconf. Sigh.
1327 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1329 echo "$ac_t""found
" 1>&6
1331 ACLOCAL="$missing_dir/missing aclocal
"
1332 echo "$ac_t""missing
" 1>&6
1335 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1336 echo "configure
:1337: checking
for working autoconf
" >&5
1337 # Run test in a subshell; some versions of sh will print an error if
1338 # an executable is not found, even if stderr is redirected.
1339 # Redirect stdin to placate older versions of autoconf. Sigh.
1340 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1342 echo "$ac_t""found
" 1>&6
1344 AUTOCONF="$missing_dir/missing autoconf
"
1345 echo "$ac_t""missing
" 1>&6
1348 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
1349 echo "configure
:1350: checking
for working automake
" >&5
1350 # Run test in a subshell; some versions of sh will print an error if
1351 # an executable is not found, even if stderr is redirected.
1352 # Redirect stdin to placate older versions of autoconf. Sigh.
1353 if (automake --version) < /dev/null > /dev/null 2>&1; then
1355 echo "$ac_t""found
" 1>&6
1357 AUTOMAKE="$missing_dir/missing automake
"
1358 echo "$ac_t""missing
" 1>&6
1361 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1362 echo "configure
:1363: checking
for working autoheader
" >&5
1363 # Run test in a subshell; some versions of sh will print an error if
1364 # an executable is not found, even if stderr is redirected.
1365 # Redirect stdin to placate older versions of autoconf. Sigh.
1366 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1367 AUTOHEADER=autoheader
1368 echo "$ac_t""found
" 1>&6
1370 AUTOHEADER="$missing_dir/missing autoheader
"
1371 echo "$ac_t""missing
" 1>&6
1374 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1375 echo "configure
:1376: checking
for working makeinfo
" >&5
1376 # Run test in a subshell; some versions of sh will print an error if
1377 # an executable is not found, even if stderr is redirected.
1378 # Redirect stdin to placate older versions of autoconf. Sigh.
1379 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1381 echo "$ac_t""found
" 1>&6
1383 MAKEINFO="$missing_dir/missing makeinfo
"
1384 echo "$ac_t""missing
" 1>&6
1389 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1390 # run it explicitly here, it will be run implicitly before
1391 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1392 # be run before AC_CANONICAL_HOST.
1393 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1394 echo "configure
:1395: checking build system
type" >&5
1397 case "$build_alias" in
1400 NONE) build_alias=$host_alias ;;
1401 *) build_alias=$nonopt ;;
1405 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1406 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1407 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1408 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1409 echo "$ac_t""$build" 1>&6
1412 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1413 set dummy ${ac_tool_prefix}as; ac_word=$2
1414 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1415 echo "configure
:1416: checking
for $ac_word" >&5
1416 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1417 echo $ac_n "(cached
) $ac_c" 1>&6
1419 if test -n "$AS"; then
1420 ac_cv_prog_AS="$AS" # Let the user override the test.
1422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1424 for ac_dir in $ac_dummy; do
1425 test -z "$ac_dir" && ac_dir=.
1426 if test -f $ac_dir/$ac_word; then
1427 ac_cv_prog_AS="${ac_tool_prefix}as
"
1432 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1436 if test -n "$AS"; then
1437 echo "$ac_t""$AS" 1>&6
1439 echo "$ac_t""no
" 1>&6
1444 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1445 set dummy ${ac_tool_prefix}ar; ac_word=$2
1446 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1447 echo "configure
:1448: checking
for $ac_word" >&5
1448 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1449 echo $ac_n "(cached
) $ac_c" 1>&6
1451 if test -n "$AR"; then
1452 ac_cv_prog_AR="$AR" # Let the user override the test.
1454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1456 for ac_dir in $ac_dummy; do
1457 test -z "$ac_dir" && ac_dir=.
1458 if test -f $ac_dir/$ac_word; then
1459 ac_cv_prog_AR="${ac_tool_prefix}ar"
1464 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1468 if test -n "$AR"; then
1469 echo "$ac_t""$AR" 1>&6
1471 echo "$ac_t""no
" 1>&6
1476 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1477 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1478 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1479 echo "configure
:1480: checking
for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1481 echo $ac_n "(cached
) $ac_c" 1>&6
1483 if test -n "$RANLIB"; then
1484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1488 for ac_dir in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir=.
1490 if test -f $ac_dir/$ac_word; then
1491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1498 RANLIB="$ac_cv_prog_RANLIB"
1499 if test -n "$RANLIB"; then
1500 echo "$ac_t""$RANLIB" 1>&6
1502 echo "$ac_t""no
" 1>&6
1506 if test -z "$ac_cv_prog_RANLIB"; then
1507 if test -n "$ac_tool_prefix"; then
1508 # Extract the first word of "ranlib
", so it can be a program name with args.
1509 set dummy ranlib; ac_word=$2
1510 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1511 echo "configure
:1512: checking
for $ac_word" >&5
1512 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1513 echo $ac_n "(cached
) $ac_c" 1>&6
1515 if test -n "$RANLIB"; then
1516 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1520 for ac_dir in $ac_dummy; do
1521 test -z "$ac_dir" && ac_dir=.
1522 if test -f $ac_dir/$ac_word; then
1523 ac_cv_prog_RANLIB="ranlib
"
1528 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1531 RANLIB="$ac_cv_prog_RANLIB"
1532 if test -n "$RANLIB"; then
1533 echo "$ac_t""$RANLIB" 1>&6
1535 echo "$ac_t""no
" 1>&6
1544 # Find a good install program. We prefer a C program (faster),
1545 # so one script is as good as another. But avoid the broken or
1546 # incompatible versions:
1547 # SysV /etc/install, /usr/sbin/install
1548 # SunOS /usr/etc/install
1549 # IRIX /sbin/install
1551 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1552 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1553 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1554 # ./install, which can be erroneously created by make from ./install.sh.
1555 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1556 echo "configure
:1557: checking
for a BSD compatible
install" >&5
1557 if test -z "$INSTALL"; then
1558 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1559 echo $ac_n "(cached
) $ac_c" 1>&6
1561 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1562 for ac_dir in $PATH; do
1563 # Account for people who put trailing slashes in PATH elements.
1565 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1567 # OSF1 and SCO ODT 3.0 have their own names for install.
1568 # Don't use installbsd from OSF since it installs stuff as root
1570 for ac_prog in ginstall scoinst install; do
1571 if test -f $ac_dir/$ac_prog; then
1572 if test $ac_prog = install &&
1573 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1574 # AIX install. It has an incompatible calling convention.
1577 ac_cv_path_install="$ac_dir/$ac_prog -c"
1588 if test "${ac_cv_path_install+set}" = set; then
1589 INSTALL="$ac_cv_path_install"
1591 # As a last resort, use the slow shell script. We don't cache a
1592 # path for INSTALL within a source directory, because that will
1593 # break other packages using the cache if that directory is
1594 # removed, or if the path is relative.
1595 INSTALL="$ac_install_sh"
1598 echo "$ac_t""$INSTALL" 1>&6
1600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1601 # It thinks the first close brace ends the variable substitution.
1602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1609 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1610 echo "configure
:1611: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1611 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1612 if test "${enable_maintainer_mode+set}" = set; then
1613 enableval="$enable_maintainer_mode"
1614 USE_MAINTAINER_MODE=$enableval
1616 USE_MAINTAINER_MODE=no
1619 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1622 if test $USE_MAINTAINER_MODE = yes; then
1623 MAINTAINER_MODE_TRUE=
1624 MAINTAINER_MODE_FALSE='#'
1626 MAINTAINER_MODE_TRUE='#'
1627 MAINTAINER_MODE_FALSE=
1629 MAINT=$MAINTAINER_MODE_TRUE
1635 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1636 echo "configure
:1637: checking
for executable suffix
" >&5
1637 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1638 echo $ac_n "(cached
) $ac_c" 1>&6
1640 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1644 echo 'int main () { return 0; }' > conftest.$ac_ext
1646 if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1647 for file in conftest.*; do
1649 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1650 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1654 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1657 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1662 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1663 echo "$ac_t""${ac_cv_exeext}" 1>&6
1667 # configure.host sets the following important variables
1668 # libgcj_cflags - host specific C compiler flags
1669 # libgcj_cxxflags - host specific C++ compiler flags
1670 # libgcj_javaflags - host specific Java compiler flags
1676 . ${srcdir}/configure.host
1678 LIBGCJ_CFLAGS="${libgcj_cflags}"
1679 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1680 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1690 # Only use libltdl for native builds.
1691 if test -z "${with_cross_host}"; then
1692 case $enable_ltdl_convenience in
1693 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1694 "") enable_ltdl_convenience=yes
1695 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1697 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1698 INCLTDL='-I${top_srcdir}/''libltdl'
1702 cat >> confdefs.h <<\EOF
1706 # Sigh. Libtool's macro doesn't do the right thing.
1707 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1708 # FIXME: this is a hack.
1709 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1710 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1715 # Check whether --enable-shared or --disable-shared was given.
1716 if test "${enable_shared+set}" = set; then
1717 enableval="$enable_shared"
1718 p=${PACKAGE-default}
1720 yes) enable_shared=yes ;;
1721 no) enable_shared=no ;;
1724 # Look at the argument we got. We use all the common list separators.
1725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1726 for pkg in $enableval; do
1727 if test "X
$pkg" = "X
$p"; then
1738 # Check whether --enable-static or --disable-static was given.
1739 if test "${enable_static+set}" = set; then
1740 enableval="$enable_static"
1741 p=${PACKAGE-default}
1743 yes) enable_static=yes ;;
1744 no) enable_static=no ;;
1747 # Look at the argument we got. We use all the common list separators.
1748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1749 for pkg in $enableval; do
1750 if test "X
$pkg" = "X
$p"; then
1761 # Check whether --enable-fast-install or --disable-fast-install was given.
1762 if test "${enable_fast_install+set}" = set; then
1763 enableval="$enable_fast_install"
1764 p=${PACKAGE-default}
1766 yes) enable_fast_install=yes ;;
1767 no) enable_fast_install=no ;;
1769 enable_fast_install=no
1770 # Look at the argument we got. We use all the common list separators.
1771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1772 for pkg in $enableval; do
1773 if test "X
$pkg" = "X
$p"; then
1774 enable_fast_install=yes
1781 enable_fast_install=yes
1784 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1785 if test "${with_gnu_ld+set}" = set; then
1786 withval="$with_gnu_ld"
1787 test "$withval" = no || with_gnu_ld=yes
1793 if test "$GCC" = yes; then
1794 # Check if gcc -print-prog-name=ld gives a path.
1795 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1796 echo "configure
:1797: checking
for ld used by GCC
" >&5
1799 # gcc leaves a trailing carriage return which upsets mingw
1800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1805 # Accept absolute paths.
1806 [\\/]* | [A-Za-z]:[\\/]*)
1807 re_direlt='/[^/][^/]*/\.\./'
1808 # Canonicalize the path of ld
1809 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1810 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1811 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1813 test -z "$LD" && LD="$ac_prog"
1816 # If it fails, then pretend we aren't using GCC.
1820 # If it is relative, then search for the first ld in PATH.
1824 elif test "$with_gnu_ld" = yes; then
1825 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1826 echo "configure
:1827: checking
for GNU ld
" >&5
1828 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1829 echo "configure
:1830: checking
for non-GNU ld
" >&5
1831 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1832 echo $ac_n "(cached
) $ac_c" 1>&6
1834 if test -z "$LD"; then
1835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1836 for ac_dir in $PATH; do
1837 test -z "$ac_dir" && ac_dir=.
1838 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1839 lt_cv_path_LD="$ac_dir/$ac_prog"
1840 # Check to see if the program is GNU ld. I'd rather use --version,
1841 # but apparently some GNU ld's only accept -v.
1842 # Break only if it was the GNU/non-GNU ld that we prefer.
1843 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1844 test "$with_gnu_ld" != no && break
1846 test "$with_gnu_ld" != yes && break
1852 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1857 if test -n "$LD"; then
1858 echo "$ac_t""$LD" 1>&6
1860 echo "$ac_t""no
" 1>&6
1862 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1863 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1864 echo "configure
:1865: checking
if the linker
($LD) is GNU ld
" >&5
1865 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1866 echo $ac_n "(cached
) $ac_c" 1>&6
1868 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1869 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1870 lt_cv_prog_gnu_ld=yes
1872 lt_cv_prog_gnu_ld=no
1876 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1877 with_gnu_ld=$lt_cv_prog_gnu_ld
1880 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1881 echo "configure
:1882: checking
for $LD option to reload object files
" >&5
1882 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1883 echo $ac_n "(cached
) $ac_c" 1>&6
1885 lt_cv_ld_reload_flag='-r'
1888 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1889 reload_flag=$lt_cv_ld_reload_flag
1890 test -n "$reload_flag" && reload_flag=" $reload_flag"
1892 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1893 echo "configure
:1894: checking
for BSD-compatible nm
" >&5
1894 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1895 echo $ac_n "(cached
) $ac_c" 1>&6
1897 if test -n "$NM"; then
1898 # Let the user override the test.
1901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1902 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1903 test -z "$ac_dir" && ac_dir=.
1904 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1905 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1906 # Check to see if the nm accepts a BSD-compat flag.
1907 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1908 # nm: unknown option "B
" ignored
1909 # Tru64's nm complains that /dev/null is an invalid object file
1910 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1911 lt_cv_path_NM="$tmp_nm -B"
1913 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1914 lt_cv_path_NM="$tmp_nm -p"
1917 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1918 continue # so that we can try to find one that supports BSD flags
1923 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1928 echo "$ac_t""$NM" 1>&6
1930 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1931 echo "configure
:1932: checking how to recognise dependant libraries
" >&5
1932 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1933 echo $ac_n "(cached
) $ac_c" 1>&6
1935 lt_cv_file_magic_cmd='$MAGIC_CMD'
1936 lt_cv_file_magic_test_file=
1937 lt_cv_deplibs_check_method='unknown'
1938 # Need to set the preceding variable on all platforms that support
1939 # interlibrary dependencies.
1940 # 'none' -- dependencies not supported.
1941 # `unknown' -- same as none, but documents that we really don't know.
1942 # 'pass_all' -- all dependencies passed with no checks.
1943 # 'test_compile' -- check by making test program.
1944 # 'file_magic [regex]' -- check by looking for files in library path
1945 # which responds to the $file_magic_cmd with a given egrep regex.
1946 # If you have `file' or equivalent on your system and you're not sure
1947 # whether `pass_all' will *always* work, you probably want this one.
1951 lt_cv_deplibs_check_method=pass_all
1955 lt_cv_deplibs_check_method=pass_all
1959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1960 lt_cv_file_magic_cmd='/usr/bin/file -L'
1961 lt_cv_file_magic_test_file=/shlib/libc.so
1964 cygwin* | mingw* |pw32*)
1965 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1966 lt_cv_file_magic_cmd='$OBJDUMP -f'
1969 darwin* | rhapsody*)
1970 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1971 lt_cv_file_magic_cmd='/usr/bin/file -L'
1973 rhapsody* | darwin1.012)
1974 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1977 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1983 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1986 # Not sure whether the presence of OpenBSD here was a mistake.
1987 # Let's accept both of them until this is cleared up.
1988 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1989 lt_cv_file_magic_cmd=/usr/bin/file
1990 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1994 lt_cv_deplibs_check_method=pass_all
1999 lt_cv_deplibs_check_method=pass_all
2003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2004 lt_cv_file_magic_cmd=/usr/bin/file
2005 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2011 # this will be overridden with pass_all, but let us keep it just in case
2012 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2016 *-32|*"-32 ") libmagic=32-bit;;
2017 *-n32|*"-n32 ") libmagic=N32;;
2018 *-64|*"-64 ") libmagic=64-bit;;
2019 *) libmagic=never-match;;
2021 # this will be overridden with pass_all, but let us keep it just in case
2022 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2025 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2026 lt_cv_deplibs_check_method=pass_all
2029 # This must be Linux ELF.
2032 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2033 lt_cv_deplibs_check_method=pass_all ;;
2035 # glibc up to 2.1.1 does not perform some relocations on ARM
2036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2038 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2042 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2043 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2045 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2051 lt_cv_file_magic_cmd=/usr/bin/file
2052 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2055 osf3* | osf4* | osf5*)
2056 # this will be overridden with pass_all, but let us keep it just in case
2057 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2058 lt_cv_file_magic_test_file=/shlib/libc.so
2059 lt_cv_deplibs_check_method=pass_all
2063 lt_cv_deplibs_check_method=pass_all
2067 lt_cv_deplibs_check_method=pass_all
2068 lt_cv_file_magic_test_file=/lib/libc.so
2071 sysv5uw[78]* | sysv4*uw2*)
2072 lt_cv_deplibs_check_method=pass_all
2075 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2076 case $host_vendor in
2078 lt_cv_deplibs_check_method=pass_all
2081 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]'
2082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2090 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2091 file_magic_cmd=$lt_cv_file_magic_cmd
2092 deplibs_check_method=$lt_cv_deplibs_check_method
2094 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2095 echo "configure
:2096: checking
for object suffix
" >&5
2096 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2097 echo $ac_n "(cached
) $ac_c" 1>&6
2100 echo 'int i = 1;' > conftest.$ac_ext
2101 if { (eval echo configure:2102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2102 for ac_file in conftest.*; do
2105 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2109 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2114 echo "$ac_t""$ac_cv_objext" 1>&6
2115 OBJEXT=$ac_cv_objext
2116 ac_objext=$ac_cv_objext
2118 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2120 # Only perform the check for file, if the check method requires it
2121 case $deplibs_check_method in
2123 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2124 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2125 echo "configure
:2126: checking
for ${ac_tool_prefix}file" >&5
2126 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2127 echo $ac_n "(cached
) $ac_c" 1>&6
2131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2134 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2137 ac_save_MAGIC_CMD="$MAGIC_CMD"
2138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2139 ac_dummy="/usr
/bin
:$PATH"
2140 for ac_dir in $ac_dummy; do
2141 test -z "$ac_dir" && ac_dir=.
2142 if test -f $ac_dir/${ac_tool_prefix}file; then
2143 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2144 if test -n "$file_magic_test_file"; then
2145 case $deplibs_check_method in
2147 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2149 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2150 egrep "$file_magic_regex" > /dev/null; then
2155 *** Warning: the command libtool uses to detect shared libraries,
2156 *** $file_magic_cmd, produces output that libtool cannot recognize.
2157 *** The result is that libtool may fail to recognize shared libraries
2158 *** as such. This will affect the creation of libtool libraries that
2159 *** depend on shared libraries, but programs linked with such libtool
2160 *** libraries will work regardless of this problem. Nevertheless, you
2161 *** may want to report the problem to your system manager and/or to
2162 *** bug-libtool@gnu.org
2172 MAGIC_CMD="$ac_save_MAGIC_CMD"
2177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2178 if test -n "$MAGIC_CMD"; then
2179 echo "$ac_t""$MAGIC_CMD" 1>&6
2181 echo "$ac_t""no
" 1>&6
2184 if test -z "$lt_cv_path_MAGIC_CMD"; then
2185 if test -n "$ac_tool_prefix"; then
2186 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2187 echo "configure
:2188: checking
for file" >&5
2188 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2189 echo $ac_n "(cached
) $ac_c" 1>&6
2193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2199 ac_save_MAGIC_CMD="$MAGIC_CMD"
2200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2201 ac_dummy="/usr
/bin
:$PATH"
2202 for ac_dir in $ac_dummy; do
2203 test -z "$ac_dir" && ac_dir=.
2204 if test -f $ac_dir/file; then
2205 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2206 if test -n "$file_magic_test_file"; then
2207 case $deplibs_check_method in
2209 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2212 egrep "$file_magic_regex" > /dev/null; then
2217 *** Warning: the command libtool uses to detect shared libraries,
2218 *** $file_magic_cmd, produces output that libtool cannot recognize.
2219 *** The result is that libtool may fail to recognize shared libraries
2220 *** as such. This will affect the creation of libtool libraries that
2221 *** depend on shared libraries, but programs linked with such libtool
2222 *** libraries will work regardless of this problem. Nevertheless, you
2223 *** may want to report the problem to your system manager and/or to
2224 *** bug-libtool@gnu.org
2234 MAGIC_CMD="$ac_save_MAGIC_CMD"
2239 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2240 if test -n "$MAGIC_CMD"; then
2241 echo "$ac_t""$MAGIC_CMD" 1>&6
2243 echo "$ac_t""no
" 1>&6
2255 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2257 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2258 echo "configure
:2259: checking
for $ac_word" >&5
2259 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2260 echo $ac_n "(cached
) $ac_c" 1>&6
2262 if test -n "$RANLIB"; then
2263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2267 for ac_dir in $ac_dummy; do
2268 test -z "$ac_dir" && ac_dir=.
2269 if test -f $ac_dir/$ac_word; then
2270 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2277 RANLIB="$ac_cv_prog_RANLIB"
2278 if test -n "$RANLIB"; then
2279 echo "$ac_t""$RANLIB" 1>&6
2281 echo "$ac_t""no
" 1>&6
2285 if test -z "$ac_cv_prog_RANLIB"; then
2286 if test -n "$ac_tool_prefix"; then
2287 # Extract the first word of "ranlib
", so it can be a program name with args.
2288 set dummy ranlib; ac_word=$2
2289 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2290 echo "configure
:2291: checking
for $ac_word" >&5
2291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2292 echo $ac_n "(cached
) $ac_c" 1>&6
2294 if test -n "$RANLIB"; then
2295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2299 for ac_dir in $ac_dummy; do
2300 test -z "$ac_dir" && ac_dir=.
2301 if test -f $ac_dir/$ac_word; then
2302 ac_cv_prog_RANLIB="ranlib
"
2307 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2310 RANLIB="$ac_cv_prog_RANLIB"
2311 if test -n "$RANLIB"; then
2312 echo "$ac_t""$RANLIB" 1>&6
2314 echo "$ac_t""no
" 1>&6
2322 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}strip; ac_word=$2
2324 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2325 echo "configure
:2326: checking
for $ac_word" >&5
2326 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2327 echo $ac_n "(cached
) $ac_c" 1>&6
2329 if test -n "$STRIP"; then
2330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2334 for ac_dir in $ac_dummy; do
2335 test -z "$ac_dir" && ac_dir=.
2336 if test -f $ac_dir/$ac_word; then
2337 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2344 STRIP="$ac_cv_prog_STRIP"
2345 if test -n "$STRIP"; then
2346 echo "$ac_t""$STRIP" 1>&6
2348 echo "$ac_t""no
" 1>&6
2352 if test -z "$ac_cv_prog_STRIP"; then
2353 if test -n "$ac_tool_prefix"; then
2354 # Extract the first word of "strip
", so it can be a program name with args.
2355 set dummy strip; ac_word=$2
2356 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2357 echo "configure
:2358: checking
for $ac_word" >&5
2358 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2359 echo $ac_n "(cached
) $ac_c" 1>&6
2361 if test -n "$STRIP"; then
2362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2366 for ac_dir in $ac_dummy; do
2367 test -z "$ac_dir" && ac_dir=.
2368 if test -f $ac_dir/$ac_word; then
2369 ac_cv_prog_STRIP="strip
"
2374 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2377 STRIP="$ac_cv_prog_STRIP"
2378 if test -n "$STRIP"; then
2379 echo "$ac_t""$STRIP" 1>&6
2381 echo "$ac_t""no
" 1>&6
2390 # Check for any special flags to pass to ltconfig.
2391 libtool_flags="--cache-file=$cache_file"
2392 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2393 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2394 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2395 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2396 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2397 libtool_flags="$libtool_flags --enable-dlopen"
2399 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2400 if test "${enable_libtool_lock+set}" = set; then
2401 enableval="$enable_libtool_lock"
2405 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2406 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2408 # Check whether --with-pic or --without-pic was given.
2409 if test "${with_pic+set}" = set; then
2416 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2417 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2419 # Some flags need to be propagated to the compiler or linker for good
2423 # Find out which ABI we are using.
2424 echo '#line 2425 "configure
"' > conftest.$ac_ext
2425 if { (eval echo configure:2426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2426 case `/usr/bin/file conftest.$ac_objext` in
2442 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2443 SAVE_CFLAGS="$CFLAGS"
2444 CFLAGS="$CFLAGS -belf"
2445 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2446 echo "configure
:2447: checking whether the C compiler needs
-belf" >&5
2447 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2448 echo $ac_n "(cached
) $ac_c" 1>&6
2452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2456 cross_compiling=$ac_cv_prog_cc_cross
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure
"
2460 #include "confdefs.h
"
2466 if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2468 lt_cv_cc_needs_belf=yes
2470 echo "configure
: failed program was
:" >&5
2471 cat conftest.$ac_ext >&5
2473 lt_cv_cc_needs_belf=no
2477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2481 cross_compiling=$ac_cv_prog_cc_cross
2485 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2486 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2487 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2488 CFLAGS="$SAVE_CFLAGS"
2495 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2496 echo "configure
:2497: checking how to run the C
++ preprocessor
" >&5
2497 if test -z "$CXXCPP"; then
2498 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2499 echo $ac_n "(cached
) $ac_c" 1>&6
2502 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2503 ac_cpp='$CXXCPP $CPPFLAGS'
2504 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2505 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2506 cross_compiling=$ac_cv_prog_cxx_cross
2507 CXXCPP="${CXX-g++} -E"
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure
"
2510 #include "confdefs.h
"
2513 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2514 { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2516 if test -z "$ac_err"; then
2520 echo "configure
: failed program was
:" >&5
2521 cat conftest.$ac_ext >&5
2526 ac_cv_prog_CXXCPP="$CXXCPP"
2528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2529 ac_cpp='$CPP $CPPFLAGS'
2530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2532 cross_compiling=$ac_cv_prog_cc_cross
2535 CXXCPP="$ac_cv_prog_CXXCPP"
2536 echo "$ac_t""$CXXCPP" 1>&6
2539 # Save cache, so that ltconfig can load it
2540 cat > confcache <<\EOF
2541 # This file is a shell script that caches the results of configure
2542 # tests run on this system so they can be shared between configure
2543 # scripts and configure runs. It is not useful on other systems.
2544 # If it contains results you don't want to keep, you may remove or edit it.
2546 # By default, configure uses ./config.cache as the cache file,
2547 # creating it if it does not exist already. You can give configure
2548 # the --cache-file=FILE option to use a different cache file; that is
2549 # what configure does when it calls configure scripts in
2550 # subdirectories, so they share the cache.
2551 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2552 # config.status only pays attention to the cache file if you give it the
2553 # --recheck option to rerun configure.
2556 # The following way of writing the cache mishandles newlines in values,
2557 # but we know of no workaround that is simple, portable, and efficient.
2558 # So, don't put newlines in cache variables' values.
2559 # Ultrix sh set writes to stderr and can't be redirected directly,
2560 # and sets the high bit in the cache file unless we assign to the vars.
2562 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2564 # `set' does not quote correctly, so add quotes (double-quote substitution
2565 # turns \\\\ into \\, and sed turns \\ into \).
2567 -e "s
/'/'\\\\''/g
" \
2568 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2571 # `set' quotes correctly as required by POSIX, so do not add quotes.
2572 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2575 if cmp -s $cache_file confcache; then
2578 if test -w $cache_file; then
2579 echo "updating cache
$cache_file"
2580 cat confcache > $cache_file
2582 echo "not updating unwritable cache
$cache_file"
2588 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2589 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2590 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2591 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2592 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2593 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2594 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2595 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2596 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2597 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2599 # Reload cache, that may have been modified by ltconfig
2600 if test -r "$cache_file"; then
2601 echo "loading cache
$cache_file"
2604 echo "creating cache
$cache_file"
2609 # This can be used to rebuild libtool when needed
2610 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2612 # Always use our own libtool.
2613 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2615 # Redirect the config.log output again, so that the ltconfig log is not
2616 # clobbered by the next message.
2617 exec 5>>./config.log
2621 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2623 lt_save_CFLAGS="$CFLAGS"
2624 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2625 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2626 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2627 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2628 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2629 deplibs_check_method="$deplibs_check_method" \
2630 file_magic_cmd="$file_magic_cmd" \
2631 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2632 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2633 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2635 CFLAGS="$lt_save_CFLAGS"
2637 # Redirect the config.log output again, so that the ltconfig log is not
2638 # clobbered by the next message.
2639 exec 5>>./config.log
2649 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2658 if test -d $srcdir/testsuite; then
2660 TESTSUBDIR_FALSE='#'
2666 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2667 if test "${enable_getenv_properties+set}" = set; then
2668 enableval="$enable_getenv_properties"
2673 if test -z "$enable_getenv_properties"; then
2674 enable_getenv_properties=${enable_getenv_properties_default-yes}
2676 if test "$enable_getenv_properties" = no; then
2677 cat >> confdefs.h <<\EOF
2678 #define DISABLE_GETENV_PROPERTIES 1
2683 if test -z "$enable_main_args"; then
2684 enable_main_args=${enable_main_args_default-yes}
2686 if test "$enable_main_args" = no; then
2687 cat >> confdefs.h <<\EOF
2688 #define DISABLE_MAIN_ARGS 1
2694 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2695 if test "${enable_hash_synchronization+set}" = set; then
2696 enableval="$enable_hash_synchronization"
2701 if test -z "$enable_hash_synchronization"; then
2702 enable_hash_synchronization=$enable_hash_synchronization_default
2705 if test "${slow_pthread_self}" = "yes"; then
2706 cat >> confdefs.h <<\EOF
2707 #define SLOW_PTHREAD_SELF 1
2715 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2716 if test "${enable_libgcj_debug+set}" = set; then
2717 enableval="$enable_libgcj_debug"
2718 if test "$enable_libgcj_debug" = yes; then
2719 cat >> confdefs.h <<\EOF
2728 # Check whether --enable-interpreter or --disable-interpreter was given.
2729 if test "${enable_interpreter+set}" = set; then
2730 enableval="$enable_interpreter"
2731 if test "$enable_interpreter" = yes; then
2732 # This can also be set in configure.host.
2733 libgcj_interpreter=yes
2734 elif test "$enable_interpreter" = no; then
2735 libgcj_interpreter=no
2740 if test "$libgcj_interpreter" = yes; then
2741 cat >> confdefs.h <<\EOF
2742 #define INTERPRETER 1
2747 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2748 echo "configure
:2749: checking
for exception model to use
" >&5
2751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2752 ac_cpp='$CXXCPP $CPPFLAGS'
2753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2755 cross_compiling=$ac_cv_prog_cxx_cross
2757 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2758 if test "${enable_sjlj_exceptions+set}" = set; then
2759 enableval="$enable_sjlj_exceptions"
2762 cat > conftest.$ac_ext << EOF
2763 #line 2764 "configure
"
2772 old_CXXFLAGS="$CXXFLAGS"
2774 if { (eval echo configure:2775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2775 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2776 enable_sjlj_exceptions=yes
2777 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2778 enable_sjlj_exceptions=no
2781 CXXFLAGS="$old_CXXFLAGS"
2785 if test x$enable_sjlj_exceptions = xyes; then
2786 cat >> confdefs.h <<\EOF
2787 #define SJLJ_EXCEPTIONS 1
2790 ac_exception_model_name=sjlj
2791 elif test x$enable_sjlj_exceptions = xno; then
2792 ac_exception_model_name="call frame
"
2794 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2801 cross_compiling=$ac_cv_prog_cc_cross
2803 echo "$ac_t""$ac_exception_model_name" 1>&6
2805 # If we are non using SJLJ exceptions, and this host does not have support
2806 # for unwinding from a signal handler, enable checked dereferences and divides.
2807 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2808 CHECKREFSPEC=-fcheck-references
2809 DIVIDESPEC=-fuse-divide-subroutine
2813 # Check whether --enable-java-net or --disable-java-net was given.
2814 if test "${enable_java_net+set}" = set; then
2815 enableval="$enable_java_net"
2820 if test -z "$enable_java_net"; then
2821 enable_java_net=${enable_java_net_default-yes}
2823 if test "$enable_java_net" = no; then
2824 cat >> confdefs.h <<\EOF
2825 #define DISABLE_JAVA_NET 1
2830 # Check whether --with-libffi or --without-libffi was given.
2831 if test "${with_libffi+set}" = set; then
2832 withval="$with_libffi"
2835 with_libffi=${with_libffi_default-yes}
2841 if test "$with_libffi" != no; then
2842 cat >> confdefs.h <<\EOF
2843 #define USE_LIBFFI 1
2846 LIBFFI=../libffi/libffi_convenience.la
2847 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2852 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2853 if test "${enable_jvmpi+set}" = set; then
2854 enableval="$enable_jvmpi"
2859 if test "$enable_jvmpi" != no; then
2860 cat >> confdefs.h <<\EOF
2861 #define ENABLE_JVMPI 1
2866 TARGET_ECOS=${PROCESS-"no"}
2867 # Check whether --with-ecos or --without-ecos was given.
2868 if test "${with_ecos+set}" = set; then
2869 withval="$with_ecos"
2870 TARGET_ECOS="$with_ecos"
2876 case "$TARGET_ECOS" in
2880 PLATFORMOBJS=win32.lo
2885 PLATFORMOBJS=posix.lo
2892 cat >> confdefs.h <<\EOF
2896 PLATFORMOBJS=posix.lo
2903 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
2904 echo "configure
:2905: checking how to run the C preprocessor
" >&5
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2909 if test -z "$CPP"; then
2910 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2911 echo $ac_n "(cached
) $ac_c" 1>&6
2913 # This must be in double quotes, not single quotes, because CPP may get
2914 # substituted into the Makefile and "${CC-cc}" will confuse make.
2916 # On the NeXT, cc -E runs the code through the compiler's parser,
2917 # not just through cpp.
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure
"
2920 #include "confdefs.h
"
2924 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2925 { (eval echo configure:2926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2927 if test -z "$ac_err"; then
2931 echo "configure
: failed program was
:" >&5
2932 cat conftest.$ac_ext >&5
2934 CPP="${CC-cc} -E -traditional-cpp"
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure
"
2937 #include "confdefs.h
"
2941 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2942 { (eval echo configure:2943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2944 if test -z "$ac_err"; then
2948 echo "configure
: failed program was
:" >&5
2949 cat conftest.$ac_ext >&5
2951 CPP="${CC-cc} -nologo -E"
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure
"
2954 #include "confdefs.h
"
2958 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2959 { (eval echo configure:2960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2961 if test -z "$ac_err"; then
2965 echo "configure
: failed program was
:" >&5
2966 cat conftest.$ac_ext >&5
2975 ac_cv_prog_CPP="$CPP"
2977 CPP="$ac_cv_prog_CPP"
2979 ac_cv_prog_CPP="$CPP"
2981 echo "$ac_t""$CPP" 1>&6
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure
"
2985 #include "confdefs.h
"
2988 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2989 egrep "uint32_t
" >/dev/null 2>&1; then
2991 cat >> confdefs.h <<\EOF
2992 #define HAVE_INT32_DEFINED 1
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure
"
3000 #include "confdefs.h
"
3001 #include <inttypes.h>
3003 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3004 egrep "uint32_t
" >/dev/null 2>&1; then
3006 cat >> confdefs.h <<\EOF
3007 #define HAVE_INT32_DEFINED 1
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure
"
3015 #include "confdefs.h
"
3016 #include <sys/types.h>
3018 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3019 egrep "u_int32_t
" >/dev/null 2>&1; then
3021 cat >> confdefs.h <<\EOF
3022 #define HAVE_BSD_INT32_DEFINED 1
3028 cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure
"
3030 #include "confdefs.h
"
3031 #include <sys/config.h>
3033 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3034 egrep "u_int32_t
" >/dev/null 2>&1; then
3036 cat >> confdefs.h <<\EOF
3037 #define HAVE_BSD_INT32_DEFINED 1
3045 cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure
"
3047 #include "confdefs.h
"
3050 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3051 egrep "mktime
" >/dev/null 2>&1; then
3053 cat >> confdefs.h <<\EOF
3054 #define HAVE_MKTIME 1
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure
"
3062 #include "confdefs.h
"
3065 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3066 egrep "localtime
" >/dev/null 2>&1; then
3068 cat >> confdefs.h <<\EOF
3069 #define HAVE_LOCALTIME 1
3076 test -d java || mkdir java
3077 test -d java/io || mkdir java/io
3078 test -d gnu || mkdir gnu
3082 test -d java/lang || mkdir java/lang
3088 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3096 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs
-rpath `${PWDCMD-pwd}`/.libs
"
3099 # Check whether --with-system-zlib or --without-system-zlib was given.
3100 if test "${with_system_zlib+set}" = set; then
3101 withval="$with_system_zlib"
3112 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
3113 echo "configure
:3114: checking
for garbage collector to use
" >&5
3114 # Check whether --enable-java-gc or --disable-java-gc was given.
3115 if test "${enable_java_gc+set}" = set; then
3116 enableval="$enable_java_gc"
3132 echo "$ac_t""boehm
" 1>&6
3133 GCLIBS=../boehm-gc/libgcjgc_convenience.la
3134 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3135 JC1GCSPEC='-fuse-boehm-gc'
3136 GCTESTSPEC="-L`${PWDCMD-pwd}`/..
/boehm-gc
/.libs
-rpath `${PWDCMD-pwd}`/..
/boehm-gc
/.libs
"
3138 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3141 cat >> confdefs.h <<\EOF
3142 #define HAVE_BOEHM_GC 1
3147 echo "$ac_t""none
" 1>&6
3152 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
3165 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
3166 echo "configure
:3167: checking
for thread model used by GCC
" >&5
3167 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3168 echo "$ac_t""$THREADS" 1>&6
3178 cat >> confdefs.h <<\EOF
3179 #define LINUX_THREADS 1
3187 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3188 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
3191 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
3206 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3211 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3212 # merely adds pthread_* functions) but it does have a -pthread switch
3213 # which is required at link-time to select -lc_r *instead* of -lc.
3214 THREADLDFLAGS=-pthread
3215 # Don't set THREADSPEC here as might be expected since -pthread is
3216 # not processed when found within a spec file, it must come from
3217 # the command line. For now, the user must provide the -pthread
3218 # switch to link code compiled with gcj. In future, consider adding
3219 # support for weak references to pthread_* functions ala gthr.h API.
3220 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3223 # FreeBSD 5 implements a model much closer to other modern UNIX
3224 # which support threads. However, it still does not support
3226 THREADLDFLAGS=-pthread
3230 THREADLIBS=-lpthread
3231 THREADSPEC=-lpthread
3234 THREADOBJS=posix-threads.lo
3235 THREADH=posix-threads.h
3236 # MIT pthreads doesn't seem to have the mutexattr functions.
3237 # But for now we don't check for it. We just assume you aren't
3238 # using MIT pthreads.
3239 cat >> confdefs.h <<\EOF
3240 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3244 # If we're using the Boehm GC, then we happen to know that it
3245 # defines _REENTRANT, so we don't bother. Eww.
3246 if test "$GC" != boehm; then
3247 cat >> confdefs.h <<\EOF
3248 #define _REENTRANT 1
3252 cat >> confdefs.h <<\EOF
3253 #define _POSIX_PTHREAD_SEMANTICS 1
3259 THREADOBJS=win32-threads.lo
3260 THREADH=win32-threads.h
3264 THREADOBJS=no-threads.lo
3265 THREADH=no-threads.h
3276 if test -d sysdep; then true; else mkdir sysdep; fi
3280 # Hash synchronization is only useful with posix threads right now.
3281 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix
"; then
3282 HASH_SYNC_SPEC=-fhash-synchronization
3283 cat >> confdefs.h <<\EOF
3284 #define JV_HASH_SYNCHRONIZATION 1
3293 if test "$GCC" = yes; then
3305 # We're in the tree with gcc, and need to include some of its headers.
3306 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3308 # Figure out where generated headers like libgcj-config.h get installed.
3309 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
3310 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3311 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3312 tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
3316 if test -n "${with_cross_host}"; then
3317 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3318 # may not work correctly, because the compiler may not be able to
3321 # We assume newlib. This lets us hard-code the functions we know
3323 cat >> confdefs.h <<\EOF
3324 #define HAVE_MEMMOVE 1
3327 cat >> confdefs.h <<\EOF
3328 #define HAVE_MEMCPY 1
3331 cat >> confdefs.h <<\EOF
3332 #define HAVE_STRERROR 1
3335 cat >> confdefs.h <<\EOF
3339 cat >> confdefs.h <<\EOF
3340 #define HAVE_GMTIME_R 1
3343 cat >> confdefs.h <<\EOF
3344 #define HAVE_LOCALTIME_R 1
3347 cat >> confdefs.h <<\EOF
3348 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3351 cat >> confdefs.h <<\EOF
3352 #define HAVE_ALLOCA 1
3356 cat >> confdefs.h <<\EOF
3361 # If Canadian cross, then don't pick up tools from the build
3363 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3366 GCJ="${target_alias}-gcj"
3370 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3372 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3373 echo "configure
:3374: checking
for $ac_func" >&5
3374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3375 echo $ac_n "(cached
) $ac_c" 1>&6
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure
"
3379 #include "confdefs.h
"
3380 /* System header to define __stub macros and hopefully few prototypes,
3381 which can conflict with char $ac_func(); below. */
3383 /* Override any gcc2 internal prototype to avoid an error. */
3384 /* We use char because int might match the return type of a gcc2
3385 builtin and then its argument prototype would still apply. */
3390 /* The GNU C library defines this for functions which it implements
3391 to always fail with ENOSYS. Some functions are actually named
3392 something starting with __ and the normal name is an alias. */
3393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3401 if { (eval echo configure:3402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3403 eval "ac_cv_func_
$ac_func=yes"
3405 echo "configure
: failed program was
:" >&5
3406 cat conftest.$ac_ext >&5
3408 eval "ac_cv_func_
$ac_func=no
"
3413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3414 echo "$ac_t""yes" 1>&6
3415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3416 cat >> confdefs.h <<EOF
3417 #define $ac_tr_func 1
3421 echo "$ac_t""no
" 1>&6
3425 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3427 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3428 echo "configure
:3429: checking
for $ac_func" >&5
3429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3430 echo $ac_n "(cached
) $ac_c" 1>&6
3432 cat > conftest.$ac_ext <<EOF
3433 #line 3434 "configure
"
3434 #include "confdefs.h
"
3435 /* System header to define __stub macros and hopefully few prototypes,
3436 which can conflict with char $ac_func(); below. */
3438 /* Override any gcc2 internal prototype to avoid an error. */
3439 /* We use char because int might match the return type of a gcc2
3440 builtin and then its argument prototype would still apply. */
3445 /* The GNU C library defines this for functions which it implements
3446 to always fail with ENOSYS. Some functions are actually named
3447 something starting with __ and the normal name is an alias. */
3448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3456 if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3458 eval "ac_cv_func_
$ac_func=yes"
3460 echo "configure
: failed program was
:" >&5
3461 cat conftest.$ac_ext >&5
3463 eval "ac_cv_func_
$ac_func=no
"
3468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3469 echo "$ac_t""yes" 1>&6
3470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3471 cat >> confdefs.h <<EOF
3472 #define $ac_tr_func 1
3476 echo "$ac_t""no
" 1>&6
3480 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3482 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3483 echo "configure
:3484: checking
for $ac_func" >&5
3484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3485 echo $ac_n "(cached
) $ac_c" 1>&6
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure
"
3489 #include "confdefs.h
"
3490 /* System header to define __stub macros and hopefully few prototypes,
3491 which can conflict with char $ac_func(); below. */
3493 /* Override any gcc2 internal prototype to avoid an error. */
3494 /* We use char because int might match the return type of a gcc2
3495 builtin and then its argument prototype would still apply. */
3500 /* The GNU C library defines this for functions which it implements
3501 to always fail with ENOSYS. Some functions are actually named
3502 something starting with __ and the normal name is an alias. */
3503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3511 if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3513 eval "ac_cv_func_
$ac_func=yes"
3515 echo "configure
: failed program was
:" >&5
3516 cat conftest.$ac_ext >&5
3518 eval "ac_cv_func_
$ac_func=no
"
3523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3524 echo "$ac_t""yes" 1>&6
3525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3526 cat >> confdefs.h <<EOF
3527 #define $ac_tr_func 1
3531 echo "$ac_t""no
" 1>&6
3535 for ac_func in nl_langinfo setlocale
3537 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3538 echo "configure
:3539: checking
for $ac_func" >&5
3539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3540 echo $ac_n "(cached
) $ac_c" 1>&6
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure
"
3544 #include "confdefs.h
"
3545 /* System header to define __stub macros and hopefully few prototypes,
3546 which can conflict with char $ac_func(); below. */
3548 /* Override any gcc2 internal prototype to avoid an error. */
3549 /* We use char because int might match the return type of a gcc2
3550 builtin and then its argument prototype would still apply. */
3555 /* The GNU C library defines this for functions which it implements
3556 to always fail with ENOSYS. Some functions are actually named
3557 something starting with __ and the normal name is an alias. */
3558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3566 if { (eval echo configure:3567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3568 eval "ac_cv_func_
$ac_func=yes"
3570 echo "configure
: failed program was
:" >&5
3571 cat conftest.$ac_ext >&5
3573 eval "ac_cv_func_
$ac_func=no
"
3578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3579 echo "$ac_t""yes" 1>&6
3580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3581 cat >> confdefs.h <<EOF
3582 #define $ac_tr_func 1
3586 echo "$ac_t""no
" 1>&6
3590 for ac_func in inet_aton inet_addr
3592 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3593 echo "configure
:3594: checking
for $ac_func" >&5
3594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3595 echo $ac_n "(cached
) $ac_c" 1>&6
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure
"
3599 #include "confdefs.h
"
3600 /* System header to define __stub macros and hopefully few prototypes,
3601 which can conflict with char $ac_func(); below. */
3603 /* Override any gcc2 internal prototype to avoid an error. */
3604 /* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3610 /* The GNU C library defines this for functions which it implements
3611 to always fail with ENOSYS. Some functions are actually named
3612 something starting with __ and the normal name is an alias. */
3613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623 eval "ac_cv_func_
$ac_func=yes"
3625 echo "configure
: failed program was
:" >&5
3626 cat conftest.$ac_ext >&5
3628 eval "ac_cv_func_
$ac_func=no
"
3633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3634 echo "$ac_t""yes" 1>&6
3635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3636 cat >> confdefs.h <<EOF
3637 #define $ac_tr_func 1
3641 echo "$ac_t""no
" 1>&6
3645 for ac_func in inet_pton uname inet_ntoa
3647 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3648 echo "configure
:3649: checking
for $ac_func" >&5
3649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3650 echo $ac_n "(cached
) $ac_c" 1>&6
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure
"
3654 #include "confdefs.h
"
3655 /* System header to define __stub macros and hopefully few prototypes,
3656 which can conflict with char $ac_func(); below. */
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3665 /* The GNU C library defines this for functions which it implements
3666 to always fail with ENOSYS. Some functions are actually named
3667 something starting with __ and the normal name is an alias. */
3668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3676 if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3678 eval "ac_cv_func_
$ac_func=yes"
3680 echo "configure
: failed program was
:" >&5
3681 cat conftest.$ac_ext >&5
3683 eval "ac_cv_func_
$ac_func=no
"
3688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3689 echo "$ac_t""yes" 1>&6
3690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3691 cat >> confdefs.h <<EOF
3692 #define $ac_tr_func 1
3696 echo "$ac_t""no
" 1>&6
3700 for ac_func in fork execvp pipe sigaction
3702 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3703 echo "configure
:3704: checking
for $ac_func" >&5
3704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3705 echo $ac_n "(cached
) $ac_c" 1>&6
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure
"
3709 #include "confdefs.h
"
3710 /* System header to define __stub macros and hopefully few prototypes,
3711 which can conflict with char $ac_func(); below. */
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3720 /* The GNU C library defines this for functions which it implements
3721 to always fail with ENOSYS. Some functions are actually named
3722 something starting with __ and the normal name is an alias. */
3723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3731 if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3733 eval "ac_cv_func_
$ac_func=yes"
3735 echo "configure
: failed program was
:" >&5
3736 cat conftest.$ac_ext >&5
3738 eval "ac_cv_func_
$ac_func=no
"
3743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3744 echo "$ac_t""yes" 1>&6
3745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3746 cat >> confdefs.h <<EOF
3747 #define $ac_tr_func 1
3751 echo "$ac_t""no
" 1>&6
3755 for ac_hdr in execinfo.h unistd.h dlfcn.h
3757 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3758 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3759 echo "configure
:3760: checking
for $ac_hdr" >&5
3760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3761 echo $ac_n "(cached
) $ac_c" 1>&6
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure
"
3765 #include "confdefs.h
"
3768 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3769 { (eval echo configure:3770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3771 if test -z "$ac_err"; then
3773 eval "ac_cv_header_
$ac_safe=yes"
3776 echo "configure
: failed program was
:" >&5
3777 cat conftest.$ac_ext >&5
3779 eval "ac_cv_header_
$ac_safe=no
"
3783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3784 echo "$ac_t""yes" 1>&6
3785 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3786 cat >> confdefs.h <<EOF
3787 #define $ac_tr_hdr 1
3791 echo "$ac_t""no
" 1>&6
3795 echo $ac_n "checking
for backtrace
""...
$ac_c" 1>&6
3796 echo "configure
:3797: checking
for backtrace
" >&5
3797 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
3798 echo $ac_n "(cached
) $ac_c" 1>&6
3800 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure
"
3802 #include "confdefs.h
"
3803 /* System header to define __stub macros and hopefully few prototypes,
3804 which can conflict with char backtrace(); below. */
3806 /* Override any gcc2 internal prototype to avoid an error. */
3807 /* We use char because int might match the return type of a gcc2
3808 builtin and then its argument prototype would still apply. */
3813 /* The GNU C library defines this for functions which it implements
3814 to always fail with ENOSYS. Some functions are actually named
3815 something starting with __ and the normal name is an alias. */
3816 #if defined (__stub_backtrace) || defined (__stub___backtrace)
3824 if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826 eval "ac_cv_func_backtrace
=yes"
3828 echo "configure
: failed program was
:" >&5
3829 cat conftest.$ac_ext >&5
3831 eval "ac_cv_func_backtrace
=no
"
3836 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
3837 echo "$ac_t""yes" 1>&6
3841 # Has broken backtrace()
3844 # Has broken backtrace()
3847 cat >> confdefs.h <<\EOF
3848 #define HAVE_BACKTRACE 1
3855 echo "$ac_t""no
" 1>&6
3859 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
3860 echo "configure
:3861: checking
for dladdr
in -ldl" >&5
3861 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863 echo $ac_n "(cached
) $ac_c" 1>&6
3865 ac_save_LIBS="$LIBS"
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure
"
3869 #include "confdefs.h
"
3870 /* Override any gcc2 internal prototype to avoid an error. */
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3881 eval "ac_cv_lib_
$ac_lib_var=yes"
3883 echo "configure
: failed program was
:" >&5
3884 cat conftest.$ac_ext >&5
3886 eval "ac_cv_lib_
$ac_lib_var=no
"
3889 LIBS="$ac_save_LIBS"
3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3895 cat >> confdefs.h <<\EOF
3896 #define HAVE_DLADDR 1
3900 echo "$ac_t""no
" 1>&6
3903 for ac_file in /proc/self/exe
3906 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3907 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
3908 echo "configure
:3909: checking
for $ac_file" >&5
3909 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3910 echo $ac_n "(cached
) $ac_c" 1>&6
3912 if test "$cross_compiling" = yes; then
3913 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
3915 if test -r $ac_file; then
3916 eval "ac_cv_file_
$ac_safe=yes"
3918 eval "ac_cv_file_
$ac_safe=no
"
3922 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3924 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3925 cat >> confdefs.h <<EOF
3926 #define $ac_tr_file 1
3929 cat >> confdefs.h <<\EOF
3930 #define HAVE_PROC_SELF_EXE 1
3934 echo "$ac_t""no
" 1>&6
3942 am_cv_lib_iconv_ldpath=
3943 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3944 if test "${with_libiconv_prefix+set}" = set; then
3945 withval="$with_libiconv_prefix"
3947 for dir in `echo "$withval" | tr : ' '`; do
3948 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
3949 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib
"; fi
3955 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
3956 echo "configure
:3957: checking
for iconv" >&5
3957 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3958 echo $ac_n "(cached
) $ac_c" 1>&6
3961 am_cv_func_iconv="no
, consider installing GNU libiconv
"
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure
"
3965 #include "confdefs.h
"
3969 iconv_t cd = iconv_open("","");
3970 iconv(cd,NULL,NULL,NULL,NULL);
3974 if { (eval echo configure:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3976 am_cv_func_iconv=yes
3978 echo "configure
: failed program was
:" >&5
3979 cat conftest.$ac_ext >&5
3982 if test "$am_cv_func_iconv" != yes; then
3983 am_save_LIBS="$LIBS"
3984 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure
"
3987 #include "confdefs.h
"
3991 iconv_t cd = iconv_open("","");
3992 iconv(cd,NULL,NULL,NULL,NULL);
3996 if { (eval echo configure:3997: \"$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 LIBS="$am_save_LIBS"
4010 echo "$ac_t""$am_cv_func_iconv" 1>&6
4011 if test "$am_cv_func_iconv" = yes; then
4012 cat >> confdefs.h <<\EOF
4013 #define HAVE_ICONV 1
4016 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
4017 echo "configure
:4018: checking
for iconv declaration
" >&5
4018 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4019 echo $ac_n "(cached
) $ac_c" 1>&6
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4024 "configure
"
4024 #include "confdefs.h
"
4032 #if defined(__STDC__) || defined(__cplusplus)
4033 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4042 if { (eval echo configure:4043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4044 am_cv_proto_iconv_arg1=""
4046 echo "configure
: failed program was
:" >&5
4047 cat conftest.$ac_ext >&5
4049 am_cv_proto_iconv_arg1="const
"
4052 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
);"
4055 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4056 echo "$ac_t""$
{ac_t
:-
4057 }$am_cv_proto_iconv" 1>&6
4058 cat >> confdefs.h <<EOF
4059 #define ICONV_CONST $am_cv_proto_iconv_arg1
4064 if test "$am_cv_lib_iconv" = yes; then
4065 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
4069 if test $ac_cv_header_locale_h = yes; then
4070 echo $ac_n "checking
for LC_MESSAGES
""...
$ac_c" 1>&6
4071 echo "configure
:4072: checking
for LC_MESSAGES
" >&5
4072 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4073 echo $ac_n "(cached
) $ac_c" 1>&6
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure
"
4077 #include "confdefs.h
"
4083 if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4085 am_cv_val_LC_MESSAGES=yes
4087 echo "configure
: failed program was
:" >&5
4088 cat conftest.$ac_ext >&5
4090 am_cv_val_LC_MESSAGES=no
4095 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4096 if test $am_cv_val_LC_MESSAGES = yes; then
4097 cat >> confdefs.h <<\EOF
4098 #define HAVE_LC_MESSAGES 1
4103 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
4104 echo "configure
:4105: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
4105 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4106 echo $ac_n "(cached
) $ac_c" 1>&6
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure
"
4110 #include "confdefs.h
"
4111 #include <sys/types.h>
4114 struct tm *tp; tp->tm_sec;
4117 if { (eval echo configure:4118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4119 ac_cv_struct_tm=time.h
4121 echo "configure
: failed program was
:" >&5
4122 cat conftest.$ac_ext >&5
4124 ac_cv_struct_tm=sys/time.h
4129 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4130 if test $ac_cv_struct_tm = sys/time.h; then
4131 cat >> confdefs.h <<\EOF
4132 #define TM_IN_SYS_TIME 1
4137 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
4138 echo "configure
:4139: checking
for tm_zone
in struct tm
" >&5
4139 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4140 echo $ac_n "(cached
) $ac_c" 1>&6
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure
"
4144 #include "confdefs.h
"
4145 #include <sys/types.h>
4146 #include <$ac_cv_struct_tm>
4148 struct tm tm; tm.tm_zone;
4151 if { (eval echo configure:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4153 ac_cv_struct_tm_zone=yes
4155 echo "configure
: failed program was
:" >&5
4156 cat conftest.$ac_ext >&5
4158 ac_cv_struct_tm_zone=no
4163 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4164 if test "$ac_cv_struct_tm_zone" = yes; then
4165 cat >> confdefs.h <<\EOF
4166 #define HAVE_TM_ZONE 1
4170 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
4171 echo "configure
:4172: checking
for tzname
" >&5
4172 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4173 echo $ac_n "(cached
) $ac_c" 1>&6
4175 cat > conftest.$ac_ext <<EOF
4176 #line 4177 "configure
"
4177 #include "confdefs.h
"
4179 #ifndef tzname /* For SGI. */
4180 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4186 if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4188 ac_cv_var_tzname=yes
4190 echo "configure
: failed program was
:" >&5
4191 cat conftest.$ac_ext >&5
4198 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4199 if test $ac_cv_var_tzname = yes; then
4200 cat >> confdefs.h <<\EOF
4201 #define HAVE_TZNAME 1
4208 for ac_func in gethostbyname_r
4210 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4211 echo "configure
:4212: checking
for $ac_func" >&5
4212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4213 echo $ac_n "(cached
) $ac_c" 1>&6
4215 cat > conftest.$ac_ext <<EOF
4216 #line 4217 "configure
"
4217 #include "confdefs.h
"
4218 /* System header to define __stub macros and hopefully few prototypes,
4219 which can conflict with char $ac_func(); below. */
4221 /* Override any gcc2 internal prototype to avoid an error. */
4222 /* We use char because int might match the return type of a gcc2
4223 builtin and then its argument prototype would still apply. */
4228 /* The GNU C library defines this for functions which it implements
4229 to always fail with ENOSYS. Some functions are actually named
4230 something starting with __ and the normal name is an alias. */
4231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4239 if { (eval echo configure:4240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4241 eval "ac_cv_func_
$ac_func=yes"
4243 echo "configure
: failed program was
:" >&5
4244 cat conftest.$ac_ext >&5
4246 eval "ac_cv_func_
$ac_func=no
"
4251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4252 echo "$ac_t""yes" 1>&6
4253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4254 cat >> confdefs.h <<EOF
4255 #define $ac_tr_func 1
4258 cat >> confdefs.h <<\EOF
4259 #define HAVE_GETHOSTBYNAME_R 1
4262 # There are two different kinds of gethostbyname_r.
4263 # We look for the one that returns `int'.
4264 # Hopefully this check is robust enough.
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure
"
4267 #include "confdefs.h
"
4270 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4271 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
4274 cat >> confdefs.h <<\EOF
4275 #define GETHOSTBYNAME_R_RETURNS_INT 1
4283 *" -D_REENTRANT "*) ;;
4285 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
4286 echo "configure
:4287: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
4287 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4288 echo $ac_n "(cached
) $ac_c" 1>&6
4292 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4293 ac_cpp='$CXXCPP $CPPFLAGS'
4294 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4295 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4296 cross_compiling=$ac_cv_prog_cxx_cross
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure
"
4300 #include "confdefs.h
"
4303 gethostbyname_r("", 0, 0);
4306 if { (eval echo configure:4307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4308 libjava_cv_gethostbyname_r_needs_reentrant=no
4310 echo "configure
: failed program was
:" >&5
4311 cat conftest.$ac_ext >&5
4313 CPPFLAGS_SAVE="$CPPFLAGS"
4314 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4315 cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure
"
4317 #include "confdefs.h
"
4320 gethostbyname_r("", 0, 0);
4323 if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4325 libjava_cv_gethostbyname_r_needs_reentrant=yes
4327 echo "configure
: failed program was
:" >&5
4328 cat conftest.$ac_ext >&5
4330 libjava_cv_gethostbyname_r_needs_reentrant=fail
4333 CPPFLAGS="$CPPFLAGS_SAVE"
4338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4342 cross_compiling=$ac_cv_prog_cc_cross
4347 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4348 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4349 cat >> confdefs.h <<\EOF
4350 #define _REENTRANT 1
4357 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
4358 echo "configure
:4359: checking
for struct hostent_data
" >&5
4359 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4360 echo $ac_n "(cached
) $ac_c" 1>&6
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure
"
4364 #include "confdefs.h
"
4366 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4367 # define _REENTRANT 1
4371 struct hostent_data data;
4374 if { (eval echo configure:4375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4376 libjava_cv_struct_hostent_data=yes
4378 echo "configure
: failed program was
:" >&5
4379 cat conftest.$ac_ext >&5
4381 libjava_cv_struct_hostent_data=no
4386 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4387 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
4388 cat >> confdefs.h <<\EOF
4389 #define HAVE_STRUCT_HOSTENT_DATA 1
4395 echo "$ac_t""no
" 1>&6
4400 # FIXME: libjava source code expects to find a prototype for
4401 # gethostbyaddr_r in netdb.h. The outer check ensures that
4402 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4403 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4404 # linkage check is enough, yet C++ code requires proper prototypes.)
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure
"
4407 #include "confdefs.h
"
4410 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4411 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
4414 for ac_func in gethostbyaddr_r
4416 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4417 echo "configure
:4418: checking
for $ac_func" >&5
4418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4419 echo $ac_n "(cached
) $ac_c" 1>&6
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure
"
4423 #include "confdefs.h
"
4424 /* System header to define __stub macros and hopefully few prototypes,
4425 which can conflict with char $ac_func(); below. */
4427 /* Override any gcc2 internal prototype to avoid an error. */
4428 /* We use char because int might match the return type of a gcc2
4429 builtin and then its argument prototype would still apply. */
4434 /* The GNU C library defines this for functions which it implements
4435 to always fail with ENOSYS. Some functions are actually named
4436 something starting with __ and the normal name is an alias. */
4437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4445 if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4447 eval "ac_cv_func_
$ac_func=yes"
4449 echo "configure
: failed program was
:" >&5
4450 cat conftest.$ac_ext >&5
4452 eval "ac_cv_func_
$ac_func=no
"
4457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4458 echo "$ac_t""yes" 1>&6
4459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4460 cat >> confdefs.h <<EOF
4461 #define $ac_tr_func 1
4464 cat >> confdefs.h <<\EOF
4465 #define HAVE_GETHOSTBYADDR_R 1
4468 # There are two different kinds of gethostbyaddr_r.
4469 # We look for the one that returns `int'.
4470 # Hopefully this check is robust enough.
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure
"
4473 #include "confdefs.h
"
4476 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4477 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
4480 cat >> confdefs.h <<\EOF
4481 #define GETHOSTBYADDR_R_RETURNS_INT 1
4488 echo "$ac_t""no
" 1>&6
4496 for ac_func in gethostname
4498 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4499 echo "configure
:4500: checking
for $ac_func" >&5
4500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4501 echo $ac_n "(cached
) $ac_c" 1>&6
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure
"
4505 #include "confdefs.h
"
4506 /* System header to define __stub macros and hopefully few prototypes,
4507 which can conflict with char $ac_func(); below. */
4509 /* Override any gcc2 internal prototype to avoid an error. */
4510 /* We use char because int might match the return type of a gcc2
4511 builtin and then its argument prototype would still apply. */
4516 /* The GNU C library defines this for functions which it implements
4517 to always fail with ENOSYS. Some functions are actually named
4518 something starting with __ and the normal name is an alias. */
4519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4529 eval "ac_cv_func_
$ac_func=yes"
4531 echo "configure
: failed program was
:" >&5
4532 cat conftest.$ac_ext >&5
4534 eval "ac_cv_func_
$ac_func=no
"
4539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4542 cat >> confdefs.h <<EOF
4543 #define $ac_tr_func 1
4546 cat >> confdefs.h <<\EOF
4547 #define HAVE_GETHOSTNAME 1
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure
"
4552 #include "confdefs.h
"
4555 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4556 egrep "gethostname
" >/dev/null 2>&1; then
4559 cat >> confdefs.h <<\EOF
4560 #define HAVE_GETHOSTNAME_DECL 1
4567 echo "$ac_t""no
" 1>&6
4572 # Look for these functions in the thread library, but only bother
4573 # if using POSIX threads.
4574 if test "$THREADS" = posix; then
4576 LIBS="$LIBS $THREADLIBS"
4577 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4579 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4581 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4582 echo "configure
:4583: checking
for $ac_func" >&5
4583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4584 echo $ac_n "(cached
) $ac_c" 1>&6
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure
"
4588 #include "confdefs.h
"
4589 /* System header to define __stub macros and hopefully few prototypes,
4590 which can conflict with char $ac_func(); below. */
4592 /* Override any gcc2 internal prototype to avoid an error. */
4593 /* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4599 /* The GNU C library defines this for functions which it implements
4600 to always fail with ENOSYS. Some functions are actually named
4601 something starting with __ and the normal name is an alias. */
4602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4610 if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4612 eval "ac_cv_func_
$ac_func=yes"
4614 echo "configure
: failed program was
:" >&5
4615 cat conftest.$ac_ext >&5
4617 eval "ac_cv_func_
$ac_func=no
"
4622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4623 echo "$ac_t""yes" 1>&6
4624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4625 cat >> confdefs.h <<EOF
4626 #define $ac_tr_func 1
4630 echo "$ac_t""no
" 1>&6
4635 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4636 # Solaris 7 the name librt is preferred.
4637 for ac_func in sched_yield
4639 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4640 echo "configure
:4641: checking
for $ac_func" >&5
4641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4642 echo $ac_n "(cached
) $ac_c" 1>&6
4644 cat > conftest.$ac_ext <<EOF
4645 #line 4646 "configure
"
4646 #include "confdefs.h
"
4647 /* System header to define __stub macros and hopefully few prototypes,
4648 which can conflict with char $ac_func(); below. */
4650 /* Override any gcc2 internal prototype to avoid an error. */
4651 /* We use char because int might match the return type of a gcc2
4652 builtin and then its argument prototype would still apply. */
4657 /* The GNU C library defines this for functions which it implements
4658 to always fail with ENOSYS. Some functions are actually named
4659 something starting with __ and the normal name is an alias. */
4660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4668 if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4670 eval "ac_cv_func_
$ac_func=yes"
4672 echo "configure
: failed program was
:" >&5
4673 cat conftest.$ac_ext >&5
4675 eval "ac_cv_func_
$ac_func=no
"
4680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4683 cat >> confdefs.h <<EOF
4684 #define $ac_tr_func 1
4688 echo "$ac_t""no
" 1>&6
4689 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
4690 echo "configure
:4691: checking
for sched_yield
in -lrt" >&5
4691 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4693 echo $ac_n "(cached
) $ac_c" 1>&6
4695 ac_save_LIBS="$LIBS"
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure
"
4699 #include "confdefs.h
"
4700 /* Override any gcc2 internal prototype to avoid an error. */
4701 /* We use char because int might match the return type of a gcc2
4702 builtin and then its argument prototype would still apply. */
4709 if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4711 eval "ac_cv_lib_
$ac_lib_var=yes"
4713 echo "configure
: failed program was
:" >&5
4714 cat conftest.$ac_ext >&5
4716 eval "ac_cv_lib_
$ac_lib_var=no
"
4719 LIBS="$ac_save_LIBS"
4722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
4725 cat >> confdefs.h <<\EOF
4726 #define HAVE_SCHED_YIELD 1
4729 THREADLIBS="$THREADLIBS -lrt"
4730 THREADSPEC="$THREADSPEC -lrt"
4732 echo "$ac_t""no
" 1>&6
4734 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
4735 echo "configure
:4736: checking
for sched_yield
in -lposix4" >&5
4736 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4738 echo $ac_n "(cached
) $ac_c" 1>&6
4740 ac_save_LIBS="$LIBS"
4741 LIBS="-lposix4 $LIBS"
4742 cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure
"
4744 #include "confdefs.h
"
4745 /* Override any gcc2 internal prototype to avoid an error. */
4746 /* We use char because int might match the return type of a gcc2
4747 builtin and then its argument prototype would still apply. */
4754 if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4756 eval "ac_cv_lib_
$ac_lib_var=yes"
4758 echo "configure
: failed program was
:" >&5
4759 cat conftest.$ac_ext >&5
4761 eval "ac_cv_lib_
$ac_lib_var=no
"
4764 LIBS="$ac_save_LIBS"
4767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4768 echo "$ac_t""yes" 1>&6
4770 cat >> confdefs.h <<\EOF
4771 #define HAVE_SCHED_YIELD 1
4774 THREADLIBS="$THREADLIBS -lposix4"
4775 THREADSPEC="$THREADSPEC -lposix4"
4777 echo "$ac_t""no
" 1>&6
4787 # We can save a little space at runtime if the mutex has m_count
4788 # or __m_count. This is a nice hack for Linux.
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure
"
4791 #include "confdefs.h
"
4792 #include <pthread.h>
4795 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4799 if { (eval echo configure:4800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4801 cat >> confdefs.h <<\EOF
4802 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4806 echo "configure
: failed program was
:" >&5
4807 cat conftest.$ac_ext >&5
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure
"
4812 #include "confdefs.h
"
4813 #include <pthread.h>
4816 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4820 if { (eval echo configure:4821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4822 cat >> confdefs.h <<\EOF
4823 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4827 echo "configure
: failed program was
:" >&5
4828 cat conftest.$ac_ext >&5
4835 # We require a way to get the time.
4837 for ac_func in gettimeofday time ftime
4839 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4840 echo "configure
:4841: checking
for $ac_func" >&5
4841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4842 echo $ac_n "(cached
) $ac_c" 1>&6
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure
"
4846 #include "confdefs.h
"
4847 /* System header to define __stub macros and hopefully few prototypes,
4848 which can conflict with char $ac_func(); below. */
4850 /* Override any gcc2 internal prototype to avoid an error. */
4851 /* We use char because int might match the return type of a gcc2
4852 builtin and then its argument prototype would still apply. */
4857 /* The GNU C library defines this for functions which it implements
4858 to always fail with ENOSYS. Some functions are actually named
4859 something starting with __ and the normal name is an alias. */
4860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4870 eval "ac_cv_func_
$ac_func=yes"
4872 echo "configure
: failed program was
:" >&5
4873 cat conftest.$ac_ext >&5
4875 eval "ac_cv_func_
$ac_func=no
"
4880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4881 echo "$ac_t""yes" 1>&6
4882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4883 cat >> confdefs.h <<EOF
4884 #define $ac_tr_func 1
4888 echo "$ac_t""no
" 1>&6
4892 if test "$time_found" = no; then
4893 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
4896 for ac_func in memmove
4898 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4899 echo "configure
:4900: checking
for $ac_func" >&5
4900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4901 echo $ac_n "(cached
) $ac_c" 1>&6
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure
"
4905 #include "confdefs.h
"
4906 /* System header to define __stub macros and hopefully few prototypes,
4907 which can conflict with char $ac_func(); below. */
4909 /* Override any gcc2 internal prototype to avoid an error. */
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4916 /* The GNU C library defines this for functions which it implements
4917 to always fail with ENOSYS. Some functions are actually named
4918 something starting with __ and the normal name is an alias. */
4919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4929 eval "ac_cv_func_
$ac_func=yes"
4931 echo "configure
: failed program was
:" >&5
4932 cat conftest.$ac_ext >&5
4934 eval "ac_cv_func_
$ac_func=no
"
4939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4942 cat >> confdefs.h <<EOF
4943 #define $ac_tr_func 1
4947 echo "$ac_t""no
" 1>&6
4952 # We require memcpy.
4954 for ac_func in memcpy
4956 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4957 echo "configure
:4958: checking
for $ac_func" >&5
4958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4959 echo $ac_n "(cached
) $ac_c" 1>&6
4961 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure
"
4963 #include "confdefs.h
"
4964 /* System header to define __stub macros and hopefully few prototypes,
4965 which can conflict with char $ac_func(); below. */
4967 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4974 /* The GNU C library defines this for functions which it implements
4975 to always fail with ENOSYS. Some functions are actually named
4976 something starting with __ and the normal name is an alias. */
4977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4985 if { (eval echo configure:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4987 eval "ac_cv_func_
$ac_func=yes"
4989 echo "configure
: failed program was
:" >&5
4990 cat conftest.$ac_ext >&5
4992 eval "ac_cv_func_
$ac_func=no
"
4997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4998 echo "$ac_t""yes" 1>&6
4999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5000 cat >> confdefs.h <<EOF
5001 #define $ac_tr_func 1
5005 echo "$ac_t""no
" 1>&6
5009 if test "$memcpy_found" = no; then
5010 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
5013 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
5014 echo "configure
:5015: checking
for dlopen
in -ldl" >&5
5015 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5017 echo $ac_n "(cached
) $ac_c" 1>&6
5019 ac_save_LIBS="$LIBS"
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure
"
5023 #include "confdefs.h
"
5024 /* Override any gcc2 internal prototype to avoid an error. */
5025 /* We use char because int might match the return type of a gcc2
5026 builtin and then its argument prototype would still apply. */
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5035 eval "ac_cv_lib_
$ac_lib_var=yes"
5037 echo "configure
: failed program was
:" >&5
5038 cat conftest.$ac_ext >&5
5040 eval "ac_cv_lib_
$ac_lib_var=no
"
5043 LIBS="$ac_save_LIBS"
5046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5047 echo "$ac_t""yes" 1>&6
5049 cat >> confdefs.h <<\EOF
5050 #define HAVE_DLOPEN 1
5054 echo "$ac_t""no
" 1>&6
5058 # Some library-finding code we stole from Tcl.
5059 #--------------------------------------------------------------------
5060 # Check for the existence of the -lsocket and -lnsl libraries.
5061 # The order here is important, so that they end up in the right
5062 # order in the command line generated by make. Here are some
5063 # special considerations:
5064 # 1. Use "connect
" and "accept
" to check for -lsocket, and
5065 # "gethostbyname
" to check for -lnsl.
5066 # 2. Use each function name only once: can't redo a check because
5067 # autoconf caches the results of the last check and won't redo it.
5068 # 3. Use -lnsl and -lsocket only if they supply procedures that
5069 # aren't already present in the normal libraries. This is because
5070 # IRIX 5.2 has libraries, but they aren't needed and they're
5071 # bogus: they goof up name resolution if used.
5072 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
5073 # To get around this problem, check for both libraries together
5074 # if -lsocket doesn't work by itself.
5075 #--------------------------------------------------------------------
5077 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
5078 echo "configure
:5079: checking
for socket libraries
" >&5
5079 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
5080 echo $ac_n "(cached
) $ac_c" 1>&6
5084 unset ac_cv_func_connect
5085 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
5086 echo "configure
:5087: checking
for connect
" >&5
5087 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5088 echo $ac_n "(cached
) $ac_c" 1>&6
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure
"
5092 #include "confdefs.h
"
5093 /* System header to define __stub macros and hopefully few prototypes,
5094 which can conflict with char connect(); below. */
5096 /* Override any gcc2 internal prototype to avoid an error. */
5097 /* We use char because int might match the return type of a gcc2
5098 builtin and then its argument prototype would still apply. */
5103 /* The GNU C library defines this for functions which it implements
5104 to always fail with ENOSYS. Some functions are actually named
5105 something starting with __ and the normal name is an alias. */
5106 #if defined (__stub_connect) || defined (__stub___connect)
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5116 eval "ac_cv_func_connect
=yes"
5118 echo "configure
: failed program was
:" >&5
5119 cat conftest.$ac_ext >&5
5121 eval "ac_cv_func_connect
=no
"
5126 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5127 echo "$ac_t""yes" 1>&6
5130 echo "$ac_t""no
" 1>&6
5134 if test "$gcj_checkSocket" = 1; then
5135 unset ac_cv_func_connect
5136 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
5137 echo "configure
:5138: checking
for main
in -lsocket" >&5
5138 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5140 echo $ac_n "(cached
) $ac_c" 1>&6
5142 ac_save_LIBS="$LIBS"
5143 LIBS="-lsocket $LIBS"
5144 cat > conftest.$ac_ext <<EOF
5145 #line 5146 "configure
"
5146 #include "confdefs.h
"
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5154 eval "ac_cv_lib_
$ac_lib_var=yes"
5156 echo "configure
: failed program was
:" >&5
5157 cat conftest.$ac_ext >&5
5159 eval "ac_cv_lib_
$ac_lib_var=no
"
5162 LIBS="$ac_save_LIBS"
5165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5166 echo "$ac_t""yes" 1>&6
5167 gcj_cv_lib_sockets="-lsocket"
5169 echo "$ac_t""no
" 1>&6
5174 if test "$gcj_checkBoth" = 1; then
5176 LIBS="$LIBS -lsocket -lnsl"
5177 unset ac_cv_func_accept
5178 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
5179 echo "configure
:5180: checking
for accept
" >&5
5180 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5181 echo $ac_n "(cached
) $ac_c" 1>&6
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure
"
5185 #include "confdefs.h
"
5186 /* System header to define __stub macros and hopefully few prototypes,
5187 which can conflict with char accept(); below. */
5189 /* Override any gcc2 internal prototype to avoid an error. */
5190 /* We use char because int might match the return type of a gcc2
5191 builtin and then its argument prototype would still apply. */
5196 /* The GNU C library defines this for functions which it implements
5197 to always fail with ENOSYS. Some functions are actually named
5198 something starting with __ and the normal name is an alias. */
5199 #if defined (__stub_accept) || defined (__stub___accept)
5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5209 eval "ac_cv_func_accept
=yes"
5211 echo "configure
: failed program was
:" >&5
5212 cat conftest.$ac_ext >&5
5214 eval "ac_cv_func_accept
=no
"
5219 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5220 echo "$ac_t""yes" 1>&6
5222 gcj_cv_lib_sockets="-lsocket -lnsl"
5224 echo "$ac_t""no
" 1>&6
5227 unset ac_cv_func_accept
5230 unset ac_cv_func_gethostbyname
5232 LIBS="$LIBS $gcj_cv_lib_sockets"
5233 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
5234 echo "configure
:5235: checking
for gethostbyname
" >&5
5235 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5236 echo $ac_n "(cached
) $ac_c" 1>&6
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure
"
5240 #include "confdefs.h
"
5241 /* System header to define __stub macros and hopefully few prototypes,
5242 which can conflict with char gethostbyname(); below. */
5244 /* Override any gcc2 internal prototype to avoid an error. */
5245 /* We use char because int might match the return type of a gcc2
5246 builtin and then its argument prototype would still apply. */
5247 char gethostbyname();
5251 /* The GNU C library defines this for functions which it implements
5252 to always fail with ENOSYS. Some functions are actually named
5253 something starting with __ and the normal name is an alias. */
5254 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5262 if { (eval echo configure:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5264 eval "ac_cv_func_gethostbyname
=yes"
5266 echo "configure
: failed program was
:" >&5
5267 cat conftest.$ac_ext >&5
5269 eval "ac_cv_func_gethostbyname
=no
"
5274 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5275 echo "$ac_t""yes" 1>&6
5278 echo "$ac_t""no
" 1>&6
5279 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
5280 echo "configure
:5281: checking
for main
in -lnsl" >&5
5281 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5283 echo $ac_n "(cached
) $ac_c" 1>&6
5285 ac_save_LIBS="$LIBS"
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure
"
5289 #include "confdefs.h
"
5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5297 eval "ac_cv_lib_
$ac_lib_var=yes"
5299 echo "configure
: failed program was
:" >&5
5300 cat conftest.$ac_ext >&5
5302 eval "ac_cv_lib_
$ac_lib_var=no
"
5305 LIBS="$ac_save_LIBS"
5308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5309 echo "$ac_t""yes" 1>&6
5310 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5312 echo "$ac_t""no
" 1>&6
5317 unset ac_cv_func_gethostbyname
5322 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5323 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5325 if test "$with_system_zlib" = yes; then
5326 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
5327 echo "configure
:5328: checking
for deflate
in -lz" >&5
5328 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5330 echo $ac_n "(cached
) $ac_c" 1>&6
5332 ac_save_LIBS="$LIBS"
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure
"
5336 #include "confdefs.h
"
5337 /* Override any gcc2 internal prototype to avoid an error. */
5338 /* We use char because int might match the return type of a gcc2
5339 builtin and then its argument prototype would still apply. */
5346 if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5348 eval "ac_cv_lib_
$ac_lib_var=yes"
5350 echo "configure
: failed program was
:" >&5
5351 cat conftest.$ac_ext >&5
5353 eval "ac_cv_lib_
$ac_lib_var=no
"
5356 LIBS="$ac_save_LIBS"
5359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5360 echo "$ac_t""yes" 1>&6
5363 echo "$ac_t""no
" 1>&6
5369 # On Solaris, and maybe other architectures, the Boehm collector
5371 if test "$GC" = boehm; then
5372 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
5373 echo "configure
:5374: checking
for main
in -ldl" >&5
5374 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5376 echo $ac_n "(cached
) $ac_c" 1>&6
5378 ac_save_LIBS="$LIBS"
5380 cat > conftest.$ac_ext <<EOF
5381 #line 5382 "configure
"
5382 #include "confdefs.h
"
5388 if { (eval echo configure:5389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5390 eval "ac_cv_lib_
$ac_lib_var=yes"
5392 echo "configure
: failed program was
:" >&5
5393 cat conftest.$ac_ext >&5
5395 eval "ac_cv_lib_
$ac_lib_var=no
"
5398 LIBS="$ac_save_LIBS"
5401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5402 echo "$ac_t""yes" 1>&6
5403 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5405 echo "$ac_t""no
" 1>&6
5410 if test -z "${with_multisubdir}"; then
5414 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5417 if test -x "${builddotdot}/..
/..
/gcc
/gcj
"; then
5418 dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
5419 GCJ="$dir/gcj
-B`${PWDCMD-pwd}`/ -B$dir/"
5423 GCJ="gcj
-B`${PWDCMD-pwd}`/"
5427 # Create it, so that compile/link tests don't fail
5428 test -f libgcj.spec || touch libgcj.spec
5430 # We must search the source tree for java.lang, since we still don't
5431 # have libgcj.jar nor java/lang/*.class
5432 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5433 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
5435 # Since some classes depend on this one, we need its source available
5436 # before we can do any GCJ compilation test :-(
5437 if test ! -f gnu/classpath/Configuration.java; then
5438 test -d gnu || mkdir gnu
5439 test -d gnu/classpath || mkdir gnu/classpath
5440 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5441 < $srcdir/gnu/classpath/Configuration.java.in \
5442 > gnu/classpath/Configuration.java
5443 # We do not want to redirect the output of the grep below to /dev/null,
5444 # but we add /dev/null to the input list so that grep will print the
5445 # filename of Configuration.java in case it finds any matches.
5446 if grep @ gnu/classpath/Configuration.java /dev/null; then
5447 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
5451 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
5452 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5453 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5454 echo "configure
:5455: checking
for $ac_word" >&5
5455 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5456 echo $ac_n "(cached
) $ac_c" 1>&6
5458 if test -n "$GCJ"; then
5459 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5463 for ac_dir in $ac_dummy; do
5464 test -z "$ac_dir" && ac_dir=.
5465 if test -f $ac_dir/$ac_word; then
5466 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
5473 GCJ="$ac_cv_prog_GCJ"
5474 if test -n "$GCJ"; then
5475 echo "$ac_t""$GCJ" 1>&6
5477 echo "$ac_t""no
" 1>&6
5481 if test -z "$ac_cv_prog_GCJ"; then
5482 if test -n "$ac_tool_prefix"; then
5483 # Extract the first word of "gcj
", so it can be a program name with args.
5484 set dummy gcj; ac_word=$2
5485 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5486 echo "configure
:5487: checking
for $ac_word" >&5
5487 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5488 echo $ac_n "(cached
) $ac_c" 1>&6
5490 if test -n "$GCJ"; then
5491 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5495 for ac_dir in $ac_dummy; do
5496 test -z "$ac_dir" && ac_dir=.
5497 if test -f $ac_dir/$ac_word; then
5498 ac_cv_prog_GCJ="gcj
"
5503 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
5506 GCJ="$ac_cv_prog_GCJ"
5507 if test -n "$GCJ"; then
5508 echo "$ac_t""$GCJ" 1>&6
5510 echo "$ac_t""no
" 1>&6
5518 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5522 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
5524 lt_save_CFLAGS="$CFLAGS"
5525 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5526 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5527 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5528 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5529 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5530 deplibs_check_method="$deplibs_check_method" \
5531 file_magic_cmd="$file_magic_cmd" \
5532 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5533 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5534 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
5536 CFLAGS="$lt_save_CFLAGS"
5538 # Redirect the config.log output again, so that the ltconfig log is not
5539 # clobbered by the next message.
5540 exec 5>>./config.log
5545 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5547 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
5548 echo "configure
:5549: checking size of void
*" >&5
5549 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5550 echo $ac_n "(cached
) $ac_c" 1>&6
5552 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5553 cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure
"
5555 #include "confdefs.h
"
5556 #include "confdefs.h
"
5557 #include <sys/types.h>
5561 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5564 if { (eval echo configure:5565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5566 ac_cv_sizeof_void_p=$ac_size
5568 echo "configure
: failed program was
:" >&5
5569 cat conftest.$ac_ext >&5
5572 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5577 if test x$ac_cv_sizeof_void_p = x ; then
5578 { echo "configure
: error
: cannot determine a size
for void
*" 1>&2; exit 1; }
5580 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5581 cat >> confdefs.h <<EOF
5582 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5591 if test -z "$ZLIBSPEC"; then
5592 # Use zlib from the GCC tree.
5593 ZINCS='-I$(top_srcdir)/../zlib'
5594 ZLIBS=../zlib/libzgcj_convenience.la
5597 SYS_ZLIBS="$ZLIBSPEC"
5608 if test "$CANADIAN" = yes; then
5617 if test "$NULL_TARGET" = yes; then
5619 NULL_TARGET_FALSE='#'
5621 NULL_TARGET_TRUE='#'
5626 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5635 if test -z "$with_cross_host"; then
5637 USE_LIBDIR_FALSE='#'
5644 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5645 NEEDS_DATA_START_TRUE=
5646 NEEDS_DATA_START_FALSE='#'
5648 NEEDS_DATA_START_TRUE='#'
5649 NEEDS_DATA_START_FALSE=
5655 # Determine gcj version number.
5657 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
5659 GCJVERSION=$gcjversion
5661 cat >> confdefs.h <<EOF
5662 #define GCJVERSION "$GCJVERSION"
5666 echo $ac_n "checking
for g
++ -ffloat-store bug
""...
$ac_c" 1>&6
5667 echo "configure
:5668: checking
for g
++ -ffloat-store bug
" >&5
5668 save_CFLAGS="$CFLAGS"
5669 CFLAGS="-x c
++ -O2 -ffloat-store"
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure
"
5672 #include "confdefs.h
"
5678 if { (eval echo configure:5679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5680 echo "$ac_t""no
" 1>&6
5682 echo "configure
: failed program was
:" >&5
5683 cat conftest.$ac_ext >&5
5685 cat >> confdefs.h <<\EOF
5686 #define __NO_MATH_INLINES 1
5689 echo "$ac_t""yes" 1>&6
5692 CFLAGS="$save_CFLAGS"
5694 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
5696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5697 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5698 echo "configure
:5699: checking
for $ac_hdr" >&5
5699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5700 echo $ac_n "(cached
) $ac_c" 1>&6
5702 cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure
"
5704 #include "confdefs.h
"
5707 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5708 { (eval echo configure:5709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5710 if test -z "$ac_err"; then
5712 eval "ac_cv_header_
$ac_safe=yes"
5715 echo "configure
: failed program was
:" >&5
5716 cat conftest.$ac_ext >&5
5718 eval "ac_cv_header_
$ac_safe=no
"
5722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5723 echo "$ac_t""yes" 1>&6
5724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5725 cat >> confdefs.h <<EOF
5726 #define $ac_tr_hdr 1
5730 echo "$ac_t""no
" 1>&6
5734 for ac_hdr in dirent.h
5736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5737 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5738 echo "configure
:5739: checking
for $ac_hdr" >&5
5739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5740 echo $ac_n "(cached
) $ac_c" 1>&6
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure
"
5744 #include "confdefs.h
"
5747 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5748 { (eval echo configure:5749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5750 if test -z "$ac_err"; then
5752 eval "ac_cv_header_
$ac_safe=yes"
5755 echo "configure
: failed program was
:" >&5
5756 cat conftest.$ac_ext >&5
5758 eval "ac_cv_header_
$ac_safe=no
"
5762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5763 echo "$ac_t""yes" 1>&6
5764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5765 cat >> confdefs.h <<EOF
5766 #define $ac_tr_hdr 1
5770 echo "$ac_t""no
" 1>&6
5774 for ac_hdr in inttypes.h
5776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5777 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5778 echo "configure
:5779: checking
for $ac_hdr" >&5
5779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5780 echo $ac_n "(cached
) $ac_c" 1>&6
5782 cat > conftest.$ac_ext <<EOF
5783 #line 5784 "configure
"
5784 #include "confdefs.h
"
5787 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5788 { (eval echo configure:5789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5790 if test -z "$ac_err"; then
5792 eval "ac_cv_header_
$ac_safe=yes"
5795 echo "configure
: failed program was
:" >&5
5796 cat conftest.$ac_ext >&5
5798 eval "ac_cv_header_
$ac_safe=no
"
5802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5803 echo "$ac_t""yes" 1>&6
5804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5805 cat >> confdefs.h <<EOF
5806 #define $ac_tr_hdr 1
5809 cat >> confdefs.h <<\EOF
5810 #define HAVE_INTTYPES_H 1
5813 cat >> confdefs.h <<\EOF
5814 #define JV_HAVE_INTTYPES_H 1
5819 echo "$ac_t""no
" 1>&6
5823 echo $ac_n "checking
for sys
/wait.h that is POSIX
.1 compatible
""...
$ac_c" 1>&6
5824 echo "configure
:5825: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
5825 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5826 echo $ac_n "(cached
) $ac_c" 1>&6
5828 cat > conftest.$ac_ext <<EOF
5829 #line 5830 "configure
"
5830 #include "confdefs.h
"
5831 #include <sys/types.h>
5832 #include <sys/wait.h>
5834 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5837 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5842 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5845 if { (eval echo configure:5846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5847 ac_cv_header_sys_wait_h=yes
5849 echo "configure
: failed program was
:" >&5
5850 cat conftest.$ac_ext >&5
5852 ac_cv_header_sys_wait_h=no
5857 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5858 if test $ac_cv_header_sys_wait_h = yes; then
5859 cat >> confdefs.h <<\EOF
5860 #define HAVE_SYS_WAIT_H 1
5866 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
5867 echo "configure
:5868: checking
for ANSI C header files
" >&5
5868 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5869 echo $ac_n "(cached
) $ac_c" 1>&6
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure
"
5873 #include "confdefs.h
"
5879 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5880 { (eval echo configure:5881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5882 if test -z "$ac_err"; then
5884 ac_cv_header_stdc=yes
5887 echo "configure
: failed program was
:" >&5
5888 cat conftest.$ac_ext >&5
5890 ac_cv_header_stdc=no
5894 if test $ac_cv_header_stdc = yes; then
5895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure
"
5898 #include "confdefs.h
"
5901 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5902 egrep "memchr
" >/dev/null 2>&1; then
5906 ac_cv_header_stdc=no
5912 if test $ac_cv_header_stdc = yes; then
5913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure
"
5916 #include "confdefs.h
"
5919 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5920 egrep "free
" >/dev/null 2>&1; then
5924 ac_cv_header_stdc=no
5930 if test $ac_cv_header_stdc = yes; then
5931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5932 if test "$cross_compiling" = yes; then
5935 cat > conftest.$ac_ext <<EOF
5936 #line 5937 "configure
"
5937 #include "confdefs.h
"
5939 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5940 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5942 int main () { int i; for (i = 0; i < 256; i++)
5943 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5947 if { (eval echo configure:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5951 echo "configure
: failed program was
:" >&5
5952 cat conftest.$ac_ext >&5
5954 ac_cv_header_stdc=no
5962 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5963 if test $ac_cv_header_stdc = yes; then
5964 cat >> confdefs.h <<\EOF
5965 #define STDC_HEADERS 1
5970 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
5971 echo "configure
:5972: checking
for ssize_t
" >&5
5972 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5973 echo $ac_n "(cached
) $ac_c" 1>&6
5975 cat > conftest.$ac_ext <<EOF
5976 #line 5977 "configure
"
5977 #include "confdefs.h
"
5978 #include <sys/types.h>
5984 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5985 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
5987 ac_cv_type_ssize_t=yes
5990 ac_cv_type_ssize_t=no
5995 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5996 if test $ac_cv_type_ssize_t = no; then
5997 cat >> confdefs.h <<\EOF
6004 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
6005 echo "configure
:6006: checking
for in_addr_t
" >&5
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure
"
6008 #include "confdefs.h
"
6009 #include <sys/types.h>
6014 #if HAVE_NETINET_IN_H
6015 #include <netinet/in.h>
6021 if { (eval echo configure:6022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6023 cat >> confdefs.h <<\EOF
6024 #define HAVE_IN_ADDR_T 1
6027 echo "$ac_t""yes" 1>&6
6029 echo "configure
: failed program was
:" >&5
6030 cat conftest.$ac_ext >&5
6032 echo "$ac_t""no
" 1>&6
6036 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
6037 echo "configure
:6038: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
6038 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure
"
6040 #include "confdefs.h
"
6041 #include <netinet/in.h>
6043 struct ip_mreq mreq;
6046 if { (eval echo configure:6047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6048 cat >> confdefs.h <<\EOF
6049 #define HAVE_STRUCT_IP_MREQ 1
6052 echo "$ac_t""yes" 1>&6
6054 echo "configure
: failed program was
:" >&5
6055 cat conftest.$ac_ext >&5
6057 echo "$ac_t""no
" 1>&6
6061 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
6062 echo "configure
:6063: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
6063 cat > conftest.$ac_ext <<EOF
6064 #line 6065 "configure
"
6065 #include "confdefs.h
"
6066 #include <netinet/in.h>
6068 struct ipv6_mreq mreq6;
6071 if { (eval echo configure:6072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6073 cat >> confdefs.h <<\EOF
6074 #define HAVE_STRUCT_IPV6_MREQ 1
6077 echo "$ac_t""yes" 1>&6
6079 echo "configure
: failed program was
:" >&5
6080 cat conftest.$ac_ext >&5
6082 echo "$ac_t""no
" 1>&6
6086 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
6087 echo "configure
:6088: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
6088 cat > conftest.$ac_ext <<EOF
6089 #line 6090 "configure
"
6090 #include "confdefs.h
"
6091 #include <netinet/in.h>
6093 struct sockaddr_in6 addr6;
6096 if { (eval echo configure:6097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6098 cat >> confdefs.h <<\EOF
6099 #define HAVE_INET6 1
6102 echo "$ac_t""yes" 1>&6
6104 echo "configure
: failed program was
:" >&5
6105 cat conftest.$ac_ext >&5
6107 echo "$ac_t""no
" 1>&6
6111 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
6112 echo "configure
:6113: checking
for socklen_t
in sys
/socket.h
" >&5
6113 cat > conftest.$ac_ext <<EOF
6114 #line 6115 "configure
"
6115 #include "confdefs.h
"
6116 #define _POSIX_PII_SOCKET
6117 #include <sys/types.h>
6118 #include <sys/socket.h>
6123 if { (eval echo configure:6124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6125 cat >> confdefs.h <<\EOF
6126 #define HAVE_SOCKLEN_T 1
6129 echo "$ac_t""yes" 1>&6
6131 echo "configure
: failed program was
:" >&5
6132 cat conftest.$ac_ext >&5
6134 echo "$ac_t""no
" 1>&6
6138 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
6139 echo "configure
:6140: checking
for tm_gmtoff
in struct tm
" >&5
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure
"
6142 #include "confdefs.h
"
6145 struct tm tim; tim.tm_gmtoff = 0;
6148 if { (eval echo configure:6149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6150 cat >> confdefs.h <<\EOF
6151 #define STRUCT_TM_HAS_GMTOFF 1
6154 echo "$ac_t""yes" 1>&6
6156 echo "configure
: failed program was
:" >&5
6157 cat conftest.$ac_ext >&5
6159 echo "$ac_t""no
" 1>&6
6160 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
6161 echo "configure
:6162: checking
for global timezone variable
" >&5
6162 cat > conftest.$ac_ext <<EOF
6163 #line 6164 "configure
"
6164 #include "confdefs.h
"
6167 void i(){long z2 = 2*timezone;}
6170 if { (eval echo configure:6171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6172 cat >> confdefs.h <<\EOF
6173 #define HAVE_TIMEZONE 1
6176 echo "$ac_t""yes" 1>&6
6178 echo "configure
: failed program was
:" >&5
6179 cat conftest.$ac_ext >&5
6181 echo "$ac_t""no
" 1>&6
6182 echo $ac_n "checking
for global _timezone variable
""...
$ac_c" 1>&6
6183 echo "configure
:6184: checking
for global _timezone variable
" >&5
6184 cat > conftest.$ac_ext <<EOF
6185 #line 6186 "configure
"
6186 #include "confdefs.h
"
6189 long z2 = _timezone;
6192 if { (eval echo configure:6193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6194 cat >> confdefs.h <<\EOF
6195 #define HAVE_UNDERSCORE_TIMEZONE 1
6198 echo "$ac_t""yes" 1>&6
6200 echo "configure
: failed program was
:" >&5
6201 cat conftest.$ac_ext >&5
6203 echo "$ac_t""no
" 1>&6
6211 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6212 # for constant arguments. Useless!
6213 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
6214 echo "configure
:6215: checking
for working alloca.h
" >&5
6215 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6216 echo $ac_n "(cached
) $ac_c" 1>&6
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure
"
6220 #include "confdefs.h
"
6223 char *p = alloca(2 * sizeof(int));
6226 if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6228 ac_cv_header_alloca_h=yes
6230 echo "configure
: failed program was
:" >&5
6231 cat conftest.$ac_ext >&5
6233 ac_cv_header_alloca_h=no
6238 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6239 if test $ac_cv_header_alloca_h = yes; then
6240 cat >> confdefs.h <<\EOF
6241 #define HAVE_ALLOCA_H 1
6246 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
6247 echo "configure
:6248: checking
for alloca
" >&5
6248 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6249 echo $ac_n "(cached
) $ac_c" 1>&6
6251 cat > conftest.$ac_ext <<EOF
6252 #line 6253 "configure
"
6253 #include "confdefs.h
"
6256 # define alloca __builtin_alloca
6259 # include <malloc.h>
6260 # define alloca _alloca
6263 # include <alloca.h>
6268 # ifndef alloca /* predefined by HP cc +Olibcalls */
6277 char *p = (char *) alloca(1);
6280 if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6282 ac_cv_func_alloca_works=yes
6284 echo "configure
: failed program was
:" >&5
6285 cat conftest.$ac_ext >&5
6287 ac_cv_func_alloca_works=no
6292 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6293 if test $ac_cv_func_alloca_works = yes; then
6294 cat >> confdefs.h <<\EOF
6295 #define HAVE_ALLOCA 1
6300 if test $ac_cv_func_alloca_works = no; then
6301 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6302 # that cause trouble. Some versions do not even contain alloca or
6303 # contain a buggy version. If you still want to use their alloca,
6304 # use ar to extract alloca.o from them instead of compiling alloca.c.
6305 ALLOCA=alloca.${ac_objext}
6306 cat >> confdefs.h <<\EOF
6311 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
6312 echo "configure
:6313: checking whether alloca needs Cray hooks
" >&5
6313 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6314 echo $ac_n "(cached
) $ac_c" 1>&6
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure
"
6318 #include "confdefs.h
"
6319 #if defined(CRAY) && ! defined(CRAY2)
6326 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6327 egrep "webecray
" >/dev/null 2>&1; then
6338 echo "$ac_t""$ac_cv_os_cray" 1>&6
6339 if test $ac_cv_os_cray = yes; then
6340 for ac_func in _getb67 GETB67 getb67; do
6341 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6342 echo "configure
:6343: checking
for $ac_func" >&5
6343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6344 echo $ac_n "(cached
) $ac_c" 1>&6
6346 cat > conftest.$ac_ext <<EOF
6347 #line 6348 "configure
"
6348 #include "confdefs.h
"
6349 /* System header to define __stub macros and hopefully few prototypes,
6350 which can conflict with char $ac_func(); below. */
6352 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6359 /* The GNU C library defines this for functions which it implements
6360 to always fail with ENOSYS. Some functions are actually named
6361 something starting with __ and the normal name is an alias. */
6362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6370 if { (eval echo configure:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6372 eval "ac_cv_func_
$ac_func=yes"
6374 echo "configure
: failed program was
:" >&5
6375 cat conftest.$ac_ext >&5
6377 eval "ac_cv_func_
$ac_func=no
"
6382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6383 echo "$ac_t""yes" 1>&6
6384 cat >> confdefs.h <<EOF
6385 #define CRAY_STACKSEG_END $ac_func
6390 echo "$ac_t""no
" 1>&6
6396 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
6397 echo "configure
:6398: checking stack direction
for C alloca
" >&5
6398 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6399 echo $ac_n "(cached
) $ac_c" 1>&6
6401 if test "$cross_compiling" = yes; then
6402 ac_cv_c_stack_direction=0
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure
"
6406 #include "confdefs.h
"
6407 find_stack_direction ()
6409 static char *addr = 0;
6414 return find_stack_direction ();
6417 return (&dummy > addr) ? 1 : -1;
6421 exit (find_stack_direction() < 0);
6424 if { (eval echo configure:6425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6426 ac_cv_c_stack_direction=1
6428 echo "configure
: failed program was
:" >&5
6429 cat conftest.$ac_ext >&5
6431 ac_cv_c_stack_direction=-1
6438 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6439 cat >> confdefs.h <<EOF
6440 #define STACK_DIRECTION $ac_cv_c_stack_direction
6448 # Extract the first word of "$ac_prog", so it can be a program name with args.
6449 set dummy $ac_prog; ac_word=$2
6450 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6451 echo "configure
:6452: checking
for $ac_word" >&5
6452 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6453 echo $ac_n "(cached
) $ac_c" 1>&6
6455 if test -n "$PERL"; then
6456 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6460 for ac_dir in $ac_dummy; do
6461 test -z "$ac_dir" && ac_dir=.
6462 if test -f $ac_dir/$ac_word; then
6463 ac_cv_prog_PERL="$ac_prog"
6470 PERL="$ac_cv_prog_PERL"
6471 if test -n "$PERL"; then
6472 echo "$ac_t""$PERL" 1>&6
6474 echo "$ac_t""no
" 1>&6
6477 test -n "$PERL" && break
6479 test -n "$PERL" || PERL="false
"
6486 SIGNAL_HANDLER=include/i386-signal.h
6488 sparc*-sun-solaris*)
6489 SIGNAL_HANDLER=include/sparc-signal.h
6492 # SYSDEP_SOURCES=sysdep/ia64.c
6493 # test -d sysdep || mkdir sysdep
6496 SIGNAL_HANDLER=include/dwarf2-signal.h
6499 SIGNAL_HANDLER=include/dwarf2-signal.h
6502 SIGNAL_HANDLER=include/dwarf2-signal.h
6505 SIGNAL_HANDLER=include/s390-signal.h
6508 SIGNAL_HANDLER=include/dwarf2-signal.h
6511 SIGNAL_HANDLER=include/win32-signal.h
6514 SIGNAL_HANDLER=include/default-signal.h
6518 # If we're using sjlj exceptions, forget what we just learned.
6519 if test "$enable_sjlj_exceptions" = yes; then
6520 SIGNAL_HANDLER=include/default-signal.h
6527 if test "${multilib}" = "yes"; then
6528 multilib_arg="--enable-multilib"
6533 # If we find X, set shell vars x_includes and x_libraries to the
6534 # paths, otherwise set no_x=yes.
6535 # Uses ac_ vars as temps to allow command line to override cache and checks.
6536 # --without-x overrides everything else, but does not touch the cache.
6537 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
6538 echo "configure
:6539: checking
for X
" >&5
6540 # Check whether --with-x or --without-x was given.
6541 if test "${with_x+set}" = set; then
6546 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6547 if test "x
$with_x" = xno; then
6548 # The user explicitly disabled X.
6551 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
6552 # Both variables are already set.
6555 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6556 echo $ac_n "(cached
) $ac_c" 1>&6
6558 # One or both of the vars are not set, and there is no cached value.
6559 ac_x_includes=NO ac_x_libraries=NO
6561 if mkdir conftestdir; then
6563 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6564 cat > Imakefile <<'EOF'
6566 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6568 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6569 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
6570 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6571 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6572 for ac_extension in a so sl; do
6573 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6574 test -f $ac_im_libdir/libX11.$ac_extension; then
6575 ac_im_usrlibdir=$ac_im_libdir; break
6578 # Screen out bogus values from the imake configuration. They are
6579 # bogus both because they are the default anyway, and because
6580 # using them would break gcc on systems where it needs fixed includes.
6581 case "$ac_im_incroot" in
6583 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
6585 case "$ac_im_usrlibdir" in
6587 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6594 if test "$ac_x_includes" = NO; then
6595 # Guess where to find include files, by looking for this one X11 .h file.
6596 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6598 # First, try using that file with no special directory specified.
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure
"
6601 #include "confdefs.h
"
6602 #include <$x_direct_test_include>
6604 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6605 { (eval echo configure:6606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6607 if test -z "$ac_err"; then
6609 # We can compile using X headers with no special include directory.
6613 echo "configure
: failed program was
:" >&5
6614 cat conftest.$ac_ext >&5
6616 # Look for the header file in a standard set of common directories.
6617 # Check X11 before X11Rn because it is often a symlink to the current release.
6620 /usr/X11R6/include \
6621 /usr/X11R5/include \
6622 /usr/X11R4/include \
6625 /usr/include/X11R6 \
6626 /usr/include/X11R5 \
6627 /usr/include/X11R4 \
6629 /usr/local/X11/include \
6630 /usr/local/X11R6/include \
6631 /usr/local/X11R5/include \
6632 /usr/local/X11R4/include \
6634 /usr/local/include/X11 \
6635 /usr/local/include/X11R6 \
6636 /usr/local/include/X11R5 \
6637 /usr/local/include/X11R4 \
6641 /usr/XFree86/include/X11 \
6644 /usr/local/include \
6645 /usr/unsupported/include \
6646 /usr/athena/include \
6647 /usr/local/x11r5/include \
6648 /usr/lpp/Xamples/include \
6650 /usr/openwin/include \
6651 /usr/openwin/share/include \
6654 if test -r "$ac_dir/$x_direct_test_include"; then
6655 ac_x_includes=$ac_dir
6661 fi # $ac_x_includes = NO
6663 if test "$ac_x_libraries" = NO; then
6664 # Check for the libraries.
6666 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6667 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6669 # See if we find them without any special options.
6670 # Don't add to $LIBS permanently.
6671 ac_save_LIBS="$LIBS"
6672 LIBS="-l$x_direct_test_library $LIBS"
6673 cat > conftest.$ac_ext <<EOF
6674 #line 6675 "configure
"
6675 #include "confdefs.h
"
6678 ${x_direct_test_function}()
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6683 LIBS="$ac_save_LIBS"
6684 # We can link X programs with no special library path.
6687 echo "configure
: failed program was
:" >&5
6688 cat conftest.$ac_ext >&5
6690 LIBS="$ac_save_LIBS"
6691 # First see if replacing the include by lib works.
6692 # Check X11 before X11Rn because it is often a symlink to the current release.
6693 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6704 /usr/local/X11/lib \
6705 /usr/local/X11R6/lib \
6706 /usr/local/X11R5/lib \
6707 /usr/local/X11R4/lib \
6709 /usr/local/lib/X11 \
6710 /usr/local/lib/X11R6 \
6711 /usr/local/lib/X11R5 \
6712 /usr/local/lib/X11R4 \
6716 /usr/XFree86/lib/X11 \
6720 /usr/unsupported/lib \
6722 /usr/local/x11r5/lib \
6723 /usr/lpp/Xamples/lib \
6727 /usr/openwin/share/lib \
6730 for ac_extension in a so sl; do
6731 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6732 ac_x_libraries=$ac_dir
6739 fi # $ac_x_libraries = NO
6741 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6742 # Didn't find X anywhere. Cache the known absence of X.
6743 ac_cv_have_x="have_x
=no
"
6745 # Record where we found X for the cache.
6746 ac_cv_have_x="have_x
=yes \
6747 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
6751 eval "$ac_cv_have_x"
6754 if test "$have_x" != yes; then
6755 echo "$ac_t""$have_x" 1>&6
6758 # If each of the values was on the command line, it overrides each guess.
6759 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
6760 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6761 # Update the cache value to reflect the command line values.
6762 ac_cv_have_x="have_x
=yes \
6763 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
6764 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
6767 if test "$no_x" = yes; then
6768 # Not all programs may use this symbol, but it does not hurt to define it.
6769 cat >> confdefs.h <<\EOF
6770 #define X_DISPLAY_MISSING 1
6773 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6775 if test -n "$x_includes"; then
6776 X_CFLAGS="$X_CFLAGS -I$x_includes"
6779 # It would also be nice to do this for all -L options, not just this one.
6780 if test -n "$x_libraries"; then
6781 X_LIBS="$X_LIBS -L$x_libraries"
6782 # For Solaris; some versions of Sun CC require a space after -R and
6783 # others require no space. Words are not sufficient . . . .
6784 case "`(uname -sr) 2>/dev/null`" in
6786 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
6787 echo "configure
:6788: checking whether
-R must be followed by a space
" >&5
6788 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6789 cat > conftest.$ac_ext <<EOF
6790 #line 6791 "configure
"
6791 #include "confdefs.h
"
6797 if { (eval echo configure:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6801 echo "configure
: failed program was
:" >&5
6802 cat conftest.$ac_ext >&5
6807 if test $ac_R_nospace = yes; then
6808 echo "$ac_t""no
" 1>&6
6809 X_LIBS="$X_LIBS -R$x_libraries"
6811 LIBS="$ac_xsave_LIBS -R $x_libraries"
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure
"
6814 #include "confdefs.h
"
6820 if { (eval echo configure:6821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6824 echo "configure
: failed program was
:" >&5
6825 cat conftest.$ac_ext >&5
6830 if test $ac_R_space = yes; then
6831 echo "$ac_t""yes" 1>&6
6832 X_LIBS="$X_LIBS -R $x_libraries"
6834 echo "$ac_t""neither works
" 1>&6
6837 LIBS="$ac_xsave_LIBS"
6841 # Check for system-dependent libraries X programs must link with.
6842 # Do this before checking for the system-independent R6 libraries
6843 # (-lICE), since we may need -lsocket or whatever for X linking.
6845 if test "$ISC" = yes; then
6846 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6848 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6849 # libraries were built with DECnet support. And karl@cs.umb.edu says
6850 # the Alpha needs dnet_stub (dnet does not exist).
6851 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
6852 echo "configure
:6853: checking
for dnet_ntoa
in -ldnet" >&5
6853 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6855 echo $ac_n "(cached
) $ac_c" 1>&6
6857 ac_save_LIBS="$LIBS"
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure
"
6861 #include "confdefs.h
"
6862 /* Override any gcc2 internal prototype to avoid an error. */
6863 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */
6871 if { (eval echo configure:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6873 eval "ac_cv_lib_
$ac_lib_var=yes"
6875 echo "configure
: failed program was
:" >&5
6876 cat conftest.$ac_ext >&5
6878 eval "ac_cv_lib_
$ac_lib_var=no
"
6881 LIBS="$ac_save_LIBS"
6884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6885 echo "$ac_t""yes" 1>&6
6886 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6888 echo "$ac_t""no
" 1>&6
6891 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6892 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
6893 echo "configure
:6894: checking
for dnet_ntoa
in -ldnet_stub" >&5
6894 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6896 echo $ac_n "(cached
) $ac_c" 1>&6
6898 ac_save_LIBS="$LIBS"
6899 LIBS="-ldnet_stub $LIBS"
6900 cat > conftest.$ac_ext <<EOF
6901 #line 6902 "configure
"
6902 #include "confdefs.h
"
6903 /* Override any gcc2 internal prototype to avoid an error. */
6904 /* We use char because int might match the return type of a gcc2
6905 builtin and then its argument prototype would still apply. */
6912 if { (eval echo configure:6913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6914 eval "ac_cv_lib_
$ac_lib_var=yes"
6916 echo "configure
: failed program was
:" >&5
6917 cat conftest.$ac_ext >&5
6919 eval "ac_cv_lib_
$ac_lib_var=no
"
6922 LIBS="$ac_save_LIBS"
6925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6926 echo "$ac_t""yes" 1>&6
6927 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6929 echo "$ac_t""no
" 1>&6
6934 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6935 # to get the SysV transport functions.
6936 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6938 # The nsl library prevents programs from opening the X display
6939 # on Irix 5.2, according to dickey@clark.net.
6940 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6941 echo "configure
:6942: checking
for gethostbyname
" >&5
6942 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6943 echo $ac_n "(cached
) $ac_c" 1>&6
6945 cat > conftest.$ac_ext <<EOF
6946 #line 6947 "configure
"
6947 #include "confdefs.h
"
6948 /* System header to define __stub macros and hopefully few prototypes,
6949 which can conflict with char gethostbyname(); below. */
6951 /* Override any gcc2 internal prototype to avoid an error. */
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6954 char gethostbyname();
6958 /* The GNU C library defines this for functions which it implements
6959 to always fail with ENOSYS. Some functions are actually named
6960 something starting with __ and the normal name is an alias. */
6961 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6969 if { (eval echo configure:6970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6971 eval "ac_cv_func_gethostbyname
=yes"
6973 echo "configure
: failed program was
:" >&5
6974 cat conftest.$ac_ext >&5
6976 eval "ac_cv_func_gethostbyname
=no
"
6981 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6982 echo "$ac_t""yes" 1>&6
6985 echo "$ac_t""no
" 1>&6
6988 if test $ac_cv_func_gethostbyname = no; then
6989 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
6990 echo "configure
:6991: checking
for gethostbyname
in -lnsl" >&5
6991 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6993 echo $ac_n "(cached
) $ac_c" 1>&6
6995 ac_save_LIBS="$LIBS"
6997 cat > conftest.$ac_ext <<EOF
6998 #line 6999 "configure
"
6999 #include "confdefs.h
"
7000 /* Override any gcc2 internal prototype to avoid an error. */
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7003 char gethostbyname();
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7011 eval "ac_cv_lib_
$ac_lib_var=yes"
7013 echo "configure
: failed program was
:" >&5
7014 cat conftest.$ac_ext >&5
7016 eval "ac_cv_lib_
$ac_lib_var=no
"
7019 LIBS="$ac_save_LIBS"
7022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7023 echo "$ac_t""yes" 1>&6
7024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7026 echo "$ac_t""no
" 1>&6
7031 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7032 # socket/setsockopt and other routines are undefined under SCO ODT
7033 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7034 # on later versions), says simon@lia.di.epfl.ch: it contains
7035 # gethostby* variants that don't use the nameserver (or something).
7036 # -lsocket must be given before -lnsl if both are needed.
7037 # We assume that if connect needs -lnsl, so does gethostbyname.
7038 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
7039 echo "configure
:7040: checking
for connect
" >&5
7040 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7041 echo $ac_n "(cached
) $ac_c" 1>&6
7043 cat > conftest.$ac_ext <<EOF
7044 #line 7045 "configure
"
7045 #include "confdefs.h
"
7046 /* System header to define __stub macros and hopefully few prototypes,
7047 which can conflict with char connect(); below. */
7049 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7056 /* The GNU C library defines this for functions which it implements
7057 to always fail with ENOSYS. Some functions are actually named
7058 something starting with __ and the normal name is an alias. */
7059 #if defined (__stub_connect) || defined (__stub___connect)
7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7069 eval "ac_cv_func_connect
=yes"
7071 echo "configure
: failed program was
:" >&5
7072 cat conftest.$ac_ext >&5
7074 eval "ac_cv_func_connect
=no
"
7079 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7080 echo "$ac_t""yes" 1>&6
7083 echo "$ac_t""no
" 1>&6
7086 if test $ac_cv_func_connect = no; then
7087 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
7088 echo "configure
:7089: checking
for connect
in -lsocket" >&5
7089 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7091 echo $ac_n "(cached
) $ac_c" 1>&6
7093 ac_save_LIBS="$LIBS"
7094 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7095 cat > conftest.$ac_ext <<EOF
7096 #line 7097 "configure
"
7097 #include "confdefs.h
"
7098 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7107 if { (eval echo configure:7108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7109 eval "ac_cv_lib_
$ac_lib_var=yes"
7111 echo "configure
: failed program was
:" >&5
7112 cat conftest.$ac_ext >&5
7114 eval "ac_cv_lib_
$ac_lib_var=no
"
7117 LIBS="$ac_save_LIBS"
7120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7121 echo "$ac_t""yes" 1>&6
7122 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7124 echo "$ac_t""no
" 1>&6
7129 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7130 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
7131 echo "configure
:7132: checking
for remove
" >&5
7132 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7133 echo $ac_n "(cached
) $ac_c" 1>&6
7135 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure
"
7137 #include "confdefs.h
"
7138 /* System header to define __stub macros and hopefully few prototypes,
7139 which can conflict with char remove(); below. */
7141 /* Override any gcc2 internal prototype to avoid an error. */
7142 /* We use char because int might match the return type of a gcc2
7143 builtin and then its argument prototype would still apply. */
7148 /* The GNU C library defines this for functions which it implements
7149 to always fail with ENOSYS. Some functions are actually named
7150 something starting with __ and the normal name is an alias. */
7151 #if defined (__stub_remove) || defined (__stub___remove)
7159 if { (eval echo configure:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7161 eval "ac_cv_func_remove
=yes"
7163 echo "configure
: failed program was
:" >&5
7164 cat conftest.$ac_ext >&5
7166 eval "ac_cv_func_remove
=no
"
7171 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7172 echo "$ac_t""yes" 1>&6
7175 echo "$ac_t""no
" 1>&6
7178 if test $ac_cv_func_remove = no; then
7179 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
7180 echo "configure
:7181: checking
for remove
in -lposix" >&5
7181 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7183 echo $ac_n "(cached
) $ac_c" 1>&6
7185 ac_save_LIBS="$LIBS"
7186 LIBS="-lposix $LIBS"
7187 cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure
"
7189 #include "confdefs.h
"
7190 /* Override any gcc2 internal prototype to avoid an error. */
7191 /* We use char because int might match the return type of a gcc2
7192 builtin and then its argument prototype would still apply. */
7199 if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7201 eval "ac_cv_lib_
$ac_lib_var=yes"
7203 echo "configure
: failed program was
:" >&5
7204 cat conftest.$ac_ext >&5
7206 eval "ac_cv_lib_
$ac_lib_var=no
"
7209 LIBS="$ac_save_LIBS"
7212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7213 echo "$ac_t""yes" 1>&6
7214 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7216 echo "$ac_t""no
" 1>&6
7221 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7222 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
7223 echo "configure
:7224: checking
for shmat
" >&5
7224 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7225 echo $ac_n "(cached
) $ac_c" 1>&6
7227 cat > conftest.$ac_ext <<EOF
7228 #line 7229 "configure
"
7229 #include "confdefs.h
"
7230 /* System header to define __stub macros and hopefully few prototypes,
7231 which can conflict with char shmat(); below. */
7233 /* Override any gcc2 internal prototype to avoid an error. */
7234 /* We use char because int might match the return type of a gcc2
7235 builtin and then its argument prototype would still apply. */
7240 /* The GNU C library defines this for functions which it implements
7241 to always fail with ENOSYS. Some functions are actually named
7242 something starting with __ and the normal name is an alias. */
7243 #if defined (__stub_shmat) || defined (__stub___shmat)
7251 if { (eval echo configure:7252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7253 eval "ac_cv_func_shmat
=yes"
7255 echo "configure
: failed program was
:" >&5
7256 cat conftest.$ac_ext >&5
7258 eval "ac_cv_func_shmat
=no
"
7263 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7264 echo "$ac_t""yes" 1>&6
7267 echo "$ac_t""no
" 1>&6
7270 if test $ac_cv_func_shmat = no; then
7271 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
7272 echo "configure
:7273: checking
for shmat
in -lipc" >&5
7273 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7275 echo $ac_n "(cached
) $ac_c" 1>&6
7277 ac_save_LIBS="$LIBS"
7279 cat > conftest.$ac_ext <<EOF
7280 #line 7281 "configure
"
7281 #include "confdefs.h
"
7282 /* Override any gcc2 internal prototype to avoid an error. */
7283 /* We use char because int might match the return type of a gcc2
7284 builtin and then its argument prototype would still apply. */
7291 if { (eval echo configure:7292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7293 eval "ac_cv_lib_
$ac_lib_var=yes"
7295 echo "configure
: failed program was
:" >&5
7296 cat conftest.$ac_ext >&5
7298 eval "ac_cv_lib_
$ac_lib_var=no
"
7301 LIBS="$ac_save_LIBS"
7304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7305 echo "$ac_t""yes" 1>&6
7306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7308 echo "$ac_t""no
" 1>&6
7314 # Check for libraries that X11R6 Xt/Xaw programs need.
7315 ac_save_LDFLAGS="$LDFLAGS"
7316 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7317 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7318 # check for ICE first), but we must link in the order -lSM -lICE or
7319 # we get undefined symbols. So assume we have SM if we have ICE.
7320 # These have to be linked with before -lX11, unlike the other
7321 # libraries we check for below, so use a different variable.
7322 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7323 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
7324 echo "configure
:7325: checking
for IceConnectionNumber
in -lICE" >&5
7325 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7327 echo $ac_n "(cached
) $ac_c" 1>&6
7329 ac_save_LIBS="$LIBS"
7330 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7331 cat > conftest.$ac_ext <<EOF
7332 #line 7333 "configure
"
7333 #include "confdefs.h
"
7334 /* Override any gcc2 internal prototype to avoid an error. */
7335 /* We use char because int might match the return type of a gcc2
7336 builtin and then its argument prototype would still apply. */
7337 char IceConnectionNumber();
7340 IceConnectionNumber()
7343 if { (eval echo configure:7344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7345 eval "ac_cv_lib_
$ac_lib_var=yes"
7347 echo "configure
: failed program was
:" >&5
7348 cat conftest.$ac_ext >&5
7350 eval "ac_cv_lib_
$ac_lib_var=no
"
7353 LIBS="$ac_save_LIBS"
7356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7357 echo "$ac_t""yes" 1>&6
7358 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7360 echo "$ac_t""no
" 1>&6
7363 LDFLAGS="$ac_save_LDFLAGS"
7368 # Check whether --enable-java-awt or --disable-java-awt was given.
7369 if test "${enable_java_awt+set}" = set; then
7370 enableval="$enable_java_awt"
7375 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7379 for peer in $peerlibs ; do
7382 if test "$no_x" = yes; then
7383 echo "*** xlib peers requested but no X library available
" 1>&2
7398 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
7405 if test "$use_xlib_awt" = yes; then
7414 if test "$use_gtk_awt" = yes; then
7423 here=`${PWDCMD-pwd}`
7426 # We get this from the environment.
7430 cat > confcache <<\EOF
7431 # This file is a shell script that caches the results of configure
7432 # tests run on this system so they can be shared between configure
7433 # scripts and configure runs. It is not useful on other systems.
7434 # If it contains results you don't want to keep, you may remove or edit it.
7436 # By default, configure uses ./config.cache as the cache file,
7437 # creating it if it does not exist already. You can give configure
7438 # the --cache-file=FILE option to use a different cache file; that is
7439 # what configure does when it calls configure scripts in
7440 # subdirectories, so they share the cache.
7441 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7442 # config.status only pays attention to the cache file if you give it the
7443 # --recheck option to rerun configure.
7446 # The following way of writing the cache mishandles newlines in values,
7447 # but we know of no workaround that is simple, portable, and efficient.
7448 # So, don't put newlines in cache variables' values.
7449 # Ultrix sh set writes to stderr and can't be redirected directly,
7450 # and sets the high bit in the cache file unless we assign to the vars.
7452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7454 # `set' does not quote correctly, so add quotes (double-quote substitution
7455 # turns \\\\ into \\, and sed turns \\ into \).
7457 -e "s
/'/'\\\\''/g
" \
7458 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
7461 # `set' quotes correctly as required by POSIX, so do not add quotes.
7462 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7465 if cmp -s $cache_file confcache; then
7468 if test -w $cache_file; then
7469 echo "updating cache
$cache_file"
7470 cat confcache > $cache_file
7472 echo "not updating unwritable cache
$cache_file"
7477 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7479 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
7480 # Let make expand exec_prefix.
7481 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
7483 # Any assignment to VPATH causes Sun make to only execute
7484 # the first set of double-colon rules, so remove it if not needed.
7485 # If there is a colon in the path, we need to keep it.
7486 if test "x
$srcdir" = x.; then
7487 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7490 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7492 DEFS=-DHAVE_CONFIG_H
7494 # Without the ".
/", some shells look in PATH for config.status.
7495 : ${CONFIG_STATUS=./config.status}
7497 echo creating $CONFIG_STATUS
7498 rm -f $CONFIG_STATUS
7499 cat > $CONFIG_STATUS <<EOF
7501 # Generated automatically by configure.
7502 # Run this file to recreate the current configuration.
7503 # This directory was configured as follows,
7504 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7506 # $0 $ac_configure_args
7508 # Compiler output produced by configure, useful for debugging
7509 # configure, is in ./config.log if it exists.
7511 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
7514 case "\
$ac_option" in
7515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7516 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7517 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7518 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7519 echo "$CONFIG_STATUS generated by autoconf version
2.13"
7521 -help | --help | --hel | --he | --h)
7522 echo "\
$ac_cs_usage"; exit 0 ;;
7523 *) echo "\
$ac_cs_usage"; exit 1 ;;
7527 ac_given_srcdir=$srcdir
7528 ac_given_INSTALL="$INSTALL"
7530 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
7532 cat >> $CONFIG_STATUS <<EOF
7534 # Protect against being on the right side of a sed subst in config.status.
7535 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7536 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7540 s%@CFLAGS@%$CFLAGS%g
7541 s%@CPPFLAGS@%$CPPFLAGS%g
7542 s%@CXXFLAGS@%$CXXFLAGS%g
7543 s%@FFLAGS@%$FFLAGS%g
7545 s%@LDFLAGS@%$LDFLAGS%g
7547 s%@exec_prefix@%$exec_prefix%g
7548 s%@prefix@%$prefix%g
7549 s%@program_transform_name@%$program_transform_name%g
7550 s%@bindir@%$bindir%g
7551 s%@sbindir@%$sbindir%g
7552 s%@libexecdir@%$libexecdir%g
7553 s%@datadir@%$datadir%g
7554 s%@sysconfdir@%$sysconfdir%g
7555 s%@sharedstatedir@%$sharedstatedir%g
7556 s%@localstatedir@%$localstatedir%g
7557 s%@libdir@%$libdir%g
7558 s%@includedir@%$includedir%g
7559 s%@oldincludedir@%$oldincludedir%g
7560 s%@infodir@%$infodir%g
7561 s%@mandir@%$mandir%g
7563 s%@libgcj_basedir@%$libgcj_basedir%g
7564 s%@mkinstalldirs@%$mkinstalldirs%g
7566 s%@host_alias@%$host_alias%g
7567 s%@host_cpu@%$host_cpu%g
7568 s%@host_vendor@%$host_vendor%g
7569 s%@host_os@%$host_os%g
7570 s%@target@%$target%g
7571 s%@target_alias@%$target_alias%g
7572 s%@target_cpu@%$target_cpu%g
7573 s%@target_vendor@%$target_vendor%g
7574 s%@target_os@%$target_os%g
7576 s%@build_alias@%$build_alias%g
7577 s%@build_cpu@%$build_cpu%g
7578 s%@build_vendor@%$build_vendor%g
7579 s%@build_os@%$build_os%g
7581 s%@glibjava_CXX@%$glibjava_CXX%g
7583 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7584 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7585 s%@INSTALL_DATA@%$INSTALL_DATA%g
7586 s%@PACKAGE@%$PACKAGE%g
7587 s%@VERSION@%$VERSION%g
7588 s%@ACLOCAL@%$ACLOCAL%g
7589 s%@AUTOCONF@%$AUTOCONF%g
7590 s%@AUTOMAKE@%$AUTOMAKE%g
7591 s%@AUTOHEADER@%$AUTOHEADER%g
7592 s%@MAKEINFO@%$MAKEINFO%g
7593 s%@SET_MAKE@%$SET_MAKE%g
7596 s%@RANLIB@%$RANLIB%g
7597 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7598 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7600 s%@EXEEXT@%$EXEEXT%g
7601 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7602 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7603 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7604 s%@INCLTDL@%$INCLTDL%g
7605 s%@LIBLTDL@%$LIBLTDL%g
7606 s%@DIRLTDL@%$DIRLTDL%g
7607 s%@OBJEXT@%$OBJEXT%g
7609 s%@LIBTOOL@%$LIBTOOL%g
7610 s%@CXXCPP@%$CXXCPP%g
7611 s%@subdirs@%$subdirs%g
7612 s%@COMPPATH@%$COMPPATH%g
7613 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7614 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7615 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7616 s%@LIBFFI@%$LIBFFI%g
7617 s%@LIBFFIINCS@%$LIBFFIINCS%g
7618 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7620 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7621 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7622 s%@ZLIBSPEC@%$ZLIBSPEC%g
7623 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7624 s%@GCLIBS@%$GCLIBS%g
7625 s%@GCINCS@%$GCINCS%g
7626 s%@GCDEPS@%$GCDEPS%g
7627 s%@GCOBJS@%$GCOBJS%g
7628 s%@GCSPEC@%$GCSPEC%g
7629 s%@JC1GCSPEC@%$JC1GCSPEC%g
7630 s%@GCTESTSPEC@%$GCTESTSPEC%g
7631 s%@THREADLIBS@%$THREADLIBS%g
7632 s%@THREADINCS@%$THREADINCS%g
7633 s%@THREADDEPS@%$THREADDEPS%g
7634 s%@THREADOBJS@%$THREADOBJS%g
7635 s%@THREADSPEC@%$THREADSPEC%g
7636 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
7637 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7638 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7639 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7640 s%@tool_include_dir@%$tool_include_dir%g
7641 s%@gcc_version@%$gcc_version%g
7642 s%@LIBICONV@%$LIBICONV%g
7644 s%@GCJFLAGS@%$GCJFLAGS%g
7646 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
7648 s%@DIVIDESPEC@%$DIVIDESPEC%g
7649 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
7650 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7651 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7652 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7653 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7654 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7655 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7656 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7657 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7658 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7659 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7660 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7661 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7662 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7663 s%@GCJVERSION@%$GCJVERSION%g
7664 s%@ALLOCA@%$ALLOCA%g
7666 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7667 s%@X_CFLAGS@%$X_CFLAGS%g
7668 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7669 s%@X_LIBS@%$X_LIBS%g
7670 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7671 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7672 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7673 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7674 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7680 cat >> $CONFIG_STATUS <<\EOF
7682 # Split the substitutions into bite-sized pieces for seds with
7683 # small command number limits, like on Digital OSF/1 and HP-UX.
7684 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7685 ac_file=1 # Number of current file.
7686 ac_beg=1 # First line for current file.
7687 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7690 while $ac_more_lines; do
7691 if test $ac_beg -gt 1; then
7692 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
7694 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
7696 if test ! -s conftest.s$ac_file; then
7698 rm -f conftest.s$ac_file
7700 if test -z "$ac_sed_cmds"; then
7701 ac_sed_cmds="sed -f conftest.s
$ac_file"
7703 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
7705 ac_file=`expr $ac_file + 1`
7707 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7710 if test -z "$ac_sed_cmds"; then
7715 cat >> $CONFIG_STATUS <<EOF
7717 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7719 cat >> $CONFIG_STATUS <<\EOF
7720 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
7721 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
7723 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7724 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7725 *) ac_file_in="${ac_file}.
in" ;;
7728 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7730 # Remove last slash and all that follows it. Not all systems have dirname.
7731 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7732 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7733 # The file is in a subdirectory.
7734 test ! -d "$ac_dir" && mkdir "$ac_dir"
7735 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7736 # A "..
/" for each directory in $ac_dir_suffix.
7737 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7739 ac_dir_suffix= ac_dots=
7742 case "$ac_given_srcdir" in
7744 if test -z "$ac_dots"; then top_srcdir=.
7745 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7746 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7748 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7749 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7752 case "$ac_given_INSTALL" in
7753 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7754 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7757 echo creating "$ac_file"
7759 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
7761 *Makefile*) ac_comsub="1i
\\
7762 # $configure_input" ;;
7766 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7768 s%@configure_input@%$configure_input%g
7769 s%@srcdir@%$srcdir%g
7770 s%@top_srcdir@%$top_srcdir%g
7771 s%@INSTALL@%$INSTALL%g
7772 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7776 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7777 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7779 # ac_d sets the value in "#define NAME VALUE" lines.
7780 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7781 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7784 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7785 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7786 ac_uB
='\([ ]\)%\1#\2define\3'
7789 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7790 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7791 ac_eB
='$%\1#\2define\3'
7795 if test "${CONFIG_HEADERS+set}" != set; then
7797 cat >> $CONFIG_STATUS <<EOF
7798 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7800 cat >> $CONFIG_STATUS <<\EOF
7802 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7803 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7805 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7806 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7807 *) ac_file_in
="${ac_file}.in" ;;
7810 echo creating
$ac_file
7812 rm -f conftest.frag conftest.
in conftest.out
7813 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7814 cat $ac_file_inputs > conftest.
in
7818 # Transform confdefs.h into a sed script conftest.vals that substitutes
7819 # the proper values into config.h.in to produce config.h. And first:
7820 # Protect against being on the right side of a sed subst in config.status.
7821 # Protect against being in an unquoted here document in config.status.
7823 cat > conftest.hdr
<<\EOF
7826 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7830 sed -n -f conftest.hdr confdefs.h > conftest.vals
7833 # This sed command replaces #undef with comments. This is necessary, for
7834 # example, in the case of _POSIX_SOURCE, which is predefined and required
7835 # on some systems where configure will not decide to define it.
7836 cat >> conftest.vals <<\EOF
7837 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7840 # Break up conftest.vals because some shells have a limit on
7841 # the size of here documents, and old seds have small limits too.
7846 ac_lines=`grep -c . conftest.vals
`
7847 # grep -c gives empty output for an empty file on some AIX systems.
7848 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7849 # Write a limited-size here document to conftest.frag.
7850 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7851 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7853 sed -f conftest.frag conftest.in > conftest.out
7855 mv conftest.out conftest.in
7857 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7859 mv conftest.tail conftest.vals
7863 cat >> $CONFIG_STATUS <<\EOF
7864 rm -f conftest.frag conftest.h
7865 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7866 cat conftest.in >> conftest.h
7868 if cmp -s $ac_file conftest.h 2>/dev/null; then
7869 echo "$ac_file is unchanged"
7872 # Remove last slash and all that follows it. Not all systems have dirname.
7873 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7874 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7875 # The file is in a subdirectory.
7876 test ! -d "$ac_dir" && mkdir "$ac_dir"
7879 mv conftest.h $ac_file
7885 cat >> $CONFIG_STATUS <<EOF
7886 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"
7887 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"
7890 cat >> $CONFIG_STATUS <<\EOF
7891 srcdir=$ac_given_srcdir
7892 while test -n "$ac_sources"; do
7893 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7894 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7896 echo "linking $srcdir/$ac_source to $ac_dest"
7898 if test ! -r $srcdir/$ac_source; then
7899 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7903 # Make relative symlinks.
7904 # Remove last slash and all that follows it. Not all systems have dirname.
7905 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7906 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7907 # The dest file is in a subdirectory.
7908 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7909 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7910 # A "../" for each directory in $ac_dest_dir_suffix.
7911 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7913 ac_dest_dir_suffix= ac_dots=
7917 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7918 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7921 # Make a symlink if possible; otherwise try a hard link.
7922 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7923 ln $srcdir/$ac_source $ac_dest; then :
7925 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7929 cat >> $CONFIG_STATUS <<EOF
7934 with_multisubdir=${with_multisubdir}
7935 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7936 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7937 libgcj_basedir=${libgcj_basedir}
7942 cat >> $CONFIG_STATUS <<\EOF
7944 for am_file in include/config.h gcj/libgcj-config.h; do
7945 case " $CONFIG_HEADERS " in
7947 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7950 am_indx=`expr "$am_indx" + 1`
7952 # Only add multilib support code if we just rebuilt top-level Makefile.
7953 case " $CONFIG_FILES " in
7955 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7956 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7960 # Make subdirectories and `.d
' files. Look in both srcdir and
7961 # builddir for the .java files.
7964 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' \) -print) ;
7965 find . \( -name '*.java
' -o -name '*.cc
' \) -print) | \
7966 fgrep -v testsuite | \
7967 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/' | \
7969 echo "include $f" >> deps.mk
7972 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
7974 if test ! -d $d; then
7975 $libgcj_basedir/../mkinstalldirs $d
7983 chmod +x $CONFIG_STATUS
7984 rm -fr confdefs* $ac_clean_files
7985 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7987 if test "$no_recursion" != yes; then
7989 # Remove --cache-file and --srcdir arguments so they do not pile up.
7990 ac_sub_configure_args=
7992 for ac_arg in $ac_configure_args; do
7993 if test -n "$ac_prev"; then
7998 -cache-file | --cache-file | --cache-fil | --cache-fi \
7999 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8000 ac_prev=cache_file ;;
8001 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8002 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8004 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8006 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8008 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8012 for ac_config_dir in $DIRLTDL; do
8014 # Do not complain, so a configure script can configure whichever
8015 # parts of a large source tree are present.
8016 if test ! -d $srcdir/$ac_config_dir; then
8020 echo configuring in $ac_config_dir
8025 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8027 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8035 # A "../" for each directory in /$ac_config_dir.
8036 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
8039 .) # No --srcdir option. We are building in place.
8040 ac_sub_srcdir=$srcdir ;;
8041 /*) # Absolute path.
8042 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8044 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8047 # Check for guested configure; otherwise get Cygnus style configure.
8048 if test -f $ac_sub_srcdir/configure; then
8049 ac_sub_configure=$ac_sub_srcdir/configure
8050 elif test -f $ac_sub_srcdir/configure.in; then
8051 ac_sub_configure=$ac_configure
8053 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8057 # The recursion is here.
8058 if test -n "$ac_sub_configure"; then
8060 # Make the cache file name correct relative to the subdirectory.
8061 case "$cache_file" in
8062 /*) ac_sub_cache_file=$cache_file ;;
8064 ac_sub_cache_file="$ac_dots$cache_file" ;;
8066 case "$ac_given_INSTALL" in
8067 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8068 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8071 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8072 # The eval makes quoting arguments work.
8073 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8076 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }