3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --with-newlib Configuring with newlib"
22 --enable-multilib build many library versions (default)"
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
29 --enable-static[=PKGS] build static libraries [default=yes]"
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
35 --disable-libtool-lock avoid locking (might break parallel builds)"
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --without-libffi don't use libffi"
55 --disable-jvmpi disable JVMPI support"
57 --with-ecos enable runtime eCos target support"
59 --with-system-zlib use installed libz"
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
63 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
65 --with-x use the X Window System"
67 --enable-java-awt list of AWT peer implementations to be built"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file
=.
/config.cache
82 program_transform_name
=s
,x
,x
,
91 bindir
='${exec_prefix}/bin'
92 sbindir
='${exec_prefix}/sbin'
93 libexecdir
='${exec_prefix}/libexec'
94 datadir
='${prefix}/share'
95 sysconfdir
='${prefix}/etc'
96 sharedstatedir
='${prefix}/com'
97 localstatedir
='${prefix}/var'
98 libdir
='${exec_prefix}/lib'
99 includedir
='${prefix}/include'
100 oldincludedir
='/usr/include'
101 infodir
='${prefix}/info'
102 mandir
='${prefix}/man'
104 # Initialize some other variables.
107 SHELL
=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
115 # If the previous option needs an argument, assign it.
116 if test -n "$ac_prev"; then
117 eval "$ac_prev=\$ac_option"
123 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 # Accept the important Cygnus configure options, so we can diagnose typos.
131 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
133 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
134 bindir
="$ac_optarg" ;;
136 -build |
--build |
--buil |
--bui |
--bu)
138 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
139 build
="$ac_optarg" ;;
141 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
142 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
143 ac_prev
=cache_file
;;
144 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
145 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
146 cache_file
="$ac_optarg" ;;
148 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
150 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
152 datadir
="$ac_optarg" ;;
154 -disable-* |
--disable-*)
155 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}=no" ;;
163 -enable-* |
--enable-*)
164 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}='$ac_optarg'" ;;
176 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
177 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
178 |
--exec |
--exe |
--ex)
179 ac_prev
=exec_prefix
;;
180 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
181 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
182 |
--exec=* |
--exe=* |
--ex=*)
183 exec_prefix
="$ac_optarg" ;;
185 -gas |
--gas |
--ga |
--g)
186 # Obsolete; use --with-gas.
189 -help |
--help |
--hel |
--he)
190 # Omit some internal or obsolete options to make the list less imposing.
191 # This message is too long to be a string in the A/UX 3.1 sh.
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
196 --cache-file=FILE cache test results in FILE
197 --help print this message
198 --no-create do not create output files
199 --quiet, --silent do not print \`checking...' messages
200 --site-file=FILE use FILE as the site file
201 --version print the version of autoconf that created configure
202 Directory and file names:
203 --prefix=PREFIX install architecture-independent files in PREFIX
205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 --bindir=DIR user executables in DIR [EPREFIX/bin]
208 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
209 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
210 --datadir=DIR read-only architecture-independent data in DIR
212 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
213 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
216 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
217 --includedir=DIR C header files in DIR [PREFIX/include]
218 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
219 --infodir=DIR info documentation in DIR [PREFIX/info]
220 --mandir=DIR man documentation in DIR [PREFIX/man]
221 --srcdir=DIR find the sources in DIR [configure dir or ..]
222 --program-prefix=PREFIX prepend PREFIX to installed program names
223 --program-suffix=SUFFIX append SUFFIX to installed program names
224 --program-transform-name=PROGRAM
225 run sed PROGRAM on installed program names
229 --build=BUILD configure for building on BUILD [BUILD=HOST]
230 --host=HOST configure for HOST [guessed]
231 --target=TARGET configure for TARGET [TARGET=HOST]
232 Features and packages:
233 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
234 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
235 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
236 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
237 --x-includes=DIR X include files are in DIR
238 --x-libraries=DIR X library files are in DIR
240 if test -n "$ac_help"; then
241 echo "--enable and --with options recognized:$ac_help"
245 -host |
--host |
--hos |
--ho)
247 -host=* |
--host=* |
--hos=* |
--ho=*)
250 -includedir |
--includedir |
--includedi |
--included |
--include \
251 |
--includ |
--inclu |
--incl |
--inc)
252 ac_prev
=includedir
;;
253 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
254 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
255 includedir
="$ac_optarg" ;;
257 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
259 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
260 infodir
="$ac_optarg" ;;
262 -libdir |
--libdir |
--libdi |
--libd)
264 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
265 libdir
="$ac_optarg" ;;
267 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
268 |
--libexe |
--libex |
--libe)
269 ac_prev
=libexecdir
;;
270 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
271 |
--libexe=* |
--libex=* |
--libe=*)
272 libexecdir
="$ac_optarg" ;;
274 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
275 |
--localstate |
--localstat |
--localsta |
--localst \
276 |
--locals |
--local |
--loca |
--loc |
--lo)
277 ac_prev
=localstatedir
;;
278 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
279 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
280 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
281 localstatedir
="$ac_optarg" ;;
283 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
285 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
286 mandir
="$ac_optarg" ;;
289 # Obsolete; use --without-fp.
292 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
296 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
297 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
300 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
301 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
302 |
--oldin |
--oldi |
--old |
--ol |
--o)
303 ac_prev
=oldincludedir
;;
304 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
305 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
306 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
307 oldincludedir
="$ac_optarg" ;;
309 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
311 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
312 prefix
="$ac_optarg" ;;
314 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
315 |
--program-pre |
--program-pr |
--program-p)
316 ac_prev
=program_prefix
;;
317 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
318 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
319 program_prefix
="$ac_optarg" ;;
321 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
322 |
--program-suf |
--program-su |
--program-s)
323 ac_prev
=program_suffix
;;
324 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
325 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
326 program_suffix
="$ac_optarg" ;;
328 -program-transform-name |
--program-transform-name \
329 |
--program-transform-nam |
--program-transform-na \
330 |
--program-transform-n |
--program-transform- \
331 |
--program-transform |
--program-transfor \
332 |
--program-transfo |
--program-transf \
333 |
--program-trans |
--program-tran \
334 |
--progr-tra |
--program-tr |
--program-t)
335 ac_prev
=program_transform_name
;;
336 -program-transform-name=* |
--program-transform-name=* \
337 |
--program-transform-nam=* |
--program-transform-na=* \
338 |
--program-transform-n=* |
--program-transform-=* \
339 |
--program-transform=* |
--program-transfor=* \
340 |
--program-transfo=* |
--program-transf=* \
341 |
--program-trans=* |
--program-tran=* \
342 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
343 program_transform_name
="$ac_optarg" ;;
345 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
346 |
-silent |
--silent |
--silen |
--sile |
--sil)
349 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
351 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
353 sbindir
="$ac_optarg" ;;
355 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
356 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
357 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
359 ac_prev
=sharedstatedir
;;
360 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
361 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
362 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
364 sharedstatedir
="$ac_optarg" ;;
366 -site |
--site |
--sit)
368 -site=* |
--site=* |
--sit=*)
371 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
373 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
374 sitefile
="$ac_optarg" ;;
376 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
378 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
379 srcdir
="$ac_optarg" ;;
381 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
382 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
383 ac_prev
=sysconfdir
;;
384 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
385 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
386 sysconfdir
="$ac_optarg" ;;
388 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
390 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
391 target
="$ac_optarg" ;;
393 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
396 -version |
--version |
--versio |
--versi |
--vers)
397 echo "configure generated by autoconf version 2.13"
401 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package
=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* |
--without-*)
414 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package
=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
427 |
--x-incl |
--x-inc |
--x-in |
--x-i)
428 ac_prev
=x_includes
;;
429 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
430 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
431 x_includes
="$ac_optarg" ;;
433 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
434 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
435 ac_prev
=x_libraries
;;
436 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
437 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
438 x_libraries
="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE
; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
489 |
--no-cr |
--no-c) ;;
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
492 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest
* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file
=java
/lang
/System.java
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted
=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted
=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$sitefile"; then
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE
; then
544 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 CONFIG_SITE
="$sitefile"
552 for ac_site_file
in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp
='$CPP $CPPFLAGS'
570 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling
=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
585 ac_n
= ac_c
='\c' ac_t
=
590 # This works around the fact that libtool configuration may change LD
591 # for this particular configuration, but some shells, instead of
592 # keeping the changes in LD private, export them just because LD is
594 ORIGINAL_LD_FOR_MULTILIBS
=$LD
596 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
597 echo "configure:598: checking whether ln -s works" >&5
598 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
602 if ln -s X conftestdata
2>/dev
/null
605 ac_cv_prog_LN_S
="ln -s"
610 LN_S
="$ac_cv_prog_LN_S"
611 if test "$ac_cv_prog_LN_S" = "ln -s"; then
612 echo "$ac_t""yes" 1>&6
614 echo "$ac_t""no" 1>&6
618 # Check whether --with-target-subdir or --without-target-subdir was given.
619 if test "${with_target_subdir+set}" = set; then
620 withval
="$with_target_subdir"
624 # Check whether --with-cross-host or --without-cross-host was given.
625 if test "${with_cross_host+set}" = set; then
626 withval
="$with_cross_host"
631 # Check whether --with-newlib or --without-newlib was given.
632 if test "${with_newlib+set}" = set; then
633 withval
="$with_newlib"
638 # Find a good install program. We prefer a C program (faster),
639 # so one script is as good as another. But avoid the broken or
640 # incompatible versions:
641 # SysV /etc/install, /usr/sbin/install
642 # SunOS /usr/etc/install
645 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
646 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
647 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
648 # ./install, which can be erroneously created by make from ./install.sh.
649 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
650 echo "configure:651: checking for a BSD compatible install" >&5
651 if test -z "$INSTALL"; then
652 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
655 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
656 for ac_dir
in $PATH; do
657 # Account for people who put trailing slashes in PATH elements.
659 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
661 # OSF1 and SCO ODT 3.0 have their own names for install.
662 # Don't use installbsd from OSF since it installs stuff as root
664 for ac_prog
in ginstall scoinst
install; do
665 if test -f $ac_dir/$ac_prog; then
666 if test $ac_prog = install &&
667 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
668 # AIX install. It has an incompatible calling convention.
671 ac_cv_path_install
="$ac_dir/$ac_prog -c"
682 if test "${ac_cv_path_install+set}" = set; then
683 INSTALL
="$ac_cv_path_install"
685 # As a last resort, use the slow shell script. We don't cache a
686 # path for INSTALL within a source directory, because that will
687 # break other packages using the cache if that directory is
688 # removed, or if the path is relative.
689 INSTALL
="$ac_install_sh"
692 echo "$ac_t""$INSTALL" 1>&6
694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
695 # It thinks the first close brace ends the variable substitution.
696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
698 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
700 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
702 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
703 echo "configure:704: checking whether build environment is sane" >&5
706 echo timestamp
> conftestfile
707 # Do `set' in a subshell so we don't clobber the current shell's
708 # arguments. Must try -L first in case configure is actually a
709 # symlink; some systems play weird games with the mod time of symlinks
710 # (eg FreeBSD returns the mod time of the symlink's containing
713 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
714 if test "$*" = "X"; then
716 set X
`ls -t $srcdir/configure conftestfile`
718 if test "$*" != "X $srcdir/configure conftestfile" \
719 && test "$*" != "X conftestfile $srcdir/configure"; then
721 # If neither matched, then we have a broken ls. This can happen
722 # if, for instance, CONFIG_SHELL is bash and it inherits a
723 # broken ls alias from the environment. This has actually
724 # happened. Such a system could not be considered "sane".
725 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
726 alias in your environment" 1>&2; exit 1; }
729 test "$2" = conftestfile
735 { echo "configure: error: newly created file is older than distributed files!
736 Check your system clock" 1>&2; exit 1; }
739 echo "$ac_t""yes" 1>&6
740 if test "$program_transform_name" = s
,x
,x
,; then
741 program_transform_name
=
743 # Double any \ or $. echo might interpret backslashes.
744 cat <<\EOF_SED
> conftestsed
745 s
,\\,\\\\,g
; s
,\$
,$$
,g
747 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
750 test "$program_prefix" != NONE
&&
751 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
752 # Use a double $ so make ignores it.
753 test "$program_suffix" != NONE
&&
754 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
756 # sed with no file args requires a program.
757 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
759 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
760 echo "configure:761: checking whether ${MAKE-make} sets \${MAKE}" >&5
761 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
762 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
763 echo $ac_n "(cached) $ac_c" 1>&6
765 cat > conftestmake
<<\EOF
767 @
echo 'ac_maketemp="${MAKE}"'
769 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
770 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
771 if test -n "$ac_maketemp"; then
772 eval ac_cv_prog_make_
${ac_make}_set
=yes
774 eval ac_cv_prog_make_
${ac_make}_set
=no
778 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
779 echo "$ac_t""yes" 1>&6
782 echo "$ac_t""no" 1>&6
783 SET_MAKE
="MAKE=${MAKE-make}"
786 if test $host != $build; then
787 ac_tool_prefix
=${host_alias}-
792 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
793 echo "configure:794: checking for Cygwin environment" >&5
794 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 cat > conftest.
$ac_ext <<EOF
798 #line 799 "configure"
799 #include "confdefs.h"
804 #define __CYGWIN__ __CYGWIN32__
809 if { (eval echo configure
:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813 echo "configure: failed program was:" >&5
814 cat conftest.
$ac_ext >&5
822 echo "$ac_t""$ac_cv_cygwin" 1>&6
824 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
825 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
826 echo "configure:827: checking for mingw32 environment" >&5
827 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 cat > conftest.
$ac_ext <<EOF
831 #line 832 "configure"
832 #include "confdefs.h"
838 if { (eval echo configure
:839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
842 echo "configure: failed program was:" >&5
843 cat conftest.
$ac_ext >&5
851 echo "$ac_t""$ac_cv_mingw32" 1>&6
853 test "$ac_cv_mingw32" = yes && MINGW32
=yes
855 # Check whether --enable-multilib or --disable-multilib was given.
856 if test "${enable_multilib+set}" = set; then
857 enableval
="$enable_multilib"
858 case "${enableval}" in
861 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
868 # When building with srcdir == objdir, links to the source files will
869 # be created in directories within the target_subdir. We have to
870 # adjust toplevel_srcdir accordingly, so that configure finds
871 # install-sh and other auxiliary files that live in the top-level
873 if test "${srcdir}" = "."; then
874 if test -z "${with_target_subdir}"; then
877 if test "${with_target_subdir}" != "."; then
878 toprel
="${with_multisrctop}../.."
880 toprel
="${with_multisrctop}.."
887 libgcj_basedir
=$srcdir/$toprel/.
/libjava
891 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
892 if test -f $ac_dir/install-sh
; then
894 ac_install_sh
="$ac_aux_dir/install-sh -c"
896 elif test -f $ac_dir/install.sh
; then
898 ac_install_sh
="$ac_aux_dir/install.sh -c"
902 if test -z "$ac_aux_dir"; then
903 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
905 ac_config_guess=$ac_aux_dir/config.guess
906 ac_config_sub=$ac_aux_dir/config.sub
907 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
910 # This overrides the previous occurrence for automake, but not for
911 # autoconf, which is exactly what we want.
913 for ac_dir in .. $srcdir/..; do
914 if test -f $ac_dir/install-sh; then
916 ac_install_sh="$ac_aux_dir/install-sh
-c"
918 elif test -f $ac_dir/install.sh; then
920 ac_install_sh="$ac_aux_dir/install.sh
-c"
924 if test -z "$ac_aux_dir"; then
925 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
927 ac_config_guess=$ac_aux_dir/config.guess
928 ac_config_sub=$ac_aux_dir/config.sub
929 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
933 # This works around an automake problem.
934 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs
"
938 # Do some error checking and defaulting for the host and target type.
940 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
943 # 1. You are not allowed to specify --host, --target, and nonopt at the
945 # 2. Host defaults to nonopt.
946 # 3. If nonopt is not specified, then host defaults to the current host,
947 # as determined by config.guess.
948 # 4. Target and build default to nonopt.
949 # 5. If nonopt is not specified, then target and build default to host.
951 # The aliases save the names the user supplied, while $host etc.
952 # will get canonicalized.
953 case $host---$target---$nonopt in
954 NONE---*---* | *---NONE---* | *---*---NONE) ;;
955 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
959 # Make sure we can run config.sub.
960 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
961 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
964 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
965 echo "configure
:966: checking
host system
type" >&5
968 case "$host_alias" in
972 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
973 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
975 *) host_alias=$nonopt ;;
979 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
980 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
981 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
982 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
983 echo "$ac_t""$host" 1>&6
985 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
986 echo "configure
:987: checking target system
type" >&5
989 case "$target_alias" in
992 NONE) target_alias=$host_alias ;;
993 *) target_alias=$nonopt ;;
997 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
998 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1001 echo "$ac_t""$target" 1>&6
1003 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1004 echo "configure
:1005: checking build system
type" >&5
1007 case "$build_alias" in
1010 NONE) build_alias=$host_alias ;;
1011 *) build_alias=$nonopt ;;
1015 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1016 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1017 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1018 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1019 echo "$ac_t""$build" 1>&6
1021 test "$host_alias" != "$target_alias" &&
1022 test "$program_prefix$program_suffix$program_transform_name" = \
1024 program_prefix=${target_alias}-
1030 # Extract the first word of "gcc
", so it can be a program name with args.
1031 set dummy gcc; ac_word=$2
1032 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1033 echo "configure
:1034: checking
for $ac_word" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1035 echo $ac_n "(cached
) $ac_c" 1>&6
1037 if test -n "$CC"; then
1038 ac_cv_prog_CC="$CC" # Let the user override the test.
1040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1042 for ac_dir in $ac_dummy; do
1043 test -z "$ac_dir" && ac_dir=.
1044 if test -f $ac_dir/$ac_word; then
1053 if test -n "$CC"; then
1054 echo "$ac_t""$CC" 1>&6
1056 echo "$ac_t""no
" 1>&6
1059 if test -z "$CC"; then
1060 # Extract the first word of "cc
", so it can be a program name with args.
1061 set dummy cc; ac_word=$2
1062 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1063 echo "configure
:1064: checking
for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached
) $ac_c" 1>&6
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC="$CC" # Let the user override the test.
1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1073 for ac_dir in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1077 ac_prog_rejected=yes
1085 if test $ac_prog_rejected = yes; then
1086 # We found a bogon in the path, so make sure we never use it.
1087 set dummy $ac_cv_prog_CC
1089 if test $# -gt 0; then
1090 # We chose a different compiler from the bogus one.
1091 # However, it has the same basename, so the bogon will be chosen
1092 # first if we set CC to just the basename; use the full file name.
1094 set dummy "$ac_dir/$ac_word" "$@
"
1102 if test -n "$CC"; then
1103 echo "$ac_t""$CC" 1>&6
1105 echo "$ac_t""no
" 1>&6
1108 if test -z "$CC"; then
1109 case "`uname -s`" in
1111 # Extract the first word of "cl
", so it can be a program name with args.
1112 set dummy cl; ac_word=$2
1113 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1114 echo "configure
:1115: checking
for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1116 echo $ac_n "(cached
) $ac_c" 1>&6
1118 if test -n "$CC"; then
1119 ac_cv_prog_CC="$CC" # Let the user override the test.
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1123 for ac_dir in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir=.
1125 if test -f $ac_dir/$ac_word; then
1134 if test -n "$CC"; then
1135 echo "$ac_t""$CC" 1>&6
1137 echo "$ac_t""no
" 1>&6
1142 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1146 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1147 echo "configure
:1148: checking whether we are using GNU C
" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1149 echo $ac_n "(cached
) $ac_c" 1>&6
1151 cat > conftest.c <<EOF
1156 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1163 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1165 if test $ac_cv_prog_gcc = yes; then
1171 ac_test_CFLAGS="${CFLAGS+set}"
1172 ac_save_CFLAGS="$CFLAGS"
1174 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1175 echo "configure
:1176: checking whether
${CC-cc} accepts
-g" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1177 echo $ac_n "(cached
) $ac_c" 1>&6
1179 echo 'void f(){}' > conftest.c
1180 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1189 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1190 if test "$ac_test_CFLAGS" = set; then
1191 CFLAGS="$ac_save_CFLAGS"
1192 elif test $ac_cv_prog_cc_g = yes; then
1193 if test "$GCC" = yes; then
1199 if test "$GCC" = yes; then
1207 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1208 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1209 # different definition of CXX than other directories, since we don't
1210 # depend on libstdc++-v3 having already been built.
1214 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1215 # flags that come in CXX while configuring libjava. They're different
1216 # from those used for all other target libraries. If CXX is set in
1217 # the environment, respect that here.
1219 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1221 # Extract the first word of "$ac_prog", so it can be a program name with args.
1222 set dummy $ac_prog; ac_word=$2
1223 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1224 echo "configure
:1225: checking
for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1226 echo $ac_n "(cached
) $ac_c" 1>&6
1228 if test -n "$glibjava_CXX"; then
1229 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1233 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 if test -f $ac_dir/$ac_word; then
1236 ac_cv_prog_glibjava_CXX="$ac_prog"
1243 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1244 if test -n "$glibjava_CXX"; then
1245 echo "$ac_t""$glibjava_CXX" 1>&6
1247 echo "$ac_t""no
" 1>&6
1250 test -n "$glibjava_CXX" && break
1252 test -n "$glibjava_CXX" || glibjava_CXX="gcc
"
1256 test -z "$glibjava_CXX" && { echo "configure
: error
: no acceptable c
++ found
in \
$PATH" 1>&2; exit 1; }
1258 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1259 echo "configure
:1260: checking whether we are using GNU C
++" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1261 echo $ac_n "(cached
) $ac_c" 1>&6
1263 cat > conftest.C <<EOF
1268 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1275 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1277 if test $ac_cv_prog_gxx = yes; then
1279 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1280 ac_save_CXXFLAGS="$CXXFLAGS"
1282 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1283 echo "configure
:1284: checking whether
${CXX-g++} accepts
-g" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1285 echo $ac_n "(cached
) $ac_c" 1>&6
1287 echo 'void f(){}' > conftest.cc
1288 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1289 ac_cv_prog_cxx_g=yes
1297 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1298 if test "$ac_test_CXXFLAGS" = set; then
1299 CXXFLAGS="$ac_save_CXXFLAGS"
1300 elif test $ac_cv_prog_cxx_g = yes; then
1307 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1317 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1318 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1320 cat >> confdefs.h <<EOF
1321 #define PACKAGE "$PACKAGE"
1324 cat >> confdefs.h <<EOF
1325 #define VERSION "$VERSION"
1330 missing_dir=`cd $ac_aux_dir && pwd`
1331 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
1332 echo "configure
:1333: checking
for working aclocal
" >&5
1333 # Run test in a subshell; some versions of sh will print an error if
1334 # an executable is not found, even if stderr is redirected.
1335 # Redirect stdin to placate older versions of autoconf. Sigh.
1336 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1338 echo "$ac_t""found
" 1>&6
1340 ACLOCAL="$missing_dir/missing aclocal
"
1341 echo "$ac_t""missing
" 1>&6
1344 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1345 echo "configure
:1346: checking
for working autoconf
" >&5
1346 # Run test in a subshell; some versions of sh will print an error if
1347 # an executable is not found, even if stderr is redirected.
1348 # Redirect stdin to placate older versions of autoconf. Sigh.
1349 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1351 echo "$ac_t""found
" 1>&6
1353 AUTOCONF="$missing_dir/missing autoconf
"
1354 echo "$ac_t""missing
" 1>&6
1357 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
1358 echo "configure
:1359: checking
for working automake
" >&5
1359 # Run test in a subshell; some versions of sh will print an error if
1360 # an executable is not found, even if stderr is redirected.
1361 # Redirect stdin to placate older versions of autoconf. Sigh.
1362 if (automake --version) < /dev/null > /dev/null 2>&1; then
1364 echo "$ac_t""found
" 1>&6
1366 AUTOMAKE="$missing_dir/missing automake
"
1367 echo "$ac_t""missing
" 1>&6
1370 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1371 echo "configure
:1372: checking
for working autoheader
" >&5
1372 # Run test in a subshell; some versions of sh will print an error if
1373 # an executable is not found, even if stderr is redirected.
1374 # Redirect stdin to placate older versions of autoconf. Sigh.
1375 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1376 AUTOHEADER=autoheader
1377 echo "$ac_t""found
" 1>&6
1379 AUTOHEADER="$missing_dir/missing autoheader
"
1380 echo "$ac_t""missing
" 1>&6
1383 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1384 echo "configure
:1385: checking
for working makeinfo
" >&5
1385 # Run test in a subshell; some versions of sh will print an error if
1386 # an executable is not found, even if stderr is redirected.
1387 # Redirect stdin to placate older versions of autoconf. Sigh.
1388 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1390 echo "$ac_t""found
" 1>&6
1392 MAKEINFO="$missing_dir/missing makeinfo
"
1393 echo "$ac_t""missing
" 1>&6
1398 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1399 # run it explicitly here, it will be run implicitly before
1400 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1401 # be run before AC_CANONICAL_HOST.
1402 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1403 echo "configure
:1404: checking build system
type" >&5
1406 case "$build_alias" in
1409 NONE) build_alias=$host_alias ;;
1410 *) build_alias=$nonopt ;;
1414 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1415 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1418 echo "$ac_t""$build" 1>&6
1421 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1422 set dummy ${ac_tool_prefix}as; ac_word=$2
1423 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1424 echo "configure
:1425: checking
for $ac_word" >&5
1425 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1426 echo $ac_n "(cached
) $ac_c" 1>&6
1428 if test -n "$AS"; then
1429 ac_cv_prog_AS="$AS" # Let the user override the test.
1431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1433 for ac_dir in $ac_dummy; do
1434 test -z "$ac_dir" && ac_dir=.
1435 if test -f $ac_dir/$ac_word; then
1436 ac_cv_prog_AS="${ac_tool_prefix}as
"
1441 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1445 if test -n "$AS"; then
1446 echo "$ac_t""$AS" 1>&6
1448 echo "$ac_t""no
" 1>&6
1453 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1454 set dummy ${ac_tool_prefix}ar; ac_word=$2
1455 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1456 echo "configure
:1457: checking
for $ac_word" >&5
1457 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1458 echo $ac_n "(cached
) $ac_c" 1>&6
1460 if test -n "$AR"; then
1461 ac_cv_prog_AR="$AR" # Let the user override the test.
1463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1465 for ac_dir in $ac_dummy; do
1466 test -z "$ac_dir" && ac_dir=.
1467 if test -f $ac_dir/$ac_word; then
1468 ac_cv_prog_AR="${ac_tool_prefix}ar"
1473 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1477 if test -n "$AR"; then
1478 echo "$ac_t""$AR" 1>&6
1480 echo "$ac_t""no
" 1>&6
1485 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1486 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1487 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1488 echo "configure
:1489: checking
for $ac_word" >&5
1489 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1490 echo $ac_n "(cached
) $ac_c" 1>&6
1492 if test -n "$RANLIB"; then
1493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1497 for ac_dir in $ac_dummy; do
1498 test -z "$ac_dir" && ac_dir=.
1499 if test -f $ac_dir/$ac_word; then
1500 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1507 RANLIB="$ac_cv_prog_RANLIB"
1508 if test -n "$RANLIB"; then
1509 echo "$ac_t""$RANLIB" 1>&6
1511 echo "$ac_t""no
" 1>&6
1515 if test -z "$ac_cv_prog_RANLIB"; then
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "ranlib
", so it can be a program name with args.
1518 set dummy ranlib; ac_word=$2
1519 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1520 echo "configure
:1521: checking
for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1522 echo $ac_n "(cached
) $ac_c" 1>&6
1524 if test -n "$RANLIB"; then
1525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1532 ac_cv_prog_RANLIB="ranlib
"
1537 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1540 RANLIB="$ac_cv_prog_RANLIB"
1541 if test -n "$RANLIB"; then
1542 echo "$ac_t""$RANLIB" 1>&6
1544 echo "$ac_t""no
" 1>&6
1553 # Find a good install program. We prefer a C program (faster),
1554 # so one script is as good as another. But avoid the broken or
1555 # incompatible versions:
1556 # SysV /etc/install, /usr/sbin/install
1557 # SunOS /usr/etc/install
1558 # IRIX /sbin/install
1560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1563 # ./install, which can be erroneously created by make from ./install.sh.
1564 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1565 echo "configure
:1566: checking
for a BSD compatible
install" >&5
1566 if test -z "$INSTALL"; then
1567 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1568 echo $ac_n "(cached
) $ac_c" 1>&6
1570 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1571 for ac_dir in $PATH; do
1572 # Account for people who put trailing slashes in PATH elements.
1574 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1576 # OSF1 and SCO ODT 3.0 have their own names for install.
1577 # Don't use installbsd from OSF since it installs stuff as root
1579 for ac_prog in ginstall scoinst install; do
1580 if test -f $ac_dir/$ac_prog; then
1581 if test $ac_prog = install &&
1582 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1583 # AIX install. It has an incompatible calling convention.
1586 ac_cv_path_install="$ac_dir/$ac_prog -c"
1597 if test "${ac_cv_path_install+set}" = set; then
1598 INSTALL="$ac_cv_path_install"
1600 # As a last resort, use the slow shell script. We don't cache a
1601 # path for INSTALL within a source directory, because that will
1602 # break other packages using the cache if that directory is
1603 # removed, or if the path is relative.
1604 INSTALL="$ac_install_sh"
1607 echo "$ac_t""$INSTALL" 1>&6
1609 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1610 # It thinks the first close brace ends the variable substitution.
1611 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1613 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1615 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1618 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1619 echo "configure
:1620: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1620 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1621 if test "${enable_maintainer_mode+set}" = set; then
1622 enableval="$enable_maintainer_mode"
1623 USE_MAINTAINER_MODE=$enableval
1625 USE_MAINTAINER_MODE=no
1628 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1631 if test $USE_MAINTAINER_MODE = yes; then
1632 MAINTAINER_MODE_TRUE=
1633 MAINTAINER_MODE_FALSE='#'
1635 MAINTAINER_MODE_TRUE='#'
1636 MAINTAINER_MODE_FALSE=
1638 MAINT=$MAINTAINER_MODE_TRUE
1644 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1645 echo "configure
:1646: checking
for executable suffix
" >&5
1646 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1647 echo $ac_n "(cached
) $ac_c" 1>&6
1649 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1653 echo 'int main () { return 0; }' > conftest.$ac_ext
1655 if { (eval echo configure:1656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1656 for file in conftest.*; do
1658 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1659 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1663 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1666 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1671 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1672 echo "$ac_t""${ac_cv_exeext}" 1>&6
1676 # configure.host sets the following important variables
1677 # libgcj_cflags - host specific C compiler flags
1678 # libgcj_cxxflags - host specific C++ compiler flags
1679 # libgcj_javaflags - host specific Java compiler flags
1685 . ${srcdir}/configure.host
1687 LIBGCJ_CFLAGS="${libgcj_cflags}"
1688 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1689 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1699 # Only use libltdl for native builds.
1700 if test -z "${with_cross_host}"; then
1701 case $enable_ltdl_convenience in
1702 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1703 "") enable_ltdl_convenience=yes
1704 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1706 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1707 INCLTDL='-I${top_srcdir}/''libltdl'
1711 cat >> confdefs.h <<\EOF
1715 # Sigh. Libtool's macro doesn't do the right thing.
1716 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1717 # FIXME: this is a hack.
1718 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1719 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1724 # Check whether --enable-shared or --disable-shared was given.
1725 if test "${enable_shared+set}" = set; then
1726 enableval="$enable_shared"
1727 p=${PACKAGE-default}
1729 yes) enable_shared=yes ;;
1730 no) enable_shared=no ;;
1733 # Look at the argument we got. We use all the common list separators.
1734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1735 for pkg in $enableval; do
1736 if test "X
$pkg" = "X
$p"; then
1747 # Check whether --enable-static or --disable-static was given.
1748 if test "${enable_static+set}" = set; then
1749 enableval="$enable_static"
1750 p=${PACKAGE-default}
1752 yes) enable_static=yes ;;
1753 no) enable_static=no ;;
1756 # Look at the argument we got. We use all the common list separators.
1757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1758 for pkg in $enableval; do
1759 if test "X
$pkg" = "X
$p"; then
1770 # Check whether --enable-fast-install or --disable-fast-install was given.
1771 if test "${enable_fast_install+set}" = set; then
1772 enableval="$enable_fast_install"
1773 p=${PACKAGE-default}
1775 yes) enable_fast_install=yes ;;
1776 no) enable_fast_install=no ;;
1778 enable_fast_install=no
1779 # Look at the argument we got. We use all the common list separators.
1780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1781 for pkg in $enableval; do
1782 if test "X
$pkg" = "X
$p"; then
1783 enable_fast_install=yes
1790 enable_fast_install=yes
1793 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1794 if test "${with_gnu_ld+set}" = set; then
1795 withval="$with_gnu_ld"
1796 test "$withval" = no || with_gnu_ld=yes
1802 if test "$GCC" = yes; then
1803 # Check if gcc -print-prog-name=ld gives a path.
1804 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1805 echo "configure
:1806: checking
for ld used by GCC
" >&5
1808 # gcc leaves a trailing carriage return which upsets mingw
1809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1814 # Accept absolute paths.
1815 [\\/]* | [A-Za-z]:[\\/]*)
1816 re_direlt='/[^/][^/]*/\.\./'
1817 # Canonicalize the path of ld
1818 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1819 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1820 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1822 test -z "$LD" && LD="$ac_prog"
1825 # If it fails, then pretend we aren't using GCC.
1829 # If it is relative, then search for the first ld in PATH.
1833 elif test "$with_gnu_ld" = yes; then
1834 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1835 echo "configure
:1836: checking
for GNU ld
" >&5
1837 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1838 echo "configure
:1839: checking
for non-GNU ld
" >&5
1840 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1841 echo $ac_n "(cached
) $ac_c" 1>&6
1843 if test -z "$LD"; then
1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1845 for ac_dir in $PATH; do
1846 test -z "$ac_dir" && ac_dir=.
1847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1848 lt_cv_path_LD="$ac_dir/$ac_prog"
1849 # Check to see if the program is GNU ld. I'd rather use --version,
1850 # but apparently some GNU ld's only accept -v.
1851 # Break only if it was the GNU/non-GNU ld that we prefer.
1852 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1853 test "$with_gnu_ld" != no && break
1855 test "$with_gnu_ld" != yes && break
1861 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1866 if test -n "$LD"; then
1867 echo "$ac_t""$LD" 1>&6
1869 echo "$ac_t""no
" 1>&6
1871 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1872 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1873 echo "configure
:1874: checking
if the linker
($LD) is GNU ld
" >&5
1874 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1875 echo $ac_n "(cached
) $ac_c" 1>&6
1877 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1878 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1879 lt_cv_prog_gnu_ld=yes
1881 lt_cv_prog_gnu_ld=no
1885 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1886 with_gnu_ld=$lt_cv_prog_gnu_ld
1889 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1890 echo "configure
:1891: checking
for $LD option to reload object files
" >&5
1891 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1892 echo $ac_n "(cached
) $ac_c" 1>&6
1894 lt_cv_ld_reload_flag='-r'
1897 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1898 reload_flag=$lt_cv_ld_reload_flag
1899 test -n "$reload_flag" && reload_flag=" $reload_flag"
1901 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1902 echo "configure
:1903: checking
for BSD-compatible nm
" >&5
1903 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1904 echo $ac_n "(cached
) $ac_c" 1>&6
1906 if test -n "$NM"; then
1907 # Let the user override the test.
1910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1911 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1912 test -z "$ac_dir" && ac_dir=.
1913 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1914 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1915 # Check to see if the nm accepts a BSD-compat flag.
1916 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1917 # nm: unknown option "B
" ignored
1918 # Tru64's nm complains that /dev/null is an invalid object file
1919 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1920 lt_cv_path_NM="$tmp_nm -B"
1922 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1923 lt_cv_path_NM="$tmp_nm -p"
1926 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1927 continue # so that we can try to find one that supports BSD flags
1932 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1937 echo "$ac_t""$NM" 1>&6
1939 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1940 echo "configure
:1941: checking how to recognise dependant libraries
" >&5
1941 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1942 echo $ac_n "(cached
) $ac_c" 1>&6
1944 lt_cv_file_magic_cmd='$MAGIC_CMD'
1945 lt_cv_file_magic_test_file=
1946 lt_cv_deplibs_check_method='unknown'
1947 # Need to set the preceding variable on all platforms that support
1948 # interlibrary dependencies.
1949 # 'none' -- dependencies not supported.
1950 # `unknown' -- same as none, but documents that we really don't know.
1951 # 'pass_all' -- all dependencies passed with no checks.
1952 # 'test_compile' -- check by making test program.
1953 # 'file_magic [regex]' -- check by looking for files in library path
1954 # which responds to the $file_magic_cmd with a given egrep regex.
1955 # If you have `file' or equivalent on your system and you're not sure
1956 # whether `pass_all' will *always* work, you probably want this one.
1960 lt_cv_deplibs_check_method=pass_all
1964 lt_cv_deplibs_check_method=pass_all
1968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1969 lt_cv_file_magic_cmd='/usr/bin/file -L'
1970 lt_cv_file_magic_test_file=/shlib/libc.so
1973 cygwin* | mingw* |pw32*)
1974 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1975 lt_cv_file_magic_cmd='$OBJDUMP -f'
1978 darwin* | rhapsody*)
1979 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1980 lt_cv_file_magic_cmd='/usr/bin/file -L'
1982 rhapsody* | darwin1.012)
1983 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1986 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1992 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1995 # Not sure whether the presence of OpenBSD here was a mistake.
1996 # Let's accept both of them until this is cleared up.
1997 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1998 lt_cv_file_magic_cmd=/usr/bin/file
1999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2003 lt_cv_deplibs_check_method=pass_all
2008 lt_cv_deplibs_check_method=pass_all
2012 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2013 lt_cv_file_magic_cmd=/usr/bin/file
2014 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2020 # this will be overridden with pass_all, but let us keep it just in case
2021 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2025 *-32|*"-32 ") libmagic=32-bit;;
2026 *-n32|*"-n32 ") libmagic=N32;;
2027 *-64|*"-64 ") libmagic=64-bit;;
2028 *) libmagic=never-match;;
2030 # this will be overridden with pass_all, but let us keep it just in case
2031 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2034 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2035 lt_cv_deplibs_check_method=pass_all
2038 # This must be Linux ELF.
2041 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2042 lt_cv_deplibs_check_method=pass_all ;;
2044 # glibc up to 2.1.1 does not perform some relocations on ARM
2045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2047 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2051 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2052 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2054 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2060 lt_cv_file_magic_cmd=/usr/bin/file
2061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2064 osf3* | osf4* | osf5*)
2065 # this will be overridden with pass_all, but let us keep it just in case
2066 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2067 lt_cv_file_magic_test_file=/shlib/libc.so
2068 lt_cv_deplibs_check_method=pass_all
2072 lt_cv_deplibs_check_method=pass_all
2076 lt_cv_deplibs_check_method=pass_all
2077 lt_cv_file_magic_test_file=/lib/libc.so
2080 sysv5uw[78]* | sysv4*uw2*)
2081 lt_cv_deplibs_check_method=pass_all
2084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2085 case $host_vendor in
2087 lt_cv_deplibs_check_method=pass_all
2090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2099 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2100 file_magic_cmd=$lt_cv_file_magic_cmd
2101 deplibs_check_method=$lt_cv_deplibs_check_method
2103 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2104 echo "configure
:2105: checking
for object suffix
" >&5
2105 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2106 echo $ac_n "(cached
) $ac_c" 1>&6
2109 echo 'int i = 1;' > conftest.$ac_ext
2110 if { (eval echo configure:2111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2111 for ac_file in conftest.*; do
2114 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2118 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2123 echo "$ac_t""$ac_cv_objext" 1>&6
2124 OBJEXT=$ac_cv_objext
2125 ac_objext=$ac_cv_objext
2127 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2129 # Only perform the check for file, if the check method requires it
2130 case $deplibs_check_method in
2132 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2133 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2134 echo "configure
:2135: checking
for ${ac_tool_prefix}file" >&5
2135 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2136 echo $ac_n "(cached
) $ac_c" 1>&6
2140 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2146 ac_save_MAGIC_CMD="$MAGIC_CMD"
2147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2148 ac_dummy="/usr
/bin
:$PATH"
2149 for ac_dir in $ac_dummy; do
2150 test -z "$ac_dir" && ac_dir=.
2151 if test -f $ac_dir/${ac_tool_prefix}file; then
2152 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2153 if test -n "$file_magic_test_file"; then
2154 case $deplibs_check_method in
2156 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2158 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2159 egrep "$file_magic_regex" > /dev/null; then
2164 *** Warning: the command libtool uses to detect shared libraries,
2165 *** $file_magic_cmd, produces output that libtool cannot recognize.
2166 *** The result is that libtool may fail to recognize shared libraries
2167 *** as such. This will affect the creation of libtool libraries that
2168 *** depend on shared libraries, but programs linked with such libtool
2169 *** libraries will work regardless of this problem. Nevertheless, you
2170 *** may want to report the problem to your system manager and/or to
2171 *** bug-libtool@gnu.org
2181 MAGIC_CMD="$ac_save_MAGIC_CMD"
2186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2187 if test -n "$MAGIC_CMD"; then
2188 echo "$ac_t""$MAGIC_CMD" 1>&6
2190 echo "$ac_t""no
" 1>&6
2193 if test -z "$lt_cv_path_MAGIC_CMD"; then
2194 if test -n "$ac_tool_prefix"; then
2195 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2196 echo "configure
:2197: checking
for file" >&5
2197 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2198 echo $ac_n "(cached
) $ac_c" 1>&6
2202 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2208 ac_save_MAGIC_CMD="$MAGIC_CMD"
2209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2210 ac_dummy="/usr
/bin
:$PATH"
2211 for ac_dir in $ac_dummy; do
2212 test -z "$ac_dir" && ac_dir=.
2213 if test -f $ac_dir/file; then
2214 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2215 if test -n "$file_magic_test_file"; then
2216 case $deplibs_check_method in
2218 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2220 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2221 egrep "$file_magic_regex" > /dev/null; then
2226 *** Warning: the command libtool uses to detect shared libraries,
2227 *** $file_magic_cmd, produces output that libtool cannot recognize.
2228 *** The result is that libtool may fail to recognize shared libraries
2229 *** as such. This will affect the creation of libtool libraries that
2230 *** depend on shared libraries, but programs linked with such libtool
2231 *** libraries will work regardless of this problem. Nevertheless, you
2232 *** may want to report the problem to your system manager and/or to
2233 *** bug-libtool@gnu.org
2243 MAGIC_CMD="$ac_save_MAGIC_CMD"
2248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2249 if test -n "$MAGIC_CMD"; then
2250 echo "$ac_t""$MAGIC_CMD" 1>&6
2252 echo "$ac_t""no
" 1>&6
2264 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2266 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2267 echo "configure
:2268: checking
for $ac_word" >&5
2268 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2269 echo $ac_n "(cached
) $ac_c" 1>&6
2271 if test -n "$RANLIB"; then
2272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2276 for ac_dir in $ac_dummy; do
2277 test -z "$ac_dir" && ac_dir=.
2278 if test -f $ac_dir/$ac_word; then
2279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2286 RANLIB="$ac_cv_prog_RANLIB"
2287 if test -n "$RANLIB"; then
2288 echo "$ac_t""$RANLIB" 1>&6
2290 echo "$ac_t""no
" 1>&6
2294 if test -z "$ac_cv_prog_RANLIB"; then
2295 if test -n "$ac_tool_prefix"; then
2296 # Extract the first word of "ranlib
", so it can be a program name with args.
2297 set dummy ranlib; ac_word=$2
2298 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2299 echo "configure
:2300: checking
for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2301 echo $ac_n "(cached
) $ac_c" 1>&6
2303 if test -n "$RANLIB"; then
2304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2308 for ac_dir in $ac_dummy; do
2309 test -z "$ac_dir" && ac_dir=.
2310 if test -f $ac_dir/$ac_word; then
2311 ac_cv_prog_RANLIB="ranlib
"
2316 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2319 RANLIB="$ac_cv_prog_RANLIB"
2320 if test -n "$RANLIB"; then
2321 echo "$ac_t""$RANLIB" 1>&6
2323 echo "$ac_t""no
" 1>&6
2331 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2332 set dummy ${ac_tool_prefix}strip; ac_word=$2
2333 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2334 echo "configure
:2335: checking
for $ac_word" >&5
2335 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2336 echo $ac_n "(cached
) $ac_c" 1>&6
2338 if test -n "$STRIP"; then
2339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2343 for ac_dir in $ac_dummy; do
2344 test -z "$ac_dir" && ac_dir=.
2345 if test -f $ac_dir/$ac_word; then
2346 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2353 STRIP="$ac_cv_prog_STRIP"
2354 if test -n "$STRIP"; then
2355 echo "$ac_t""$STRIP" 1>&6
2357 echo "$ac_t""no
" 1>&6
2361 if test -z "$ac_cv_prog_STRIP"; then
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "strip
", so it can be a program name with args.
2364 set dummy strip; ac_word=$2
2365 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2366 echo "configure
:2367: checking
for $ac_word" >&5
2367 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2368 echo $ac_n "(cached
) $ac_c" 1>&6
2370 if test -n "$STRIP"; then
2371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2375 for ac_dir in $ac_dummy; do
2376 test -z "$ac_dir" && ac_dir=.
2377 if test -f $ac_dir/$ac_word; then
2378 ac_cv_prog_STRIP="strip
"
2383 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2386 STRIP="$ac_cv_prog_STRIP"
2387 if test -n "$STRIP"; then
2388 echo "$ac_t""$STRIP" 1>&6
2390 echo "$ac_t""no
" 1>&6
2399 # Check for any special flags to pass to ltconfig.
2400 libtool_flags="--cache-file=$cache_file"
2401 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2402 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2403 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2404 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2405 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2406 libtool_flags="$libtool_flags --enable-dlopen"
2408 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2409 if test "${enable_libtool_lock+set}" = set; then
2410 enableval="$enable_libtool_lock"
2414 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2415 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2417 # Check whether --with-pic or --without-pic was given.
2418 if test "${with_pic+set}" = set; then
2425 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2426 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2428 # Some flags need to be propagated to the compiler or linker for good
2432 # Find out which ABI we are using.
2433 echo '#line 2434 "configure
"' > conftest.$ac_ext
2434 if { (eval echo configure:2435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2435 case `/usr/bin/file conftest.$ac_objext` in
2451 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2452 SAVE_CFLAGS="$CFLAGS"
2453 CFLAGS="$CFLAGS -belf"
2454 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2455 echo "configure
:2456: checking whether the C compiler needs
-belf" >&5
2456 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2457 echo $ac_n "(cached
) $ac_c" 1>&6
2461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2464 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2465 cross_compiling=$ac_cv_prog_cc_cross
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure
"
2469 #include "confdefs.h
"
2475 if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2477 lt_cv_cc_needs_belf=yes
2479 echo "configure
: failed program was
:" >&5
2480 cat conftest.$ac_ext >&5
2482 lt_cv_cc_needs_belf=no
2486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2487 ac_cpp='$CPP $CPPFLAGS'
2488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2490 cross_compiling=$ac_cv_prog_cc_cross
2494 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2495 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2496 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2497 CFLAGS="$SAVE_CFLAGS"
2504 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2505 echo "configure
:2506: checking how to run the C
++ preprocessor
" >&5
2506 if test -z "$CXXCPP"; then
2507 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2508 echo $ac_n "(cached
) $ac_c" 1>&6
2511 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2512 ac_cpp='$CXXCPP $CPPFLAGS'
2513 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2514 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2515 cross_compiling=$ac_cv_prog_cxx_cross
2516 CXXCPP="${CXX-g++} -E"
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure
"
2519 #include "confdefs.h
"
2522 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2523 { (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2525 if test -z "$ac_err"; then
2529 echo "configure
: failed program was
:" >&5
2530 cat conftest.$ac_ext >&5
2535 ac_cv_prog_CXXCPP="$CXXCPP"
2537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2541 cross_compiling=$ac_cv_prog_cc_cross
2544 CXXCPP="$ac_cv_prog_CXXCPP"
2545 echo "$ac_t""$CXXCPP" 1>&6
2548 # Save cache, so that ltconfig can load it
2549 cat > confcache <<\EOF
2550 # This file is a shell script that caches the results of configure
2551 # tests run on this system so they can be shared between configure
2552 # scripts and configure runs. It is not useful on other systems.
2553 # If it contains results you don't want to keep, you may remove or edit it.
2555 # By default, configure uses ./config.cache as the cache file,
2556 # creating it if it does not exist already. You can give configure
2557 # the --cache-file=FILE option to use a different cache file; that is
2558 # what configure does when it calls configure scripts in
2559 # subdirectories, so they share the cache.
2560 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2561 # config.status only pays attention to the cache file if you give it the
2562 # --recheck option to rerun configure.
2565 # The following way of writing the cache mishandles newlines in values,
2566 # but we know of no workaround that is simple, portable, and efficient.
2567 # So, don't put newlines in cache variables' values.
2568 # Ultrix sh set writes to stderr and can't be redirected directly,
2569 # and sets the high bit in the cache file unless we assign to the vars.
2571 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2573 # `set' does not quote correctly, so add quotes (double-quote substitution
2574 # turns \\\\ into \\, and sed turns \\ into \).
2576 -e "s
/'/'\\\\''/g
" \
2577 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2580 # `set' quotes correctly as required by POSIX, so do not add quotes.
2581 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2584 if cmp -s $cache_file confcache; then
2587 if test -w $cache_file; then
2588 echo "updating cache
$cache_file"
2589 cat confcache > $cache_file
2591 echo "not updating unwritable cache
$cache_file"
2597 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2598 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2599 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2600 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2601 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2602 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2603 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2604 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2605 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2606 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2608 # Reload cache, that may have been modified by ltconfig
2609 if test -r "$cache_file"; then
2610 echo "loading cache
$cache_file"
2613 echo "creating cache
$cache_file"
2618 # This can be used to rebuild libtool when needed
2619 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2621 # Always use our own libtool.
2622 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2624 # Redirect the config.log output again, so that the ltconfig log is not
2625 # clobbered by the next message.
2626 exec 5>>./config.log
2630 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2632 lt_save_CFLAGS="$CFLAGS"
2633 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2634 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2635 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2636 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2637 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2638 deplibs_check_method="$deplibs_check_method" \
2639 file_magic_cmd="$file_magic_cmd" \
2640 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2641 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2642 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2644 CFLAGS="$lt_save_CFLAGS"
2646 # Redirect the config.log output again, so that the ltconfig log is not
2647 # clobbered by the next message.
2648 exec 5>>./config.log
2658 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2667 if test -d $srcdir/testsuite; then
2669 TESTSUBDIR_FALSE='#'
2675 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2676 if test "${enable_getenv_properties+set}" = set; then
2677 enableval="$enable_getenv_properties"
2682 if test -z "$enable_getenv_properties"; then
2683 enable_getenv_properties=${enable_getenv_properties_default-yes}
2685 if test "$enable_getenv_properties" = no; then
2686 cat >> confdefs.h <<\EOF
2687 #define DISABLE_GETENV_PROPERTIES 1
2692 if test -z "$enable_main_args"; then
2693 enable_main_args=${enable_main_args_default-yes}
2695 if test "$enable_main_args" = no; then
2696 cat >> confdefs.h <<\EOF
2697 #define DISABLE_MAIN_ARGS 1
2703 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2704 if test "${enable_hash_synchronization+set}" = set; then
2705 enableval="$enable_hash_synchronization"
2710 if test -z "$enable_hash_synchronization"; then
2711 enable_hash_synchronization=$enable_hash_synchronization_default
2714 if test "${slow_pthread_self}" = "yes"; then
2715 cat >> confdefs.h <<\EOF
2716 #define SLOW_PTHREAD_SELF 1
2724 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2725 if test "${enable_libgcj_debug+set}" = set; then
2726 enableval="$enable_libgcj_debug"
2727 if test "$enable_libgcj_debug" = yes; then
2728 cat >> confdefs.h <<\EOF
2737 # Check whether --enable-interpreter or --disable-interpreter was given.
2738 if test "${enable_interpreter+set}" = set; then
2739 enableval="$enable_interpreter"
2740 if test "$enable_interpreter" = yes; then
2741 # This can also be set in configure.host.
2742 libgcj_interpreter=yes
2743 elif test "$enable_interpreter" = no; then
2744 libgcj_interpreter=no
2749 if test "$libgcj_interpreter" = yes; then
2750 cat >> confdefs.h <<\EOF
2751 #define INTERPRETER 1
2755 INTERPRETER="$libgcj_interpreter"
2758 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2759 echo "configure
:2760: checking
for exception model to use
" >&5
2762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2763 ac_cpp='$CXXCPP $CPPFLAGS'
2764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2766 cross_compiling=$ac_cv_prog_cxx_cross
2768 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2769 if test "${enable_sjlj_exceptions+set}" = set; then
2770 enableval="$enable_sjlj_exceptions"
2773 cat > conftest.$ac_ext << EOF
2774 #line 2775 "configure
"
2783 old_CXXFLAGS="$CXXFLAGS"
2785 if { (eval echo configure:2786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2786 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2787 enable_sjlj_exceptions=yes
2788 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2789 enable_sjlj_exceptions=no
2792 CXXFLAGS="$old_CXXFLAGS"
2796 if test x$enable_sjlj_exceptions = xyes; then
2797 cat >> confdefs.h <<\EOF
2798 #define SJLJ_EXCEPTIONS 1
2801 ac_exception_model_name=sjlj
2802 elif test x$enable_sjlj_exceptions = xno; then
2803 ac_exception_model_name="call frame
"
2805 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2809 ac_cpp='$CPP $CPPFLAGS'
2810 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2811 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2812 cross_compiling=$ac_cv_prog_cc_cross
2814 echo "$ac_t""$ac_exception_model_name" 1>&6
2816 # If we are non using SJLJ exceptions, and this host does not have support
2817 # for unwinding from a signal handler, enable checked dereferences and divides.
2818 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2819 CHECKREFSPEC=-fcheck-references
2820 DIVIDESPEC=-fuse-divide-subroutine
2824 # Check whether --enable-java-net or --disable-java-net was given.
2825 if test "${enable_java_net+set}" = set; then
2826 enableval="$enable_java_net"
2831 if test -z "$enable_java_net"; then
2832 enable_java_net=${enable_java_net_default-yes}
2834 if test "$enable_java_net" = no; then
2835 cat >> confdefs.h <<\EOF
2836 #define DISABLE_JAVA_NET 1
2841 # Check whether --with-libffi or --without-libffi was given.
2842 if test "${with_libffi+set}" = set; then
2843 withval="$with_libffi"
2846 with_libffi=${with_libffi_default-yes}
2852 if test "$with_libffi" != no; then
2853 cat >> confdefs.h <<\EOF
2854 #define USE_LIBFFI 1
2857 LIBFFI=../libffi/libffi_convenience.la
2858 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2863 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2864 if test "${enable_jvmpi+set}" = set; then
2865 enableval="$enable_jvmpi"
2870 if test "$enable_jvmpi" != no; then
2871 cat >> confdefs.h <<\EOF
2872 #define ENABLE_JVMPI 1
2877 TARGET_ECOS=${PROCESS-"no"}
2878 # Check whether --with-ecos or --without-ecos was given.
2879 if test "${with_ecos+set}" = set; then
2880 withval="$with_ecos"
2881 TARGET_ECOS="$with_ecos"
2887 case "$TARGET_ECOS" in
2891 PLATFORMOBJS=win32.lo
2896 PLATFORMOBJS=posix.lo
2903 cat >> confdefs.h <<\EOF
2907 PLATFORMOBJS=posix.lo
2914 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
2915 echo "configure
:2916: checking how to run the C preprocessor
" >&5
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2920 if test -z "$CPP"; then
2921 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2922 echo $ac_n "(cached
) $ac_c" 1>&6
2924 # This must be in double quotes, not single quotes, because CPP may get
2925 # substituted into the Makefile and "${CC-cc}" will confuse make.
2927 # On the NeXT, cc -E runs the code through the compiler's parser,
2928 # not just through cpp.
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure
"
2931 #include "confdefs.h
"
2935 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2936 { (eval echo configure:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2938 if test -z "$ac_err"; then
2942 echo "configure
: failed program was
:" >&5
2943 cat conftest.$ac_ext >&5
2945 CPP="${CC-cc} -E -traditional-cpp"
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure
"
2948 #include "confdefs.h
"
2952 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2953 { (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2955 if test -z "$ac_err"; then
2959 echo "configure
: failed program was
:" >&5
2960 cat conftest.$ac_ext >&5
2962 CPP="${CC-cc} -nologo -E"
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure
"
2965 #include "confdefs.h
"
2969 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2970 { (eval echo configure:2971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2972 if test -z "$ac_err"; then
2976 echo "configure
: failed program was
:" >&5
2977 cat conftest.$ac_ext >&5
2986 ac_cv_prog_CPP="$CPP"
2988 CPP="$ac_cv_prog_CPP"
2990 ac_cv_prog_CPP="$CPP"
2992 echo "$ac_t""$CPP" 1>&6
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure
"
2996 #include "confdefs.h
"
2999 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3000 egrep "uint32_t
" >/dev/null 2>&1; then
3002 cat >> confdefs.h <<\EOF
3003 #define HAVE_INT32_DEFINED 1
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure
"
3011 #include "confdefs.h
"
3012 #include <inttypes.h>
3014 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3015 egrep "uint32_t
" >/dev/null 2>&1; then
3017 cat >> confdefs.h <<\EOF
3018 #define HAVE_INT32_DEFINED 1
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure
"
3026 #include "confdefs.h
"
3027 #include <sys/types.h>
3029 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3030 egrep "u_int32_t
" >/dev/null 2>&1; then
3032 cat >> confdefs.h <<\EOF
3033 #define HAVE_BSD_INT32_DEFINED 1
3039 cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure
"
3041 #include "confdefs.h
"
3042 #include <sys/config.h>
3044 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3045 egrep "u_int32_t
" >/dev/null 2>&1; then
3047 cat >> confdefs.h <<\EOF
3048 #define HAVE_BSD_INT32_DEFINED 1
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure
"
3058 #include "confdefs.h
"
3061 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3062 egrep "mktime
" >/dev/null 2>&1; then
3064 cat >> confdefs.h <<\EOF
3065 #define HAVE_MKTIME 1
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure
"
3073 #include "confdefs.h
"
3076 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3077 egrep "localtime
" >/dev/null 2>&1; then
3079 cat >> confdefs.h <<\EOF
3080 #define HAVE_LOCALTIME 1
3087 test -d java || mkdir java
3088 test -d java/io || mkdir java/io
3089 test -d gnu || mkdir gnu
3093 test -d java/lang || mkdir java/lang
3099 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3107 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs
-rpath `${PWDCMD-pwd}`/.libs
"
3110 # Check whether --with-system-zlib or --without-system-zlib was given.
3111 if test "${with_system_zlib+set}" = set; then
3112 withval="$with_system_zlib"
3123 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
3124 echo "configure
:3125: checking
for garbage collector to use
" >&5
3125 # Check whether --enable-java-gc or --disable-java-gc was given.
3126 if test "${enable_java_gc+set}" = set; then
3127 enableval="$enable_java_gc"
3143 echo "$ac_t""boehm
" 1>&6
3144 GCLIBS=../boehm-gc/libgcjgc_convenience.la
3145 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3146 JC1GCSPEC='-fuse-boehm-gc'
3147 GCTESTSPEC="-L`${PWDCMD-pwd}`/..
/boehm-gc
/.libs
-rpath `${PWDCMD-pwd}`/..
/boehm-gc
/.libs
"
3149 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3152 cat >> confdefs.h <<\EOF
3153 #define HAVE_BOEHM_GC 1
3158 echo "$ac_t""none
" 1>&6
3163 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
3176 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
3177 echo "configure
:3178: checking
for thread model used by GCC
" >&5
3178 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3179 echo "$ac_t""$THREADS" 1>&6
3189 cat >> confdefs.h <<\EOF
3190 #define LINUX_THREADS 1
3198 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3199 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
3202 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
3217 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3222 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3223 # merely adds pthread_* functions) but it does have a -pthread switch
3224 # which is required at link-time to select -lc_r *instead* of -lc.
3225 THREADLDFLAGS=-pthread
3226 # Don't set THREADSPEC here as might be expected since -pthread is
3227 # not processed when found within a spec file, it must come from
3228 # the command line. For now, the user must provide the -pthread
3229 # switch to link code compiled with gcj. In future, consider adding
3230 # support for weak references to pthread_* functions ala gthr.h API.
3231 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3234 # FreeBSD 5 implements a model much closer to other modern UNIX
3235 # which support threads. However, it still does not support
3237 THREADLDFLAGS=-pthread
3241 THREADLIBS=-lpthread
3242 THREADSPEC=-lpthread
3245 THREADOBJS=posix-threads.lo
3246 THREADH=posix-threads.h
3247 # MIT pthreads doesn't seem to have the mutexattr functions.
3248 # But for now we don't check for it. We just assume you aren't
3249 # using MIT pthreads.
3250 cat >> confdefs.h <<\EOF
3251 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3255 # If we're using the Boehm GC, then we happen to know that it
3256 # defines _REENTRANT, so we don't bother. Eww.
3257 if test "$GC" != boehm; then
3258 cat >> confdefs.h <<\EOF
3259 #define _REENTRANT 1
3263 cat >> confdefs.h <<\EOF
3264 #define _POSIX_PTHREAD_SEMANTICS 1
3270 THREADOBJS=win32-threads.lo
3271 THREADH=win32-threads.h
3275 THREADOBJS=no-threads.lo
3276 THREADH=no-threads.h
3287 if test -d sysdep; then true; else mkdir sysdep; fi
3291 # Hash synchronization is only useful with posix threads right now.
3292 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix
"; then
3293 HASH_SYNC_SPEC=-fhash-synchronization
3294 cat >> confdefs.h <<\EOF
3295 #define JV_HASH_SYNCHRONIZATION 1
3304 if test "$GCC" = yes; then
3316 # We're in the tree with gcc, and need to include some of its headers.
3317 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3319 # Figure out where generated headers like libgcj-config.h get installed.
3320 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
3321 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3322 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3323 tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
3327 if test "x
${with_newlib}" = "xyes
"; then
3328 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3329 # may not work correctly, because the compiler may not be able to
3332 # We assume newlib. This lets us hard-code the functions we know
3334 cat >> confdefs.h <<\EOF
3335 #define HAVE_MEMMOVE 1
3338 cat >> confdefs.h <<\EOF
3339 #define HAVE_MEMCPY 1
3342 cat >> confdefs.h <<\EOF
3343 #define HAVE_STRERROR 1
3346 cat >> confdefs.h <<\EOF
3350 cat >> confdefs.h <<\EOF
3351 #define HAVE_GMTIME_R 1
3354 cat >> confdefs.h <<\EOF
3355 #define HAVE_LOCALTIME_R 1
3358 cat >> confdefs.h <<\EOF
3359 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3362 cat >> confdefs.h <<\EOF
3363 #define HAVE_ALLOCA 1
3367 cat >> confdefs.h <<\EOF
3372 # If Canadian cross, then don't pick up tools from the build
3374 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3377 GCJ="${target_alias}-gcj"
3381 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3383 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3384 echo "configure
:3385: checking
for $ac_func" >&5
3385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3386 echo $ac_n "(cached
) $ac_c" 1>&6
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure
"
3390 #include "confdefs.h
"
3391 /* System header to define __stub macros and hopefully few prototypes,
3392 which can conflict with char $ac_func(); below. */
3394 /* Override any gcc2 internal prototype to avoid an error. */
3395 /* We use char because int might match the return type of a gcc2
3396 builtin and then its argument prototype would still apply. */
3401 /* The GNU C library defines this for functions which it implements
3402 to always fail with ENOSYS. Some functions are actually named
3403 something starting with __ and the normal name is an alias. */
3404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3414 eval "ac_cv_func_
$ac_func=yes"
3416 echo "configure
: failed program was
:" >&5
3417 cat conftest.$ac_ext >&5
3419 eval "ac_cv_func_
$ac_func=no
"
3424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3425 echo "$ac_t""yes" 1>&6
3426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3427 cat >> confdefs.h <<EOF
3428 #define $ac_tr_func 1
3432 echo "$ac_t""no
" 1>&6
3436 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3438 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3439 echo "configure
:3440: checking
for $ac_func" >&5
3440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3441 echo $ac_n "(cached
) $ac_c" 1>&6
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure
"
3445 #include "confdefs.h
"
3446 /* System header to define __stub macros and hopefully few prototypes,
3447 which can conflict with char $ac_func(); below. */
3449 /* Override any gcc2 internal prototype to avoid an error. */
3450 /* We use char because int might match the return type of a gcc2
3451 builtin and then its argument prototype would still apply. */
3456 /* The GNU C library defines this for functions which it implements
3457 to always fail with ENOSYS. Some functions are actually named
3458 something starting with __ and the normal name is an alias. */
3459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3467 if { (eval echo configure:3468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3469 eval "ac_cv_func_
$ac_func=yes"
3471 echo "configure
: failed program was
:" >&5
3472 cat conftest.$ac_ext >&5
3474 eval "ac_cv_func_
$ac_func=no
"
3479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3480 echo "$ac_t""yes" 1>&6
3481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3482 cat >> confdefs.h <<EOF
3483 #define $ac_tr_func 1
3487 echo "$ac_t""no
" 1>&6
3491 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3493 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3494 echo "configure
:3495: checking
for $ac_func" >&5
3495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3496 echo $ac_n "(cached
) $ac_c" 1>&6
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure
"
3500 #include "confdefs.h
"
3501 /* System header to define __stub macros and hopefully few prototypes,
3502 which can conflict with char $ac_func(); below. */
3504 /* Override any gcc2 internal prototype to avoid an error. */
3505 /* We use char because int might match the return type of a gcc2
3506 builtin and then its argument prototype would still apply. */
3511 /* The GNU C library defines this for functions which it implements
3512 to always fail with ENOSYS. Some functions are actually named
3513 something starting with __ and the normal name is an alias. */
3514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3522 if { (eval echo configure:3523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3524 eval "ac_cv_func_
$ac_func=yes"
3526 echo "configure
: failed program was
:" >&5
3527 cat conftest.$ac_ext >&5
3529 eval "ac_cv_func_
$ac_func=no
"
3534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3535 echo "$ac_t""yes" 1>&6
3536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3537 cat >> confdefs.h <<EOF
3538 #define $ac_tr_func 1
3542 echo "$ac_t""no
" 1>&6
3546 for ac_func in nl_langinfo setlocale
3548 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3549 echo "configure
:3550: checking
for $ac_func" >&5
3550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3551 echo $ac_n "(cached
) $ac_c" 1>&6
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure
"
3555 #include "confdefs.h
"
3556 /* System header to define __stub macros and hopefully few prototypes,
3557 which can conflict with char $ac_func(); below. */
3559 /* Override any gcc2 internal prototype to avoid an error. */
3560 /* We use char because int might match the return type of a gcc2
3561 builtin and then its argument prototype would still apply. */
3566 /* The GNU C library defines this for functions which it implements
3567 to always fail with ENOSYS. Some functions are actually named
3568 something starting with __ and the normal name is an alias. */
3569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3577 if { (eval echo configure:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3579 eval "ac_cv_func_
$ac_func=yes"
3581 echo "configure
: failed program was
:" >&5
3582 cat conftest.$ac_ext >&5
3584 eval "ac_cv_func_
$ac_func=no
"
3589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3590 echo "$ac_t""yes" 1>&6
3591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3592 cat >> confdefs.h <<EOF
3593 #define $ac_tr_func 1
3597 echo "$ac_t""no
" 1>&6
3601 for ac_func in inet_aton inet_addr
3603 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3604 echo "configure
:3605: checking
for $ac_func" >&5
3605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3606 echo $ac_n "(cached
) $ac_c" 1>&6
3608 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure
"
3610 #include "confdefs.h
"
3611 /* System header to define __stub macros and hopefully few prototypes,
3612 which can conflict with char $ac_func(); below. */
3614 /* Override any gcc2 internal prototype to avoid an error. */
3615 /* We use char because int might match the return type of a gcc2
3616 builtin and then its argument prototype would still apply. */
3621 /* The GNU C library defines this for functions which it implements
3622 to always fail with ENOSYS. Some functions are actually named
3623 something starting with __ and the normal name is an alias. */
3624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3632 if { (eval echo configure:3633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3634 eval "ac_cv_func_
$ac_func=yes"
3636 echo "configure
: failed program was
:" >&5
3637 cat conftest.$ac_ext >&5
3639 eval "ac_cv_func_
$ac_func=no
"
3644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3645 echo "$ac_t""yes" 1>&6
3646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3647 cat >> confdefs.h <<EOF
3648 #define $ac_tr_func 1
3652 echo "$ac_t""no
" 1>&6
3656 for ac_func in inet_pton uname inet_ntoa
3658 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3659 echo "configure
:3660: checking
for $ac_func" >&5
3660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3661 echo $ac_n "(cached
) $ac_c" 1>&6
3663 cat > conftest.$ac_ext <<EOF
3664 #line 3665 "configure
"
3665 #include "confdefs.h
"
3666 /* System header to define __stub macros and hopefully few prototypes,
3667 which can conflict with char $ac_func(); below. */
3669 /* Override any gcc2 internal prototype to avoid an error. */
3670 /* We use char because int might match the return type of a gcc2
3671 builtin and then its argument prototype would still apply. */
3676 /* The GNU C library defines this for functions which it implements
3677 to always fail with ENOSYS. Some functions are actually named
3678 something starting with __ and the normal name is an alias. */
3679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3687 if { (eval echo configure:3688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689 eval "ac_cv_func_
$ac_func=yes"
3691 echo "configure
: failed program was
:" >&5
3692 cat conftest.$ac_ext >&5
3694 eval "ac_cv_func_
$ac_func=no
"
3699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3700 echo "$ac_t""yes" 1>&6
3701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3702 cat >> confdefs.h <<EOF
3703 #define $ac_tr_func 1
3707 echo "$ac_t""no
" 1>&6
3711 for ac_func in fork execvp pipe sigaction
3713 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3714 echo "configure
:3715: checking
for $ac_func" >&5
3715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3716 echo $ac_n "(cached
) $ac_c" 1>&6
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure
"
3720 #include "confdefs.h
"
3721 /* System header to define __stub macros and hopefully few prototypes,
3722 which can conflict with char $ac_func(); below. */
3724 /* Override any gcc2 internal prototype to avoid an error. */
3725 /* We use char because int might match the return type of a gcc2
3726 builtin and then its argument prototype would still apply. */
3731 /* The GNU C library defines this for functions which it implements
3732 to always fail with ENOSYS. Some functions are actually named
3733 something starting with __ and the normal name is an alias. */
3734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3742 if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3744 eval "ac_cv_func_
$ac_func=yes"
3746 echo "configure
: failed program was
:" >&5
3747 cat conftest.$ac_ext >&5
3749 eval "ac_cv_func_
$ac_func=no
"
3754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3755 echo "$ac_t""yes" 1>&6
3756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3757 cat >> confdefs.h <<EOF
3758 #define $ac_tr_func 1
3762 echo "$ac_t""no
" 1>&6
3766 for ac_hdr in execinfo.h unistd.h dlfcn.h
3768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3769 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3770 echo "configure
:3771: checking
for $ac_hdr" >&5
3771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3772 echo $ac_n "(cached
) $ac_c" 1>&6
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure
"
3776 #include "confdefs.h
"
3779 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3780 { (eval echo configure:3781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3782 if test -z "$ac_err"; then
3784 eval "ac_cv_header_
$ac_safe=yes"
3787 echo "configure
: failed program was
:" >&5
3788 cat conftest.$ac_ext >&5
3790 eval "ac_cv_header_
$ac_safe=no
"
3794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3797 cat >> confdefs.h <<EOF
3798 #define $ac_tr_hdr 1
3802 echo "$ac_t""no
" 1>&6
3806 echo $ac_n "checking
for backtrace
""...
$ac_c" 1>&6
3807 echo "configure
:3808: checking
for backtrace
" >&5
3808 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
3809 echo $ac_n "(cached
) $ac_c" 1>&6
3811 cat > conftest.$ac_ext <<EOF
3812 #line 3813 "configure
"
3813 #include "confdefs.h
"
3814 /* System header to define __stub macros and hopefully few prototypes,
3815 which can conflict with char backtrace(); below. */
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 /* We use char because int might match the return type of a gcc2
3819 builtin and then its argument prototype would still apply. */
3824 /* The GNU C library defines this for functions which it implements
3825 to always fail with ENOSYS. Some functions are actually named
3826 something starting with __ and the normal name is an alias. */
3827 #if defined (__stub_backtrace) || defined (__stub___backtrace)
3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3837 eval "ac_cv_func_backtrace
=yes"
3839 echo "configure
: failed program was
:" >&5
3840 cat conftest.$ac_ext >&5
3842 eval "ac_cv_func_backtrace
=no
"
3847 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
3848 echo "$ac_t""yes" 1>&6
3852 # Has broken backtrace()
3855 # Has broken backtrace()
3858 cat >> confdefs.h <<\EOF
3859 #define HAVE_BACKTRACE 1
3866 echo "$ac_t""no
" 1>&6
3870 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
3871 echo "configure
:3872: checking
for dladdr
in -ldl" >&5
3872 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3874 echo $ac_n "(cached
) $ac_c" 1>&6
3876 ac_save_LIBS="$LIBS"
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure
"
3880 #include "confdefs.h
"
3881 /* Override any gcc2 internal prototype to avoid an error. */
3882 /* We use char because int might match the return type of a gcc2
3883 builtin and then its argument prototype would still apply. */
3890 if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3892 eval "ac_cv_lib_
$ac_lib_var=yes"
3894 echo "configure
: failed program was
:" >&5
3895 cat conftest.$ac_ext >&5
3897 eval "ac_cv_lib_
$ac_lib_var=no
"
3900 LIBS="$ac_save_LIBS"
3903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3904 echo "$ac_t""yes" 1>&6
3906 cat >> confdefs.h <<\EOF
3907 #define HAVE_DLADDR 1
3911 echo "$ac_t""no
" 1>&6
3914 if test x"$build" = x"$host"; then
3915 for ac_file in /proc/self/exe
3918 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3919 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
3920 echo "configure
:3921: checking
for $ac_file" >&5
3921 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3922 echo $ac_n "(cached
) $ac_c" 1>&6
3924 if test "$cross_compiling" = yes; then
3925 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
3927 if test -r $ac_file; then
3928 eval "ac_cv_file_
$ac_safe=yes"
3930 eval "ac_cv_file_
$ac_safe=no
"
3934 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3935 echo "$ac_t""yes" 1>&6
3936 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3937 cat >> confdefs.h <<EOF
3938 #define $ac_tr_file 1
3941 cat >> confdefs.h <<\EOF
3942 #define HAVE_PROC_SELF_EXE 1
3946 echo "$ac_t""no
" 1>&6
3954 cat >> confdefs.h <<\EOF
3955 #define HAVE_PROC_SELF_EXE 1
3964 am_cv_lib_iconv_ldpath=
3965 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3966 if test "${with_libiconv_prefix+set}" = set; then
3967 withval="$with_libiconv_prefix"
3969 for dir in `echo "$withval" | tr : ' '`; do
3970 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
3971 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib
"; fi
3977 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
3978 echo "configure
:3979: checking
for iconv" >&5
3979 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3980 echo $ac_n "(cached
) $ac_c" 1>&6
3983 am_cv_func_iconv="no
, consider installing GNU libiconv
"
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
3998 am_cv_func_iconv=yes
4000 echo "configure
: failed program was
:" >&5
4001 cat conftest.$ac_ext >&5
4004 if test "$am_cv_func_iconv" != yes; then
4005 am_save_LIBS="$LIBS"
4006 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure
"
4009 #include "confdefs.h
"
4013 iconv_t cd = iconv_open("","");
4014 iconv(cd,NULL,NULL,NULL,NULL);
4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4021 am_cv_func_iconv=yes
4023 echo "configure
: failed program was
:" >&5
4024 cat conftest.$ac_ext >&5
4027 LIBS="$am_save_LIBS"
4032 echo "$ac_t""$am_cv_func_iconv" 1>&6
4033 if test "$am_cv_func_iconv" = yes; then
4034 cat >> confdefs.h <<\EOF
4035 #define HAVE_ICONV 1
4038 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
4039 echo "configure
:4040: checking
for iconv declaration
" >&5
4040 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4041 echo $ac_n "(cached
) $ac_c" 1>&6
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure
"
4046 #include "confdefs.h
"
4054 #if defined(__STDC__) || defined(__cplusplus)
4055 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4064 if { (eval echo configure:4065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4066 am_cv_proto_iconv_arg1=""
4068 echo "configure
: failed program was
:" >&5
4069 cat conftest.$ac_ext >&5
4071 am_cv_proto_iconv_arg1="const
"
4074 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
);"
4077 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4078 echo "$ac_t""$
{ac_t
:-
4079 }$am_cv_proto_iconv" 1>&6
4080 cat >> confdefs.h <<EOF
4081 #define ICONV_CONST $am_cv_proto_iconv_arg1
4086 if test "$am_cv_lib_iconv" = yes; then
4087 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
4091 if test $ac_cv_header_locale_h = yes; then
4092 echo $ac_n "checking
for LC_MESSAGES
""...
$ac_c" 1>&6
4093 echo "configure
:4094: checking
for LC_MESSAGES
" >&5
4094 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4095 echo $ac_n "(cached
) $ac_c" 1>&6
4097 cat > conftest.$ac_ext <<EOF
4098 #line 4099 "configure
"
4099 #include "confdefs.h
"
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4107 am_cv_val_LC_MESSAGES=yes
4109 echo "configure
: failed program was
:" >&5
4110 cat conftest.$ac_ext >&5
4112 am_cv_val_LC_MESSAGES=no
4117 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4118 if test $am_cv_val_LC_MESSAGES = yes; then
4119 cat >> confdefs.h <<\EOF
4120 #define HAVE_LC_MESSAGES 1
4125 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
4126 echo "configure
:4127: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
4127 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4128 echo $ac_n "(cached
) $ac_c" 1>&6
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure
"
4132 #include "confdefs.h
"
4133 #include <sys/types.h>
4136 struct tm *tp; tp->tm_sec;
4139 if { (eval echo configure:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4141 ac_cv_struct_tm=time.h
4143 echo "configure
: failed program was
:" >&5
4144 cat conftest.$ac_ext >&5
4146 ac_cv_struct_tm=sys/time.h
4151 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4152 if test $ac_cv_struct_tm = sys/time.h; then
4153 cat >> confdefs.h <<\EOF
4154 #define TM_IN_SYS_TIME 1
4159 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
4160 echo "configure
:4161: checking
for tm_zone
in struct tm
" >&5
4161 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4162 echo $ac_n "(cached
) $ac_c" 1>&6
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure
"
4166 #include "confdefs.h
"
4167 #include <sys/types.h>
4168 #include <$ac_cv_struct_tm>
4170 struct tm tm; tm.tm_zone;
4173 if { (eval echo configure:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4175 ac_cv_struct_tm_zone=yes
4177 echo "configure
: failed program was
:" >&5
4178 cat conftest.$ac_ext >&5
4180 ac_cv_struct_tm_zone=no
4185 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4186 if test "$ac_cv_struct_tm_zone" = yes; then
4187 cat >> confdefs.h <<\EOF
4188 #define HAVE_TM_ZONE 1
4192 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
4193 echo "configure
:4194: checking
for tzname
" >&5
4194 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4195 echo $ac_n "(cached
) $ac_c" 1>&6
4197 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure
"
4199 #include "confdefs.h
"
4201 #ifndef tzname /* For SGI. */
4202 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4208 if { (eval echo configure:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4210 ac_cv_var_tzname=yes
4212 echo "configure
: failed program was
:" >&5
4213 cat conftest.$ac_ext >&5
4220 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4221 if test $ac_cv_var_tzname = yes; then
4222 cat >> confdefs.h <<\EOF
4223 #define HAVE_TZNAME 1
4230 for ac_func in gethostbyname_r
4232 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4233 echo "configure
:4234: checking
for $ac_func" >&5
4234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4235 echo $ac_n "(cached
) $ac_c" 1>&6
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure
"
4239 #include "confdefs.h
"
4240 /* System header to define __stub macros and hopefully few prototypes,
4241 which can conflict with char $ac_func(); below. */
4243 /* Override any gcc2 internal prototype to avoid an error. */
4244 /* We use char because int might match the return type of a gcc2
4245 builtin and then its argument prototype would still apply. */
4250 /* The GNU C library defines this for functions which it implements
4251 to always fail with ENOSYS. Some functions are actually named
4252 something starting with __ and the normal name is an alias. */
4253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4263 eval "ac_cv_func_
$ac_func=yes"
4265 echo "configure
: failed program was
:" >&5
4266 cat conftest.$ac_ext >&5
4268 eval "ac_cv_func_
$ac_func=no
"
4273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4274 echo "$ac_t""yes" 1>&6
4275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4276 cat >> confdefs.h <<EOF
4277 #define $ac_tr_func 1
4280 cat >> confdefs.h <<\EOF
4281 #define HAVE_GETHOSTBYNAME_R 1
4284 # There are two different kinds of gethostbyname_r.
4285 # We look for the one that returns `int'.
4286 # Hopefully this check is robust enough.
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure
"
4289 #include "confdefs.h
"
4292 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4293 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
4296 cat >> confdefs.h <<\EOF
4297 #define GETHOSTBYNAME_R_RETURNS_INT 1
4305 *" -D_REENTRANT "*) ;;
4307 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
4308 echo "configure
:4309: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
4309 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4310 echo $ac_n "(cached
) $ac_c" 1>&6
4314 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4315 ac_cpp='$CXXCPP $CPPFLAGS'
4316 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4317 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4318 cross_compiling=$ac_cv_prog_cxx_cross
4320 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure
"
4322 #include "confdefs.h
"
4325 gethostbyname_r("", 0, 0);
4328 if { (eval echo configure:4329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4330 libjava_cv_gethostbyname_r_needs_reentrant=no
4332 echo "configure
: failed program was
:" >&5
4333 cat conftest.$ac_ext >&5
4335 CPPFLAGS_SAVE="$CPPFLAGS"
4336 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure
"
4339 #include "confdefs.h
"
4342 gethostbyname_r("", 0, 0);
4345 if { (eval echo configure:4346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4347 libjava_cv_gethostbyname_r_needs_reentrant=yes
4349 echo "configure
: failed program was
:" >&5
4350 cat conftest.$ac_ext >&5
4352 libjava_cv_gethostbyname_r_needs_reentrant=fail
4355 CPPFLAGS="$CPPFLAGS_SAVE"
4360 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4363 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4364 cross_compiling=$ac_cv_prog_cc_cross
4369 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4370 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4371 cat >> confdefs.h <<\EOF
4372 #define _REENTRANT 1
4379 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
4380 echo "configure
:4381: checking
for struct hostent_data
" >&5
4381 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4382 echo $ac_n "(cached
) $ac_c" 1>&6
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure
"
4386 #include "confdefs.h
"
4388 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4389 # define _REENTRANT 1
4393 struct hostent_data data;
4396 if { (eval echo configure:4397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4398 libjava_cv_struct_hostent_data=yes
4400 echo "configure
: failed program was
:" >&5
4401 cat conftest.$ac_ext >&5
4403 libjava_cv_struct_hostent_data=no
4408 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4409 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
4410 cat >> confdefs.h <<\EOF
4411 #define HAVE_STRUCT_HOSTENT_DATA 1
4417 echo "$ac_t""no
" 1>&6
4422 # FIXME: libjava source code expects to find a prototype for
4423 # gethostbyaddr_r in netdb.h. The outer check ensures that
4424 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4425 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4426 # linkage check is enough, yet C++ code requires proper prototypes.)
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure
"
4429 #include "confdefs.h
"
4432 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4433 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
4436 for ac_func in gethostbyaddr_r
4438 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4439 echo "configure
:4440: checking
for $ac_func" >&5
4440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4441 echo $ac_n "(cached
) $ac_c" 1>&6
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure
"
4445 #include "confdefs.h
"
4446 /* System header to define __stub macros and hopefully few prototypes,
4447 which can conflict with char $ac_func(); below. */
4449 /* Override any gcc2 internal prototype to avoid an error. */
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4456 /* The GNU C library defines this for functions which it implements
4457 to always fail with ENOSYS. Some functions are actually named
4458 something starting with __ and the normal name is an alias. */
4459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4467 if { (eval echo configure:4468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4469 eval "ac_cv_func_
$ac_func=yes"
4471 echo "configure
: failed program was
:" >&5
4472 cat conftest.$ac_ext >&5
4474 eval "ac_cv_func_
$ac_func=no
"
4479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4482 cat >> confdefs.h <<EOF
4483 #define $ac_tr_func 1
4486 cat >> confdefs.h <<\EOF
4487 #define HAVE_GETHOSTBYADDR_R 1
4490 # There are two different kinds of gethostbyaddr_r.
4491 # We look for the one that returns `int'.
4492 # Hopefully this check is robust enough.
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure
"
4495 #include "confdefs.h
"
4498 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4499 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
4502 cat >> confdefs.h <<\EOF
4503 #define GETHOSTBYADDR_R_RETURNS_INT 1
4510 echo "$ac_t""no
" 1>&6
4518 for ac_func in gethostname
4520 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4521 echo "configure
:4522: checking
for $ac_func" >&5
4522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4523 echo $ac_n "(cached
) $ac_c" 1>&6
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure
"
4527 #include "confdefs.h
"
4528 /* System header to define __stub macros and hopefully few prototypes,
4529 which can conflict with char $ac_func(); below. */
4531 /* Override any gcc2 internal prototype to avoid an error. */
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4538 /* The GNU C library defines this for functions which it implements
4539 to always fail with ENOSYS. Some functions are actually named
4540 something starting with __ and the normal name is an alias. */
4541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 eval "ac_cv_func_
$ac_func=yes"
4553 echo "configure
: failed program was
:" >&5
4554 cat conftest.$ac_ext >&5
4556 eval "ac_cv_func_
$ac_func=no
"
4561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4564 cat >> confdefs.h <<EOF
4565 #define $ac_tr_func 1
4568 cat >> confdefs.h <<\EOF
4569 #define HAVE_GETHOSTNAME 1
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure
"
4574 #include "confdefs.h
"
4577 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4578 egrep "gethostname
" >/dev/null 2>&1; then
4581 cat >> confdefs.h <<\EOF
4582 #define HAVE_GETHOSTNAME_DECL 1
4589 echo "$ac_t""no
" 1>&6
4594 # Look for these functions in the thread library, but only bother
4595 # if using POSIX threads.
4596 if test "$THREADS" = posix; then
4598 LIBS="$LIBS $THREADLIBS"
4599 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4601 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4603 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4604 echo "configure
:4605: checking
for $ac_func" >&5
4605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4606 echo $ac_n "(cached
) $ac_c" 1>&6
4608 cat > conftest.$ac_ext <<EOF
4609 #line 4610 "configure
"
4610 #include "confdefs.h
"
4611 /* System header to define __stub macros and hopefully few prototypes,
4612 which can conflict with char $ac_func(); below. */
4614 /* Override any gcc2 internal prototype to avoid an error. */
4615 /* We use char because int might match the return type of a gcc2
4616 builtin and then its argument prototype would still apply. */
4621 /* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4634 eval "ac_cv_func_
$ac_func=yes"
4636 echo "configure
: failed program was
:" >&5
4637 cat conftest.$ac_ext >&5
4639 eval "ac_cv_func_
$ac_func=no
"
4644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4647 cat >> confdefs.h <<EOF
4648 #define $ac_tr_func 1
4652 echo "$ac_t""no
" 1>&6
4657 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4658 # Solaris 7 the name librt is preferred.
4659 for ac_func in sched_yield
4661 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4662 echo "configure
:4663: checking
for $ac_func" >&5
4663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4664 echo $ac_n "(cached
) $ac_c" 1>&6
4666 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure
"
4668 #include "confdefs.h
"
4669 /* System header to define __stub macros and hopefully few prototypes,
4670 which can conflict with char $ac_func(); below. */
4672 /* Override any gcc2 internal prototype to avoid an error. */
4673 /* We use char because int might match the return type of a gcc2
4674 builtin and then its argument prototype would still apply. */
4679 /* The GNU C library defines this for functions which it implements
4680 to always fail with ENOSYS. Some functions are actually named
4681 something starting with __ and the normal name is an alias. */
4682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4690 if { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4692 eval "ac_cv_func_
$ac_func=yes"
4694 echo "configure
: failed program was
:" >&5
4695 cat conftest.$ac_ext >&5
4697 eval "ac_cv_func_
$ac_func=no
"
4702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4703 echo "$ac_t""yes" 1>&6
4704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4705 cat >> confdefs.h <<EOF
4706 #define $ac_tr_func 1
4710 echo "$ac_t""no
" 1>&6
4711 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
4712 echo "configure
:4713: checking
for sched_yield
in -lrt" >&5
4713 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4715 echo $ac_n "(cached
) $ac_c" 1>&6
4717 ac_save_LIBS="$LIBS"
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure
"
4721 #include "confdefs.h
"
4722 /* Override any gcc2 internal prototype to avoid an error. */
4723 /* We use char because int might match the return type of a gcc2
4724 builtin and then its argument prototype would still apply. */
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733 eval "ac_cv_lib_
$ac_lib_var=yes"
4735 echo "configure
: failed program was
:" >&5
4736 cat conftest.$ac_ext >&5
4738 eval "ac_cv_lib_
$ac_lib_var=no
"
4741 LIBS="$ac_save_LIBS"
4744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4745 echo "$ac_t""yes" 1>&6
4747 cat >> confdefs.h <<\EOF
4748 #define HAVE_SCHED_YIELD 1
4751 THREADLIBS="$THREADLIBS -lrt"
4752 THREADSPEC="$THREADSPEC -lrt"
4754 echo "$ac_t""no
" 1>&6
4756 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
4757 echo "configure
:4758: checking
for sched_yield
in -lposix4" >&5
4758 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4760 echo $ac_n "(cached
) $ac_c" 1>&6
4762 ac_save_LIBS="$LIBS"
4763 LIBS="-lposix4 $LIBS"
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure
"
4766 #include "confdefs.h
"
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4778 eval "ac_cv_lib_
$ac_lib_var=yes"
4780 echo "configure
: failed program was
:" >&5
4781 cat conftest.$ac_ext >&5
4783 eval "ac_cv_lib_
$ac_lib_var=no
"
4786 LIBS="$ac_save_LIBS"
4789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4790 echo "$ac_t""yes" 1>&6
4792 cat >> confdefs.h <<\EOF
4793 #define HAVE_SCHED_YIELD 1
4796 THREADLIBS="$THREADLIBS -lposix4"
4797 THREADSPEC="$THREADSPEC -lposix4"
4799 echo "$ac_t""no
" 1>&6
4809 # We can save a little space at runtime if the mutex has m_count
4810 # or __m_count. This is a nice hack for Linux.
4811 cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure
"
4813 #include "confdefs.h
"
4814 #include <pthread.h>
4817 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4821 if { (eval echo configure:4822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4823 cat >> confdefs.h <<\EOF
4824 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4828 echo "configure
: failed program was
:" >&5
4829 cat conftest.$ac_ext >&5
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure
"
4834 #include "confdefs.h
"
4835 #include <pthread.h>
4838 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4842 if { (eval echo configure:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4844 cat >> confdefs.h <<\EOF
4845 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4849 echo "configure
: failed program was
:" >&5
4850 cat conftest.$ac_ext >&5
4857 # We require a way to get the time.
4859 for ac_func in gettimeofday time ftime
4861 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4862 echo "configure
:4863: checking
for $ac_func" >&5
4863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4864 echo $ac_n "(cached
) $ac_c" 1>&6
4866 cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure
"
4868 #include "confdefs.h
"
4869 /* System header to define __stub macros and hopefully few prototypes,
4870 which can conflict with char $ac_func(); below. */
4872 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */
4879 /* The GNU C library defines this for functions which it implements
4880 to always fail with ENOSYS. Some functions are actually named
4881 something starting with __ and the normal name is an alias. */
4882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4890 if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4892 eval "ac_cv_func_
$ac_func=yes"
4894 echo "configure
: failed program was
:" >&5
4895 cat conftest.$ac_ext >&5
4897 eval "ac_cv_func_
$ac_func=no
"
4902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4903 echo "$ac_t""yes" 1>&6
4904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4905 cat >> confdefs.h <<EOF
4906 #define $ac_tr_func 1
4910 echo "$ac_t""no
" 1>&6
4914 if test "$time_found" = no; then
4915 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
4918 for ac_func in memmove
4920 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4921 echo "configure
:4922: checking
for $ac_func" >&5
4922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4923 echo $ac_n "(cached
) $ac_c" 1>&6
4925 cat > conftest.$ac_ext <<EOF
4926 #line 4927 "configure
"
4927 #include "confdefs.h
"
4928 /* System header to define __stub macros and hopefully few prototypes,
4929 which can conflict with char $ac_func(); below. */
4931 /* Override any gcc2 internal prototype to avoid an error. */
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4938 /* The GNU C library defines this for functions which it implements
4939 to always fail with ENOSYS. Some functions are actually named
4940 something starting with __ and the normal name is an alias. */
4941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4951 eval "ac_cv_func_
$ac_func=yes"
4953 echo "configure
: failed program was
:" >&5
4954 cat conftest.$ac_ext >&5
4956 eval "ac_cv_func_
$ac_func=no
"
4961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4964 cat >> confdefs.h <<EOF
4965 #define $ac_tr_func 1
4969 echo "$ac_t""no
" 1>&6
4974 # We require memcpy.
4976 for ac_func in memcpy
4978 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4979 echo "configure
:4980: checking
for $ac_func" >&5
4980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4981 echo $ac_n "(cached
) $ac_c" 1>&6
4983 cat > conftest.$ac_ext <<EOF
4984 #line 4985 "configure
"
4985 #include "confdefs.h
"
4986 /* System header to define __stub macros and hopefully few prototypes,
4987 which can conflict with char $ac_func(); below. */
4989 /* Override any gcc2 internal prototype to avoid an error. */
4990 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */
4996 /* The GNU C library defines this for functions which it implements
4997 to always fail with ENOSYS. Some functions are actually named
4998 something starting with __ and the normal name is an alias. */
4999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5009 eval "ac_cv_func_
$ac_func=yes"
5011 echo "configure
: failed program was
:" >&5
5012 cat conftest.$ac_ext >&5
5014 eval "ac_cv_func_
$ac_func=no
"
5019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5020 echo "$ac_t""yes" 1>&6
5021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5022 cat >> confdefs.h <<EOF
5023 #define $ac_tr_func 1
5027 echo "$ac_t""no
" 1>&6
5031 if test "$memcpy_found" = no; then
5032 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
5035 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
5036 echo "configure
:5037: checking
for dlopen
in -ldl" >&5
5037 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5039 echo $ac_n "(cached
) $ac_c" 1>&6
5041 ac_save_LIBS="$LIBS"
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure
"
5045 #include "confdefs.h
"
5046 /* Override any gcc2 internal prototype to avoid an error. */
5047 /* We use char because int might match the return type of a gcc2
5048 builtin and then its argument prototype would still apply. */
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5057 eval "ac_cv_lib_
$ac_lib_var=yes"
5059 echo "configure
: failed program was
:" >&5
5060 cat conftest.$ac_ext >&5
5062 eval "ac_cv_lib_
$ac_lib_var=no
"
5065 LIBS="$ac_save_LIBS"
5068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5069 echo "$ac_t""yes" 1>&6
5071 cat >> confdefs.h <<\EOF
5072 #define HAVE_DLOPEN 1
5076 echo "$ac_t""no
" 1>&6
5080 # Some library-finding code we stole from Tcl.
5081 #--------------------------------------------------------------------
5082 # Check for the existence of the -lsocket and -lnsl libraries.
5083 # The order here is important, so that they end up in the right
5084 # order in the command line generated by make. Here are some
5085 # special considerations:
5086 # 1. Use "connect
" and "accept
" to check for -lsocket, and
5087 # "gethostbyname
" to check for -lnsl.
5088 # 2. Use each function name only once: can't redo a check because
5089 # autoconf caches the results of the last check and won't redo it.
5090 # 3. Use -lnsl and -lsocket only if they supply procedures that
5091 # aren't already present in the normal libraries. This is because
5092 # IRIX 5.2 has libraries, but they aren't needed and they're
5093 # bogus: they goof up name resolution if used.
5094 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
5095 # To get around this problem, check for both libraries together
5096 # if -lsocket doesn't work by itself.
5097 #--------------------------------------------------------------------
5099 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
5100 echo "configure
:5101: checking
for socket libraries
" >&5
5101 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
5102 echo $ac_n "(cached
) $ac_c" 1>&6
5106 unset ac_cv_func_connect
5107 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
5108 echo "configure
:5109: checking
for connect
" >&5
5109 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5110 echo $ac_n "(cached
) $ac_c" 1>&6
5112 cat > conftest.$ac_ext <<EOF
5113 #line 5114 "configure
"
5114 #include "confdefs.h
"
5115 /* System header to define __stub macros and hopefully few prototypes,
5116 which can conflict with char connect(); below. */
5118 /* Override any gcc2 internal prototype to avoid an error. */
5119 /* We use char because int might match the return type of a gcc2
5120 builtin and then its argument prototype would still apply. */
5125 /* The GNU C library defines this for functions which it implements
5126 to always fail with ENOSYS. Some functions are actually named
5127 something starting with __ and the normal name is an alias. */
5128 #if defined (__stub_connect) || defined (__stub___connect)
5136 if { (eval echo configure:5137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5138 eval "ac_cv_func_connect
=yes"
5140 echo "configure
: failed program was
:" >&5
5141 cat conftest.$ac_ext >&5
5143 eval "ac_cv_func_connect
=no
"
5148 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5149 echo "$ac_t""yes" 1>&6
5152 echo "$ac_t""no
" 1>&6
5156 if test "$gcj_checkSocket" = 1; then
5157 unset ac_cv_func_connect
5158 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
5159 echo "configure
:5160: checking
for main
in -lsocket" >&5
5160 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5162 echo $ac_n "(cached
) $ac_c" 1>&6
5164 ac_save_LIBS="$LIBS"
5165 LIBS="-lsocket $LIBS"
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure
"
5168 #include "confdefs.h
"
5174 if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5176 eval "ac_cv_lib_
$ac_lib_var=yes"
5178 echo "configure
: failed program was
:" >&5
5179 cat conftest.$ac_ext >&5
5181 eval "ac_cv_lib_
$ac_lib_var=no
"
5184 LIBS="$ac_save_LIBS"
5187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 gcj_cv_lib_sockets="-lsocket"
5191 echo "$ac_t""no
" 1>&6
5196 if test "$gcj_checkBoth" = 1; then
5198 LIBS="$LIBS -lsocket -lnsl"
5199 unset ac_cv_func_accept
5200 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
5201 echo "configure
:5202: checking
for accept
" >&5
5202 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5203 echo $ac_n "(cached
) $ac_c" 1>&6
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure
"
5207 #include "confdefs.h
"
5208 /* System header to define __stub macros and hopefully few prototypes,
5209 which can conflict with char accept(); below. */
5211 /* Override any gcc2 internal prototype to avoid an error. */
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5218 /* The GNU C library defines this for functions which it implements
5219 to always fail with ENOSYS. Some functions are actually named
5220 something starting with __ and the normal name is an alias. */
5221 #if defined (__stub_accept) || defined (__stub___accept)
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5231 eval "ac_cv_func_accept
=yes"
5233 echo "configure
: failed program was
:" >&5
5234 cat conftest.$ac_ext >&5
5236 eval "ac_cv_func_accept
=no
"
5241 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5242 echo "$ac_t""yes" 1>&6
5244 gcj_cv_lib_sockets="-lsocket -lnsl"
5246 echo "$ac_t""no
" 1>&6
5249 unset ac_cv_func_accept
5252 unset ac_cv_func_gethostbyname
5254 LIBS="$LIBS $gcj_cv_lib_sockets"
5255 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
5256 echo "configure
:5257: checking
for gethostbyname
" >&5
5257 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5258 echo $ac_n "(cached
) $ac_c" 1>&6
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure
"
5262 #include "confdefs.h
"
5263 /* System header to define __stub macros and hopefully few prototypes,
5264 which can conflict with char gethostbyname(); below. */
5266 /* Override any gcc2 internal prototype to avoid an error. */
5267 /* We use char because int might match the return type of a gcc2
5268 builtin and then its argument prototype would still apply. */
5269 char gethostbyname();
5273 /* The GNU C library defines this for functions which it implements
5274 to always fail with ENOSYS. Some functions are actually named
5275 something starting with __ and the normal name is an alias. */
5276 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5284 if { (eval echo configure:5285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5286 eval "ac_cv_func_gethostbyname
=yes"
5288 echo "configure
: failed program was
:" >&5
5289 cat conftest.$ac_ext >&5
5291 eval "ac_cv_func_gethostbyname
=no
"
5296 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5297 echo "$ac_t""yes" 1>&6
5300 echo "$ac_t""no
" 1>&6
5301 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
5302 echo "configure
:5303: checking
for main
in -lnsl" >&5
5303 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5305 echo $ac_n "(cached
) $ac_c" 1>&6
5307 ac_save_LIBS="$LIBS"
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure
"
5311 #include "confdefs.h
"
5317 if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5319 eval "ac_cv_lib_
$ac_lib_var=yes"
5321 echo "configure
: failed program was
:" >&5
5322 cat conftest.$ac_ext >&5
5324 eval "ac_cv_lib_
$ac_lib_var=no
"
5327 LIBS="$ac_save_LIBS"
5330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5331 echo "$ac_t""yes" 1>&6
5332 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5334 echo "$ac_t""no
" 1>&6
5339 unset ac_cv_func_gethostbyname
5344 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5345 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5347 if test "$with_system_zlib" = yes; then
5348 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
5349 echo "configure
:5350: checking
for deflate
in -lz" >&5
5350 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5352 echo $ac_n "(cached
) $ac_c" 1>&6
5354 ac_save_LIBS="$LIBS"
5356 cat > conftest.$ac_ext <<EOF
5357 #line 5358 "configure
"
5358 #include "confdefs.h
"
5359 /* Override any gcc2 internal prototype to avoid an error. */
5360 /* We use char because int might match the return type of a gcc2
5361 builtin and then its argument prototype would still apply. */
5368 if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5370 eval "ac_cv_lib_
$ac_lib_var=yes"
5372 echo "configure
: failed program was
:" >&5
5373 cat conftest.$ac_ext >&5
5375 eval "ac_cv_lib_
$ac_lib_var=no
"
5378 LIBS="$ac_save_LIBS"
5381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5382 echo "$ac_t""yes" 1>&6
5385 echo "$ac_t""no
" 1>&6
5391 # On Solaris, and maybe other architectures, the Boehm collector
5393 if test "$GC" = boehm; then
5394 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
5395 echo "configure
:5396: checking
for main
in -ldl" >&5
5396 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5398 echo $ac_n "(cached
) $ac_c" 1>&6
5400 ac_save_LIBS="$LIBS"
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure
"
5404 #include "confdefs.h
"
5410 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5412 eval "ac_cv_lib_
$ac_lib_var=yes"
5414 echo "configure
: failed program was
:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_lib_
$ac_lib_var=no
"
5420 LIBS="$ac_save_LIBS"
5423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5424 echo "$ac_t""yes" 1>&6
5425 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5427 echo "$ac_t""no
" 1>&6
5432 if test -z "${with_multisubdir}"; then
5436 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5439 if test -x "${builddotdot}/..
/..
/gcc
/gcj
"; then
5440 dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
5441 GCJ="$dir/gcj
-B`${PWDCMD-pwd}`/ -B$dir/"
5445 GCJ="gcj
-B`${PWDCMD-pwd}`/"
5449 # Create it, so that compile/link tests don't fail
5450 test -f libgcj.spec || touch libgcj.spec
5452 # We must search the source tree for java.lang, since we still don't
5453 # have libgcj.jar nor java/lang/*.class
5454 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5455 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
5457 # Since some classes depend on this one, we need its source available
5458 # before we can do any GCJ compilation test :-(
5459 if test ! -f gnu/classpath/Configuration.java; then
5460 test -d gnu || mkdir gnu
5461 test -d gnu/classpath || mkdir gnu/classpath
5462 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5463 < $srcdir/gnu/classpath/Configuration.java.in \
5464 > gnu/classpath/Configuration.java
5465 # We do not want to redirect the output of the grep below to /dev/null,
5466 # but we add /dev/null to the input list so that grep will print the
5467 # filename of Configuration.java in case it finds any matches.
5468 if grep @ gnu/classpath/Configuration.java /dev/null; then
5469 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
5473 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
5474 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5475 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5476 echo "configure
:5477: checking
for $ac_word" >&5
5477 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5478 echo $ac_n "(cached
) $ac_c" 1>&6
5480 if test -n "$GCJ"; then
5481 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5485 for ac_dir in $ac_dummy; do
5486 test -z "$ac_dir" && ac_dir=.
5487 if test -f $ac_dir/$ac_word; then
5488 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
5495 GCJ="$ac_cv_prog_GCJ"
5496 if test -n "$GCJ"; then
5497 echo "$ac_t""$GCJ" 1>&6
5499 echo "$ac_t""no
" 1>&6
5503 if test -z "$ac_cv_prog_GCJ"; then
5504 if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "gcj
", so it can be a program name with args.
5506 set dummy gcj; ac_word=$2
5507 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5508 echo "configure
:5509: checking
for $ac_word" >&5
5509 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5510 echo $ac_n "(cached
) $ac_c" 1>&6
5512 if test -n "$GCJ"; then
5513 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5517 for ac_dir in $ac_dummy; do
5518 test -z "$ac_dir" && ac_dir=.
5519 if test -f $ac_dir/$ac_word; then
5520 ac_cv_prog_GCJ="gcj
"
5525 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
5528 GCJ="$ac_cv_prog_GCJ"
5529 if test -n "$GCJ"; then
5530 echo "$ac_t""$GCJ" 1>&6
5532 echo "$ac_t""no
" 1>&6
5540 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5544 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
5546 lt_save_CFLAGS="$CFLAGS"
5547 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5548 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5549 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5550 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5551 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5552 deplibs_check_method="$deplibs_check_method" \
5553 file_magic_cmd="$file_magic_cmd" \
5554 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5555 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5556 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
5558 CFLAGS="$lt_save_CFLAGS"
5560 # Redirect the config.log output again, so that the ltconfig log is not
5561 # clobbered by the next message.
5562 exec 5>>./config.log
5567 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5569 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
5570 echo "configure
:5571: checking size of void
*" >&5
5571 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5572 echo $ac_n "(cached
) $ac_c" 1>&6
5574 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5575 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure
"
5577 #include "confdefs.h
"
5578 #include "confdefs.h
"
5579 #include <sys/types.h>
5583 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5586 if { (eval echo configure:5587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5588 ac_cv_sizeof_void_p=$ac_size
5590 echo "configure
: failed program was
:" >&5
5591 cat conftest.$ac_ext >&5
5594 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5599 if test x$ac_cv_sizeof_void_p = x ; then
5600 { echo "configure
: error
: cannot determine a size
for void
*" 1>&2; exit 1; }
5602 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5603 cat >> confdefs.h <<EOF
5604 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5613 if test -z "$ZLIBSPEC"; then
5614 # Use zlib from the GCC tree.
5615 ZINCS='-I$(top_srcdir)/../zlib'
5616 ZLIBS=../zlib/libzgcj_convenience.la
5619 SYS_ZLIBS="$ZLIBSPEC"
5630 if test "$CANADIAN" = yes; then
5639 if test "$NULL_TARGET" = yes; then
5641 NULL_TARGET_FALSE='#'
5643 NULL_TARGET_TRUE='#'
5648 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5657 if test -z "$with_cross_host"; then
5659 USE_LIBDIR_FALSE='#'
5666 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5667 NEEDS_DATA_START_TRUE=
5668 NEEDS_DATA_START_FALSE='#'
5670 NEEDS_DATA_START_TRUE='#'
5671 NEEDS_DATA_START_FALSE=
5675 # Determine gcj version number.
5677 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
5679 GCJVERSION=$gcjversion
5681 cat >> confdefs.h <<EOF
5682 #define GCJVERSION "$GCJVERSION"
5686 echo $ac_n "checking
for g
++ -ffloat-store bug
""...
$ac_c" 1>&6
5687 echo "configure
:5688: checking
for g
++ -ffloat-store bug
" >&5
5688 save_CFLAGS="$CFLAGS"
5689 CFLAGS="-x c
++ -O2 -ffloat-store"
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure
"
5692 #include "confdefs.h
"
5698 if { (eval echo configure:5699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5700 echo "$ac_t""no
" 1>&6
5702 echo "configure
: failed program was
:" >&5
5703 cat conftest.$ac_ext >&5
5705 cat >> confdefs.h <<\EOF
5706 #define __NO_MATH_INLINES 1
5709 echo "$ac_t""yes" 1>&6
5712 CFLAGS="$save_CFLAGS"
5714 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
5716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5717 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5718 echo "configure
:5719: checking
for $ac_hdr" >&5
5719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5720 echo $ac_n "(cached
) $ac_c" 1>&6
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure
"
5724 #include "confdefs.h
"
5727 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5728 { (eval echo configure:5729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5730 if test -z "$ac_err"; then
5732 eval "ac_cv_header_
$ac_safe=yes"
5735 echo "configure
: failed program was
:" >&5
5736 cat conftest.$ac_ext >&5
5738 eval "ac_cv_header_
$ac_safe=no
"
5742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5743 echo "$ac_t""yes" 1>&6
5744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5745 cat >> confdefs.h <<EOF
5746 #define $ac_tr_hdr 1
5750 echo "$ac_t""no
" 1>&6
5754 for ac_hdr in dirent.h
5756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5757 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5758 echo "configure
:5759: checking
for $ac_hdr" >&5
5759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5760 echo $ac_n "(cached
) $ac_c" 1>&6
5762 cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure
"
5764 #include "confdefs.h
"
5767 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5768 { (eval echo configure:5769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5770 if test -z "$ac_err"; then
5772 eval "ac_cv_header_
$ac_safe=yes"
5775 echo "configure
: failed program was
:" >&5
5776 cat conftest.$ac_ext >&5
5778 eval "ac_cv_header_
$ac_safe=no
"
5782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5783 echo "$ac_t""yes" 1>&6
5784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5785 cat >> confdefs.h <<EOF
5786 #define $ac_tr_hdr 1
5790 echo "$ac_t""no
" 1>&6
5794 for ac_hdr in inttypes.h
5796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5797 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5798 echo "configure
:5799: checking
for $ac_hdr" >&5
5799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5800 echo $ac_n "(cached
) $ac_c" 1>&6
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure
"
5804 #include "confdefs.h
"
5807 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5808 { (eval echo configure:5809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5810 if test -z "$ac_err"; then
5812 eval "ac_cv_header_
$ac_safe=yes"
5815 echo "configure
: failed program was
:" >&5
5816 cat conftest.$ac_ext >&5
5818 eval "ac_cv_header_
$ac_safe=no
"
5822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5823 echo "$ac_t""yes" 1>&6
5824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5825 cat >> confdefs.h <<EOF
5826 #define $ac_tr_hdr 1
5829 cat >> confdefs.h <<\EOF
5830 #define HAVE_INTTYPES_H 1
5833 cat >> confdefs.h <<\EOF
5834 #define JV_HAVE_INTTYPES_H 1
5839 echo "$ac_t""no
" 1>&6
5843 echo $ac_n "checking
for sys
/wait.h that is POSIX
.1 compatible
""...
$ac_c" 1>&6
5844 echo "configure
:5845: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
5845 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5846 echo $ac_n "(cached
) $ac_c" 1>&6
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure
"
5850 #include "confdefs.h
"
5851 #include <sys/types.h>
5852 #include <sys/wait.h>
5854 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5857 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5862 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5865 if { (eval echo configure:5866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5867 ac_cv_header_sys_wait_h=yes
5869 echo "configure
: failed program was
:" >&5
5870 cat conftest.$ac_ext >&5
5872 ac_cv_header_sys_wait_h=no
5877 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5878 if test $ac_cv_header_sys_wait_h = yes; then
5879 cat >> confdefs.h <<\EOF
5880 #define HAVE_SYS_WAIT_H 1
5886 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
5887 echo "configure
:5888: checking
for ANSI C header files
" >&5
5888 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5889 echo $ac_n "(cached
) $ac_c" 1>&6
5891 cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure
"
5893 #include "confdefs.h
"
5899 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5900 { (eval echo configure:5901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5902 if test -z "$ac_err"; then
5904 ac_cv_header_stdc=yes
5907 echo "configure
: failed program was
:" >&5
5908 cat conftest.$ac_ext >&5
5910 ac_cv_header_stdc=no
5914 if test $ac_cv_header_stdc = yes; then
5915 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5916 cat > conftest.$ac_ext <<EOF
5917 #line 5918 "configure
"
5918 #include "confdefs.h
"
5921 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5922 egrep "memchr
" >/dev/null 2>&1; then
5926 ac_cv_header_stdc=no
5932 if test $ac_cv_header_stdc = yes; then
5933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure
"
5936 #include "confdefs.h
"
5939 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5940 egrep "free
" >/dev/null 2>&1; then
5944 ac_cv_header_stdc=no
5950 if test $ac_cv_header_stdc = yes; then
5951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5952 if test "$cross_compiling" = yes; then
5955 cat > conftest.$ac_ext <<EOF
5956 #line 5957 "configure
"
5957 #include "confdefs.h
"
5959 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5960 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5962 int main () { int i; for (i = 0; i < 256; i++)
5963 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5967 if { (eval echo configure:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5971 echo "configure
: failed program was
:" >&5
5972 cat conftest.$ac_ext >&5
5974 ac_cv_header_stdc=no
5982 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5983 if test $ac_cv_header_stdc = yes; then
5984 cat >> confdefs.h <<\EOF
5985 #define STDC_HEADERS 1
5990 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
5991 echo "configure
:5992: checking
for ssize_t
" >&5
5992 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5993 echo $ac_n "(cached
) $ac_c" 1>&6
5995 cat > conftest.$ac_ext <<EOF
5996 #line 5997 "configure
"
5997 #include "confdefs.h
"
5998 #include <sys/types.h>
6004 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6005 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
6007 ac_cv_type_ssize_t=yes
6010 ac_cv_type_ssize_t=no
6015 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6016 if test $ac_cv_type_ssize_t = no; then
6017 cat >> confdefs.h <<\EOF
6024 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
6025 echo "configure
:6026: checking
for in_addr_t
" >&5
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure
"
6028 #include "confdefs.h
"
6029 #include <sys/types.h>
6034 #if HAVE_NETINET_IN_H
6035 #include <netinet/in.h>
6041 if { (eval echo configure:6042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6043 cat >> confdefs.h <<\EOF
6044 #define HAVE_IN_ADDR_T 1
6047 echo "$ac_t""yes" 1>&6
6049 echo "configure
: failed program was
:" >&5
6050 cat conftest.$ac_ext >&5
6052 echo "$ac_t""no
" 1>&6
6056 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
6057 echo "configure
:6058: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure
"
6060 #include "confdefs.h
"
6061 #include <netinet/in.h>
6063 struct ip_mreq mreq;
6066 if { (eval echo configure:6067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6068 cat >> confdefs.h <<\EOF
6069 #define HAVE_STRUCT_IP_MREQ 1
6072 echo "$ac_t""yes" 1>&6
6074 echo "configure
: failed program was
:" >&5
6075 cat conftest.$ac_ext >&5
6077 echo "$ac_t""no
" 1>&6
6081 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
6082 echo "configure
:6083: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure
"
6085 #include "confdefs.h
"
6086 #include <netinet/in.h>
6088 struct ipv6_mreq mreq6;
6091 if { (eval echo configure:6092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6093 cat >> confdefs.h <<\EOF
6094 #define HAVE_STRUCT_IPV6_MREQ 1
6097 echo "$ac_t""yes" 1>&6
6099 echo "configure
: failed program was
:" >&5
6100 cat conftest.$ac_ext >&5
6102 echo "$ac_t""no
" 1>&6
6106 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
6107 echo "configure
:6108: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure
"
6110 #include "confdefs.h
"
6111 #include <netinet/in.h>
6113 struct sockaddr_in6 addr6;
6116 if { (eval echo configure:6117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6118 cat >> confdefs.h <<\EOF
6119 #define HAVE_INET6 1
6122 echo "$ac_t""yes" 1>&6
6124 echo "configure
: failed program was
:" >&5
6125 cat conftest.$ac_ext >&5
6127 echo "$ac_t""no
" 1>&6
6131 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
6132 echo "configure
:6133: checking
for socklen_t
in sys
/socket.h
" >&5
6133 cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure
"
6135 #include "confdefs.h
"
6136 #define _POSIX_PII_SOCKET
6137 #include <sys/types.h>
6138 #include <sys/socket.h>
6143 if { (eval echo configure:6144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6145 cat >> confdefs.h <<\EOF
6146 #define HAVE_SOCKLEN_T 1
6149 echo "$ac_t""yes" 1>&6
6151 echo "configure
: failed program was
:" >&5
6152 cat conftest.$ac_ext >&5
6154 echo "$ac_t""no
" 1>&6
6158 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
6159 echo "configure
:6160: checking
for tm_gmtoff
in struct tm
" >&5
6160 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure
"
6162 #include "confdefs.h
"
6165 struct tm tim; tim.tm_gmtoff = 0;
6168 if { (eval echo configure:6169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6170 cat >> confdefs.h <<\EOF
6171 #define STRUCT_TM_HAS_GMTOFF 1
6174 echo "$ac_t""yes" 1>&6
6176 echo "configure
: failed program was
:" >&5
6177 cat conftest.$ac_ext >&5
6179 echo "$ac_t""no
" 1>&6
6180 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
6181 echo "configure
:6182: checking
for global timezone variable
" >&5
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure
"
6184 #include "confdefs.h
"
6187 void i(){long z2 = 2*timezone;}
6190 if { (eval echo configure:6191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6192 cat >> confdefs.h <<\EOF
6193 #define HAVE_TIMEZONE 1
6196 echo "$ac_t""yes" 1>&6
6198 echo "configure
: failed program was
:" >&5
6199 cat conftest.$ac_ext >&5
6201 echo "$ac_t""no
" 1>&6
6202 echo $ac_n "checking
for global _timezone variable
""...
$ac_c" 1>&6
6203 echo "configure
:6204: checking
for global _timezone variable
" >&5
6204 cat > conftest.$ac_ext <<EOF
6205 #line 6206 "configure
"
6206 #include "confdefs.h
"
6209 long z2 = _timezone;
6212 if { (eval echo configure:6213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6214 cat >> confdefs.h <<\EOF
6215 #define HAVE_UNDERSCORE_TIMEZONE 1
6218 echo "$ac_t""yes" 1>&6
6220 echo "configure
: failed program was
:" >&5
6221 cat conftest.$ac_ext >&5
6223 echo "$ac_t""no
" 1>&6
6231 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6232 # for constant arguments. Useless!
6233 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
6234 echo "configure
:6235: checking
for working alloca.h
" >&5
6235 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6236 echo $ac_n "(cached
) $ac_c" 1>&6
6238 cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure
"
6240 #include "confdefs.h
"
6243 char *p = alloca(2 * sizeof(int));
6246 if { (eval echo configure:6247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6248 ac_cv_header_alloca_h=yes
6250 echo "configure
: failed program was
:" >&5
6251 cat conftest.$ac_ext >&5
6253 ac_cv_header_alloca_h=no
6258 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6259 if test $ac_cv_header_alloca_h = yes; then
6260 cat >> confdefs.h <<\EOF
6261 #define HAVE_ALLOCA_H 1
6266 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
6267 echo "configure
:6268: checking
for alloca
" >&5
6268 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6269 echo $ac_n "(cached
) $ac_c" 1>&6
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure
"
6273 #include "confdefs.h
"
6276 # define alloca __builtin_alloca
6279 # include <malloc.h>
6280 # define alloca _alloca
6283 # include <alloca.h>
6288 # ifndef alloca /* predefined by HP cc +Olibcalls */
6297 char *p = (char *) alloca(1);
6300 if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6302 ac_cv_func_alloca_works=yes
6304 echo "configure
: failed program was
:" >&5
6305 cat conftest.$ac_ext >&5
6307 ac_cv_func_alloca_works=no
6312 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6313 if test $ac_cv_func_alloca_works = yes; then
6314 cat >> confdefs.h <<\EOF
6315 #define HAVE_ALLOCA 1
6320 if test $ac_cv_func_alloca_works = no; then
6321 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6322 # that cause trouble. Some versions do not even contain alloca or
6323 # contain a buggy version. If you still want to use their alloca,
6324 # use ar to extract alloca.o from them instead of compiling alloca.c.
6325 ALLOCA=alloca.${ac_objext}
6326 cat >> confdefs.h <<\EOF
6331 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
6332 echo "configure
:6333: checking whether alloca needs Cray hooks
" >&5
6333 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6334 echo $ac_n "(cached
) $ac_c" 1>&6
6336 cat > conftest.$ac_ext <<EOF
6337 #line 6338 "configure
"
6338 #include "confdefs.h
"
6339 #if defined(CRAY) && ! defined(CRAY2)
6346 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6347 egrep "webecray
" >/dev/null 2>&1; then
6358 echo "$ac_t""$ac_cv_os_cray" 1>&6
6359 if test $ac_cv_os_cray = yes; then
6360 for ac_func in _getb67 GETB67 getb67; do
6361 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6362 echo "configure
:6363: checking
for $ac_func" >&5
6363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6364 echo $ac_n "(cached
) $ac_c" 1>&6
6366 cat > conftest.$ac_ext <<EOF
6367 #line 6368 "configure
"
6368 #include "confdefs.h
"
6369 /* System header to define __stub macros and hopefully few prototypes,
6370 which can conflict with char $ac_func(); below. */
6372 /* Override any gcc2 internal prototype to avoid an error. */
6373 /* We use char because int might match the return type of a gcc2
6374 builtin and then its argument prototype would still apply. */
6379 /* The GNU C library defines this for functions which it implements
6380 to always fail with ENOSYS. Some functions are actually named
6381 something starting with __ and the normal name is an alias. */
6382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6390 if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6392 eval "ac_cv_func_
$ac_func=yes"
6394 echo "configure
: failed program was
:" >&5
6395 cat conftest.$ac_ext >&5
6397 eval "ac_cv_func_
$ac_func=no
"
6402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6403 echo "$ac_t""yes" 1>&6
6404 cat >> confdefs.h <<EOF
6405 #define CRAY_STACKSEG_END $ac_func
6410 echo "$ac_t""no
" 1>&6
6416 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
6417 echo "configure
:6418: checking stack direction
for C alloca
" >&5
6418 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6419 echo $ac_n "(cached
) $ac_c" 1>&6
6421 if test "$cross_compiling" = yes; then
6422 ac_cv_c_stack_direction=0
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure
"
6426 #include "confdefs.h
"
6427 find_stack_direction ()
6429 static char *addr = 0;
6434 return find_stack_direction ();
6437 return (&dummy > addr) ? 1 : -1;
6441 exit (find_stack_direction() < 0);
6444 if { (eval echo configure:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6446 ac_cv_c_stack_direction=1
6448 echo "configure
: failed program was
:" >&5
6449 cat conftest.$ac_ext >&5
6451 ac_cv_c_stack_direction=-1
6458 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6459 cat >> confdefs.h <<EOF
6460 #define STACK_DIRECTION $ac_cv_c_stack_direction
6468 # Extract the first word of "$ac_prog", so it can be a program name with args.
6469 set dummy $ac_prog; ac_word=$2
6470 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6471 echo "configure
:6472: checking
for $ac_word" >&5
6472 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6473 echo $ac_n "(cached
) $ac_c" 1>&6
6475 if test -n "$PERL"; then
6476 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6480 for ac_dir in $ac_dummy; do
6481 test -z "$ac_dir" && ac_dir=.
6482 if test -f $ac_dir/$ac_word; then
6483 ac_cv_prog_PERL="$ac_prog"
6490 PERL="$ac_cv_prog_PERL"
6491 if test -n "$PERL"; then
6492 echo "$ac_t""$PERL" 1>&6
6494 echo "$ac_t""no
" 1>&6
6497 test -n "$PERL" && break
6499 test -n "$PERL" || PERL="false
"
6506 SIGNAL_HANDLER=include/i386-signal.h
6508 sparc*-sun-solaris*)
6509 SIGNAL_HANDLER=include/sparc-signal.h
6512 # SYSDEP_SOURCES=sysdep/ia64.c
6513 # test -d sysdep || mkdir sysdep
6516 SIGNAL_HANDLER=include/dwarf2-signal.h
6519 SIGNAL_HANDLER=include/dwarf2-signal.h
6522 SIGNAL_HANDLER=include/dwarf2-signal.h
6525 SIGNAL_HANDLER=include/s390-signal.h
6528 SIGNAL_HANDLER=include/dwarf2-signal.h
6531 SIGNAL_HANDLER=include/win32-signal.h
6534 SIGNAL_HANDLER=include/default-signal.h
6538 # If we're using sjlj exceptions, forget what we just learned.
6539 if test "$enable_sjlj_exceptions" = yes; then
6540 SIGNAL_HANDLER=include/default-signal.h
6547 if test "${multilib}" = "yes"; then
6548 multilib_arg="--enable-multilib"
6553 # If we find X, set shell vars x_includes and x_libraries to the
6554 # paths, otherwise set no_x=yes.
6555 # Uses ac_ vars as temps to allow command line to override cache and checks.
6556 # --without-x overrides everything else, but does not touch the cache.
6557 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
6558 echo "configure
:6559: checking
for X
" >&5
6560 # Check whether --with-x or --without-x was given.
6561 if test "${with_x+set}" = set; then
6566 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6567 if test "x
$with_x" = xno; then
6568 # The user explicitly disabled X.
6571 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
6572 # Both variables are already set.
6575 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6576 echo $ac_n "(cached
) $ac_c" 1>&6
6578 # One or both of the vars are not set, and there is no cached value.
6579 ac_x_includes=NO ac_x_libraries=NO
6581 if mkdir conftestdir; then
6583 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6584 cat > Imakefile <<'EOF'
6586 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6588 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6589 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
6590 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6591 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6592 for ac_extension in a so sl; do
6593 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6594 test -f $ac_im_libdir/libX11.$ac_extension; then
6595 ac_im_usrlibdir=$ac_im_libdir; break
6598 # Screen out bogus values from the imake configuration. They are
6599 # bogus both because they are the default anyway, and because
6600 # using them would break gcc on systems where it needs fixed includes.
6601 case "$ac_im_incroot" in
6603 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
6605 case "$ac_im_usrlibdir" in
6607 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6614 if test "$ac_x_includes" = NO; then
6615 # Guess where to find include files, by looking for this one X11 .h file.
6616 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6618 # First, try using that file with no special directory specified.
6619 cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure
"
6621 #include "confdefs.h
"
6622 #include <$x_direct_test_include>
6624 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6625 { (eval echo configure:6626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6627 if test -z "$ac_err"; then
6629 # We can compile using X headers with no special include directory.
6633 echo "configure
: failed program was
:" >&5
6634 cat conftest.$ac_ext >&5
6636 # Look for the header file in a standard set of common directories.
6637 # Check X11 before X11Rn because it is often a symlink to the current release.
6640 /usr/X11R6/include \
6641 /usr/X11R5/include \
6642 /usr/X11R4/include \
6645 /usr/include/X11R6 \
6646 /usr/include/X11R5 \
6647 /usr/include/X11R4 \
6649 /usr/local/X11/include \
6650 /usr/local/X11R6/include \
6651 /usr/local/X11R5/include \
6652 /usr/local/X11R4/include \
6654 /usr/local/include/X11 \
6655 /usr/local/include/X11R6 \
6656 /usr/local/include/X11R5 \
6657 /usr/local/include/X11R4 \
6661 /usr/XFree86/include/X11 \
6664 /usr/local/include \
6665 /usr/unsupported/include \
6666 /usr/athena/include \
6667 /usr/local/x11r5/include \
6668 /usr/lpp/Xamples/include \
6670 /usr/openwin/include \
6671 /usr/openwin/share/include \
6674 if test -r "$ac_dir/$x_direct_test_include"; then
6675 ac_x_includes=$ac_dir
6681 fi # $ac_x_includes = NO
6683 if test "$ac_x_libraries" = NO; then
6684 # Check for the libraries.
6686 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6687 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6689 # See if we find them without any special options.
6690 # Don't add to $LIBS permanently.
6691 ac_save_LIBS="$LIBS"
6692 LIBS="-l$x_direct_test_library $LIBS"
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure
"
6695 #include "confdefs.h
"
6698 ${x_direct_test_function}()
6701 if { (eval echo configure:6702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6703 LIBS="$ac_save_LIBS"
6704 # We can link X programs with no special library path.
6707 echo "configure
: failed program was
:" >&5
6708 cat conftest.$ac_ext >&5
6710 LIBS="$ac_save_LIBS"
6711 # First see if replacing the include by lib works.
6712 # Check X11 before X11Rn because it is often a symlink to the current release.
6713 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6724 /usr/local/X11/lib \
6725 /usr/local/X11R6/lib \
6726 /usr/local/X11R5/lib \
6727 /usr/local/X11R4/lib \
6729 /usr/local/lib/X11 \
6730 /usr/local/lib/X11R6 \
6731 /usr/local/lib/X11R5 \
6732 /usr/local/lib/X11R4 \
6736 /usr/XFree86/lib/X11 \
6740 /usr/unsupported/lib \
6742 /usr/local/x11r5/lib \
6743 /usr/lpp/Xamples/lib \
6747 /usr/openwin/share/lib \
6750 for ac_extension in a so sl; do
6751 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6752 ac_x_libraries=$ac_dir
6759 fi # $ac_x_libraries = NO
6761 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6762 # Didn't find X anywhere. Cache the known absence of X.
6763 ac_cv_have_x="have_x
=no
"
6765 # Record where we found X for the cache.
6766 ac_cv_have_x="have_x
=yes \
6767 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
6771 eval "$ac_cv_have_x"
6774 if test "$have_x" != yes; then
6775 echo "$ac_t""$have_x" 1>&6
6778 # If each of the values was on the command line, it overrides each guess.
6779 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
6780 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6781 # Update the cache value to reflect the command line values.
6782 ac_cv_have_x="have_x
=yes \
6783 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
6784 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
6787 if test "$no_x" = yes; then
6788 # Not all programs may use this symbol, but it does not hurt to define it.
6789 cat >> confdefs.h <<\EOF
6790 #define X_DISPLAY_MISSING 1
6793 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6795 if test -n "$x_includes"; then
6796 X_CFLAGS="$X_CFLAGS -I$x_includes"
6799 # It would also be nice to do this for all -L options, not just this one.
6800 if test -n "$x_libraries"; then
6801 X_LIBS="$X_LIBS -L$x_libraries"
6802 # For Solaris; some versions of Sun CC require a space after -R and
6803 # others require no space. Words are not sufficient . . . .
6804 case "`(uname -sr) 2>/dev/null`" in
6806 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
6807 echo "configure
:6808: checking whether
-R must be followed by a space
" >&5
6808 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure
"
6811 #include "confdefs.h
"
6817 if { (eval echo configure:6818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6821 echo "configure
: failed program was
:" >&5
6822 cat conftest.$ac_ext >&5
6827 if test $ac_R_nospace = yes; then
6828 echo "$ac_t""no
" 1>&6
6829 X_LIBS="$X_LIBS -R$x_libraries"
6831 LIBS="$ac_xsave_LIBS -R $x_libraries"
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure
"
6834 #include "confdefs.h
"
6840 if { (eval echo configure:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6844 echo "configure
: failed program was
:" >&5
6845 cat conftest.$ac_ext >&5
6850 if test $ac_R_space = yes; then
6851 echo "$ac_t""yes" 1>&6
6852 X_LIBS="$X_LIBS -R $x_libraries"
6854 echo "$ac_t""neither works
" 1>&6
6857 LIBS="$ac_xsave_LIBS"
6861 # Check for system-dependent libraries X programs must link with.
6862 # Do this before checking for the system-independent R6 libraries
6863 # (-lICE), since we may need -lsocket or whatever for X linking.
6865 if test "$ISC" = yes; then
6866 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6868 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6869 # libraries were built with DECnet support. And karl@cs.umb.edu says
6870 # the Alpha needs dnet_stub (dnet does not exist).
6871 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
6872 echo "configure
:6873: checking
for dnet_ntoa
in -ldnet" >&5
6873 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6875 echo $ac_n "(cached
) $ac_c" 1>&6
6877 ac_save_LIBS="$LIBS"
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure
"
6881 #include "confdefs.h
"
6882 /* Override any gcc2 internal prototype to avoid an error. */
6883 /* We use char because int might match the return type of a gcc2
6884 builtin and then its argument prototype would still apply. */
6891 if { (eval echo configure:6892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 eval "ac_cv_lib_
$ac_lib_var=yes"
6895 echo "configure
: failed program was
:" >&5
6896 cat conftest.$ac_ext >&5
6898 eval "ac_cv_lib_
$ac_lib_var=no
"
6901 LIBS="$ac_save_LIBS"
6904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6905 echo "$ac_t""yes" 1>&6
6906 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6908 echo "$ac_t""no
" 1>&6
6911 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6912 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
6913 echo "configure
:6914: checking
for dnet_ntoa
in -ldnet_stub" >&5
6914 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6916 echo $ac_n "(cached
) $ac_c" 1>&6
6918 ac_save_LIBS="$LIBS"
6919 LIBS="-ldnet_stub $LIBS"
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure
"
6922 #include "confdefs.h
"
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6932 if { (eval echo configure:6933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6934 eval "ac_cv_lib_
$ac_lib_var=yes"
6936 echo "configure
: failed program was
:" >&5
6937 cat conftest.$ac_ext >&5
6939 eval "ac_cv_lib_
$ac_lib_var=no
"
6942 LIBS="$ac_save_LIBS"
6945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6946 echo "$ac_t""yes" 1>&6
6947 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6949 echo "$ac_t""no
" 1>&6
6954 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6955 # to get the SysV transport functions.
6956 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6958 # The nsl library prevents programs from opening the X display
6959 # on Irix 5.2, according to dickey@clark.net.
6960 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6961 echo "configure
:6962: checking
for gethostbyname
" >&5
6962 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6963 echo $ac_n "(cached
) $ac_c" 1>&6
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure
"
6967 #include "confdefs.h
"
6968 /* System header to define __stub macros and hopefully few prototypes,
6969 which can conflict with char gethostbyname(); below. */
6971 /* Override any gcc2 internal prototype to avoid an error. */
6972 /* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6974 char gethostbyname();
6978 /* The GNU C library defines this for functions which it implements
6979 to always fail with ENOSYS. Some functions are actually named
6980 something starting with __ and the normal name is an alias. */
6981 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6989 if { (eval echo configure:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6991 eval "ac_cv_func_gethostbyname
=yes"
6993 echo "configure
: failed program was
:" >&5
6994 cat conftest.$ac_ext >&5
6996 eval "ac_cv_func_gethostbyname
=no
"
7001 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7002 echo "$ac_t""yes" 1>&6
7005 echo "$ac_t""no
" 1>&6
7008 if test $ac_cv_func_gethostbyname = no; then
7009 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
7010 echo "configure
:7011: checking
for gethostbyname
in -lnsl" >&5
7011 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7013 echo $ac_n "(cached
) $ac_c" 1>&6
7015 ac_save_LIBS="$LIBS"
7017 cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure
"
7019 #include "confdefs.h
"
7020 /* Override any gcc2 internal prototype to avoid an error. */
7021 /* We use char because int might match the return type of a gcc2
7022 builtin and then its argument prototype would still apply. */
7023 char gethostbyname();
7029 if { (eval echo configure:7030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7031 eval "ac_cv_lib_
$ac_lib_var=yes"
7033 echo "configure
: failed program was
:" >&5
7034 cat conftest.$ac_ext >&5
7036 eval "ac_cv_lib_
$ac_lib_var=no
"
7039 LIBS="$ac_save_LIBS"
7042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7043 echo "$ac_t""yes" 1>&6
7044 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7046 echo "$ac_t""no
" 1>&6
7051 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7052 # socket/setsockopt and other routines are undefined under SCO ODT
7053 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7054 # on later versions), says simon@lia.di.epfl.ch: it contains
7055 # gethostby* variants that don't use the nameserver (or something).
7056 # -lsocket must be given before -lnsl if both are needed.
7057 # We assume that if connect needs -lnsl, so does gethostbyname.
7058 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
7059 echo "configure
:7060: checking
for connect
" >&5
7060 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7061 echo $ac_n "(cached
) $ac_c" 1>&6
7063 cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure
"
7065 #include "confdefs.h
"
7066 /* System header to define __stub macros and hopefully few prototypes,
7067 which can conflict with char connect(); below. */
7069 /* Override any gcc2 internal prototype to avoid an error. */
7070 /* We use char because int might match the return type of a gcc2
7071 builtin and then its argument prototype would still apply. */
7076 /* The GNU C library defines this for functions which it implements
7077 to always fail with ENOSYS. Some functions are actually named
7078 something starting with __ and the normal name is an alias. */
7079 #if defined (__stub_connect) || defined (__stub___connect)
7087 if { (eval echo configure:7088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7089 eval "ac_cv_func_connect
=yes"
7091 echo "configure
: failed program was
:" >&5
7092 cat conftest.$ac_ext >&5
7094 eval "ac_cv_func_connect
=no
"
7099 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7100 echo "$ac_t""yes" 1>&6
7103 echo "$ac_t""no
" 1>&6
7106 if test $ac_cv_func_connect = no; then
7107 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
7108 echo "configure
:7109: checking
for connect
in -lsocket" >&5
7109 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7111 echo $ac_n "(cached
) $ac_c" 1>&6
7113 ac_save_LIBS="$LIBS"
7114 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7115 cat > conftest.$ac_ext <<EOF
7116 #line 7117 "configure
"
7117 #include "confdefs.h
"
7118 /* Override any gcc2 internal prototype to avoid an error. */
7119 /* We use char because int might match the return type of a gcc2
7120 builtin and then its argument prototype would still apply. */
7127 if { (eval echo configure:7128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7129 eval "ac_cv_lib_
$ac_lib_var=yes"
7131 echo "configure
: failed program was
:" >&5
7132 cat conftest.$ac_ext >&5
7134 eval "ac_cv_lib_
$ac_lib_var=no
"
7137 LIBS="$ac_save_LIBS"
7140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7141 echo "$ac_t""yes" 1>&6
7142 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7144 echo "$ac_t""no
" 1>&6
7149 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7150 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
7151 echo "configure
:7152: checking
for remove
" >&5
7152 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7153 echo $ac_n "(cached
) $ac_c" 1>&6
7155 cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure
"
7157 #include "confdefs.h
"
7158 /* System header to define __stub macros and hopefully few prototypes,
7159 which can conflict with char remove(); below. */
7161 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7168 /* The GNU C library defines this for functions which it implements
7169 to always fail with ENOSYS. Some functions are actually named
7170 something starting with __ and the normal name is an alias. */
7171 #if defined (__stub_remove) || defined (__stub___remove)
7179 if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7181 eval "ac_cv_func_remove
=yes"
7183 echo "configure
: failed program was
:" >&5
7184 cat conftest.$ac_ext >&5
7186 eval "ac_cv_func_remove
=no
"
7191 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7192 echo "$ac_t""yes" 1>&6
7195 echo "$ac_t""no
" 1>&6
7198 if test $ac_cv_func_remove = no; then
7199 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
7200 echo "configure
:7201: checking
for remove
in -lposix" >&5
7201 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7203 echo $ac_n "(cached
) $ac_c" 1>&6
7205 ac_save_LIBS="$LIBS"
7206 LIBS="-lposix $LIBS"
7207 cat > conftest.$ac_ext <<EOF
7208 #line 7209 "configure
"
7209 #include "confdefs.h
"
7210 /* Override any gcc2 internal prototype to avoid an error. */
7211 /* We use char because int might match the return type of a gcc2
7212 builtin and then its argument prototype would still apply. */
7219 if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7221 eval "ac_cv_lib_
$ac_lib_var=yes"
7223 echo "configure
: failed program was
:" >&5
7224 cat conftest.$ac_ext >&5
7226 eval "ac_cv_lib_
$ac_lib_var=no
"
7229 LIBS="$ac_save_LIBS"
7232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7233 echo "$ac_t""yes" 1>&6
7234 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7236 echo "$ac_t""no
" 1>&6
7241 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7242 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
7243 echo "configure
:7244: checking
for shmat
" >&5
7244 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7245 echo $ac_n "(cached
) $ac_c" 1>&6
7247 cat > conftest.$ac_ext <<EOF
7248 #line 7249 "configure
"
7249 #include "confdefs.h
"
7250 /* System header to define __stub macros and hopefully few prototypes,
7251 which can conflict with char shmat(); below. */
7253 /* Override any gcc2 internal prototype to avoid an error. */
7254 /* We use char because int might match the return type of a gcc2
7255 builtin and then its argument prototype would still apply. */
7260 /* The GNU C library defines this for functions which it implements
7261 to always fail with ENOSYS. Some functions are actually named
7262 something starting with __ and the normal name is an alias. */
7263 #if defined (__stub_shmat) || defined (__stub___shmat)
7271 if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7273 eval "ac_cv_func_shmat
=yes"
7275 echo "configure
: failed program was
:" >&5
7276 cat conftest.$ac_ext >&5
7278 eval "ac_cv_func_shmat
=no
"
7283 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7284 echo "$ac_t""yes" 1>&6
7287 echo "$ac_t""no
" 1>&6
7290 if test $ac_cv_func_shmat = no; then
7291 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
7292 echo "configure
:7293: checking
for shmat
in -lipc" >&5
7293 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7295 echo $ac_n "(cached
) $ac_c" 1>&6
7297 ac_save_LIBS="$LIBS"
7299 cat > conftest.$ac_ext <<EOF
7300 #line 7301 "configure
"
7301 #include "confdefs.h
"
7302 /* Override any gcc2 internal prototype to avoid an error. */
7303 /* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7311 if { (eval echo configure:7312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7313 eval "ac_cv_lib_
$ac_lib_var=yes"
7315 echo "configure
: failed program was
:" >&5
7316 cat conftest.$ac_ext >&5
7318 eval "ac_cv_lib_
$ac_lib_var=no
"
7321 LIBS="$ac_save_LIBS"
7324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7325 echo "$ac_t""yes" 1>&6
7326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7328 echo "$ac_t""no
" 1>&6
7334 # Check for libraries that X11R6 Xt/Xaw programs need.
7335 ac_save_LDFLAGS="$LDFLAGS"
7336 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7337 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7338 # check for ICE first), but we must link in the order -lSM -lICE or
7339 # we get undefined symbols. So assume we have SM if we have ICE.
7340 # These have to be linked with before -lX11, unlike the other
7341 # libraries we check for below, so use a different variable.
7342 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7343 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
7344 echo "configure
:7345: checking
for IceConnectionNumber
in -lICE" >&5
7345 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7347 echo $ac_n "(cached
) $ac_c" 1>&6
7349 ac_save_LIBS="$LIBS"
7350 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7351 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure
"
7353 #include "confdefs.h
"
7354 /* Override any gcc2 internal prototype to avoid an error. */
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7357 char IceConnectionNumber();
7360 IceConnectionNumber()
7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7365 eval "ac_cv_lib_
$ac_lib_var=yes"
7367 echo "configure
: failed program was
:" >&5
7368 cat conftest.$ac_ext >&5
7370 eval "ac_cv_lib_
$ac_lib_var=no
"
7373 LIBS="$ac_save_LIBS"
7376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7377 echo "$ac_t""yes" 1>&6
7378 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7380 echo "$ac_t""no
" 1>&6
7383 LDFLAGS="$ac_save_LDFLAGS"
7388 # Check whether --enable-java-awt or --disable-java-awt was given.
7389 if test "${enable_java_awt+set}" = set; then
7390 enableval="$enable_java_awt"
7395 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7399 for peer in $peerlibs ; do
7402 if test "$no_x" = yes; then
7403 echo "*** xlib peers requested but no X library available
" 1>&2
7418 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
7425 if test "$use_xlib_awt" = yes; then
7434 if test "$use_gtk_awt" = yes; then
7443 here=`${PWDCMD-pwd}`
7446 # We get this from the environment.
7450 cat > confcache <<\EOF
7451 # This file is a shell script that caches the results of configure
7452 # tests run on this system so they can be shared between configure
7453 # scripts and configure runs. It is not useful on other systems.
7454 # If it contains results you don't want to keep, you may remove or edit it.
7456 # By default, configure uses ./config.cache as the cache file,
7457 # creating it if it does not exist already. You can give configure
7458 # the --cache-file=FILE option to use a different cache file; that is
7459 # what configure does when it calls configure scripts in
7460 # subdirectories, so they share the cache.
7461 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7462 # config.status only pays attention to the cache file if you give it the
7463 # --recheck option to rerun configure.
7466 # The following way of writing the cache mishandles newlines in values,
7467 # but we know of no workaround that is simple, portable, and efficient.
7468 # So, don't put newlines in cache variables' values.
7469 # Ultrix sh set writes to stderr and can't be redirected directly,
7470 # and sets the high bit in the cache file unless we assign to the vars.
7472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7474 # `set' does not quote correctly, so add quotes (double-quote substitution
7475 # turns \\\\ into \\, and sed turns \\ into \).
7477 -e "s
/'/'\\\\''/g
" \
7478 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
7481 # `set' quotes correctly as required by POSIX, so do not add quotes.
7482 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7485 if cmp -s $cache_file confcache; then
7488 if test -w $cache_file; then
7489 echo "updating cache
$cache_file"
7490 cat confcache > $cache_file
7492 echo "not updating unwritable cache
$cache_file"
7497 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7499 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
7500 # Let make expand exec_prefix.
7501 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
7503 # Any assignment to VPATH causes Sun make to only execute
7504 # the first set of double-colon rules, so remove it if not needed.
7505 # If there is a colon in the path, we need to keep it.
7506 if test "x
$srcdir" = x.; then
7507 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7510 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7512 DEFS=-DHAVE_CONFIG_H
7514 # Without the ".
/", some shells look in PATH for config.status.
7515 : ${CONFIG_STATUS=./config.status}
7517 echo creating $CONFIG_STATUS
7518 rm -f $CONFIG_STATUS
7519 cat > $CONFIG_STATUS <<EOF
7521 # Generated automatically by configure.
7522 # Run this file to recreate the current configuration.
7523 # This directory was configured as follows,
7524 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7526 # $0 $ac_configure_args
7528 # Compiler output produced by configure, useful for debugging
7529 # configure, is in ./config.log if it exists.
7531 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
7534 case "\
$ac_option" in
7535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7536 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7537 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7538 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7539 echo "$CONFIG_STATUS generated by autoconf version
2.13"
7541 -help | --help | --hel | --he | --h)
7542 echo "\
$ac_cs_usage"; exit 0 ;;
7543 *) echo "\
$ac_cs_usage"; exit 1 ;;
7547 ac_given_srcdir=$srcdir
7548 ac_given_INSTALL="$INSTALL"
7550 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
7552 cat >> $CONFIG_STATUS <<EOF
7554 # Protect against being on the right side of a sed subst in config.status.
7555 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7556 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7560 s%@CFLAGS@%$CFLAGS%g
7561 s%@CPPFLAGS@%$CPPFLAGS%g
7562 s%@CXXFLAGS@%$CXXFLAGS%g
7563 s%@FFLAGS@%$FFLAGS%g
7565 s%@LDFLAGS@%$LDFLAGS%g
7567 s%@exec_prefix@%$exec_prefix%g
7568 s%@prefix@%$prefix%g
7569 s%@program_transform_name@%$program_transform_name%g
7570 s%@bindir@%$bindir%g
7571 s%@sbindir@%$sbindir%g
7572 s%@libexecdir@%$libexecdir%g
7573 s%@datadir@%$datadir%g
7574 s%@sysconfdir@%$sysconfdir%g
7575 s%@sharedstatedir@%$sharedstatedir%g
7576 s%@localstatedir@%$localstatedir%g
7577 s%@libdir@%$libdir%g
7578 s%@includedir@%$includedir%g
7579 s%@oldincludedir@%$oldincludedir%g
7580 s%@infodir@%$infodir%g
7581 s%@mandir@%$mandir%g
7583 s%@libgcj_basedir@%$libgcj_basedir%g
7584 s%@mkinstalldirs@%$mkinstalldirs%g
7586 s%@host_alias@%$host_alias%g
7587 s%@host_cpu@%$host_cpu%g
7588 s%@host_vendor@%$host_vendor%g
7589 s%@host_os@%$host_os%g
7590 s%@target@%$target%g
7591 s%@target_alias@%$target_alias%g
7592 s%@target_cpu@%$target_cpu%g
7593 s%@target_vendor@%$target_vendor%g
7594 s%@target_os@%$target_os%g
7596 s%@build_alias@%$build_alias%g
7597 s%@build_cpu@%$build_cpu%g
7598 s%@build_vendor@%$build_vendor%g
7599 s%@build_os@%$build_os%g
7601 s%@glibjava_CXX@%$glibjava_CXX%g
7603 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7604 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7605 s%@INSTALL_DATA@%$INSTALL_DATA%g
7606 s%@PACKAGE@%$PACKAGE%g
7607 s%@VERSION@%$VERSION%g
7608 s%@ACLOCAL@%$ACLOCAL%g
7609 s%@AUTOCONF@%$AUTOCONF%g
7610 s%@AUTOMAKE@%$AUTOMAKE%g
7611 s%@AUTOHEADER@%$AUTOHEADER%g
7612 s%@MAKEINFO@%$MAKEINFO%g
7613 s%@SET_MAKE@%$SET_MAKE%g
7616 s%@RANLIB@%$RANLIB%g
7617 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7618 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7620 s%@EXEEXT@%$EXEEXT%g
7621 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7622 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7623 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7624 s%@INCLTDL@%$INCLTDL%g
7625 s%@LIBLTDL@%$LIBLTDL%g
7626 s%@DIRLTDL@%$DIRLTDL%g
7627 s%@OBJEXT@%$OBJEXT%g
7629 s%@LIBTOOL@%$LIBTOOL%g
7630 s%@CXXCPP@%$CXXCPP%g
7631 s%@subdirs@%$subdirs%g
7632 s%@COMPPATH@%$COMPPATH%g
7633 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7634 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7635 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7636 s%@INTERPRETER@%$INTERPRETER%g
7637 s%@LIBFFI@%$LIBFFI%g
7638 s%@LIBFFIINCS@%$LIBFFIINCS%g
7639 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7641 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7642 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7643 s%@ZLIBSPEC@%$ZLIBSPEC%g
7644 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7645 s%@GCLIBS@%$GCLIBS%g
7646 s%@GCINCS@%$GCINCS%g
7647 s%@GCDEPS@%$GCDEPS%g
7648 s%@GCOBJS@%$GCOBJS%g
7649 s%@GCSPEC@%$GCSPEC%g
7650 s%@JC1GCSPEC@%$JC1GCSPEC%g
7651 s%@GCTESTSPEC@%$GCTESTSPEC%g
7652 s%@THREADLIBS@%$THREADLIBS%g
7653 s%@THREADINCS@%$THREADINCS%g
7654 s%@THREADDEPS@%$THREADDEPS%g
7655 s%@THREADOBJS@%$THREADOBJS%g
7656 s%@THREADSPEC@%$THREADSPEC%g
7657 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
7658 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7659 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7660 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7661 s%@tool_include_dir@%$tool_include_dir%g
7662 s%@gcc_version@%$gcc_version%g
7663 s%@LIBICONV@%$LIBICONV%g
7665 s%@GCJFLAGS@%$GCJFLAGS%g
7667 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
7669 s%@DIVIDESPEC@%$DIVIDESPEC%g
7670 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
7671 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7672 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7673 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7674 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7675 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7676 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7677 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7678 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7679 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7680 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7681 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7682 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7683 s%@GCJVERSION@%$GCJVERSION%g
7684 s%@ALLOCA@%$ALLOCA%g
7686 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7687 s%@X_CFLAGS@%$X_CFLAGS%g
7688 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7689 s%@X_LIBS@%$X_LIBS%g
7690 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7691 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7692 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7693 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7694 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7700 cat >> $CONFIG_STATUS <<\EOF
7702 # Split the substitutions into bite-sized pieces for seds with
7703 # small command number limits, like on Digital OSF/1 and HP-UX.
7704 ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
7705 ac_file=1 # Number of current file.
7706 ac_beg=1 # First line for current file.
7707 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7710 while $ac_more_lines; do
7711 if test $ac_beg -gt 1; then
7712 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
7714 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
7716 if test ! -s conftest.s$ac_file; then
7718 rm -f conftest.s$ac_file
7720 if test -z "$ac_sed_cmds"; then
7721 ac_sed_cmds="sed -f conftest.s
$ac_file"
7723 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
7725 ac_file=`expr $ac_file + 1`
7727 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7730 if test -z "$ac_sed_cmds"; then
7735 cat >> $CONFIG_STATUS <<EOF
7737 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7739 cat >> $CONFIG_STATUS <<\EOF
7740 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
7741 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
7743 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7744 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7745 *) ac_file_in="${ac_file}.
in" ;;
7748 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7750 # Remove last slash and all that follows it. Not all systems have dirname.
7751 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7752 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7753 # The file is in a subdirectory.
7754 test ! -d "$ac_dir" && mkdir "$ac_dir"
7755 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7756 # A "..
/" for each directory in $ac_dir_suffix.
7757 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7759 ac_dir_suffix= ac_dots=
7762 case "$ac_given_srcdir" in
7764 if test -z "$ac_dots"; then top_srcdir=.
7765 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7766 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7768 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7769 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7772 case "$ac_given_INSTALL" in
7773 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7774 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7777 echo creating "$ac_file"
7779 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
7781 *Makefile*) ac_comsub="1i
\\
7782 # $configure_input" ;;
7786 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7788 s%@configure_input@%$configure_input%g
7789 s%@srcdir@%$srcdir%g
7790 s%@top_srcdir@%$top_srcdir%g
7791 s%@INSTALL@%$INSTALL%g
7792 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7796 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7797 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7799 # ac_d sets the value in "#define NAME VALUE" lines.
7800 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7801 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7804 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7805 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7806 ac_uB
='\([ ]\)%\1#\2define\3'
7809 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7810 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7811 ac_eB
='$%\1#\2define\3'
7815 if test "${CONFIG_HEADERS+set}" != set; then
7817 cat >> $CONFIG_STATUS <<EOF
7818 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7820 cat >> $CONFIG_STATUS <<\EOF
7822 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7825 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7826 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7827 *) ac_file_in
="${ac_file}.in" ;;
7830 echo creating
$ac_file
7832 rm -f conftest.frag conftest.
in conftest.out
7833 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7834 cat $ac_file_inputs > conftest.
in
7838 # Transform confdefs.h into a sed script conftest.vals that substitutes
7839 # the proper values into config.h.in to produce config.h. And first:
7840 # Protect against being on the right side of a sed subst in config.status.
7841 # Protect against being in an unquoted here document in config.status.
7843 cat > conftest.hdr
<<\EOF
7846 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7850 sed -n -f conftest.hdr confdefs.h > conftest.vals
7853 # This sed command replaces #undef with comments. This is necessary, for
7854 # example, in the case of _POSIX_SOURCE, which is predefined and required
7855 # on some systems where configure will not decide to define it.
7856 cat >> conftest.vals <<\EOF
7857 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7860 # Break up conftest.vals because some shells have a limit on
7861 # the size of here documents, and old seds have small limits too.
7866 ac_lines=`grep -c . conftest.vals
`
7867 # grep -c gives empty output for an empty file on some AIX systems.
7868 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7869 # Write a limited-size here document to conftest.frag.
7870 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7871 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7873 sed -f conftest.frag conftest.in > conftest.out
7875 mv conftest.out conftest.in
7877 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7879 mv conftest.tail conftest.vals
7883 cat >> $CONFIG_STATUS <<\EOF
7884 rm -f conftest.frag conftest.h
7885 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7886 cat conftest.in >> conftest.h
7888 if cmp -s $ac_file conftest.h 2>/dev/null; then
7889 echo "$ac_file is unchanged"
7892 # Remove last slash and all that follows it. Not all systems have dirname.
7893 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7894 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7895 # The file is in a subdirectory.
7896 test ! -d "$ac_dir" && mkdir "$ac_dir"
7899 mv conftest.h $ac_file
7905 cat >> $CONFIG_STATUS <<EOF
7906 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"
7907 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"
7910 cat >> $CONFIG_STATUS <<\EOF
7911 srcdir=$ac_given_srcdir
7912 while test -n "$ac_sources"; do
7913 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7914 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7916 echo "linking $srcdir/$ac_source to $ac_dest"
7918 if test ! -r $srcdir/$ac_source; then
7919 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7923 # Make relative symlinks.
7924 # Remove last slash and all that follows it. Not all systems have dirname.
7925 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7926 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7927 # The dest file is in a subdirectory.
7928 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7929 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7930 # A "../" for each directory in $ac_dest_dir_suffix.
7931 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7933 ac_dest_dir_suffix= ac_dots=
7937 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7938 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7941 # Make a symlink if possible; otherwise try a hard link.
7942 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7943 ln $srcdir/$ac_source $ac_dest; then :
7945 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7949 cat >> $CONFIG_STATUS <<EOF
7954 with_multisubdir=${with_multisubdir}
7955 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7956 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7957 libgcj_basedir=${libgcj_basedir}
7962 cat >> $CONFIG_STATUS <<\EOF
7964 for am_file in include/config.h gcj/libgcj-config.h; do
7965 case " $CONFIG_HEADERS " in
7967 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7970 am_indx=`expr "$am_indx" + 1`
7972 # Only add multilib support code if we just rebuilt top-level Makefile.
7973 case " $CONFIG_FILES " in
7975 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7976 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7980 # Make subdirectories and `.d
' files. Look in both srcdir and
7981 # builddir for the .java files.
7984 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' \) -print) ;
7985 find . \( -name '*.java
' -o -name '*.cc
' \) -print) | \
7986 fgrep -v testsuite | \
7987 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/' | \
7989 echo "include $f" >> deps.mk
7992 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
7994 if test ! -d $d; then
7995 $libgcj_basedir/../mkinstalldirs $d
8003 chmod +x $CONFIG_STATUS
8004 rm -fr confdefs* $ac_clean_files
8005 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8007 if test "$no_recursion" != yes; then
8009 # Remove --cache-file and --srcdir arguments so they do not pile up.
8010 ac_sub_configure_args=
8012 for ac_arg in $ac_configure_args; do
8013 if test -n "$ac_prev"; then
8018 -cache-file | --cache-file | --cache-fil | --cache-fi \
8019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8020 ac_prev=cache_file ;;
8021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8024 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8026 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8028 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8032 for ac_config_dir in $DIRLTDL; do
8034 # Do not complain, so a configure script can configure whichever
8035 # parts of a large source tree are present.
8036 if test ! -d $srcdir/$ac_config_dir; then
8040 echo configuring in $ac_config_dir
8045 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8047 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8055 # A "../" for each directory in /$ac_config_dir.
8056 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
8059 .) # No --srcdir option. We are building in place.
8060 ac_sub_srcdir=$srcdir ;;
8061 /*) # Absolute path.
8062 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8064 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8067 # Check for guested configure; otherwise get Cygnus style configure.
8068 if test -f $ac_sub_srcdir/configure; then
8069 ac_sub_configure=$ac_sub_srcdir/configure
8070 elif test -f $ac_sub_srcdir/configure.in; then
8071 ac_sub_configure=$ac_configure
8073 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8077 # The recursion is here.
8078 if test -n "$ac_sub_configure"; then
8080 # Make the cache file name correct relative to the subdirectory.
8081 case "$cache_file" in
8082 /*) ac_sub_cache_file=$cache_file ;;
8084 ac_sub_cache_file="$ac_dots$cache_file" ;;
8086 case "$ac_given_INSTALL" in
8087 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8088 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8091 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8092 # The eval makes quoting arguments work.
8093 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8096 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }