3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock avoid locking (might break parallel builds)"
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
37 --disable-getenv-properties
38 don't set system properties from GCJ_PROPERTIES"
40 --enable-hash-synchronization
41 Use global hash table for monitor locks"
43 --enable-libgcj-debug enable runtime debugging code"
45 --enable-interpreter enable interpreter"
47 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
49 --disable-java-net disable java.net"
51 --without-libffi don't use libffi"
53 --disable-jvmpi disable JVMPI support"
55 --with-ecos enable runtime eCos target support"
57 --with-system-zlib use installed libz"
59 --enable-java-gc=TYPE choose garbage collector [boehm]"
61 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
63 --with-x use the X Window System"
65 --enable-java-awt list of AWT peer implementations to be built"
67 # Initialize some variables set by options.
68 # The variables have the same names as the options, with
69 # dashes changed to underlines.
71 cache_file
=.
/config.cache
80 program_transform_name
=s
,x
,x
,
88 bindir
='${exec_prefix}/bin'
89 sbindir
='${exec_prefix}/sbin'
90 libexecdir
='${exec_prefix}/libexec'
91 datadir
='${prefix}/share'
92 sysconfdir
='${prefix}/etc'
93 sharedstatedir
='${prefix}/com'
94 localstatedir
='${prefix}/var'
95 libdir
='${exec_prefix}/lib'
96 includedir
='${prefix}/include'
97 oldincludedir
='/usr/include'
98 infodir
='${prefix}/info'
99 mandir
='${prefix}/man'
101 # Initialize some other variables.
104 SHELL
=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
130 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
131 bindir
="$ac_optarg" ;;
133 -build |
--build |
--buil |
--bui |
--bu)
135 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
136 build
="$ac_optarg" ;;
138 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
139 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
140 ac_prev
=cache_file
;;
141 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
142 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
143 cache_file
="$ac_optarg" ;;
145 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
147 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
149 datadir
="$ac_optarg" ;;
151 -disable-* |
--disable-*)
152 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* |
--enable-*)
161 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
174 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
175 |
--exec |
--exe |
--ex)
176 ac_prev
=exec_prefix
;;
177 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
178 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
179 |
--exec=* |
--exe=* |
--ex=*)
180 exec_prefix
="$ac_optarg" ;;
182 -gas |
--gas |
--ga |
--g)
183 # Obsolete; use --with-gas.
186 -help |
--help |
--hel |
--he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --version print the version of autoconf that created configure
198 Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228 Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
241 -host |
--host |
--hos |
--ho)
243 -host=* |
--host=* |
--hos=* |
--ho=*)
246 -includedir |
--includedir |
--includedi |
--included |
--include \
247 |
--includ |
--inclu |
--incl |
--inc)
248 ac_prev
=includedir
;;
249 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
250 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
251 includedir
="$ac_optarg" ;;
253 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
255 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
256 infodir
="$ac_optarg" ;;
258 -libdir |
--libdir |
--libdi |
--libd)
260 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
261 libdir
="$ac_optarg" ;;
263 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
264 |
--libexe |
--libex |
--libe)
265 ac_prev
=libexecdir
;;
266 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
267 |
--libexe=* |
--libex=* |
--libe=*)
268 libexecdir
="$ac_optarg" ;;
270 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
271 |
--localstate |
--localstat |
--localsta |
--localst \
272 |
--locals |
--local |
--loca |
--loc |
--lo)
273 ac_prev
=localstatedir
;;
274 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
275 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
276 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
277 localstatedir
="$ac_optarg" ;;
279 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
281 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
282 mandir
="$ac_optarg" ;;
285 # Obsolete; use --without-fp.
288 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
292 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
293 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
296 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
297 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
298 |
--oldin |
--oldi |
--old |
--ol |
--o)
299 ac_prev
=oldincludedir
;;
300 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
301 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
302 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
303 oldincludedir
="$ac_optarg" ;;
305 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
307 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
308 prefix
="$ac_optarg" ;;
310 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
311 |
--program-pre |
--program-pr |
--program-p)
312 ac_prev
=program_prefix
;;
313 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
314 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
315 program_prefix
="$ac_optarg" ;;
317 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
318 |
--program-suf |
--program-su |
--program-s)
319 ac_prev
=program_suffix
;;
320 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
321 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
322 program_suffix
="$ac_optarg" ;;
324 -program-transform-name |
--program-transform-name \
325 |
--program-transform-nam |
--program-transform-na \
326 |
--program-transform-n |
--program-transform- \
327 |
--program-transform |
--program-transfor \
328 |
--program-transfo |
--program-transf \
329 |
--program-trans |
--program-tran \
330 |
--progr-tra |
--program-tr |
--program-t)
331 ac_prev
=program_transform_name
;;
332 -program-transform-name=* |
--program-transform-name=* \
333 |
--program-transform-nam=* |
--program-transform-na=* \
334 |
--program-transform-n=* |
--program-transform-=* \
335 |
--program-transform=* |
--program-transfor=* \
336 |
--program-transfo=* |
--program-transf=* \
337 |
--program-trans=* |
--program-tran=* \
338 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
339 program_transform_name
="$ac_optarg" ;;
341 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
342 |
-silent |
--silent |
--silen |
--sile |
--sil)
345 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
347 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
349 sbindir
="$ac_optarg" ;;
351 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
352 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
353 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
355 ac_prev
=sharedstatedir
;;
356 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
357 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
358 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
360 sharedstatedir
="$ac_optarg" ;;
362 -site |
--site |
--sit)
364 -site=* |
--site=* |
--sit=*)
367 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
369 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
370 srcdir
="$ac_optarg" ;;
372 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
373 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
374 ac_prev
=sysconfdir
;;
375 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
376 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
377 sysconfdir
="$ac_optarg" ;;
379 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
381 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
382 target
="$ac_optarg" ;;
384 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
387 -version |
--version |
--versio |
--versi |
--vers)
388 echo "configure generated by autoconf version 2.13"
392 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package
=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* |
--without-*)
405 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package
=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
414 # Obsolete; use --with-x.
417 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
418 |
--x-incl |
--x-inc |
--x-in |
--x-i)
419 ac_prev
=x_includes
;;
420 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
421 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
422 x_includes
="$ac_optarg" ;;
424 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
425 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
426 ac_prev
=x_libraries
;;
427 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
428 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
429 x_libraries
="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE
; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
479 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
480 |
--no-cr |
--no-c) ;;
481 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
482 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
483 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest
* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file
=java
/lang
/System.java
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted
=yes
511 # Try the directory containing this script, then its parent.
513 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
516 if test ! -r $srcdir/$ac_unique_file; then
520 ac_srcdir_defaulted
=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE
; then
534 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
536 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 for ac_site_file
in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
546 if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
550 echo "creating cache $cache_file"
555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556 ac_cpp
='$CPP $CPPFLAGS'
557 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559 cross_compiling
=$ac_cv_prog_cc_cross
563 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
572 ac_n
= ac_c
='\c' ac_t
=
577 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
578 echo "configure:579: checking whether ln -s works" >&5
579 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
583 if ln -s X conftestdata
2>/dev
/null
586 ac_cv_prog_LN_S
="ln -s"
591 LN_S
="$ac_cv_prog_LN_S"
592 if test "$ac_cv_prog_LN_S" = "ln -s"; then
593 echo "$ac_t""yes" 1>&6
595 echo "$ac_t""no" 1>&6
599 # Check whether --with-target-subdir or --without-target-subdir was given.
600 if test "${with_target_subdir+set}" = set; then
601 withval
="$with_target_subdir"
605 # Check whether --with-cross-host or --without-cross-host was given.
606 if test "${with_cross_host+set}" = set; then
607 withval
="$with_cross_host"
612 # Find a good install program. We prefer a C program (faster),
613 # so one script is as good as another. But avoid the broken or
614 # incompatible versions:
615 # SysV /etc/install, /usr/sbin/install
616 # SunOS /usr/etc/install
619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
622 # ./install, which can be erroneously created by make from ./install.sh.
623 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
624 echo "configure:625: checking for a BSD compatible install" >&5
625 if test -z "$INSTALL"; then
626 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
629 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
630 for ac_dir
in $PATH; do
631 # Account for people who put trailing slashes in PATH elements.
633 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
635 # OSF1 and SCO ODT 3.0 have their own names for install.
636 # Don't use installbsd from OSF since it installs stuff as root
638 for ac_prog
in ginstall scoinst
install; do
639 if test -f $ac_dir/$ac_prog; then
640 if test $ac_prog = install &&
641 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
642 # AIX install. It has an incompatible calling convention.
645 ac_cv_path_install
="$ac_dir/$ac_prog -c"
656 if test "${ac_cv_path_install+set}" = set; then
657 INSTALL
="$ac_cv_path_install"
659 # As a last resort, use the slow shell script. We don't cache a
660 # path for INSTALL within a source directory, because that will
661 # break other packages using the cache if that directory is
662 # removed, or if the path is relative.
663 INSTALL
="$ac_install_sh"
666 echo "$ac_t""$INSTALL" 1>&6
668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
669 # It thinks the first close brace ends the variable substitution.
670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
674 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
676 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
677 echo "configure:678: checking whether build environment is sane" >&5
680 echo timestamp
> conftestfile
681 # Do `set' in a subshell so we don't clobber the current shell's
682 # arguments. Must try -L first in case configure is actually a
683 # symlink; some systems play weird games with the mod time of symlinks
684 # (eg FreeBSD returns the mod time of the symlink's containing
687 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
688 if test "$*" = "X"; then
690 set X
`ls -t $srcdir/configure conftestfile`
692 if test "$*" != "X $srcdir/configure conftestfile" \
693 && test "$*" != "X conftestfile $srcdir/configure"; then
695 # If neither matched, then we have a broken ls. This can happen
696 # if, for instance, CONFIG_SHELL is bash and it inherits a
697 # broken ls alias from the environment. This has actually
698 # happened. Such a system could not be considered "sane".
699 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
700 alias in your environment" 1>&2; exit 1; }
703 test "$2" = conftestfile
709 { echo "configure: error: newly created file is older than distributed files!
710 Check your system clock" 1>&2; exit 1; }
713 echo "$ac_t""yes" 1>&6
714 if test "$program_transform_name" = s
,x
,x
,; then
715 program_transform_name
=
717 # Double any \ or $. echo might interpret backslashes.
718 cat <<\EOF_SED
> conftestsed
719 s
,\\,\\\\,g
; s
,\$
,$$
,g
721 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
724 test "$program_prefix" != NONE
&&
725 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
726 # Use a double $ so make ignores it.
727 test "$program_suffix" != NONE
&&
728 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
730 # sed with no file args requires a program.
731 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
733 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
734 echo "configure:735: checking whether ${MAKE-make} sets \${MAKE}" >&5
735 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
736 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
739 cat > conftestmake
<<\EOF
741 @
echo 'ac_maketemp="${MAKE}"'
743 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
744 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
745 if test -n "$ac_maketemp"; then
746 eval ac_cv_prog_make_
${ac_make}_set
=yes
748 eval ac_cv_prog_make_
${ac_make}_set
=no
752 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
753 echo "$ac_t""yes" 1>&6
756 echo "$ac_t""no" 1>&6
757 SET_MAKE
="MAKE=${MAKE-make}"
760 if test $host != $build; then
761 ac_tool_prefix
=${host_alias}-
766 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
767 echo "configure:768: checking for Cygwin environment" >&5
768 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
771 cat > conftest.
$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
778 #define __CYGWIN__ __CYGWIN32__
783 if { (eval echo configure
:784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
787 echo "configure: failed program was:" >&5
788 cat conftest.
$ac_ext >&5
796 echo "$ac_t""$ac_cv_cygwin" 1>&6
798 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
799 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
800 echo "configure:801: checking for mingw32 environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 cat > conftest.
$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
812 if { (eval echo configure
:813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
816 echo "configure: failed program was:" >&5
817 cat conftest.
$ac_ext >&5
825 echo "$ac_t""$ac_cv_mingw32" 1>&6
827 test "$ac_cv_mingw32" = yes && MINGW32
=yes
829 # Check whether --enable-multilib or --disable-multilib was given.
830 if test "${enable_multilib+set}" = set; then
831 enableval
="$enable_multilib"
832 case "${enableval}" in
835 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
842 # When building with srcdir == objdir, links to the source files will
843 # be created in directories within the target_subdir. We have to
844 # adjust toplevel_srcdir accordingly, so that configure finds
845 # install-sh and other auxiliary files that live in the top-level
847 if test "${srcdir}" = "."; then
848 if test -z "${with_target_subdir}"; then
851 if test "${with_target_subdir}" != "."; then
852 toprel
="${with_multisrctop}../.."
854 toprel
="${with_multisrctop}.."
861 libgcj_basedir
=$srcdir/$toprel/.
/libjava
865 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
866 if test -f $ac_dir/install-sh
; then
868 ac_install_sh
="$ac_aux_dir/install-sh -c"
870 elif test -f $ac_dir/install.sh
; then
872 ac_install_sh
="$ac_aux_dir/install.sh -c"
876 if test -z "$ac_aux_dir"; then
877 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
879 ac_config_guess=$ac_aux_dir/config.guess
880 ac_config_sub=$ac_aux_dir/config.sub
881 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
884 # This overrides the previous occurrence for automake, but not for
885 # autoconf, which is exactly what we want.
887 for ac_dir in .. $srcdir/..; do
888 if test -f $ac_dir/install-sh; then
890 ac_install_sh="$ac_aux_dir/install-sh
-c"
892 elif test -f $ac_dir/install.sh; then
894 ac_install_sh="$ac_aux_dir/install.sh
-c"
898 if test -z "$ac_aux_dir"; then
899 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
901 ac_config_guess=$ac_aux_dir/config.guess
902 ac_config_sub=$ac_aux_dir/config.sub
903 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
907 # This works around an automake problem.
908 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs
"
912 # Do some error checking and defaulting for the host and target type.
914 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
917 # 1. You are not allowed to specify --host, --target, and nonopt at the
919 # 2. Host defaults to nonopt.
920 # 3. If nonopt is not specified, then host defaults to the current host,
921 # as determined by config.guess.
922 # 4. Target and build default to nonopt.
923 # 5. If nonopt is not specified, then target and build default to host.
925 # The aliases save the names the user supplied, while $host etc.
926 # will get canonicalized.
927 case $host---$target---$nonopt in
928 NONE---*---* | *---NONE---* | *---*---NONE) ;;
929 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
933 # Make sure we can run config.sub.
934 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
935 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
938 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
939 echo "configure
:940: checking
host system
type" >&5
942 case "$host_alias" in
946 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
947 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
949 *) host_alias=$nonopt ;;
953 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
954 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
955 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
956 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
957 echo "$ac_t""$host" 1>&6
959 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
960 echo "configure
:961: checking target system
type" >&5
963 case "$target_alias" in
966 NONE) target_alias=$host_alias ;;
967 *) target_alias=$nonopt ;;
971 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
972 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
973 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
974 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
975 echo "$ac_t""$target" 1>&6
977 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
978 echo "configure
:979: checking build system
type" >&5
981 case "$build_alias" in
984 NONE) build_alias=$host_alias ;;
985 *) build_alias=$nonopt ;;
989 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
990 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
993 echo "$ac_t""$build" 1>&6
995 test "$host_alias" != "$target_alias" &&
996 test "$program_prefix$program_suffix$program_transform_name" = \
998 program_prefix=${target_alias}-
1004 # Extract the first word of "gcc
", so it can be a program name with args.
1005 set dummy gcc; ac_word=$2
1006 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1007 echo "configure
:1008: checking
for $ac_word" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1009 echo $ac_n "(cached
) $ac_c" 1>&6
1011 if test -n "$CC"; then
1012 ac_cv_prog_CC="$CC" # Let the user override the test.
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1016 for ac_dir in $ac_dummy; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1027 if test -n "$CC"; then
1028 echo "$ac_t""$CC" 1>&6
1030 echo "$ac_t""no
" 1>&6
1033 if test -z "$CC"; then
1034 # Extract the first word of "cc
", so it can be a program name with args.
1035 set dummy cc; ac_word=$2
1036 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1037 echo "configure
:1038: checking
for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039 echo $ac_n "(cached
) $ac_c" 1>&6
1041 if test -n "$CC"; then
1042 ac_cv_prog_CC="$CC" # Let the user override the test.
1044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047 for ac_dir in $ac_dummy; do
1048 test -z "$ac_dir" && ac_dir=.
1049 if test -f $ac_dir/$ac_word; then
1050 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1051 ac_prog_rejected=yes
1059 if test $ac_prog_rejected = yes; then
1060 # We found a bogon in the path, so make sure we never use it.
1061 set dummy $ac_cv_prog_CC
1063 if test $# -gt 0; then
1064 # We chose a different compiler from the bogus one.
1065 # However, it has the same basename, so the bogon will be chosen
1066 # first if we set CC to just the basename; use the full file name.
1068 set dummy "$ac_dir/$ac_word" "$@
"
1076 if test -n "$CC"; then
1077 echo "$ac_t""$CC" 1>&6
1079 echo "$ac_t""no
" 1>&6
1082 if test -z "$CC"; then
1083 case "`uname -s`" in
1085 # Extract the first word of "cl
", so it can be a program name with args.
1086 set dummy cl; ac_word=$2
1087 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1088 echo "configure
:1089: checking
for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1090 echo $ac_n "(cached
) $ac_c" 1>&6
1092 if test -n "$CC"; then
1093 ac_cv_prog_CC="$CC" # Let the user override the test.
1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1097 for ac_dir in $ac_dummy; do
1098 test -z "$ac_dir" && ac_dir=.
1099 if test -f $ac_dir/$ac_word; then
1108 if test -n "$CC"; then
1109 echo "$ac_t""$CC" 1>&6
1111 echo "$ac_t""no
" 1>&6
1116 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1120 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1121 echo "configure
:1122: checking whether we are using GNU C
" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1123 echo $ac_n "(cached
) $ac_c" 1>&6
1125 cat > conftest.c <<EOF
1130 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1137 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1139 if test $ac_cv_prog_gcc = yes; then
1145 ac_test_CFLAGS="${CFLAGS+set}"
1146 ac_save_CFLAGS="$CFLAGS"
1148 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1149 echo "configure
:1150: checking whether
${CC-cc} accepts
-g" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1151 echo $ac_n "(cached
) $ac_c" 1>&6
1153 echo 'void f(){}' > conftest.c
1154 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1163 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1164 if test "$ac_test_CFLAGS" = set; then
1165 CFLAGS="$ac_save_CFLAGS"
1166 elif test $ac_cv_prog_cc_g = yes; then
1167 if test "$GCC" = yes; then
1173 if test "$GCC" = yes; then
1181 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1182 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1183 # different definition of CXX than other directories, since we don't
1184 # depend on libstdc++-v3 having already been built.
1188 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1189 # flags that come in CXX while configuring libjava. They're different
1190 # from those used for all other target libraries. If CXX is set in
1191 # the environment, respect that here.
1193 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1195 # Extract the first word of "$ac_prog", so it can be a program name with args.
1196 set dummy $ac_prog; ac_word=$2
1197 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1198 echo "configure
:1199: checking
for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1200 echo $ac_n "(cached
) $ac_c" 1>&6
1202 if test -n "$glibjava_CXX"; then
1203 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_glibjava_CXX="$ac_prog"
1217 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1218 if test -n "$glibjava_CXX"; then
1219 echo "$ac_t""$glibjava_CXX" 1>&6
1221 echo "$ac_t""no
" 1>&6
1224 test -n "$glibjava_CXX" && break
1226 test -n "$glibjava_CXX" || glibjava_CXX="gcc
"
1230 test -z "$glibjava_CXX" && { echo "configure
: error
: no acceptable c
++ found
in \
$PATH" 1>&2; exit 1; }
1232 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1233 echo "configure
:1234: checking whether we are using GNU C
++" >&5
1234 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1235 echo $ac_n "(cached
) $ac_c" 1>&6
1237 cat > conftest.C <<EOF
1242 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1249 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1251 if test $ac_cv_prog_gxx = yes; then
1253 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1254 ac_save_CXXFLAGS="$CXXFLAGS"
1256 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1257 echo "configure
:1258: checking whether
${CXX-g++} accepts
-g" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1259 echo $ac_n "(cached
) $ac_c" 1>&6
1261 echo 'void f(){}' > conftest.cc
1262 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1263 ac_cv_prog_cxx_g=yes
1271 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1272 if test "$ac_test_CXXFLAGS" = set; then
1273 CXXFLAGS="$ac_save_CXXFLAGS"
1274 elif test $ac_cv_prog_cxx_g = yes; then
1281 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1291 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1292 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1294 cat >> confdefs.h <<EOF
1295 #define PACKAGE "$PACKAGE"
1298 cat >> confdefs.h <<EOF
1299 #define VERSION "$VERSION"
1304 missing_dir=`cd $ac_aux_dir && pwd`
1305 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
1306 echo "configure
:1307: checking
for working aclocal
" >&5
1307 # Run test in a subshell; some versions of sh will print an error if
1308 # an executable is not found, even if stderr is redirected.
1309 # Redirect stdin to placate older versions of autoconf. Sigh.
1310 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1312 echo "$ac_t""found
" 1>&6
1314 ACLOCAL="$missing_dir/missing aclocal
"
1315 echo "$ac_t""missing
" 1>&6
1318 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1319 echo "configure
:1320: checking
for working autoconf
" >&5
1320 # Run test in a subshell; some versions of sh will print an error if
1321 # an executable is not found, even if stderr is redirected.
1322 # Redirect stdin to placate older versions of autoconf. Sigh.
1323 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1325 echo "$ac_t""found
" 1>&6
1327 AUTOCONF="$missing_dir/missing autoconf
"
1328 echo "$ac_t""missing
" 1>&6
1331 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
1332 echo "configure
:1333: checking
for working automake
" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
1338 echo "$ac_t""found
" 1>&6
1340 AUTOMAKE="$missing_dir/missing automake
"
1341 echo "$ac_t""missing
" 1>&6
1344 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1345 echo "configure
:1346: checking
for working autoheader
" >&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 (autoheader --version) < /dev/null > /dev/null 2>&1; then
1350 AUTOHEADER=autoheader
1351 echo "$ac_t""found
" 1>&6
1353 AUTOHEADER="$missing_dir/missing autoheader
"
1354 echo "$ac_t""missing
" 1>&6
1357 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1358 echo "configure
:1359: checking
for working makeinfo
" >&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 (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1364 echo "$ac_t""found
" 1>&6
1366 MAKEINFO="$missing_dir/missing makeinfo
"
1367 echo "$ac_t""missing
" 1>&6
1372 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1373 # run it explicitly here, it will be run implicitly before
1374 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1375 # be run before AC_CANONICAL_HOST.
1376 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1377 echo "configure
:1378: checking build system
type" >&5
1380 case "$build_alias" in
1383 NONE) build_alias=$host_alias ;;
1384 *) build_alias=$nonopt ;;
1388 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1389 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1392 echo "$ac_t""$build" 1>&6
1395 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1396 set dummy ${ac_tool_prefix}as; ac_word=$2
1397 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1398 echo "configure
:1399: checking
for $ac_word" >&5
1399 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1400 echo $ac_n "(cached
) $ac_c" 1>&6
1402 if test -n "$AS"; then
1403 ac_cv_prog_AS="$AS" # Let the user override the test.
1405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1407 for ac_dir in $ac_dummy; do
1408 test -z "$ac_dir" && ac_dir=.
1409 if test -f $ac_dir/$ac_word; then
1410 ac_cv_prog_AS="${ac_tool_prefix}as
"
1415 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1419 if test -n "$AS"; then
1420 echo "$ac_t""$AS" 1>&6
1422 echo "$ac_t""no
" 1>&6
1427 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1428 set dummy ${ac_tool_prefix}ar; ac_word=$2
1429 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1430 echo "configure
:1431: checking
for $ac_word" >&5
1431 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1432 echo $ac_n "(cached
) $ac_c" 1>&6
1434 if test -n "$AR"; then
1435 ac_cv_prog_AR="$AR" # Let the user override the test.
1437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1439 for ac_dir in $ac_dummy; do
1440 test -z "$ac_dir" && ac_dir=.
1441 if test -f $ac_dir/$ac_word; then
1442 ac_cv_prog_AR="${ac_tool_prefix}ar"
1447 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1451 if test -n "$AR"; then
1452 echo "$ac_t""$AR" 1>&6
1454 echo "$ac_t""no
" 1>&6
1459 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1461 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1462 echo "configure
:1463: checking
for $ac_word" >&5
1463 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1464 echo $ac_n "(cached
) $ac_c" 1>&6
1466 if test -n "$RANLIB"; then
1467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1471 for ac_dir in $ac_dummy; do
1472 test -z "$ac_dir" && ac_dir=.
1473 if test -f $ac_dir/$ac_word; then
1474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1481 RANLIB="$ac_cv_prog_RANLIB"
1482 if test -n "$RANLIB"; then
1483 echo "$ac_t""$RANLIB" 1>&6
1485 echo "$ac_t""no
" 1>&6
1489 if test -z "$ac_cv_prog_RANLIB"; then
1490 if test -n "$ac_tool_prefix"; then
1491 # Extract the first word of "ranlib
", so it can be a program name with args.
1492 set dummy ranlib; ac_word=$2
1493 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1494 echo "configure
:1495: checking
for $ac_word" >&5
1495 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1496 echo $ac_n "(cached
) $ac_c" 1>&6
1498 if test -n "$RANLIB"; then
1499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1503 for ac_dir in $ac_dummy; do
1504 test -z "$ac_dir" && ac_dir=.
1505 if test -f $ac_dir/$ac_word; then
1506 ac_cv_prog_RANLIB="ranlib
"
1511 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1514 RANLIB="$ac_cv_prog_RANLIB"
1515 if test -n "$RANLIB"; then
1516 echo "$ac_t""$RANLIB" 1>&6
1518 echo "$ac_t""no
" 1>&6
1527 # Find a good install program. We prefer a C program (faster),
1528 # so one script is as good as another. But avoid the broken or
1529 # incompatible versions:
1530 # SysV /etc/install, /usr/sbin/install
1531 # SunOS /usr/etc/install
1532 # IRIX /sbin/install
1534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1537 # ./install, which can be erroneously created by make from ./install.sh.
1538 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1539 echo "configure
:1540: checking
for a BSD compatible
install" >&5
1540 if test -z "$INSTALL"; then
1541 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1542 echo $ac_n "(cached
) $ac_c" 1>&6
1544 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1545 for ac_dir in $PATH; do
1546 # Account for people who put trailing slashes in PATH elements.
1548 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1550 # OSF1 and SCO ODT 3.0 have their own names for install.
1551 # Don't use installbsd from OSF since it installs stuff as root
1553 for ac_prog in ginstall scoinst install; do
1554 if test -f $ac_dir/$ac_prog; then
1555 if test $ac_prog = install &&
1556 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1557 # AIX install. It has an incompatible calling convention.
1560 ac_cv_path_install="$ac_dir/$ac_prog -c"
1571 if test "${ac_cv_path_install+set}" = set; then
1572 INSTALL="$ac_cv_path_install"
1574 # As a last resort, use the slow shell script. We don't cache a
1575 # path for INSTALL within a source directory, because that will
1576 # break other packages using the cache if that directory is
1577 # removed, or if the path is relative.
1578 INSTALL="$ac_install_sh"
1581 echo "$ac_t""$INSTALL" 1>&6
1583 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1584 # It thinks the first close brace ends the variable substitution.
1585 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1592 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1593 echo "configure
:1594: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1594 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1595 if test "${enable_maintainer_mode+set}" = set; then
1596 enableval="$enable_maintainer_mode"
1597 USE_MAINTAINER_MODE=$enableval
1599 USE_MAINTAINER_MODE=no
1602 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1605 if test $USE_MAINTAINER_MODE = yes; then
1606 MAINTAINER_MODE_TRUE=
1607 MAINTAINER_MODE_FALSE='#'
1609 MAINTAINER_MODE_TRUE='#'
1610 MAINTAINER_MODE_FALSE=
1612 MAINT=$MAINTAINER_MODE_TRUE
1616 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1617 # at least currently, we never actually build a program, so we never
1618 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1619 # fails, because we are probably configuring with a cross compiler
1620 # which cant create executables. So we include AC_EXEEXT to keep
1621 # automake happy, but we don't execute it, since we don't care about
1624 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1625 # to nothing, so nothing would remain between `then' and `fi' if it
1626 # were not for the `:' below.
1630 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1631 echo "configure
:1632: checking
for executable suffix
" >&5
1632 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1633 echo $ac_n "(cached
) $ac_c" 1>&6
1635 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1639 echo 'int main () { return 0; }' > conftest.$ac_ext
1641 if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1642 for file in conftest.*; do
1644 *.c | *.o | *.obj) ;;
1645 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1649 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1652 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1657 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1658 echo "$ac_t""${ac_cv_exeext}" 1>&6
1663 # configure.host sets the following important variables
1664 # libgcj_cflags - host specific C compiler flags
1665 # libgcj_cxxflags - host specific C++ compiler flags
1666 # libgcj_javaflags - host specific Java compiler flags
1672 . ${srcdir}/configure.host
1674 LIBGCJ_CFLAGS="${libgcj_cflags}"
1675 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1676 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1686 # Only use libltdl for native builds.
1687 if test -z "${with_cross_host}"; then
1688 case $enable_ltdl_convenience in
1689 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1690 "") enable_ltdl_convenience=yes
1691 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1693 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1694 INCLTDL='-I${top_srcdir}/''libltdl'
1698 cat >> confdefs.h <<\EOF
1702 # Sigh. Libtool's macro doesn't do the right thing.
1703 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1704 # FIXME: this is a hack.
1705 sub_auxdir="`cd $ac_aux_dir && pwd`"
1706 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1711 # Check whether --enable-shared or --disable-shared was given.
1712 if test "${enable_shared+set}" = set; then
1713 enableval="$enable_shared"
1714 p=${PACKAGE-default}
1716 yes) enable_shared=yes ;;
1717 no) enable_shared=no ;;
1720 # Look at the argument we got. We use all the common list separators.
1721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1722 for pkg in $enableval; do
1723 if test "X
$pkg" = "X
$p"; then
1734 # Check whether --enable-static or --disable-static was given.
1735 if test "${enable_static+set}" = set; then
1736 enableval="$enable_static"
1737 p=${PACKAGE-default}
1739 yes) enable_static=yes ;;
1740 no) enable_static=no ;;
1743 # Look at the argument we got. We use all the common list separators.
1744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1745 for pkg in $enableval; do
1746 if test "X
$pkg" = "X
$p"; then
1757 # Check whether --enable-fast-install or --disable-fast-install was given.
1758 if test "${enable_fast_install+set}" = set; then
1759 enableval="$enable_fast_install"
1760 p=${PACKAGE-default}
1762 yes) enable_fast_install=yes ;;
1763 no) enable_fast_install=no ;;
1765 enable_fast_install=no
1766 # Look at the argument we got. We use all the common list separators.
1767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1768 for pkg in $enableval; do
1769 if test "X
$pkg" = "X
$p"; then
1770 enable_fast_install=yes
1777 enable_fast_install=yes
1780 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1781 if test "${with_gnu_ld+set}" = set; then
1782 withval="$with_gnu_ld"
1783 test "$withval" = no || with_gnu_ld=yes
1789 if test "$GCC" = yes; then
1790 # Check if gcc -print-prog-name=ld gives a path.
1791 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1792 echo "configure
:1793: checking
for ld used by GCC
" >&5
1795 # gcc leaves a trailing carriage return which upsets mingw
1796 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1798 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1801 # Accept absolute paths.
1802 [\\/]* | [A-Za-z]:[\\/]*)
1803 re_direlt='/[^/][^/]*/\.\./'
1804 # Canonicalize the path of ld
1805 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1806 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1807 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1809 test -z "$LD" && LD="$ac_prog"
1812 # If it fails, then pretend we aren't using GCC.
1816 # If it is relative, then search for the first ld in PATH.
1820 elif test "$with_gnu_ld" = yes; then
1821 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1822 echo "configure
:1823: checking
for GNU ld
" >&5
1824 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1825 echo "configure
:1826: checking
for non-GNU ld
" >&5
1827 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1828 echo $ac_n "(cached
) $ac_c" 1>&6
1830 if test -z "$LD"; then
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1832 for ac_dir in $PATH; do
1833 test -z "$ac_dir" && ac_dir=.
1834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1835 lt_cv_path_LD="$ac_dir/$ac_prog"
1836 # Check to see if the program is GNU ld. I'd rather use --version,
1837 # but apparently some GNU ld's only accept -v.
1838 # Break only if it was the GNU/non-GNU ld that we prefer.
1839 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1840 test "$with_gnu_ld" != no && break
1842 test "$with_gnu_ld" != yes && break
1848 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1853 if test -n "$LD"; then
1854 echo "$ac_t""$LD" 1>&6
1856 echo "$ac_t""no
" 1>&6
1858 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1859 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1860 echo "configure
:1861: checking
if the linker
($LD) is GNU ld
" >&5
1861 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1862 echo $ac_n "(cached
) $ac_c" 1>&6
1864 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1865 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1866 lt_cv_prog_gnu_ld=yes
1868 lt_cv_prog_gnu_ld=no
1872 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1873 with_gnu_ld=$lt_cv_prog_gnu_ld
1876 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1877 echo "configure
:1878: checking
for $LD option to reload object files
" >&5
1878 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1879 echo $ac_n "(cached
) $ac_c" 1>&6
1881 lt_cv_ld_reload_flag='-r'
1884 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1885 reload_flag=$lt_cv_ld_reload_flag
1886 test -n "$reload_flag" && reload_flag=" $reload_flag"
1888 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1889 echo "configure
:1890: checking
for BSD-compatible nm
" >&5
1890 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1891 echo $ac_n "(cached
) $ac_c" 1>&6
1893 if test -n "$NM"; then
1894 # Let the user override the test.
1897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1898 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1899 test -z "$ac_dir" && ac_dir=.
1900 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1901 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1902 # Check to see if the nm accepts a BSD-compat flag.
1903 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1904 # nm: unknown option "B
" ignored
1905 # Tru64's nm complains that /dev/null is an invalid object file
1906 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1907 lt_cv_path_NM="$tmp_nm -B"
1909 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1910 lt_cv_path_NM="$tmp_nm -p"
1913 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1914 continue # so that we can try to find one that supports BSD flags
1919 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1924 echo "$ac_t""$NM" 1>&6
1926 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1927 echo "configure
:1928: checking how to recognise dependant libraries
" >&5
1928 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1929 echo $ac_n "(cached
) $ac_c" 1>&6
1931 lt_cv_file_magic_cmd='$MAGIC_CMD'
1932 lt_cv_file_magic_test_file=
1933 lt_cv_deplibs_check_method='unknown'
1934 # Need to set the preceding variable on all platforms that support
1935 # interlibrary dependencies.
1936 # 'none' -- dependencies not supported.
1937 # `unknown' -- same as none, but documents that we really don't know.
1938 # 'pass_all' -- all dependencies passed with no checks.
1939 # 'test_compile' -- check by making test program.
1940 # 'file_magic [regex]' -- check by looking for files in library path
1941 # which responds to the $file_magic_cmd with a given egrep regex.
1942 # If you have `file' or equivalent on your system and you're not sure
1943 # whether `pass_all' will *always* work, you probably want this one.
1947 lt_cv_deplibs_check_method=pass_all
1951 lt_cv_deplibs_check_method=pass_all
1955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1956 lt_cv_file_magic_cmd='/usr/bin/file -L'
1957 lt_cv_file_magic_test_file=/shlib/libc.so
1960 cygwin* | mingw* |pw32*)
1961 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1962 lt_cv_file_magic_cmd='$OBJDUMP -f'
1965 darwin* | rhapsody*)
1966 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1967 lt_cv_file_magic_cmd='/usr/bin/file -L'
1969 rhapsody* | darwin1.012)
1970 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1973 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1979 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1982 # Not sure whether the presence of OpenBSD here was a mistake.
1983 # Let's accept both of them until this is cleared up.
1984 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1985 lt_cv_file_magic_cmd=/usr/bin/file
1986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1990 lt_cv_deplibs_check_method=pass_all
1995 lt_cv_deplibs_check_method=pass_all
1999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2000 lt_cv_file_magic_cmd=/usr/bin/file
2001 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2007 # this will be overridden with pass_all, but let us keep it just in case
2008 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2012 *-32|*"-32 ") libmagic=32-bit;;
2013 *-n32|*"-n32 ") libmagic=N32;;
2014 *-64|*"-64 ") libmagic=64-bit;;
2015 *) libmagic=never-match;;
2017 # this will be overridden with pass_all, but let us keep it just in case
2018 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2021 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2022 lt_cv_deplibs_check_method=pass_all
2025 # This must be Linux ELF.
2028 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2029 lt_cv_deplibs_check_method=pass_all ;;
2031 # glibc up to 2.1.1 does not perform some relocations on ARM
2032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2034 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2038 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2039 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2041 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2047 lt_cv_file_magic_cmd=/usr/bin/file
2048 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2051 osf3* | osf4* | osf5*)
2052 # this will be overridden with pass_all, but let us keep it just in case
2053 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2054 lt_cv_file_magic_test_file=/shlib/libc.so
2055 lt_cv_deplibs_check_method=pass_all
2059 lt_cv_deplibs_check_method=pass_all
2063 lt_cv_deplibs_check_method=pass_all
2064 lt_cv_file_magic_test_file=/lib/libc.so
2067 sysv5uw[78]* | sysv4*uw2*)
2068 lt_cv_deplibs_check_method=pass_all
2071 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2072 case $host_vendor in
2074 lt_cv_deplibs_check_method=pass_all
2077 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]'
2078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2086 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2087 file_magic_cmd=$lt_cv_file_magic_cmd
2088 deplibs_check_method=$lt_cv_deplibs_check_method
2090 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2091 echo "configure
:2092: checking
for object suffix
" >&5
2092 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2093 echo $ac_n "(cached
) $ac_c" 1>&6
2096 echo 'int i = 1;' > conftest.$ac_ext
2097 if { (eval echo configure:2098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2098 for ac_file in conftest.*; do
2101 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2105 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2110 echo "$ac_t""$ac_cv_objext" 1>&6
2111 OBJEXT=$ac_cv_objext
2112 ac_objext=$ac_cv_objext
2114 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2116 # Only perform the check for file, if the check method requires it
2117 case $deplibs_check_method in
2119 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2120 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2121 echo "configure
:2122: checking
for ${ac_tool_prefix}file" >&5
2122 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2123 echo $ac_n "(cached
) $ac_c" 1>&6
2127 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2133 ac_save_MAGIC_CMD="$MAGIC_CMD"
2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2135 ac_dummy="/usr
/bin
:$PATH"
2136 for ac_dir in $ac_dummy; do
2137 test -z "$ac_dir" && ac_dir=.
2138 if test -f $ac_dir/${ac_tool_prefix}file; then
2139 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2140 if test -n "$file_magic_test_file"; then
2141 case $deplibs_check_method in
2143 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2145 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2146 egrep "$file_magic_regex" > /dev/null; then
2151 *** Warning: the command libtool uses to detect shared libraries,
2152 *** $file_magic_cmd, produces output that libtool cannot recognize.
2153 *** The result is that libtool may fail to recognize shared libraries
2154 *** as such. This will affect the creation of libtool libraries that
2155 *** depend on shared libraries, but programs linked with such libtool
2156 *** libraries will work regardless of this problem. Nevertheless, you
2157 *** may want to report the problem to your system manager and/or to
2158 *** bug-libtool@gnu.org
2168 MAGIC_CMD="$ac_save_MAGIC_CMD"
2173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2174 if test -n "$MAGIC_CMD"; then
2175 echo "$ac_t""$MAGIC_CMD" 1>&6
2177 echo "$ac_t""no
" 1>&6
2180 if test -z "$lt_cv_path_MAGIC_CMD"; then
2181 if test -n "$ac_tool_prefix"; then
2182 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2183 echo "configure
:2184: checking
for file" >&5
2184 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2185 echo $ac_n "(cached
) $ac_c" 1>&6
2189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2195 ac_save_MAGIC_CMD="$MAGIC_CMD"
2196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2197 ac_dummy="/usr
/bin
:$PATH"
2198 for ac_dir in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir=.
2200 if test -f $ac_dir/file; then
2201 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2202 if test -n "$file_magic_test_file"; then
2203 case $deplibs_check_method in
2205 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2207 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2208 egrep "$file_magic_regex" > /dev/null; then
2213 *** Warning: the command libtool uses to detect shared libraries,
2214 *** $file_magic_cmd, produces output that libtool cannot recognize.
2215 *** The result is that libtool may fail to recognize shared libraries
2216 *** as such. This will affect the creation of libtool libraries that
2217 *** depend on shared libraries, but programs linked with such libtool
2218 *** libraries will work regardless of this problem. Nevertheless, you
2219 *** may want to report the problem to your system manager and/or to
2220 *** bug-libtool@gnu.org
2230 MAGIC_CMD="$ac_save_MAGIC_CMD"
2235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2236 if test -n "$MAGIC_CMD"; then
2237 echo "$ac_t""$MAGIC_CMD" 1>&6
2239 echo "$ac_t""no
" 1>&6
2251 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2253 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2254 echo "configure
:2255: checking
for $ac_word" >&5
2255 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2256 echo $ac_n "(cached
) $ac_c" 1>&6
2258 if test -n "$RANLIB"; then
2259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2263 for ac_dir in $ac_dummy; do
2264 test -z "$ac_dir" && ac_dir=.
2265 if test -f $ac_dir/$ac_word; then
2266 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2273 RANLIB="$ac_cv_prog_RANLIB"
2274 if test -n "$RANLIB"; then
2275 echo "$ac_t""$RANLIB" 1>&6
2277 echo "$ac_t""no
" 1>&6
2281 if test -z "$ac_cv_prog_RANLIB"; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "ranlib
", so it can be a program name with args.
2284 set dummy ranlib; ac_word=$2
2285 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2286 echo "configure
:2287: checking
for $ac_word" >&5
2287 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2288 echo $ac_n "(cached
) $ac_c" 1>&6
2290 if test -n "$RANLIB"; then
2291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2295 for ac_dir in $ac_dummy; do
2296 test -z "$ac_dir" && ac_dir=.
2297 if test -f $ac_dir/$ac_word; then
2298 ac_cv_prog_RANLIB="ranlib
"
2303 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2306 RANLIB="$ac_cv_prog_RANLIB"
2307 if test -n "$RANLIB"; then
2308 echo "$ac_t""$RANLIB" 1>&6
2310 echo "$ac_t""no
" 1>&6
2318 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2321 echo "configure
:2322: checking
for $ac_word" >&5
2322 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2323 echo $ac_n "(cached
) $ac_c" 1>&6
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2330 for ac_dir in $ac_dummy; do
2331 test -z "$ac_dir" && ac_dir=.
2332 if test -f $ac_dir/$ac_word; then
2333 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2340 STRIP="$ac_cv_prog_STRIP"
2341 if test -n "$STRIP"; then
2342 echo "$ac_t""$STRIP" 1>&6
2344 echo "$ac_t""no
" 1>&6
2348 if test -z "$ac_cv_prog_STRIP"; then
2349 if test -n "$ac_tool_prefix"; then
2350 # Extract the first word of "strip
", so it can be a program name with args.
2351 set dummy strip; ac_word=$2
2352 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2353 echo "configure
:2354: checking
for $ac_word" >&5
2354 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2355 echo $ac_n "(cached
) $ac_c" 1>&6
2357 if test -n "$STRIP"; then
2358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2362 for ac_dir in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir=.
2364 if test -f $ac_dir/$ac_word; then
2365 ac_cv_prog_STRIP="strip
"
2370 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2373 STRIP="$ac_cv_prog_STRIP"
2374 if test -n "$STRIP"; then
2375 echo "$ac_t""$STRIP" 1>&6
2377 echo "$ac_t""no
" 1>&6
2386 # Check for any special flags to pass to ltconfig.
2387 libtool_flags="--cache-file=$cache_file"
2388 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2389 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2390 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2391 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2392 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2393 libtool_flags="$libtool_flags --enable-dlopen"
2395 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2396 if test "${enable_libtool_lock+set}" = set; then
2397 enableval="$enable_libtool_lock"
2401 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2402 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2404 # Check whether --with-pic or --without-pic was given.
2405 if test "${with_pic+set}" = set; then
2412 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2413 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2415 # Some flags need to be propagated to the compiler or linker for good
2419 # Find out which ABI we are using.
2420 echo '#line 2421 "configure
"' > conftest.$ac_ext
2421 if { (eval echo configure:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2422 case `/usr/bin/file conftest.$ac_objext` in
2438 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2439 SAVE_CFLAGS="$CFLAGS"
2440 CFLAGS="$CFLAGS -belf"
2441 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2442 echo "configure
:2443: checking whether the C compiler needs
-belf" >&5
2443 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2444 echo $ac_n "(cached
) $ac_c" 1>&6
2448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2452 cross_compiling=$ac_cv_prog_cc_cross
2454 cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure
"
2456 #include "confdefs.h
"
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464 lt_cv_cc_needs_belf=yes
2466 echo "configure
: failed program was
:" >&5
2467 cat conftest.$ac_ext >&5
2469 lt_cv_cc_needs_belf=no
2473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2474 ac_cpp='$CPP $CPPFLAGS'
2475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2477 cross_compiling=$ac_cv_prog_cc_cross
2481 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2482 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2483 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2484 CFLAGS="$SAVE_CFLAGS"
2491 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2492 echo "configure
:2493: checking how to run the C
++ preprocessor
" >&5
2493 if test -z "$CXXCPP"; then
2494 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2495 echo $ac_n "(cached
) $ac_c" 1>&6
2498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2499 ac_cpp='$CXXCPP $CPPFLAGS'
2500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2502 cross_compiling=$ac_cv_prog_cxx_cross
2503 CXXCPP="${CXX-g++} -E"
2504 cat > conftest.$ac_ext <<EOF
2505 #line 2506 "configure
"
2506 #include "confdefs.h
"
2509 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2510 { (eval echo configure:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2512 if test -z "$ac_err"; then
2516 echo "configure
: failed program was
:" >&5
2517 cat conftest.$ac_ext >&5
2522 ac_cv_prog_CXXCPP="$CXXCPP"
2524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2528 cross_compiling=$ac_cv_prog_cc_cross
2531 CXXCPP="$ac_cv_prog_CXXCPP"
2532 echo "$ac_t""$CXXCPP" 1>&6
2535 # Save cache, so that ltconfig can load it
2536 cat > confcache <<\EOF
2537 # This file is a shell script that caches the results of configure
2538 # tests run on this system so they can be shared between configure
2539 # scripts and configure runs. It is not useful on other systems.
2540 # If it contains results you don't want to keep, you may remove or edit it.
2542 # By default, configure uses ./config.cache as the cache file,
2543 # creating it if it does not exist already. You can give configure
2544 # the --cache-file=FILE option to use a different cache file; that is
2545 # what configure does when it calls configure scripts in
2546 # subdirectories, so they share the cache.
2547 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2548 # config.status only pays attention to the cache file if you give it the
2549 # --recheck option to rerun configure.
2552 # The following way of writing the cache mishandles newlines in values,
2553 # but we know of no workaround that is simple, portable, and efficient.
2554 # So, don't put newlines in cache variables' values.
2555 # Ultrix sh set writes to stderr and can't be redirected directly,
2556 # and sets the high bit in the cache file unless we assign to the vars.
2558 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2560 # `set' does not quote correctly, so add quotes (double-quote substitution
2561 # turns \\\\ into \\, and sed turns \\ into \).
2563 -e "s
/'/'\\\\''/g
" \
2564 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2567 # `set' quotes correctly as required by POSIX, so do not add quotes.
2568 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2571 if cmp -s $cache_file confcache; then
2574 if test -w $cache_file; then
2575 echo "updating cache
$cache_file"
2576 cat confcache > $cache_file
2578 echo "not updating unwritable cache
$cache_file"
2584 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2585 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2586 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2587 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2588 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2589 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2590 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2591 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2592 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2593 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2595 # Reload cache, that may have been modified by ltconfig
2596 if test -r "$cache_file"; then
2597 echo "loading cache
$cache_file"
2600 echo "creating cache
$cache_file"
2605 # This can be used to rebuild libtool when needed
2606 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2608 # Always use our own libtool.
2609 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2611 # Redirect the config.log output again, so that the ltconfig log is not
2612 # clobbered by the next message.
2613 exec 5>>./config.log
2617 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2619 lt_save_CFLAGS="$CFLAGS"
2620 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2621 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2622 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2623 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2624 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2625 deplibs_check_method="$deplibs_check_method" \
2626 file_magic_cmd="$file_magic_cmd" \
2627 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2628 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2629 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2631 CFLAGS="$lt_save_CFLAGS"
2633 # Redirect the config.log output again, so that the ltconfig log is not
2634 # clobbered by the next message.
2635 exec 5>>./config.log
2645 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2654 if test -d $srcdir/testsuite; then
2656 TESTSUBDIR_FALSE='#'
2662 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2663 if test "${enable_getenv_properties+set}" = set; then
2664 enableval="$enable_getenv_properties"
2669 if test -z "$enable_getenv_properties"; then
2670 enable_getenv_properties=${enable_getenv_properties_default-yes}
2672 if test "$enable_getenv_properties" = no; then
2673 cat >> confdefs.h <<\EOF
2674 #define DISABLE_GETENV_PROPERTIES 1
2679 if test -z "$enable_main_args"; then
2680 enable_main_args=${enable_main_args_default-yes}
2682 if test "$enable_main_args" = no; then
2683 cat >> confdefs.h <<\EOF
2684 #define DISABLE_MAIN_ARGS 1
2690 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2691 if test "${enable_hash_synchronization+set}" = set; then
2692 enableval="$enable_hash_synchronization"
2697 if test -z "$enable_hash_synchronization"; then
2698 enable_hash_synchronization=$enable_hash_synchronization_default
2701 if test "${slow_pthread_self}" = "yes"; then
2702 cat >> confdefs.h <<\EOF
2703 #define SLOW_PTHREAD_SELF 1
2711 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2712 if test "${enable_libgcj_debug+set}" = set; then
2713 enableval="$enable_libgcj_debug"
2714 if test "$enable_libgcj_debug" = yes; then
2715 cat >> confdefs.h <<\EOF
2724 # Check whether --enable-interpreter or --disable-interpreter was given.
2725 if test "${enable_interpreter+set}" = set; then
2726 enableval="$enable_interpreter"
2727 if test "$enable_interpreter" = yes; then
2728 # This can also be set in configure.host.
2729 libgcj_interpreter=yes
2730 elif test "$enable_interpreter" = no; then
2731 libgcj_interpreter=no
2736 if test "$libgcj_interpreter" = yes; then
2737 cat >> confdefs.h <<\EOF
2738 #define INTERPRETER 1
2743 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2744 echo "configure
:2745: checking
for exception model to use
" >&5
2747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2748 ac_cpp='$CXXCPP $CPPFLAGS'
2749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2751 cross_compiling=$ac_cv_prog_cxx_cross
2753 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2754 if test "${enable_sjlj_exceptions+set}" = set; then
2755 enableval="$enable_sjlj_exceptions"
2758 cat > conftest.$ac_ext << EOF
2759 #line 2760 "configure
"
2768 old_CXXFLAGS="$CXXFLAGS"
2770 if { (eval echo configure:2771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2771 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2772 enable_sjlj_exceptions=yes
2773 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2774 enable_sjlj_exceptions=no
2777 CXXFLAGS="$old_CXXFLAGS"
2781 if test x$enable_sjlj_exceptions = xyes; then
2782 cat >> confdefs.h <<\EOF
2783 #define SJLJ_EXCEPTIONS 1
2786 ac_exception_model_name=sjlj
2787 elif test x$enable_sjlj_exceptions = xno; then
2788 ac_exception_model_name="call frame
"
2790 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2797 cross_compiling=$ac_cv_prog_cc_cross
2799 echo "$ac_t""$ac_exception_model_name" 1>&6
2801 # Check whether --enable-java-net or --disable-java-net was given.
2802 if test "${enable_java_net+set}" = set; then
2803 enableval="$enable_java_net"
2808 if test -z "$enable_java_net"; then
2809 enable_java_net=${enable_java_net_default-yes}
2811 if test "$enable_java_net" = no; then
2812 cat >> confdefs.h <<\EOF
2813 #define DISABLE_JAVA_NET 1
2818 # Check whether --with-libffi or --without-libffi was given.
2819 if test "${with_libffi+set}" = set; then
2820 withval="$with_libffi"
2823 with_libffi=${with_libffi_default-yes}
2829 if test "$with_libffi" != no; then
2830 cat >> confdefs.h <<\EOF
2831 #define USE_LIBFFI 1
2834 LIBFFI=../libffi/libfficonvenience.la
2835 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2840 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2841 if test "${enable_jvmpi+set}" = set; then
2842 enableval="$enable_jvmpi"
2847 if test "$enable_jvmpi" != no; then
2848 cat >> confdefs.h <<\EOF
2849 #define ENABLE_JVMPI 1
2854 TARGET_ECOS=${PROCESS-"no"}
2855 # Check whether --with-ecos or --without-ecos was given.
2856 if test "${with_ecos+set}" = set; then
2857 withval="$with_ecos"
2858 TARGET_ECOS="$with_ecos"
2864 case "$TARGET_ECOS" in
2868 PLATFORMOBJS=win32.lo
2873 PLATFORMOBJS=posix.lo
2880 cat >> confdefs.h <<\EOF
2884 PLATFORMOBJS=posix.lo
2891 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
2892 echo "configure
:2893: checking how to run the C preprocessor
" >&5
2893 # On Suns, sometimes $CPP names a directory.
2894 if test -n "$CPP" && test -d "$CPP"; then
2897 if test -z "$CPP"; then
2898 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2899 echo $ac_n "(cached
) $ac_c" 1>&6
2901 # This must be in double quotes, not single quotes, because CPP may get
2902 # substituted into the Makefile and "${CC-cc}" will confuse make.
2904 # On the NeXT, cc -E runs the code through the compiler's parser,
2905 # not just through cpp.
2906 cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure
"
2908 #include "confdefs.h
"
2912 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2913 { (eval echo configure:2914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2915 if test -z "$ac_err"; then
2919 echo "configure
: failed program was
:" >&5
2920 cat conftest.$ac_ext >&5
2922 CPP="${CC-cc} -E -traditional-cpp"
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure
"
2925 #include "confdefs.h
"
2929 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2930 { (eval echo configure:2931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2932 if test -z "$ac_err"; then
2936 echo "configure
: failed program was
:" >&5
2937 cat conftest.$ac_ext >&5
2939 CPP="${CC-cc} -nologo -E"
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure
"
2942 #include "confdefs.h
"
2946 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2947 { (eval echo configure:2948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2949 if test -z "$ac_err"; then
2953 echo "configure
: failed program was
:" >&5
2954 cat conftest.$ac_ext >&5
2963 ac_cv_prog_CPP="$CPP"
2965 CPP="$ac_cv_prog_CPP"
2967 ac_cv_prog_CPP="$CPP"
2969 echo "$ac_t""$CPP" 1>&6
2971 cat > conftest.$ac_ext <<EOF
2972 #line 2973 "configure
"
2973 #include "confdefs.h
"
2976 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2977 egrep "uint32_t
" >/dev/null 2>&1; then
2979 cat >> confdefs.h <<\EOF
2980 #define HAVE_INT32_DEFINED 1
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure
"
2988 #include "confdefs.h
"
2989 #include <inttypes.h>
2991 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2992 egrep "uint32_t
" >/dev/null 2>&1; then
2994 cat >> confdefs.h <<\EOF
2995 #define HAVE_INT32_DEFINED 1
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure
"
3003 #include "confdefs.h
"
3004 #include <sys/types.h>
3006 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3007 egrep "u_int32_t
" >/dev/null 2>&1; then
3009 cat >> confdefs.h <<\EOF
3010 #define HAVE_BSD_INT32_DEFINED 1
3016 cat > conftest.$ac_ext <<EOF
3017 #line 3018 "configure
"
3018 #include "confdefs.h
"
3019 #include <sys/config.h>
3021 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3022 egrep "u_int32_t
" >/dev/null 2>&1; then
3024 cat >> confdefs.h <<\EOF
3025 #define HAVE_BSD_INT32_DEFINED 1
3033 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure
"
3035 #include "confdefs.h
"
3038 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3039 egrep "mktime
" >/dev/null 2>&1; then
3041 cat >> confdefs.h <<\EOF
3042 #define HAVE_MKTIME 1
3048 cat > conftest.$ac_ext <<EOF
3049 #line 3050 "configure
"
3050 #include "confdefs.h
"
3053 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3054 egrep "localtime
" >/dev/null 2>&1; then
3056 cat >> confdefs.h <<\EOF
3057 #define HAVE_LOCALTIME 1
3064 test -d java || mkdir java
3065 test -d java/io || mkdir java/io
3066 test -d gnu || mkdir gnu
3070 test -d java/lang || mkdir java/lang
3076 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3084 LIBGCJTESTSPEC="-L`pwd`/.libs
-rpath `pwd`/.libs
"
3087 # Check whether --with-system-zlib or --without-system-zlib was given.
3088 if test "${with_system_zlib+set}" = set; then
3089 withval="$with_system_zlib"
3100 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
3101 echo "configure
:3102: checking
for garbage collector to use
" >&5
3102 # Check whether --enable-java-gc or --disable-java-gc was given.
3103 if test "${enable_java_gc+set}" = set; then
3104 enableval="$enable_java_gc"
3120 echo "$ac_t""boehm
" 1>&6
3121 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3122 # We include the path to the boehm-gc build directory.
3123 # See Makefile.am to understand why.
3124 GCLIBS="$GCDEPS -L\$
(here
)/..
/boehm-gc
/$libsubdir"
3125 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3127 JC1GCSPEC='-fuse-boehm-gc'
3128 GCTESTSPEC="-L`pwd`/..
/boehm-gc
/.libs
-rpath `pwd`/..
/boehm-gc
/.libs
"
3129 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3132 cat >> confdefs.h <<\EOF
3133 #define HAVE_BOEHM_GC 1
3138 echo "$ac_t""none
" 1>&6
3143 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
3156 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
3157 echo "configure
:3158: checking
for thread model used by GCC
" >&5
3158 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3159 echo "$ac_t""$THREADS" 1>&6
3169 cat >> confdefs.h <<\EOF
3170 #define LINUX_THREADS 1
3178 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3179 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
3182 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
3196 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3201 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3202 # merely adds pthread_* functions) but it does have a -pthread switch
3203 # which is required at link-time to select -lc_r *instead* of -lc.
3205 # Don't set THREADSPEC here as might be expected since -pthread is
3206 # not processed when found within a spec file, it must come from
3207 # the command line. For now, the user must provide the -pthread
3208 # switch to link code compiled with gcj. In future, consider adding
3209 # support for weak references to pthread_* functions ala gthr.h API.
3210 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3213 # FreeBSD 5 implements a model much closer to other modern UNIX
3214 # which support threads. However, it still does not support
3220 THREADLIBS=-lpthread
3221 THREADSPEC=-lpthread
3224 THREADOBJS=posix-threads.lo
3225 THREADH=posix-threads.h
3226 # MIT pthreads doesn't seem to have the mutexattr functions.
3227 # But for now we don't check for it. We just assume you aren't
3228 # using MIT pthreads.
3229 cat >> confdefs.h <<\EOF
3230 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3234 # If we're using the Boehm GC, then we happen to know that it
3235 # defines _REENTRANT, so we don't bother. Eww.
3236 if test "$GC" != boehm; then
3237 cat >> confdefs.h <<\EOF
3238 #define _REENTRANT 1
3242 cat >> confdefs.h <<\EOF
3243 #define _POSIX_PTHREAD_SEMANTICS 1
3249 THREADOBJS=win32-threads.lo
3250 THREADH=win32-threads.h
3254 THREADOBJS=no-threads.lo
3255 THREADH=no-threads.h
3268 # Hash synchronization is only useful with posix threads right now.
3269 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix
"; then
3270 HASH_SYNC_SPEC=-fhash-synchronization
3271 cat >> confdefs.h <<\EOF
3272 #define JV_HASH_SYNCHRONIZATION 1
3281 if test "$GCC" = yes; then
3293 # We're in the tree with gcc, and need to include some of its headers.
3294 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3296 # Figure out where generated headers like libgcj-config.h get installed.
3297 gcc_version_trigger=${srcdir}/../gcc/version.c
3298 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3299 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3300 tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
3303 if test -n "${with_cross_host}"; then
3304 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3305 # may not work correctly, because the compiler may not be able to
3308 # We assume newlib. This lets us hard-code the functions we know
3310 cat >> confdefs.h <<\EOF
3311 #define HAVE_MEMMOVE 1
3314 cat >> confdefs.h <<\EOF
3315 #define HAVE_MEMCPY 1
3318 cat >> confdefs.h <<\EOF
3319 #define HAVE_STRERROR 1
3322 cat >> confdefs.h <<\EOF
3323 #define HAVE_GMTIME_R 1
3326 cat >> confdefs.h <<\EOF
3327 #define HAVE_LOCALTIME_R 1
3330 cat >> confdefs.h <<\EOF
3331 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3334 cat >> confdefs.h <<\EOF
3335 #define HAVE_ALLOCA 1
3339 cat >> confdefs.h <<\EOF
3345 ZLIBTESTSPEC="-L`pwd`/..
/zlib
/.libs
-rpath `pwd`/..
/zlib
/.libs
"
3347 # If Canadian cross, then don't pick up tools from the build
3349 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3352 GCJ="${target_alias}-gcj"
3356 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3358 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3359 echo "configure
:3360: checking
for $ac_func" >&5
3360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3361 echo $ac_n "(cached
) $ac_c" 1>&6
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure
"
3365 #include "confdefs.h
"
3366 /* System header to define __stub macros and hopefully few prototypes,
3367 which can conflict with char $ac_func(); below. */
3369 /* Override any gcc2 internal prototype to avoid an error. */
3370 /* We use char because int might match the return type of a gcc2
3371 builtin and then its argument prototype would still apply. */
3376 /* The GNU C library defines this for functions which it implements
3377 to always fail with ENOSYS. Some functions are actually named
3378 something starting with __ and the normal name is an alias. */
3379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3387 if { (eval echo configure:3388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3389 eval "ac_cv_func_
$ac_func=yes"
3391 echo "configure
: failed program was
:" >&5
3392 cat conftest.$ac_ext >&5
3394 eval "ac_cv_func_
$ac_func=no
"
3399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3400 echo "$ac_t""yes" 1>&6
3401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3402 cat >> confdefs.h <<EOF
3403 #define $ac_tr_func 1
3407 echo "$ac_t""no
" 1>&6
3411 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3413 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3414 echo "configure
:3415: checking
for $ac_func" >&5
3415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3416 echo $ac_n "(cached
) $ac_c" 1>&6
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure
"
3420 #include "confdefs.h
"
3421 /* System header to define __stub macros and hopefully few prototypes,
3422 which can conflict with char $ac_func(); below. */
3424 /* Override any gcc2 internal prototype to avoid an error. */
3425 /* We use char because int might match the return type of a gcc2
3426 builtin and then its argument prototype would still apply. */
3431 /* The GNU C library defines this for functions which it implements
3432 to always fail with ENOSYS. Some functions are actually named
3433 something starting with __ and the normal name is an alias. */
3434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3442 if { (eval echo configure:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3444 eval "ac_cv_func_
$ac_func=yes"
3446 echo "configure
: failed program was
:" >&5
3447 cat conftest.$ac_ext >&5
3449 eval "ac_cv_func_
$ac_func=no
"
3454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3455 echo "$ac_t""yes" 1>&6
3456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3457 cat >> confdefs.h <<EOF
3458 #define $ac_tr_func 1
3462 echo "$ac_t""no
" 1>&6
3466 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3468 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3469 echo "configure
:3470: checking
for $ac_func" >&5
3470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3471 echo $ac_n "(cached
) $ac_c" 1>&6
3473 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure
"
3475 #include "confdefs.h
"
3476 /* System header to define __stub macros and hopefully few prototypes,
3477 which can conflict with char $ac_func(); below. */
3479 /* Override any gcc2 internal prototype to avoid an error. */
3480 /* We use char because int might match the return type of a gcc2
3481 builtin and then its argument prototype would still apply. */
3486 /* The GNU C library defines this for functions which it implements
3487 to always fail with ENOSYS. Some functions are actually named
3488 something starting with __ and the normal name is an alias. */
3489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3497 if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3499 eval "ac_cv_func_
$ac_func=yes"
3501 echo "configure
: failed program was
:" >&5
3502 cat conftest.$ac_ext >&5
3504 eval "ac_cv_func_
$ac_func=no
"
3509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3510 echo "$ac_t""yes" 1>&6
3511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3512 cat >> confdefs.h <<EOF
3513 #define $ac_tr_func 1
3517 echo "$ac_t""no
" 1>&6
3521 for ac_func in nl_langinfo setlocale
3523 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3524 echo "configure
:3525: checking
for $ac_func" >&5
3525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3526 echo $ac_n "(cached
) $ac_c" 1>&6
3528 cat > conftest.$ac_ext <<EOF
3529 #line 3530 "configure
"
3530 #include "confdefs.h
"
3531 /* System header to define __stub macros and hopefully few prototypes,
3532 which can conflict with char $ac_func(); below. */
3534 /* Override any gcc2 internal prototype to avoid an error. */
3535 /* We use char because int might match the return type of a gcc2
3536 builtin and then its argument prototype would still apply. */
3541 /* The GNU C library defines this for functions which it implements
3542 to always fail with ENOSYS. Some functions are actually named
3543 something starting with __ and the normal name is an alias. */
3544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3552 if { (eval echo configure:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3554 eval "ac_cv_func_
$ac_func=yes"
3556 echo "configure
: failed program was
:" >&5
3557 cat conftest.$ac_ext >&5
3559 eval "ac_cv_func_
$ac_func=no
"
3564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3565 echo "$ac_t""yes" 1>&6
3566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3567 cat >> confdefs.h <<EOF
3568 #define $ac_tr_func 1
3572 echo "$ac_t""no
" 1>&6
3576 for ac_func in inet_aton inet_addr
3578 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3579 echo "configure
:3580: checking
for $ac_func" >&5
3580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3581 echo $ac_n "(cached
) $ac_c" 1>&6
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure
"
3585 #include "confdefs.h
"
3586 /* System header to define __stub macros and hopefully few prototypes,
3587 which can conflict with char $ac_func(); below. */
3589 /* Override any gcc2 internal prototype to avoid an error. */
3590 /* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3596 /* The GNU C library defines this for functions which it implements
3597 to always fail with ENOSYS. Some functions are actually named
3598 something starting with __ and the normal name is an alias. */
3599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3607 if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3609 eval "ac_cv_func_
$ac_func=yes"
3611 echo "configure
: failed program was
:" >&5
3612 cat conftest.$ac_ext >&5
3614 eval "ac_cv_func_
$ac_func=no
"
3619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3620 echo "$ac_t""yes" 1>&6
3621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3622 cat >> confdefs.h <<EOF
3623 #define $ac_tr_func 1
3627 echo "$ac_t""no
" 1>&6
3631 for ac_func in inet_pton uname inet_ntoa
3633 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3634 echo "configure
:3635: checking
for $ac_func" >&5
3635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3636 echo $ac_n "(cached
) $ac_c" 1>&6
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure
"
3640 #include "confdefs.h
"
3641 /* System header to define __stub macros and hopefully few prototypes,
3642 which can conflict with char $ac_func(); below. */
3644 /* Override any gcc2 internal prototype to avoid an error. */
3645 /* We use char because int might match the return type of a gcc2
3646 builtin and then its argument prototype would still apply. */
3651 /* The GNU C library defines this for functions which it implements
3652 to always fail with ENOSYS. Some functions are actually named
3653 something starting with __ and the normal name is an alias. */
3654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3662 if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3664 eval "ac_cv_func_
$ac_func=yes"
3666 echo "configure
: failed program was
:" >&5
3667 cat conftest.$ac_ext >&5
3669 eval "ac_cv_func_
$ac_func=no
"
3674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3675 echo "$ac_t""yes" 1>&6
3676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3677 cat >> confdefs.h <<EOF
3678 #define $ac_tr_func 1
3682 echo "$ac_t""no
" 1>&6
3686 for ac_func in backtrace fork execvp pipe sigaction
3688 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3689 echo "configure
:3690: checking
for $ac_func" >&5
3690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3691 echo $ac_n "(cached
) $ac_c" 1>&6
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure
"
3695 #include "confdefs.h
"
3696 /* System header to define __stub macros and hopefully few prototypes,
3697 which can conflict with char $ac_func(); below. */
3699 /* Override any gcc2 internal prototype to avoid an error. */
3700 /* We use char because int might match the return type of a gcc2
3701 builtin and then its argument prototype would still apply. */
3706 /* The GNU C library defines this for functions which it implements
3707 to always fail with ENOSYS. Some functions are actually named
3708 something starting with __ and the normal name is an alias. */
3709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3717 if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3719 eval "ac_cv_func_
$ac_func=yes"
3721 echo "configure
: failed program was
:" >&5
3722 cat conftest.$ac_ext >&5
3724 eval "ac_cv_func_
$ac_func=no
"
3729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3730 echo "$ac_t""yes" 1>&6
3731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3732 cat >> confdefs.h <<EOF
3733 #define $ac_tr_func 1
3737 echo "$ac_t""no
" 1>&6
3741 for ac_hdr in execinfo.h unistd.h dlfcn.h
3743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3744 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3745 echo "configure
:3746: checking
for $ac_hdr" >&5
3746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3747 echo $ac_n "(cached
) $ac_c" 1>&6
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure
"
3751 #include "confdefs.h
"
3754 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3755 { (eval echo configure:3756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3757 if test -z "$ac_err"; then
3759 eval "ac_cv_header_
$ac_safe=yes"
3762 echo "configure
: failed program was
:" >&5
3763 cat conftest.$ac_ext >&5
3765 eval "ac_cv_header_
$ac_safe=no
"
3769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3770 echo "$ac_t""yes" 1>&6
3771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3772 cat >> confdefs.h <<EOF
3773 #define $ac_tr_hdr 1
3777 echo "$ac_t""no
" 1>&6
3781 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
3782 echo "configure
:3783: checking
for dladdr
in -ldl" >&5
3783 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3785 echo $ac_n "(cached
) $ac_c" 1>&6
3787 ac_save_LIBS="$LIBS"
3789 cat > conftest.$ac_ext <<EOF
3790 #line 3791 "configure
"
3791 #include "confdefs.h
"
3792 /* Override any gcc2 internal prototype to avoid an error. */
3793 /* We use char because int might match the return type of a gcc2
3794 builtin and then its argument prototype would still apply. */
3801 if { (eval echo configure:3802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3803 eval "ac_cv_lib_
$ac_lib_var=yes"
3805 echo "configure
: failed program was
:" >&5
3806 cat conftest.$ac_ext >&5
3808 eval "ac_cv_lib_
$ac_lib_var=no
"
3811 LIBS="$ac_save_LIBS"
3814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3815 echo "$ac_t""yes" 1>&6
3817 cat >> confdefs.h <<\EOF
3818 #define HAVE_DLADDR 1
3822 echo "$ac_t""no
" 1>&6
3825 for ac_file in /proc/self/exe
3828 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3829 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
3830 echo "configure
:3831: checking
for $ac_file" >&5
3831 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3832 echo $ac_n "(cached
) $ac_c" 1>&6
3834 if test "$cross_compiling" = yes; then
3835 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
3837 if test -r $ac_file; then
3838 eval "ac_cv_file_
$ac_safe=yes"
3840 eval "ac_cv_file_
$ac_safe=no
"
3844 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3846 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3847 cat >> confdefs.h <<EOF
3848 #define $ac_tr_file 1
3851 cat >> confdefs.h <<\EOF
3852 #define HAVE_PROC_SELF_EXE 1
3856 echo "$ac_t""no
" 1>&6
3864 am_cv_lib_iconv_ldpath=
3865 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3866 if test "${with_libiconv_prefix+set}" = set; then
3867 withval="$with_libiconv_prefix"
3869 for dir in `echo "$withval" | tr : ' '`; do
3870 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
3871 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib
"; fi
3877 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
3878 echo "configure
:3879: checking
for iconv" >&5
3879 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3880 echo $ac_n "(cached
) $ac_c" 1>&6
3883 am_cv_func_iconv="no
, consider installing GNU libiconv
"
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure
"
3887 #include "confdefs.h
"
3891 iconv_t cd = iconv_open("","");
3892 iconv(cd,NULL,NULL,NULL,NULL);
3896 if { (eval echo configure:3897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3898 am_cv_func_iconv=yes
3900 echo "configure
: failed program was
:" >&5
3901 cat conftest.$ac_ext >&5
3904 if test "$am_cv_func_iconv" != yes; then
3905 am_save_LIBS="$LIBS"
3906 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure
"
3909 #include "confdefs.h
"
3913 iconv_t cd = iconv_open("","");
3914 iconv(cd,NULL,NULL,NULL,NULL);
3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3921 am_cv_func_iconv=yes
3923 echo "configure
: failed program was
:" >&5
3924 cat conftest.$ac_ext >&5
3927 LIBS="$am_save_LIBS"
3932 echo "$ac_t""$am_cv_func_iconv" 1>&6
3933 if test "$am_cv_func_iconv" = yes; then
3934 cat >> confdefs.h <<\EOF
3935 #define HAVE_ICONV 1
3938 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
3939 echo "configure
:3940: checking
for iconv declaration
" >&5
3940 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3941 echo $ac_n "(cached
) $ac_c" 1>&6
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure
"
3946 #include "confdefs.h
"
3954 #if defined(__STDC__) || defined(__cplusplus)
3955 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3964 if { (eval echo configure:3965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3966 am_cv_proto_iconv_arg1=""
3968 echo "configure
: failed program was
:" >&5
3969 cat conftest.$ac_ext >&5
3971 am_cv_proto_iconv_arg1="const
"
3974 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
);"
3977 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3978 echo "$ac_t""$
{ac_t
:-
3979 }$am_cv_proto_iconv" 1>&6
3980 cat >> confdefs.h <<EOF
3981 #define ICONV_CONST $am_cv_proto_iconv_arg1
3986 if test "$am_cv_lib_iconv" = yes; then
3987 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
3991 if test $ac_cv_header_locale_h = yes; then
3992 echo $ac_n "checking
for LC_MESSAGES
""...
$ac_c" 1>&6
3993 echo "configure
:3994: checking
for LC_MESSAGES
" >&5
3994 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3995 echo $ac_n "(cached
) $ac_c" 1>&6
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure
"
3999 #include "confdefs.h
"
4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4007 am_cv_val_LC_MESSAGES=yes
4009 echo "configure
: failed program was
:" >&5
4010 cat conftest.$ac_ext >&5
4012 am_cv_val_LC_MESSAGES=no
4017 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4018 if test $am_cv_val_LC_MESSAGES = yes; then
4019 cat >> confdefs.h <<\EOF
4020 #define HAVE_LC_MESSAGES 1
4025 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
4026 echo "configure
:4027: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
4027 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4028 echo $ac_n "(cached
) $ac_c" 1>&6
4030 cat > conftest.$ac_ext <<EOF
4031 #line 4032 "configure
"
4032 #include "confdefs.h
"
4033 #include <sys/types.h>
4036 struct tm *tp; tp->tm_sec;
4039 if { (eval echo configure:4040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4041 ac_cv_struct_tm=time.h
4043 echo "configure
: failed program was
:" >&5
4044 cat conftest.$ac_ext >&5
4046 ac_cv_struct_tm=sys/time.h
4051 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4052 if test $ac_cv_struct_tm = sys/time.h; then
4053 cat >> confdefs.h <<\EOF
4054 #define TM_IN_SYS_TIME 1
4059 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
4060 echo "configure
:4061: checking
for tm_zone
in struct tm
" >&5
4061 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4062 echo $ac_n "(cached
) $ac_c" 1>&6
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure
"
4066 #include "confdefs.h
"
4067 #include <sys/types.h>
4068 #include <$ac_cv_struct_tm>
4070 struct tm tm; tm.tm_zone;
4073 if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4075 ac_cv_struct_tm_zone=yes
4077 echo "configure
: failed program was
:" >&5
4078 cat conftest.$ac_ext >&5
4080 ac_cv_struct_tm_zone=no
4085 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4086 if test "$ac_cv_struct_tm_zone" = yes; then
4087 cat >> confdefs.h <<\EOF
4088 #define HAVE_TM_ZONE 1
4092 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
4093 echo "configure
:4094: checking
for tzname
" >&5
4094 if eval "test \"`echo '$''{'ac_cv_var_tzname'+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
"
4101 #ifndef tzname /* For SGI. */
4102 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4110 ac_cv_var_tzname=yes
4112 echo "configure
: failed program was
:" >&5
4113 cat conftest.$ac_ext >&5
4120 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4121 if test $ac_cv_var_tzname = yes; then
4122 cat >> confdefs.h <<\EOF
4123 #define HAVE_TZNAME 1
4130 for ac_func in gethostbyname_r
4132 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4133 echo "configure
:4134: checking
for $ac_func" >&5
4134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4135 echo $ac_n "(cached
) $ac_c" 1>&6
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure
"
4139 #include "confdefs.h
"
4140 /* System header to define __stub macros and hopefully few prototypes,
4141 which can conflict with char $ac_func(); below. */
4143 /* Override any gcc2 internal prototype to avoid an error. */
4144 /* We use char because int might match the return type of a gcc2
4145 builtin and then its argument prototype would still apply. */
4150 /* The GNU C library defines this for functions which it implements
4151 to always fail with ENOSYS. Some functions are actually named
4152 something starting with __ and the normal name is an alias. */
4153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4161 if { (eval echo configure:4162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4163 eval "ac_cv_func_
$ac_func=yes"
4165 echo "configure
: failed program was
:" >&5
4166 cat conftest.$ac_ext >&5
4168 eval "ac_cv_func_
$ac_func=no
"
4173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4174 echo "$ac_t""yes" 1>&6
4175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4176 cat >> confdefs.h <<EOF
4177 #define $ac_tr_func 1
4180 cat >> confdefs.h <<\EOF
4181 #define HAVE_GETHOSTBYNAME_R 1
4184 # There are two different kinds of gethostbyname_r.
4185 # We look for the one that returns `int'.
4186 # Hopefully this check is robust enough.
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure
"
4189 #include "confdefs.h
"
4192 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4193 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
4196 cat >> confdefs.h <<\EOF
4197 #define GETHOSTBYNAME_R_RETURNS_INT 1
4205 *" -D_REENTRANT "*) ;;
4207 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
4208 echo "configure
:4209: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
4209 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4210 echo $ac_n "(cached
) $ac_c" 1>&6
4214 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4215 ac_cpp='$CXXCPP $CPPFLAGS'
4216 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4217 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4218 cross_compiling=$ac_cv_prog_cxx_cross
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure
"
4222 #include "confdefs.h
"
4225 gethostbyname_r("", 0, 0);
4228 if { (eval echo configure:4229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4230 libjava_cv_gethostbyname_r_needs_reentrant=no
4232 echo "configure
: failed program was
:" >&5
4233 cat conftest.$ac_ext >&5
4235 CPPFLAGS_SAVE="$CPPFLAGS"
4236 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure
"
4239 #include "confdefs.h
"
4242 gethostbyname_r("", 0, 0);
4245 if { (eval echo configure:4246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4247 libjava_cv_gethostbyname_r_needs_reentrant=yes
4249 echo "configure
: failed program was
:" >&5
4250 cat conftest.$ac_ext >&5
4252 libjava_cv_gethostbyname_r_needs_reentrant=fail
4255 CPPFLAGS="$CPPFLAGS_SAVE"
4260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4261 ac_cpp='$CPP $CPPFLAGS'
4262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4264 cross_compiling=$ac_cv_prog_cc_cross
4269 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4270 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4271 cat >> confdefs.h <<\EOF
4272 #define _REENTRANT 1
4279 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
4280 echo "configure
:4281: checking
for struct hostent_data
" >&5
4281 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4282 echo $ac_n "(cached
) $ac_c" 1>&6
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure
"
4286 #include "confdefs.h
"
4288 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4289 # define _REENTRANT 1
4293 struct hostent_data data;
4296 if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4298 libjava_cv_struct_hostent_data=yes
4300 echo "configure
: failed program was
:" >&5
4301 cat conftest.$ac_ext >&5
4303 libjava_cv_struct_hostent_data=no
4308 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4309 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
4310 cat >> confdefs.h <<\EOF
4311 #define HAVE_STRUCT_HOSTENT_DATA 1
4317 echo "$ac_t""no
" 1>&6
4322 # FIXME: libjava source code expects to find a prototype for
4323 # gethostbyaddr_r in netdb.h. The outer check ensures that
4324 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4325 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4326 # linkage check is enough, yet C++ code requires proper prototypes.)
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure
"
4329 #include "confdefs.h
"
4332 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4333 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
4336 for ac_func in gethostbyaddr_r
4338 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4339 echo "configure
:4340: checking
for $ac_func" >&5
4340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4341 echo $ac_n "(cached
) $ac_c" 1>&6
4343 cat > conftest.$ac_ext <<EOF
4344 #line 4345 "configure
"
4345 #include "confdefs.h
"
4346 /* System header to define __stub macros and hopefully few prototypes,
4347 which can conflict with char $ac_func(); below. */
4349 /* Override any gcc2 internal prototype to avoid an error. */
4350 /* We use char because int might match the return type of a gcc2
4351 builtin and then its argument prototype would still apply. */
4356 /* The GNU C library defines this for functions which it implements
4357 to always fail with ENOSYS. Some functions are actually named
4358 something starting with __ and the normal name is an alias. */
4359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4369 eval "ac_cv_func_
$ac_func=yes"
4371 echo "configure
: failed program was
:" >&5
4372 cat conftest.$ac_ext >&5
4374 eval "ac_cv_func_
$ac_func=no
"
4379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4380 echo "$ac_t""yes" 1>&6
4381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4382 cat >> confdefs.h <<EOF
4383 #define $ac_tr_func 1
4386 cat >> confdefs.h <<\EOF
4387 #define HAVE_GETHOSTBYADDR_R 1
4390 # There are two different kinds of gethostbyaddr_r.
4391 # We look for the one that returns `int'.
4392 # Hopefully this check is robust enough.
4393 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure
"
4395 #include "confdefs.h
"
4398 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4399 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
4402 cat >> confdefs.h <<\EOF
4403 #define GETHOSTBYADDR_R_RETURNS_INT 1
4410 echo "$ac_t""no
" 1>&6
4418 for ac_func in gethostname
4420 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4421 echo "configure
:4422: checking
for $ac_func" >&5
4422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4423 echo $ac_n "(cached
) $ac_c" 1>&6
4425 cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure
"
4427 #include "confdefs.h
"
4428 /* System header to define __stub macros and hopefully few prototypes,
4429 which can conflict with char $ac_func(); below. */
4431 /* Override any gcc2 internal prototype to avoid an error. */
4432 /* We use char because int might match the return type of a gcc2
4433 builtin and then its argument prototype would still apply. */
4438 /* The GNU C library defines this for functions which it implements
4439 to always fail with ENOSYS. Some functions are actually named
4440 something starting with __ and the normal name is an alias. */
4441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4451 eval "ac_cv_func_
$ac_func=yes"
4453 echo "configure
: failed program was
:" >&5
4454 cat conftest.$ac_ext >&5
4456 eval "ac_cv_func_
$ac_func=no
"
4461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4464 cat >> confdefs.h <<EOF
4465 #define $ac_tr_func 1
4468 cat >> confdefs.h <<\EOF
4469 #define HAVE_GETHOSTNAME 1
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure
"
4474 #include "confdefs.h
"
4477 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4478 egrep "gethostname
" >/dev/null 2>&1; then
4481 cat >> confdefs.h <<\EOF
4482 #define HAVE_GETHOSTNAME_DECL 1
4489 echo "$ac_t""no
" 1>&6
4494 # Look for these functions in the thread library, but only bother
4495 # if using POSIX threads.
4496 if test "$THREADS" = posix; then
4498 LIBS="$LIBS $THREADLIBS"
4499 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4501 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4503 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4504 echo "configure
:4505: checking
for $ac_func" >&5
4505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4506 echo $ac_n "(cached
) $ac_c" 1>&6
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure
"
4510 #include "confdefs.h
"
4511 /* System header to define __stub macros and hopefully few prototypes,
4512 which can conflict with char $ac_func(); below. */
4514 /* Override any gcc2 internal prototype to avoid an error. */
4515 /* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */
4521 /* The GNU C library defines this for functions which it implements
4522 to always fail with ENOSYS. Some functions are actually named
4523 something starting with __ and the normal name is an alias. */
4524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4532 if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4534 eval "ac_cv_func_
$ac_func=yes"
4536 echo "configure
: failed program was
:" >&5
4537 cat conftest.$ac_ext >&5
4539 eval "ac_cv_func_
$ac_func=no
"
4544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4545 echo "$ac_t""yes" 1>&6
4546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4547 cat >> confdefs.h <<EOF
4548 #define $ac_tr_func 1
4552 echo "$ac_t""no
" 1>&6
4557 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4558 # Solaris 7 the name librt is preferred.
4559 for ac_func in sched_yield
4561 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4562 echo "configure
:4563: checking
for $ac_func" >&5
4563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4564 echo $ac_n "(cached
) $ac_c" 1>&6
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure
"
4568 #include "confdefs.h
"
4569 /* System header to define __stub macros and hopefully few prototypes,
4570 which can conflict with char $ac_func(); below. */
4572 /* Override any gcc2 internal prototype to avoid an error. */
4573 /* We use char because int might match the return type of a gcc2
4574 builtin and then its argument prototype would still apply. */
4579 /* The GNU C library defines this for functions which it implements
4580 to always fail with ENOSYS. Some functions are actually named
4581 something starting with __ and the normal name is an alias. */
4582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4590 if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4592 eval "ac_cv_func_
$ac_func=yes"
4594 echo "configure
: failed program was
:" >&5
4595 cat conftest.$ac_ext >&5
4597 eval "ac_cv_func_
$ac_func=no
"
4602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4603 echo "$ac_t""yes" 1>&6
4604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4605 cat >> confdefs.h <<EOF
4606 #define $ac_tr_func 1
4610 echo "$ac_t""no
" 1>&6
4611 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
4612 echo "configure
:4613: checking
for sched_yield
in -lrt" >&5
4613 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4615 echo $ac_n "(cached
) $ac_c" 1>&6
4617 ac_save_LIBS="$LIBS"
4619 cat > conftest.$ac_ext <<EOF
4620 #line 4621 "configure
"
4621 #include "confdefs.h
"
4622 /* Override any gcc2 internal prototype to avoid an error. */
4623 /* We use char because int might match the return type of a gcc2
4624 builtin and then its argument prototype would still apply. */
4631 if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4633 eval "ac_cv_lib_
$ac_lib_var=yes"
4635 echo "configure
: failed program was
:" >&5
4636 cat conftest.$ac_ext >&5
4638 eval "ac_cv_lib_
$ac_lib_var=no
"
4641 LIBS="$ac_save_LIBS"
4644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4647 cat >> confdefs.h <<\EOF
4648 #define HAVE_SCHED_YIELD 1
4651 THREADLIBS="$THREADLIBS -lrt"
4652 THREADSPEC="$THREADSPEC -lrt"
4654 echo "$ac_t""no
" 1>&6
4656 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
4657 echo "configure
:4658: checking
for sched_yield
in -lposix4" >&5
4658 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4659 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4660 echo $ac_n "(cached
) $ac_c" 1>&6
4662 ac_save_LIBS="$LIBS"
4663 LIBS="-lposix4 $LIBS"
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure
"
4666 #include "confdefs.h
"
4667 /* Override any gcc2 internal prototype to avoid an error. */
4668 /* We use char because int might match the return type of a gcc2
4669 builtin and then its argument prototype would still apply. */
4676 if { (eval echo configure:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4678 eval "ac_cv_lib_
$ac_lib_var=yes"
4680 echo "configure
: failed program was
:" >&5
4681 cat conftest.$ac_ext >&5
4683 eval "ac_cv_lib_
$ac_lib_var=no
"
4686 LIBS="$ac_save_LIBS"
4689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4690 echo "$ac_t""yes" 1>&6
4692 cat >> confdefs.h <<\EOF
4693 #define HAVE_SCHED_YIELD 1
4696 THREADLIBS="$THREADLIBS -lposix4"
4697 THREADSPEC="$THREADSPEC -lposix4"
4699 echo "$ac_t""no
" 1>&6
4709 # We can save a little space at runtime if the mutex has m_count
4710 # or __m_count. This is a nice hack for Linux.
4711 cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure
"
4713 #include "confdefs.h
"
4714 #include <pthread.h>
4717 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4721 if { (eval echo configure:4722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4723 cat >> confdefs.h <<\EOF
4724 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4728 echo "configure
: failed program was
:" >&5
4729 cat conftest.$ac_ext >&5
4732 cat > conftest.$ac_ext <<EOF
4733 #line 4734 "configure
"
4734 #include "confdefs.h
"
4735 #include <pthread.h>
4738 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4742 if { (eval echo configure:4743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4744 cat >> confdefs.h <<\EOF
4745 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4749 echo "configure
: failed program was
:" >&5
4750 cat conftest.$ac_ext >&5
4757 # We require a way to get the time.
4759 for ac_func in gettimeofday time ftime
4761 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4762 echo "configure
:4763: checking
for $ac_func" >&5
4763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4764 echo $ac_n "(cached
) $ac_c" 1>&6
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure
"
4768 #include "confdefs.h
"
4769 /* System header to define __stub macros and hopefully few prototypes,
4770 which can conflict with char $ac_func(); below. */
4772 /* Override any gcc2 internal prototype to avoid an error. */
4773 /* We use char because int might match the return type of a gcc2
4774 builtin and then its argument prototype would still apply. */
4779 /* The GNU C library defines this for functions which it implements
4780 to always fail with ENOSYS. Some functions are actually named
4781 something starting with __ and the normal name is an alias. */
4782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4790 if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4792 eval "ac_cv_func_
$ac_func=yes"
4794 echo "configure
: failed program was
:" >&5
4795 cat conftest.$ac_ext >&5
4797 eval "ac_cv_func_
$ac_func=no
"
4802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4805 cat >> confdefs.h <<EOF
4806 #define $ac_tr_func 1
4810 echo "$ac_t""no
" 1>&6
4814 if test "$time_found" = no; then
4815 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
4818 for ac_func in memmove
4820 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4821 echo "configure
:4822: checking
for $ac_func" >&5
4822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4823 echo $ac_n "(cached
) $ac_c" 1>&6
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure
"
4827 #include "confdefs.h
"
4828 /* System header to define __stub macros and hopefully few prototypes,
4829 which can conflict with char $ac_func(); below. */
4831 /* Override any gcc2 internal prototype to avoid an error. */
4832 /* We use char because int might match the return type of a gcc2
4833 builtin and then its argument prototype would still apply. */
4838 /* The GNU C library defines this for functions which it implements
4839 to always fail with ENOSYS. Some functions are actually named
4840 something starting with __ and the normal name is an alias. */
4841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4849 if { (eval echo configure:4850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4851 eval "ac_cv_func_
$ac_func=yes"
4853 echo "configure
: failed program was
:" >&5
4854 cat conftest.$ac_ext >&5
4856 eval "ac_cv_func_
$ac_func=no
"
4861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4862 echo "$ac_t""yes" 1>&6
4863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4864 cat >> confdefs.h <<EOF
4865 #define $ac_tr_func 1
4869 echo "$ac_t""no
" 1>&6
4874 # We require memcpy.
4876 for ac_func in memcpy
4878 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4879 echo "configure
:4880: checking
for $ac_func" >&5
4880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4881 echo $ac_n "(cached
) $ac_c" 1>&6
4883 cat > conftest.$ac_ext <<EOF
4884 #line 4885 "configure
"
4885 #include "confdefs.h
"
4886 /* System header to define __stub macros and hopefully few prototypes,
4887 which can conflict with char $ac_func(); below. */
4889 /* Override any gcc2 internal prototype to avoid an error. */
4890 /* We use char because int might match the return type of a gcc2
4891 builtin and then its argument prototype would still apply. */
4896 /* The GNU C library defines this for functions which it implements
4897 to always fail with ENOSYS. Some functions are actually named
4898 something starting with __ and the normal name is an alias. */
4899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4907 if { (eval echo configure:4908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4909 eval "ac_cv_func_
$ac_func=yes"
4911 echo "configure
: failed program was
:" >&5
4912 cat conftest.$ac_ext >&5
4914 eval "ac_cv_func_
$ac_func=no
"
4919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4920 echo "$ac_t""yes" 1>&6
4921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4922 cat >> confdefs.h <<EOF
4923 #define $ac_tr_func 1
4927 echo "$ac_t""no
" 1>&6
4931 if test "$memcpy_found" = no; then
4932 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
4935 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
4936 echo "configure
:4937: checking
for dlopen
in -ldl" >&5
4937 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4939 echo $ac_n "(cached
) $ac_c" 1>&6
4941 ac_save_LIBS="$LIBS"
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure
"
4945 #include "confdefs.h
"
4946 /* Override any gcc2 internal prototype to avoid an error. */
4947 /* We use char because int might match the return type of a gcc2
4948 builtin and then its argument prototype would still apply. */
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 eval "ac_cv_lib_
$ac_lib_var=yes"
4959 echo "configure
: failed program was
:" >&5
4960 cat conftest.$ac_ext >&5
4962 eval "ac_cv_lib_
$ac_lib_var=no
"
4965 LIBS="$ac_save_LIBS"
4968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4969 echo "$ac_t""yes" 1>&6
4971 cat >> confdefs.h <<\EOF
4972 #define HAVE_DLOPEN 1
4976 echo "$ac_t""no
" 1>&6
4980 # Some library-finding code we stole from Tcl.
4981 #--------------------------------------------------------------------
4982 # Check for the existence of the -lsocket and -lnsl libraries.
4983 # The order here is important, so that they end up in the right
4984 # order in the command line generated by make. Here are some
4985 # special considerations:
4986 # 1. Use "connect
" and "accept
" to check for -lsocket, and
4987 # "gethostbyname
" to check for -lnsl.
4988 # 2. Use each function name only once: can't redo a check because
4989 # autoconf caches the results of the last check and won't redo it.
4990 # 3. Use -lnsl and -lsocket only if they supply procedures that
4991 # aren't already present in the normal libraries. This is because
4992 # IRIX 5.2 has libraries, but they aren't needed and they're
4993 # bogus: they goof up name resolution if used.
4994 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4995 # To get around this problem, check for both libraries together
4996 # if -lsocket doesn't work by itself.
4997 #--------------------------------------------------------------------
4999 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
5000 echo "configure
:5001: checking
for socket libraries
" >&5
5001 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
5002 echo $ac_n "(cached
) $ac_c" 1>&6
5006 unset ac_cv_func_connect
5007 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
5008 echo "configure
:5009: checking
for connect
" >&5
5009 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5010 echo $ac_n "(cached
) $ac_c" 1>&6
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure
"
5014 #include "confdefs.h
"
5015 /* System header to define __stub macros and hopefully few prototypes,
5016 which can conflict with char connect(); below. */
5018 /* Override any gcc2 internal prototype to avoid an error. */
5019 /* We use char because int might match the return type of a gcc2
5020 builtin and then its argument prototype would still apply. */
5025 /* The GNU C library defines this for functions which it implements
5026 to always fail with ENOSYS. Some functions are actually named
5027 something starting with __ and the normal name is an alias. */
5028 #if defined (__stub_connect) || defined (__stub___connect)
5036 if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5038 eval "ac_cv_func_connect
=yes"
5040 echo "configure
: failed program was
:" >&5
5041 cat conftest.$ac_ext >&5
5043 eval "ac_cv_func_connect
=no
"
5048 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5049 echo "$ac_t""yes" 1>&6
5052 echo "$ac_t""no
" 1>&6
5056 if test "$gcj_checkSocket" = 1; then
5057 unset ac_cv_func_connect
5058 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
5059 echo "configure
:5060: checking
for main
in -lsocket" >&5
5060 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5062 echo $ac_n "(cached
) $ac_c" 1>&6
5064 ac_save_LIBS="$LIBS"
5065 LIBS="-lsocket $LIBS"
5066 cat > conftest.$ac_ext <<EOF
5067 #line 5068 "configure
"
5068 #include "confdefs.h
"
5074 if { (eval echo configure:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5076 eval "ac_cv_lib_
$ac_lib_var=yes"
5078 echo "configure
: failed program was
:" >&5
5079 cat conftest.$ac_ext >&5
5081 eval "ac_cv_lib_
$ac_lib_var=no
"
5084 LIBS="$ac_save_LIBS"
5087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5088 echo "$ac_t""yes" 1>&6
5089 gcj_cv_lib_sockets="-lsocket"
5091 echo "$ac_t""no
" 1>&6
5096 if test "$gcj_checkBoth" = 1; then
5098 LIBS="$LIBS -lsocket -lnsl"
5099 unset ac_cv_func_accept
5100 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
5101 echo "configure
:5102: checking
for accept
" >&5
5102 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5103 echo $ac_n "(cached
) $ac_c" 1>&6
5105 cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure
"
5107 #include "confdefs.h
"
5108 /* System header to define __stub macros and hopefully few prototypes,
5109 which can conflict with char accept(); below. */
5111 /* Override any gcc2 internal prototype to avoid an error. */
5112 /* We use char because int might match the return type of a gcc2
5113 builtin and then its argument prototype would still apply. */
5118 /* The GNU C library defines this for functions which it implements
5119 to always fail with ENOSYS. Some functions are actually named
5120 something starting with __ and the normal name is an alias. */
5121 #if defined (__stub_accept) || defined (__stub___accept)
5129 if { (eval echo configure:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5131 eval "ac_cv_func_accept
=yes"
5133 echo "configure
: failed program was
:" >&5
5134 cat conftest.$ac_ext >&5
5136 eval "ac_cv_func_accept
=no
"
5141 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5142 echo "$ac_t""yes" 1>&6
5144 gcj_cv_lib_sockets="-lsocket -lnsl"
5146 echo "$ac_t""no
" 1>&6
5149 unset ac_cv_func_accept
5152 unset ac_cv_func_gethostbyname
5154 LIBS="$LIBS $gcj_cv_lib_sockets"
5155 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
5156 echo "configure
:5157: checking
for gethostbyname
" >&5
5157 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5158 echo $ac_n "(cached
) $ac_c" 1>&6
5160 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure
"
5162 #include "confdefs.h
"
5163 /* System header to define __stub macros and hopefully few prototypes,
5164 which can conflict with char gethostbyname(); below. */
5166 /* Override any gcc2 internal prototype to avoid an error. */
5167 /* We use char because int might match the return type of a gcc2
5168 builtin and then its argument prototype would still apply. */
5169 char gethostbyname();
5173 /* The GNU C library defines this for functions which it implements
5174 to always fail with ENOSYS. Some functions are actually named
5175 something starting with __ and the normal name is an alias. */
5176 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5184 if { (eval echo configure:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5186 eval "ac_cv_func_gethostbyname
=yes"
5188 echo "configure
: failed program was
:" >&5
5189 cat conftest.$ac_ext >&5
5191 eval "ac_cv_func_gethostbyname
=no
"
5196 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5197 echo "$ac_t""yes" 1>&6
5200 echo "$ac_t""no
" 1>&6
5201 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
5202 echo "configure
:5203: checking
for main
in -lnsl" >&5
5203 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5205 echo $ac_n "(cached
) $ac_c" 1>&6
5207 ac_save_LIBS="$LIBS"
5209 cat > conftest.$ac_ext <<EOF
5210 #line 5211 "configure
"
5211 #include "confdefs.h
"
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5219 eval "ac_cv_lib_
$ac_lib_var=yes"
5221 echo "configure
: failed program was
:" >&5
5222 cat conftest.$ac_ext >&5
5224 eval "ac_cv_lib_
$ac_lib_var=no
"
5227 LIBS="$ac_save_LIBS"
5230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5231 echo "$ac_t""yes" 1>&6
5232 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5234 echo "$ac_t""no
" 1>&6
5239 unset ac_cv_func_gethostbyname
5244 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5245 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5247 if test "$with_system_zlib" = yes; then
5248 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
5249 echo "configure
:5250: checking
for deflate
in -lz" >&5
5250 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5252 echo $ac_n "(cached
) $ac_c" 1>&6
5254 ac_save_LIBS="$LIBS"
5256 cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure
"
5258 #include "confdefs.h
"
5259 /* Override any gcc2 internal prototype to avoid an error. */
5260 /* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5270 eval "ac_cv_lib_
$ac_lib_var=yes"
5272 echo "configure
: failed program was
:" >&5
5273 cat conftest.$ac_ext >&5
5275 eval "ac_cv_lib_
$ac_lib_var=no
"
5278 LIBS="$ac_save_LIBS"
5281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5282 echo "$ac_t""yes" 1>&6
5285 echo "$ac_t""no
" 1>&6
5291 ZLIBTESTSPEC="-L`pwd`/..
/zlib
/.libs
-rpath `pwd`/..
/zlib
/.libs
"
5294 # On Solaris, and maybe other architectures, the Boehm collector
5296 if test "$GC" = boehm; then
5297 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
5298 echo "configure
:5299: checking
for main
in -ldl" >&5
5299 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5301 echo $ac_n "(cached
) $ac_c" 1>&6
5303 ac_save_LIBS="$LIBS"
5305 cat > conftest.$ac_ext <<EOF
5306 #line 5307 "configure
"
5307 #include "confdefs.h
"
5313 if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5315 eval "ac_cv_lib_
$ac_lib_var=yes"
5317 echo "configure
: failed program was
:" >&5
5318 cat conftest.$ac_ext >&5
5320 eval "ac_cv_lib_
$ac_lib_var=no
"
5323 LIBS="$ac_save_LIBS"
5326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5327 echo "$ac_t""yes" 1>&6
5328 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5330 echo "$ac_t""no
" 1>&6
5335 if test -z "${with_multisubdir}"; then
5339 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5342 if test -x "${builddotdot}/..
/..
/gcc
/gcj
"; then
5343 dir="`cd ${builddotdot}/../../gcc && pwd`"
5344 GCJ="$dir/gcj
-B`pwd`/ -B$dir/"
5352 # Create it, so that compile/link tests don't fail
5353 test -f libgcj.spec || touch libgcj.spec
5355 # We must search the source tree for java.lang, since we still don't
5356 # have libgcj.jar nor java/lang/*.class
5357 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5358 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5360 # Since some classes depend on this one, we need its source available
5361 # before we can do any GCJ compilation test :-(
5362 if test ! -f gnu/classpath/Configuration.java; then
5363 test -d gnu || mkdir gnu
5364 test -d gnu/classpath || mkdir gnu/classpath
5365 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5366 < $srcdir/gnu/classpath/Configuration.java.in \
5367 > gnu/classpath/Configuration.java
5368 # We do not want to redirect the output of the grep below to /dev/null,
5369 # but we add /dev/null to the input list so that grep will print the
5370 # filename of Configuration.java in case it finds any matches.
5371 if grep @ gnu/classpath/Configuration.java /dev/null; then
5372 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
5376 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
5377 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5378 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5379 echo "configure
:5380: checking
for $ac_word" >&5
5380 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5381 echo $ac_n "(cached
) $ac_c" 1>&6
5383 if test -n "$GCJ"; then
5384 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5388 for ac_dir in $ac_dummy; do
5389 test -z "$ac_dir" && ac_dir=.
5390 if test -f $ac_dir/$ac_word; then
5391 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
5398 GCJ="$ac_cv_prog_GCJ"
5399 if test -n "$GCJ"; then
5400 echo "$ac_t""$GCJ" 1>&6
5402 echo "$ac_t""no
" 1>&6
5406 if test -z "$ac_cv_prog_GCJ"; then
5407 if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "gcj
", so it can be a program name with args.
5409 set dummy gcj; ac_word=$2
5410 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5411 echo "configure
:5412: checking
for $ac_word" >&5
5412 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5413 echo $ac_n "(cached
) $ac_c" 1>&6
5415 if test -n "$GCJ"; then
5416 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5420 for ac_dir in $ac_dummy; do
5421 test -z "$ac_dir" && ac_dir=.
5422 if test -f $ac_dir/$ac_word; then
5423 ac_cv_prog_GCJ="gcj
"
5428 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
5431 GCJ="$ac_cv_prog_GCJ"
5432 if test -n "$GCJ"; then
5433 echo "$ac_t""$GCJ" 1>&6
5435 echo "$ac_t""no
" 1>&6
5443 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5447 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
5449 lt_save_CFLAGS="$CFLAGS"
5450 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5451 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5452 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5453 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5454 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5455 deplibs_check_method="$deplibs_check_method" \
5456 file_magic_cmd="$file_magic_cmd" \
5457 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5458 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5459 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
5461 CFLAGS="$lt_save_CFLAGS"
5463 # Redirect the config.log output again, so that the ltconfig log is not
5464 # clobbered by the next message.
5465 exec 5>>./config.log
5470 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5472 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
5473 echo "configure
:5474: checking size of void
*" >&5
5474 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5475 echo $ac_n "(cached
) $ac_c" 1>&6
5477 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure
"
5480 #include "confdefs.h
"
5481 #include "confdefs.h
"
5482 #include <sys/types.h>
5486 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5489 if { (eval echo configure:5490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5491 ac_cv_sizeof_void_p=$ac_size
5493 echo "configure
: failed program was
:" >&5
5494 cat conftest.$ac_ext >&5
5497 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5502 if test x$ac_cv_sizeof_void_p = x ; then
5503 { echo "configure
: error
: cannot determine a size
for void
*" 1>&2; exit 1; }
5505 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5506 cat >> confdefs.h <<EOF
5507 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5515 if test "x
$ZLIBSPEC" = "x-lzgcj
"; then
5516 # We include the path to the zlib build directory.
5517 # See Makefile.am to understand why.
5518 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5519 ZLIBS="$ZDEPS -L\$
(here
)/..
/zlib
/$libsubdir"
5520 ZINCS='-I$(top_srcdir)/../zlib'
5532 if test "$CANADIAN" = yes; then
5541 if test "$NULL_TARGET" = yes; then
5543 NULL_TARGET_FALSE='#'
5545 NULL_TARGET_TRUE='#'
5550 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5559 if test -z "$with_cross_host"; then
5561 USE_LIBDIR_FALSE='#'
5568 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5569 NEEDS_DATA_START_TRUE=
5570 NEEDS_DATA_START_FALSE='#'
5572 NEEDS_DATA_START_TRUE='#'
5573 NEEDS_DATA_START_FALSE=
5579 echo $ac_n "checking
for g
++ -ffloat-store bug
""...
$ac_c" 1>&6
5580 echo "configure
:5581: checking
for g
++ -ffloat-store bug
" >&5
5581 save_CFLAGS="$CFLAGS"
5582 CFLAGS="-x c
++ -O2 -ffloat-store"
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure
"
5585 #include "confdefs.h
"
5591 if { (eval echo configure:5592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5593 echo "$ac_t""no
" 1>&6
5595 echo "configure
: failed program was
:" >&5
5596 cat conftest.$ac_ext >&5
5598 cat >> confdefs.h <<\EOF
5599 #define __NO_MATH_INLINES 1
5602 echo "$ac_t""yes" 1>&6
5605 CFLAGS="$save_CFLAGS"
5607 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
5609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5610 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5611 echo "configure
:5612: checking
for $ac_hdr" >&5
5612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5613 echo $ac_n "(cached
) $ac_c" 1>&6
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure
"
5617 #include "confdefs.h
"
5620 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5621 { (eval echo configure:5622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5623 if test -z "$ac_err"; then
5625 eval "ac_cv_header_
$ac_safe=yes"
5628 echo "configure
: failed program was
:" >&5
5629 cat conftest.$ac_ext >&5
5631 eval "ac_cv_header_
$ac_safe=no
"
5635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5638 cat >> confdefs.h <<EOF
5639 #define $ac_tr_hdr 1
5643 echo "$ac_t""no
" 1>&6
5647 for ac_hdr in dirent.h
5649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5650 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5651 echo "configure
:5652: checking
for $ac_hdr" >&5
5652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5653 echo $ac_n "(cached
) $ac_c" 1>&6
5655 cat > conftest.$ac_ext <<EOF
5656 #line 5657 "configure
"
5657 #include "confdefs.h
"
5660 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5661 { (eval echo configure:5662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5663 if test -z "$ac_err"; then
5665 eval "ac_cv_header_
$ac_safe=yes"
5668 echo "configure
: failed program was
:" >&5
5669 cat conftest.$ac_ext >&5
5671 eval "ac_cv_header_
$ac_safe=no
"
5675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5676 echo "$ac_t""yes" 1>&6
5677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5678 cat >> confdefs.h <<EOF
5679 #define $ac_tr_hdr 1
5683 echo "$ac_t""no
" 1>&6
5687 for ac_hdr in inttypes.h
5689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5690 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5691 echo "configure
:5692: checking
for $ac_hdr" >&5
5692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5693 echo $ac_n "(cached
) $ac_c" 1>&6
5695 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure
"
5697 #include "confdefs.h
"
5700 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5701 { (eval echo configure:5702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5703 if test -z "$ac_err"; then
5705 eval "ac_cv_header_
$ac_safe=yes"
5708 echo "configure
: failed program was
:" >&5
5709 cat conftest.$ac_ext >&5
5711 eval "ac_cv_header_
$ac_safe=no
"
5715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5716 echo "$ac_t""yes" 1>&6
5717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5718 cat >> confdefs.h <<EOF
5719 #define $ac_tr_hdr 1
5722 cat >> confdefs.h <<\EOF
5723 #define HAVE_INTTYPES_H 1
5726 cat >> confdefs.h <<\EOF
5727 #define JV_HAVE_INTTYPES_H 1
5732 echo "$ac_t""no
" 1>&6
5736 echo $ac_n "checking
for sys
/wait.h that is POSIX
.1 compatible
""...
$ac_c" 1>&6
5737 echo "configure
:5738: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
5738 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5739 echo $ac_n "(cached
) $ac_c" 1>&6
5741 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure
"
5743 #include "confdefs.h
"
5744 #include <sys/types.h>
5745 #include <sys/wait.h>
5747 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5750 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5755 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5758 if { (eval echo configure:5759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5760 ac_cv_header_sys_wait_h=yes
5762 echo "configure
: failed program was
:" >&5
5763 cat conftest.$ac_ext >&5
5765 ac_cv_header_sys_wait_h=no
5770 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5771 if test $ac_cv_header_sys_wait_h = yes; then
5772 cat >> confdefs.h <<\EOF
5773 #define HAVE_SYS_WAIT_H 1
5779 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
5780 echo "configure
:5781: checking
for ANSI C header files
" >&5
5781 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5782 echo $ac_n "(cached
) $ac_c" 1>&6
5784 cat > conftest.$ac_ext <<EOF
5785 #line 5786 "configure
"
5786 #include "confdefs.h
"
5792 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5793 { (eval echo configure:5794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5795 if test -z "$ac_err"; then
5797 ac_cv_header_stdc=yes
5800 echo "configure
: failed program was
:" >&5
5801 cat conftest.$ac_ext >&5
5803 ac_cv_header_stdc=no
5807 if test $ac_cv_header_stdc = yes; then
5808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure
"
5811 #include "confdefs.h
"
5814 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5815 egrep "memchr
" >/dev/null 2>&1; then
5819 ac_cv_header_stdc=no
5825 if test $ac_cv_header_stdc = yes; then
5826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5827 cat > conftest.$ac_ext <<EOF
5828 #line 5829 "configure
"
5829 #include "confdefs.h
"
5832 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5833 egrep "free
" >/dev/null 2>&1; then
5837 ac_cv_header_stdc=no
5843 if test $ac_cv_header_stdc = yes; then
5844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5845 if test "$cross_compiling" = yes; then
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure
"
5850 #include "confdefs.h
"
5852 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5853 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5855 int main () { int i; for (i = 0; i < 256; i++)
5856 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5864 echo "configure
: failed program was
:" >&5
5865 cat conftest.$ac_ext >&5
5867 ac_cv_header_stdc=no
5875 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5876 if test $ac_cv_header_stdc = yes; then
5877 cat >> confdefs.h <<\EOF
5878 #define STDC_HEADERS 1
5883 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
5884 echo "configure
:5885: checking
for ssize_t
" >&5
5885 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5886 echo $ac_n "(cached
) $ac_c" 1>&6
5888 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure
"
5890 #include "confdefs.h
"
5891 #include <sys/types.h>
5897 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5898 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
5900 ac_cv_type_ssize_t=yes
5903 ac_cv_type_ssize_t=no
5908 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5909 if test $ac_cv_type_ssize_t = no; then
5910 cat >> confdefs.h <<\EOF
5917 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
5918 echo "configure
:5919: checking
for in_addr_t
" >&5
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure
"
5921 #include "confdefs.h
"
5922 #include <sys/types.h>
5927 #if HAVE_NETINET_IN_H
5928 #include <netinet/in.h>
5934 if { (eval echo configure:5935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5936 cat >> confdefs.h <<\EOF
5937 #define HAVE_IN_ADDR_T 1
5940 echo "$ac_t""yes" 1>&6
5942 echo "configure
: failed program was
:" >&5
5943 cat conftest.$ac_ext >&5
5945 echo "$ac_t""no
" 1>&6
5949 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
5950 echo "configure
:5951: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
5951 cat > conftest.$ac_ext <<EOF
5952 #line 5953 "configure
"
5953 #include "confdefs.h
"
5954 #include <netinet/in.h>
5956 struct ip_mreq mreq;
5959 if { (eval echo configure:5960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5961 cat >> confdefs.h <<\EOF
5962 #define HAVE_STRUCT_IP_MREQ 1
5965 echo "$ac_t""yes" 1>&6
5967 echo "configure
: failed program was
:" >&5
5968 cat conftest.$ac_ext >&5
5970 echo "$ac_t""no
" 1>&6
5974 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
5975 echo "configure
:5976: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
5976 cat > conftest.$ac_ext <<EOF
5977 #line 5978 "configure
"
5978 #include "confdefs.h
"
5979 #include <netinet/in.h>
5981 struct ipv6_mreq mreq6;
5984 if { (eval echo configure:5985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5986 cat >> confdefs.h <<\EOF
5987 #define HAVE_STRUCT_IPV6_MREQ 1
5990 echo "$ac_t""yes" 1>&6
5992 echo "configure
: failed program was
:" >&5
5993 cat conftest.$ac_ext >&5
5995 echo "$ac_t""no
" 1>&6
5999 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
6000 echo "configure
:6001: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure
"
6003 #include "confdefs.h
"
6004 #include <netinet/in.h>
6006 struct sockaddr_in6 addr6;
6009 if { (eval echo configure:6010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6011 cat >> confdefs.h <<\EOF
6012 #define HAVE_INET6 1
6015 echo "$ac_t""yes" 1>&6
6017 echo "configure
: failed program was
:" >&5
6018 cat conftest.$ac_ext >&5
6020 echo "$ac_t""no
" 1>&6
6024 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
6025 echo "configure
:6026: checking
for socklen_t
in sys
/socket.h
" >&5
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure
"
6028 #include "confdefs.h
"
6029 #define _POSIX_PII_SOCKET
6030 #include <sys/types.h>
6031 #include <sys/socket.h>
6036 if { (eval echo configure:6037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6038 cat >> confdefs.h <<\EOF
6039 #define HAVE_SOCKLEN_T 1
6042 echo "$ac_t""yes" 1>&6
6044 echo "configure
: failed program was
:" >&5
6045 cat conftest.$ac_ext >&5
6047 echo "$ac_t""no
" 1>&6
6051 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
6052 echo "configure
:6053: checking
for tm_gmtoff
in struct tm
" >&5
6053 cat > conftest.$ac_ext <<EOF
6054 #line 6055 "configure
"
6055 #include "confdefs.h
"
6058 struct tm tim; tim.tm_gmtoff = 0;
6061 if { (eval echo configure:6062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6063 cat >> confdefs.h <<\EOF
6064 #define STRUCT_TM_HAS_GMTOFF 1
6067 echo "$ac_t""yes" 1>&6
6069 echo "configure
: failed program was
:" >&5
6070 cat conftest.$ac_ext >&5
6072 echo "$ac_t""no
" 1>&6
6073 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
6074 echo "configure
:6075: checking
for global timezone variable
" >&5
6075 cat > conftest.$ac_ext <<EOF
6076 #line 6077 "configure
"
6077 #include "confdefs.h
"
6083 if { (eval echo configure:6084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6085 cat >> confdefs.h <<\EOF
6086 #define HAVE_TIMEZONE 1
6089 echo "$ac_t""yes" 1>&6
6091 echo "configure
: failed program was
:" >&5
6092 cat conftest.$ac_ext >&5
6094 echo "$ac_t""no
" 1>&6
6100 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6101 # for constant arguments. Useless!
6102 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
6103 echo "configure
:6104: checking
for working alloca.h
" >&5
6104 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6105 echo $ac_n "(cached
) $ac_c" 1>&6
6107 cat > conftest.$ac_ext <<EOF
6108 #line 6109 "configure
"
6109 #include "confdefs.h
"
6112 char *p = alloca(2 * sizeof(int));
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6117 ac_cv_header_alloca_h=yes
6119 echo "configure
: failed program was
:" >&5
6120 cat conftest.$ac_ext >&5
6122 ac_cv_header_alloca_h=no
6127 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6128 if test $ac_cv_header_alloca_h = yes; then
6129 cat >> confdefs.h <<\EOF
6130 #define HAVE_ALLOCA_H 1
6135 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
6136 echo "configure
:6137: checking
for alloca
" >&5
6137 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6138 echo $ac_n "(cached
) $ac_c" 1>&6
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure
"
6142 #include "confdefs.h
"
6145 # define alloca __builtin_alloca
6148 # include <malloc.h>
6149 # define alloca _alloca
6152 # include <alloca.h>
6157 # ifndef alloca /* predefined by HP cc +Olibcalls */
6166 char *p = (char *) alloca(1);
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6171 ac_cv_func_alloca_works=yes
6173 echo "configure
: failed program was
:" >&5
6174 cat conftest.$ac_ext >&5
6176 ac_cv_func_alloca_works=no
6181 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6182 if test $ac_cv_func_alloca_works = yes; then
6183 cat >> confdefs.h <<\EOF
6184 #define HAVE_ALLOCA 1
6189 if test $ac_cv_func_alloca_works = no; then
6190 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6191 # that cause trouble. Some versions do not even contain alloca or
6192 # contain a buggy version. If you still want to use their alloca,
6193 # use ar to extract alloca.o from them instead of compiling alloca.c.
6194 ALLOCA=alloca.${ac_objext}
6195 cat >> confdefs.h <<\EOF
6200 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
6201 echo "configure
:6202: checking whether alloca needs Cray hooks
" >&5
6202 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6203 echo $ac_n "(cached
) $ac_c" 1>&6
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure
"
6207 #include "confdefs.h
"
6208 #if defined(CRAY) && ! defined(CRAY2)
6215 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6216 egrep "webecray
" >/dev/null 2>&1; then
6227 echo "$ac_t""$ac_cv_os_cray" 1>&6
6228 if test $ac_cv_os_cray = yes; then
6229 for ac_func in _getb67 GETB67 getb67; do
6230 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6231 echo "configure
:6232: checking
for $ac_func" >&5
6232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6233 echo $ac_n "(cached
) $ac_c" 1>&6
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure
"
6237 #include "confdefs.h
"
6238 /* System header to define __stub macros and hopefully few prototypes,
6239 which can conflict with char $ac_func(); below. */
6241 /* Override any gcc2 internal prototype to avoid an error. */
6242 /* We use char because int might match the return type of a gcc2
6243 builtin and then its argument prototype would still apply. */
6248 /* The GNU C library defines this for functions which it implements
6249 to always fail with ENOSYS. Some functions are actually named
6250 something starting with __ and the normal name is an alias. */
6251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6259 if { (eval echo configure:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6261 eval "ac_cv_func_
$ac_func=yes"
6263 echo "configure
: failed program was
:" >&5
6264 cat conftest.$ac_ext >&5
6266 eval "ac_cv_func_
$ac_func=no
"
6271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6272 echo "$ac_t""yes" 1>&6
6273 cat >> confdefs.h <<EOF
6274 #define CRAY_STACKSEG_END $ac_func
6279 echo "$ac_t""no
" 1>&6
6285 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
6286 echo "configure
:6287: checking stack direction
for C alloca
" >&5
6287 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6288 echo $ac_n "(cached
) $ac_c" 1>&6
6290 if test "$cross_compiling" = yes; then
6291 ac_cv_c_stack_direction=0
6293 cat > conftest.$ac_ext <<EOF
6294 #line 6295 "configure
"
6295 #include "confdefs.h
"
6296 find_stack_direction ()
6298 static char *addr = 0;
6303 return find_stack_direction ();
6306 return (&dummy > addr) ? 1 : -1;
6310 exit (find_stack_direction() < 0);
6313 if { (eval echo configure:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6315 ac_cv_c_stack_direction=1
6317 echo "configure
: failed program was
:" >&5
6318 cat conftest.$ac_ext >&5
6320 ac_cv_c_stack_direction=-1
6327 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6328 cat >> confdefs.h <<EOF
6329 #define STACK_DIRECTION $ac_cv_c_stack_direction
6337 # Extract the first word of "$ac_prog", so it can be a program name with args.
6338 set dummy $ac_prog; ac_word=$2
6339 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6340 echo "configure
:6341: checking
for $ac_word" >&5
6341 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6342 echo $ac_n "(cached
) $ac_c" 1>&6
6344 if test -n "$PERL"; then
6345 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6349 for ac_dir in $ac_dummy; do
6350 test -z "$ac_dir" && ac_dir=.
6351 if test -f $ac_dir/$ac_word; then
6352 ac_cv_prog_PERL="$ac_prog"
6359 PERL="$ac_cv_prog_PERL"
6360 if test -n "$PERL"; then
6361 echo "$ac_t""$PERL" 1>&6
6363 echo "$ac_t""no
" 1>&6
6366 test -n "$PERL" && break
6368 test -n "$PERL" || PERL="false
"
6375 SIGNAL_HANDLER=include/i386-signal.h
6378 SIGNAL_HANDLER=include/sparc-signal.h
6381 # SYSDEP_SOURCES=sysdep/ia64.c
6382 # test -d sysdep || mkdir sysdep
6385 SIGNAL_HANDLER=include/dwarf2-signal.h
6388 SIGNAL_HANDLER=include/dwarf2-signal.h
6391 SIGNAL_HANDLER=include/win32-signal.h
6394 SIGNAL_HANDLER=include/default-signal.h
6398 # If we're using sjlj exceptions, forget what we just learned.
6399 if test "$enable_sjlj_exceptions" = yes; then
6400 SIGNAL_HANDLER=include/default-signal.h
6407 if test "${multilib}" = "yes"; then
6408 multilib_arg="--enable-multilib"
6413 # If we find X, set shell vars x_includes and x_libraries to the
6414 # paths, otherwise set no_x=yes.
6415 # Uses ac_ vars as temps to allow command line to override cache and checks.
6416 # --without-x overrides everything else, but does not touch the cache.
6417 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
6418 echo "configure
:6419: checking
for X
" >&5
6420 # Check whether --with-x or --without-x was given.
6421 if test "${with_x+set}" = set; then
6426 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6427 if test "x
$with_x" = xno; then
6428 # The user explicitly disabled X.
6431 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
6432 # Both variables are already set.
6435 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6436 echo $ac_n "(cached
) $ac_c" 1>&6
6438 # One or both of the vars are not set, and there is no cached value.
6439 ac_x_includes=NO ac_x_libraries=NO
6441 if mkdir conftestdir; then
6443 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6444 cat > Imakefile <<'EOF'
6446 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6448 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6449 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
6450 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6451 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6452 for ac_extension in a so sl; do
6453 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6454 test -f $ac_im_libdir/libX11.$ac_extension; then
6455 ac_im_usrlibdir=$ac_im_libdir; break
6458 # Screen out bogus values from the imake configuration. They are
6459 # bogus both because they are the default anyway, and because
6460 # using them would break gcc on systems where it needs fixed includes.
6461 case "$ac_im_incroot" in
6463 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
6465 case "$ac_im_usrlibdir" in
6467 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6474 if test "$ac_x_includes" = NO; then
6475 # Guess where to find include files, by looking for this one X11 .h file.
6476 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6478 # First, try using that file with no special directory specified.
6479 cat > conftest.$ac_ext <<EOF
6480 #line 6481 "configure
"
6481 #include "confdefs.h
"
6482 #include <$x_direct_test_include>
6484 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6485 { (eval echo configure:6486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6487 if test -z "$ac_err"; then
6489 # We can compile using X headers with no special include directory.
6493 echo "configure
: failed program was
:" >&5
6494 cat conftest.$ac_ext >&5
6496 # Look for the header file in a standard set of common directories.
6497 # Check X11 before X11Rn because it is often a symlink to the current release.
6500 /usr/X11R6/include \
6501 /usr/X11R5/include \
6502 /usr/X11R4/include \
6505 /usr/include/X11R6 \
6506 /usr/include/X11R5 \
6507 /usr/include/X11R4 \
6509 /usr/local/X11/include \
6510 /usr/local/X11R6/include \
6511 /usr/local/X11R5/include \
6512 /usr/local/X11R4/include \
6514 /usr/local/include/X11 \
6515 /usr/local/include/X11R6 \
6516 /usr/local/include/X11R5 \
6517 /usr/local/include/X11R4 \
6521 /usr/XFree86/include/X11 \
6524 /usr/local/include \
6525 /usr/unsupported/include \
6526 /usr/athena/include \
6527 /usr/local/x11r5/include \
6528 /usr/lpp/Xamples/include \
6530 /usr/openwin/include \
6531 /usr/openwin/share/include \
6534 if test -r "$ac_dir/$x_direct_test_include"; then
6535 ac_x_includes=$ac_dir
6541 fi # $ac_x_includes = NO
6543 if test "$ac_x_libraries" = NO; then
6544 # Check for the libraries.
6546 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6547 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6549 # See if we find them without any special options.
6550 # Don't add to $LIBS permanently.
6551 ac_save_LIBS="$LIBS"
6552 LIBS="-l$x_direct_test_library $LIBS"
6553 cat > conftest.$ac_ext <<EOF
6554 #line 6555 "configure
"
6555 #include "confdefs.h
"
6558 ${x_direct_test_function}()
6561 if { (eval echo configure:6562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6563 LIBS="$ac_save_LIBS"
6564 # We can link X programs with no special library path.
6567 echo "configure
: failed program was
:" >&5
6568 cat conftest.$ac_ext >&5
6570 LIBS="$ac_save_LIBS"
6571 # First see if replacing the include by lib works.
6572 # Check X11 before X11Rn because it is often a symlink to the current release.
6573 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6584 /usr/local/X11/lib \
6585 /usr/local/X11R6/lib \
6586 /usr/local/X11R5/lib \
6587 /usr/local/X11R4/lib \
6589 /usr/local/lib/X11 \
6590 /usr/local/lib/X11R6 \
6591 /usr/local/lib/X11R5 \
6592 /usr/local/lib/X11R4 \
6596 /usr/XFree86/lib/X11 \
6600 /usr/unsupported/lib \
6602 /usr/local/x11r5/lib \
6603 /usr/lpp/Xamples/lib \
6607 /usr/openwin/share/lib \
6610 for ac_extension in a so sl; do
6611 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6612 ac_x_libraries=$ac_dir
6619 fi # $ac_x_libraries = NO
6621 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6622 # Didn't find X anywhere. Cache the known absence of X.
6623 ac_cv_have_x="have_x
=no
"
6625 # Record where we found X for the cache.
6626 ac_cv_have_x="have_x
=yes \
6627 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
6631 eval "$ac_cv_have_x"
6634 if test "$have_x" != yes; then
6635 echo "$ac_t""$have_x" 1>&6
6638 # If each of the values was on the command line, it overrides each guess.
6639 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
6640 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6641 # Update the cache value to reflect the command line values.
6642 ac_cv_have_x="have_x
=yes \
6643 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
6644 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
6647 if test "$no_x" = yes; then
6648 # Not all programs may use this symbol, but it does not hurt to define it.
6649 cat >> confdefs.h <<\EOF
6650 #define X_DISPLAY_MISSING 1
6653 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6655 if test -n "$x_includes"; then
6656 X_CFLAGS="$X_CFLAGS -I$x_includes"
6659 # It would also be nice to do this for all -L options, not just this one.
6660 if test -n "$x_libraries"; then
6661 X_LIBS="$X_LIBS -L$x_libraries"
6662 # For Solaris; some versions of Sun CC require a space after -R and
6663 # others require no space. Words are not sufficient . . . .
6664 case "`(uname -sr) 2>/dev/null`" in
6666 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
6667 echo "configure
:6668: checking whether
-R must be followed by a space
" >&5
6668 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure
"
6671 #include "confdefs.h
"
6677 if { (eval echo configure:6678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6681 echo "configure
: failed program was
:" >&5
6682 cat conftest.$ac_ext >&5
6687 if test $ac_R_nospace = yes; then
6688 echo "$ac_t""no
" 1>&6
6689 X_LIBS="$X_LIBS -R$x_libraries"
6691 LIBS="$ac_xsave_LIBS -R $x_libraries"
6692 cat > conftest.$ac_ext <<EOF
6693 #line 6694 "configure
"
6694 #include "confdefs.h
"
6700 if { (eval echo configure:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6704 echo "configure
: failed program was
:" >&5
6705 cat conftest.$ac_ext >&5
6710 if test $ac_R_space = yes; then
6711 echo "$ac_t""yes" 1>&6
6712 X_LIBS="$X_LIBS -R $x_libraries"
6714 echo "$ac_t""neither works
" 1>&6
6717 LIBS="$ac_xsave_LIBS"
6721 # Check for system-dependent libraries X programs must link with.
6722 # Do this before checking for the system-independent R6 libraries
6723 # (-lICE), since we may need -lsocket or whatever for X linking.
6725 if test "$ISC" = yes; then
6726 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6728 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6729 # libraries were built with DECnet support. And karl@cs.umb.edu says
6730 # the Alpha needs dnet_stub (dnet does not exist).
6731 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
6732 echo "configure
:6733: checking
for dnet_ntoa
in -ldnet" >&5
6733 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6735 echo $ac_n "(cached
) $ac_c" 1>&6
6737 ac_save_LIBS="$LIBS"
6739 cat > conftest.$ac_ext <<EOF
6740 #line 6741 "configure
"
6741 #include "confdefs.h
"
6742 /* Override any gcc2 internal prototype to avoid an error. */
6743 /* We use char because int might match the return type of a gcc2
6744 builtin and then its argument prototype would still apply. */
6751 if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6753 eval "ac_cv_lib_
$ac_lib_var=yes"
6755 echo "configure
: failed program was
:" >&5
6756 cat conftest.$ac_ext >&5
6758 eval "ac_cv_lib_
$ac_lib_var=no
"
6761 LIBS="$ac_save_LIBS"
6764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6765 echo "$ac_t""yes" 1>&6
6766 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6768 echo "$ac_t""no
" 1>&6
6771 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6772 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
6773 echo "configure
:6774: checking
for dnet_ntoa
in -ldnet_stub" >&5
6774 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6776 echo $ac_n "(cached
) $ac_c" 1>&6
6778 ac_save_LIBS="$LIBS"
6779 LIBS="-ldnet_stub $LIBS"
6780 cat > conftest.$ac_ext <<EOF
6781 #line 6782 "configure
"
6782 #include "confdefs.h
"
6783 /* Override any gcc2 internal prototype to avoid an error. */
6784 /* We use char because int might match the return type of a gcc2
6785 builtin and then its argument prototype would still apply. */
6792 if { (eval echo configure:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6794 eval "ac_cv_lib_
$ac_lib_var=yes"
6796 echo "configure
: failed program was
:" >&5
6797 cat conftest.$ac_ext >&5
6799 eval "ac_cv_lib_
$ac_lib_var=no
"
6802 LIBS="$ac_save_LIBS"
6805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6806 echo "$ac_t""yes" 1>&6
6807 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6809 echo "$ac_t""no
" 1>&6
6814 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6815 # to get the SysV transport functions.
6816 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6818 # The nsl library prevents programs from opening the X display
6819 # on Irix 5.2, according to dickey@clark.net.
6820 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6821 echo "configure
:6822: checking
for gethostbyname
" >&5
6822 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6823 echo $ac_n "(cached
) $ac_c" 1>&6
6825 cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure
"
6827 #include "confdefs.h
"
6828 /* System header to define __stub macros and hopefully few prototypes,
6829 which can conflict with char gethostbyname(); below. */
6831 /* Override any gcc2 internal prototype to avoid an error. */
6832 /* We use char because int might match the return type of a gcc2
6833 builtin and then its argument prototype would still apply. */
6834 char gethostbyname();
6838 /* The GNU C library defines this for functions which it implements
6839 to always fail with ENOSYS. Some functions are actually named
6840 something starting with __ and the normal name is an alias. */
6841 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6849 if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6851 eval "ac_cv_func_gethostbyname
=yes"
6853 echo "configure
: failed program was
:" >&5
6854 cat conftest.$ac_ext >&5
6856 eval "ac_cv_func_gethostbyname
=no
"
6861 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6862 echo "$ac_t""yes" 1>&6
6865 echo "$ac_t""no
" 1>&6
6868 if test $ac_cv_func_gethostbyname = no; then
6869 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
6870 echo "configure
:6871: checking
for gethostbyname
in -lnsl" >&5
6871 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6873 echo $ac_n "(cached
) $ac_c" 1>&6
6875 ac_save_LIBS="$LIBS"
6877 cat > conftest.$ac_ext <<EOF
6878 #line 6879 "configure
"
6879 #include "confdefs.h
"
6880 /* Override any gcc2 internal prototype to avoid an error. */
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6883 char gethostbyname();
6889 if { (eval echo configure:6890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6891 eval "ac_cv_lib_
$ac_lib_var=yes"
6893 echo "configure
: failed program was
:" >&5
6894 cat conftest.$ac_ext >&5
6896 eval "ac_cv_lib_
$ac_lib_var=no
"
6899 LIBS="$ac_save_LIBS"
6902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6903 echo "$ac_t""yes" 1>&6
6904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6906 echo "$ac_t""no
" 1>&6
6911 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6912 # socket/setsockopt and other routines are undefined under SCO ODT
6913 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6914 # on later versions), says simon@lia.di.epfl.ch: it contains
6915 # gethostby* variants that don't use the nameserver (or something).
6916 # -lsocket must be given before -lnsl if both are needed.
6917 # We assume that if connect needs -lnsl, so does gethostbyname.
6918 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6919 echo "configure
:6920: checking
for connect
" >&5
6920 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6921 echo $ac_n "(cached
) $ac_c" 1>&6
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure
"
6925 #include "confdefs.h
"
6926 /* System header to define __stub macros and hopefully few prototypes,
6927 which can conflict with char connect(); below. */
6929 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6936 /* The GNU C library defines this for functions which it implements
6937 to always fail with ENOSYS. Some functions are actually named
6938 something starting with __ and the normal name is an alias. */
6939 #if defined (__stub_connect) || defined (__stub___connect)
6947 if { (eval echo configure:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6949 eval "ac_cv_func_connect
=yes"
6951 echo "configure
: failed program was
:" >&5
6952 cat conftest.$ac_ext >&5
6954 eval "ac_cv_func_connect
=no
"
6959 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6960 echo "$ac_t""yes" 1>&6
6963 echo "$ac_t""no
" 1>&6
6966 if test $ac_cv_func_connect = no; then
6967 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
6968 echo "configure
:6969: checking
for connect
in -lsocket" >&5
6969 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6971 echo $ac_n "(cached
) $ac_c" 1>&6
6973 ac_save_LIBS="$LIBS"
6974 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure
"
6977 #include "confdefs.h
"
6978 /* Override any gcc2 internal prototype to avoid an error. */
6979 /* We use char because int might match the return type of a gcc2
6980 builtin and then its argument prototype would still apply. */
6987 if { (eval echo configure:6988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6989 eval "ac_cv_lib_
$ac_lib_var=yes"
6991 echo "configure
: failed program was
:" >&5
6992 cat conftest.$ac_ext >&5
6994 eval "ac_cv_lib_
$ac_lib_var=no
"
6997 LIBS="$ac_save_LIBS"
7000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7001 echo "$ac_t""yes" 1>&6
7002 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7004 echo "$ac_t""no
" 1>&6
7009 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7010 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
7011 echo "configure
:7012: checking
for remove
" >&5
7012 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7013 echo $ac_n "(cached
) $ac_c" 1>&6
7015 cat > conftest.$ac_ext <<EOF
7016 #line 7017 "configure
"
7017 #include "confdefs.h
"
7018 /* System header to define __stub macros and hopefully few prototypes,
7019 which can conflict with char remove(); below. */
7021 /* Override any gcc2 internal prototype to avoid an error. */
7022 /* We use char because int might match the return type of a gcc2
7023 builtin and then its argument prototype would still apply. */
7028 /* The GNU C library defines this for functions which it implements
7029 to always fail with ENOSYS. Some functions are actually named
7030 something starting with __ and the normal name is an alias. */
7031 #if defined (__stub_remove) || defined (__stub___remove)
7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7041 eval "ac_cv_func_remove
=yes"
7043 echo "configure
: failed program was
:" >&5
7044 cat conftest.$ac_ext >&5
7046 eval "ac_cv_func_remove
=no
"
7051 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7052 echo "$ac_t""yes" 1>&6
7055 echo "$ac_t""no
" 1>&6
7058 if test $ac_cv_func_remove = no; then
7059 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
7060 echo "configure
:7061: checking
for remove
in -lposix" >&5
7061 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7063 echo $ac_n "(cached
) $ac_c" 1>&6
7065 ac_save_LIBS="$LIBS"
7066 LIBS="-lposix $LIBS"
7067 cat > conftest.$ac_ext <<EOF
7068 #line 7069 "configure
"
7069 #include "confdefs.h
"
7070 /* Override any gcc2 internal prototype to avoid an error. */
7071 /* We use char because int might match the return type of a gcc2
7072 builtin and then its argument prototype would still apply. */
7079 if { (eval echo configure:7080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7081 eval "ac_cv_lib_
$ac_lib_var=yes"
7083 echo "configure
: failed program was
:" >&5
7084 cat conftest.$ac_ext >&5
7086 eval "ac_cv_lib_
$ac_lib_var=no
"
7089 LIBS="$ac_save_LIBS"
7092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7093 echo "$ac_t""yes" 1>&6
7094 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7096 echo "$ac_t""no
" 1>&6
7101 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7102 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
7103 echo "configure
:7104: checking
for shmat
" >&5
7104 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7105 echo $ac_n "(cached
) $ac_c" 1>&6
7107 cat > conftest.$ac_ext <<EOF
7108 #line 7109 "configure
"
7109 #include "confdefs.h
"
7110 /* System header to define __stub macros and hopefully few prototypes,
7111 which can conflict with char shmat(); below. */
7113 /* Override any gcc2 internal prototype to avoid an error. */
7114 /* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */
7120 /* The GNU C library defines this for functions which it implements
7121 to always fail with ENOSYS. Some functions are actually named
7122 something starting with __ and the normal name is an alias. */
7123 #if defined (__stub_shmat) || defined (__stub___shmat)
7131 if { (eval echo configure:7132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7133 eval "ac_cv_func_shmat
=yes"
7135 echo "configure
: failed program was
:" >&5
7136 cat conftest.$ac_ext >&5
7138 eval "ac_cv_func_shmat
=no
"
7143 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7144 echo "$ac_t""yes" 1>&6
7147 echo "$ac_t""no
" 1>&6
7150 if test $ac_cv_func_shmat = no; then
7151 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
7152 echo "configure
:7153: checking
for shmat
in -lipc" >&5
7153 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7155 echo $ac_n "(cached
) $ac_c" 1>&6
7157 ac_save_LIBS="$LIBS"
7159 cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure
"
7161 #include "confdefs.h
"
7162 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7173 eval "ac_cv_lib_
$ac_lib_var=yes"
7175 echo "configure
: failed program was
:" >&5
7176 cat conftest.$ac_ext >&5
7178 eval "ac_cv_lib_
$ac_lib_var=no
"
7181 LIBS="$ac_save_LIBS"
7184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7185 echo "$ac_t""yes" 1>&6
7186 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7188 echo "$ac_t""no
" 1>&6
7194 # Check for libraries that X11R6 Xt/Xaw programs need.
7195 ac_save_LDFLAGS="$LDFLAGS"
7196 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7197 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7198 # check for ICE first), but we must link in the order -lSM -lICE or
7199 # we get undefined symbols. So assume we have SM if we have ICE.
7200 # These have to be linked with before -lX11, unlike the other
7201 # libraries we check for below, so use a different variable.
7202 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7203 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
7204 echo "configure
:7205: checking
for IceConnectionNumber
in -lICE" >&5
7205 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7207 echo $ac_n "(cached
) $ac_c" 1>&6
7209 ac_save_LIBS="$LIBS"
7210 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7211 cat > conftest.$ac_ext <<EOF
7212 #line 7213 "configure
"
7213 #include "confdefs.h
"
7214 /* Override any gcc2 internal prototype to avoid an error. */
7215 /* We use char because int might match the return type of a gcc2
7216 builtin and then its argument prototype would still apply. */
7217 char IceConnectionNumber();
7220 IceConnectionNumber()
7223 if { (eval echo configure:7224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7225 eval "ac_cv_lib_
$ac_lib_var=yes"
7227 echo "configure
: failed program was
:" >&5
7228 cat conftest.$ac_ext >&5
7230 eval "ac_cv_lib_
$ac_lib_var=no
"
7233 LIBS="$ac_save_LIBS"
7236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7237 echo "$ac_t""yes" 1>&6
7238 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7240 echo "$ac_t""no
" 1>&6
7243 LDFLAGS="$ac_save_LDFLAGS"
7248 # Check whether --enable-java-awt or --disable-java-awt was given.
7249 if test "${enable_java_awt+set}" = set; then
7250 enableval="$enable_java_awt"
7255 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7259 for peer in $peerlibs ; do
7262 if test "$no_x" = yes; then
7263 echo "*** xlib peers requested but no X library available
" 1>&2
7278 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
7285 if test "$use_xlib_awt" = yes; then
7294 if test "$use_gtk_awt" = yes; then
7306 # We get this from the environment.
7310 cat > confcache <<\EOF
7311 # This file is a shell script that caches the results of configure
7312 # tests run on this system so they can be shared between configure
7313 # scripts and configure runs. It is not useful on other systems.
7314 # If it contains results you don't want to keep, you may remove or edit it.
7316 # By default, configure uses ./config.cache as the cache file,
7317 # creating it if it does not exist already. You can give configure
7318 # the --cache-file=FILE option to use a different cache file; that is
7319 # what configure does when it calls configure scripts in
7320 # subdirectories, so they share the cache.
7321 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7322 # config.status only pays attention to the cache file if you give it the
7323 # --recheck option to rerun configure.
7326 # The following way of writing the cache mishandles newlines in values,
7327 # but we know of no workaround that is simple, portable, and efficient.
7328 # So, don't put newlines in cache variables' values.
7329 # Ultrix sh set writes to stderr and can't be redirected directly,
7330 # and sets the high bit in the cache file unless we assign to the vars.
7332 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7334 # `set' does not quote correctly, so add quotes (double-quote substitution
7335 # turns \\\\ into \\, and sed turns \\ into \).
7337 -e "s
/'/'\\\\''/g
" \
7338 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
7341 # `set' quotes correctly as required by POSIX, so do not add quotes.
7342 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7345 if cmp -s $cache_file confcache; then
7348 if test -w $cache_file; then
7349 echo "updating cache
$cache_file"
7350 cat confcache > $cache_file
7352 echo "not updating unwritable cache
$cache_file"
7357 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7359 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
7360 # Let make expand exec_prefix.
7361 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
7363 # Any assignment to VPATH causes Sun make to only execute
7364 # the first set of double-colon rules, so remove it if not needed.
7365 # If there is a colon in the path, we need to keep it.
7366 if test "x
$srcdir" = x.; then
7367 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7370 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7372 DEFS=-DHAVE_CONFIG_H
7374 # Without the ".
/", some shells look in PATH for config.status.
7375 : ${CONFIG_STATUS=./config.status}
7377 echo creating $CONFIG_STATUS
7378 rm -f $CONFIG_STATUS
7379 cat > $CONFIG_STATUS <<EOF
7381 # Generated automatically by configure.
7382 # Run this file to recreate the current configuration.
7383 # This directory was configured as follows,
7384 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7386 # $0 $ac_configure_args
7388 # Compiler output produced by configure, useful for debugging
7389 # configure, is in ./config.log if it exists.
7391 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
7394 case "\
$ac_option" in
7395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7396 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7397 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7398 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7399 echo "$CONFIG_STATUS generated by autoconf version
2.13"
7401 -help | --help | --hel | --he | --h)
7402 echo "\
$ac_cs_usage"; exit 0 ;;
7403 *) echo "\
$ac_cs_usage"; exit 1 ;;
7407 ac_given_srcdir=$srcdir
7408 ac_given_INSTALL="$INSTALL"
7410 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
7412 cat >> $CONFIG_STATUS <<EOF
7414 # Protect against being on the right side of a sed subst in config.status.
7415 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7416 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7420 s%@CFLAGS@%$CFLAGS%g
7421 s%@CPPFLAGS@%$CPPFLAGS%g
7422 s%@CXXFLAGS@%$CXXFLAGS%g
7423 s%@FFLAGS@%$FFLAGS%g
7425 s%@LDFLAGS@%$LDFLAGS%g
7427 s%@exec_prefix@%$exec_prefix%g
7428 s%@prefix@%$prefix%g
7429 s%@program_transform_name@%$program_transform_name%g
7430 s%@bindir@%$bindir%g
7431 s%@sbindir@%$sbindir%g
7432 s%@libexecdir@%$libexecdir%g
7433 s%@datadir@%$datadir%g
7434 s%@sysconfdir@%$sysconfdir%g
7435 s%@sharedstatedir@%$sharedstatedir%g
7436 s%@localstatedir@%$localstatedir%g
7437 s%@libdir@%$libdir%g
7438 s%@includedir@%$includedir%g
7439 s%@oldincludedir@%$oldincludedir%g
7440 s%@infodir@%$infodir%g
7441 s%@mandir@%$mandir%g
7443 s%@libgcj_basedir@%$libgcj_basedir%g
7444 s%@mkinstalldirs@%$mkinstalldirs%g
7446 s%@host_alias@%$host_alias%g
7447 s%@host_cpu@%$host_cpu%g
7448 s%@host_vendor@%$host_vendor%g
7449 s%@host_os@%$host_os%g
7450 s%@target@%$target%g
7451 s%@target_alias@%$target_alias%g
7452 s%@target_cpu@%$target_cpu%g
7453 s%@target_vendor@%$target_vendor%g
7454 s%@target_os@%$target_os%g
7456 s%@build_alias@%$build_alias%g
7457 s%@build_cpu@%$build_cpu%g
7458 s%@build_vendor@%$build_vendor%g
7459 s%@build_os@%$build_os%g
7461 s%@glibjava_CXX@%$glibjava_CXX%g
7463 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7464 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7465 s%@INSTALL_DATA@%$INSTALL_DATA%g
7466 s%@PACKAGE@%$PACKAGE%g
7467 s%@VERSION@%$VERSION%g
7468 s%@ACLOCAL@%$ACLOCAL%g
7469 s%@AUTOCONF@%$AUTOCONF%g
7470 s%@AUTOMAKE@%$AUTOMAKE%g
7471 s%@AUTOHEADER@%$AUTOHEADER%g
7472 s%@MAKEINFO@%$MAKEINFO%g
7473 s%@SET_MAKE@%$SET_MAKE%g
7476 s%@RANLIB@%$RANLIB%g
7477 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7478 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7480 s%@EXEEXT@%$EXEEXT%g
7481 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7482 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7483 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7484 s%@INCLTDL@%$INCLTDL%g
7485 s%@LIBLTDL@%$LIBLTDL%g
7486 s%@DIRLTDL@%$DIRLTDL%g
7487 s%@OBJEXT@%$OBJEXT%g
7489 s%@LIBTOOL@%$LIBTOOL%g
7490 s%@CXXCPP@%$CXXCPP%g
7491 s%@subdirs@%$subdirs%g
7492 s%@COMPPATH@%$COMPPATH%g
7493 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7494 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7495 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7496 s%@LIBFFI@%$LIBFFI%g
7497 s%@LIBFFIINCS@%$LIBFFIINCS%g
7498 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7500 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7501 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7502 s%@ZLIBSPEC@%$ZLIBSPEC%g
7503 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7504 s%@GCLIBS@%$GCLIBS%g
7505 s%@GCINCS@%$GCINCS%g
7506 s%@GCDEPS@%$GCDEPS%g
7507 s%@GCOBJS@%$GCOBJS%g
7508 s%@GCSPEC@%$GCSPEC%g
7509 s%@JC1GCSPEC@%$JC1GCSPEC%g
7510 s%@GCTESTSPEC@%$GCTESTSPEC%g
7511 s%@THREADLIBS@%$THREADLIBS%g
7512 s%@THREADINCS@%$THREADINCS%g
7513 s%@THREADDEPS@%$THREADDEPS%g
7514 s%@THREADOBJS@%$THREADOBJS%g
7515 s%@THREADSPEC@%$THREADSPEC%g
7516 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7517 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7518 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7519 s%@tool_include_dir@%$tool_include_dir%g
7520 s%@LIBICONV@%$LIBICONV%g
7522 s%@GCJFLAGS@%$GCJFLAGS%g
7526 s%@DIVIDESPEC@%$DIVIDESPEC%g
7527 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7528 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7529 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7530 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7531 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7532 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7533 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7534 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7535 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7536 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7537 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7538 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7539 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7540 s%@ALLOCA@%$ALLOCA%g
7542 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7543 s%@X_CFLAGS@%$X_CFLAGS%g
7544 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7545 s%@X_LIBS@%$X_LIBS%g
7546 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7547 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7548 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7549 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7550 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7556 cat >> $CONFIG_STATUS <<\EOF
7558 # Split the substitutions into bite-sized pieces for seds with
7559 # small command number limits, like on Digital OSF/1 and HP-UX.
7560 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7561 ac_file=1 # Number of current file.
7562 ac_beg=1 # First line for current file.
7563 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7566 while $ac_more_lines; do
7567 if test $ac_beg -gt 1; then
7568 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
7570 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
7572 if test ! -s conftest.s$ac_file; then
7574 rm -f conftest.s$ac_file
7576 if test -z "$ac_sed_cmds"; then
7577 ac_sed_cmds="sed -f conftest.s
$ac_file"
7579 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
7581 ac_file=`expr $ac_file + 1`
7583 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7586 if test -z "$ac_sed_cmds"; then
7591 cat >> $CONFIG_STATUS <<EOF
7593 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7595 cat >> $CONFIG_STATUS <<\EOF
7596 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
7597 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
7599 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7600 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7601 *) ac_file_in="${ac_file}.
in" ;;
7604 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7606 # Remove last slash and all that follows it. Not all systems have dirname.
7607 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7608 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7609 # The file is in a subdirectory.
7610 test ! -d "$ac_dir" && mkdir "$ac_dir"
7611 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7612 # A "..
/" for each directory in $ac_dir_suffix.
7613 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7615 ac_dir_suffix= ac_dots=
7618 case "$ac_given_srcdir" in
7620 if test -z "$ac_dots"; then top_srcdir=.
7621 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7622 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7624 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7625 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7628 case "$ac_given_INSTALL" in
7629 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7630 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7633 echo creating "$ac_file"
7635 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
7637 *Makefile*) ac_comsub="1i
\\
7638 # $configure_input" ;;
7642 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7644 s%@configure_input@%$configure_input%g
7645 s%@srcdir@%$srcdir%g
7646 s%@top_srcdir@%$top_srcdir%g
7647 s%@INSTALL@%$INSTALL%g
7648 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7652 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7653 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7655 # ac_d sets the value in "#define NAME VALUE" lines.
7656 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7657 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7660 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7661 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7662 ac_uB
='\([ ]\)%\1#\2define\3'
7665 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7666 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7667 ac_eB
='$%\1#\2define\3'
7671 if test "${CONFIG_HEADERS+set}" != set; then
7673 cat >> $CONFIG_STATUS <<EOF
7674 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7676 cat >> $CONFIG_STATUS <<\EOF
7678 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7681 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7682 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7683 *) ac_file_in
="${ac_file}.in" ;;
7686 echo creating
$ac_file
7688 rm -f conftest.frag conftest.
in conftest.out
7689 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7690 cat $ac_file_inputs > conftest.
in
7694 # Transform confdefs.h into a sed script conftest.vals that substitutes
7695 # the proper values into config.h.in to produce config.h. And first:
7696 # Protect against being on the right side of a sed subst in config.status.
7697 # Protect against being in an unquoted here document in config.status.
7699 cat > conftest.hdr
<<\EOF
7702 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7706 sed -n -f conftest.hdr confdefs.h > conftest.vals
7709 # This sed command replaces #undef with comments. This is necessary, for
7710 # example, in the case of _POSIX_SOURCE, which is predefined and required
7711 # on some systems where configure will not decide to define it.
7712 cat >> conftest.vals <<\EOF
7713 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7716 # Break up conftest.vals because some shells have a limit on
7717 # the size of here documents, and old seds have small limits too.
7722 ac_lines=`grep -c . conftest.vals
`
7723 # grep -c gives empty output for an empty file on some AIX systems.
7724 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7725 # Write a limited-size here document to conftest.frag.
7726 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7727 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7729 sed -f conftest.frag conftest.in > conftest.out
7731 mv conftest.out conftest.in
7733 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7735 mv conftest.tail conftest.vals
7739 cat >> $CONFIG_STATUS <<\EOF
7740 rm -f conftest.frag conftest.h
7741 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7742 cat conftest.in >> conftest.h
7744 if cmp -s $ac_file conftest.h 2>/dev/null; then
7745 echo "$ac_file is unchanged"
7748 # Remove last slash and all that follows it. Not all systems have dirname.
7749 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7750 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7751 # The file is in a subdirectory.
7752 test ! -d "$ac_dir" && mkdir "$ac_dir"
7755 mv conftest.h $ac_file
7761 cat >> $CONFIG_STATUS <<EOF
7762 ac_sources="include/$PLATFORMH java/io/natFile${PLATFORM}.cc java/io/natFileDescriptor${PLATFORM}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir $SIGNAL_HANDLER"
7763 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 include/java-signal.h"
7766 cat >> $CONFIG_STATUS <<\EOF
7767 srcdir=$ac_given_srcdir
7768 while test -n "$ac_sources"; do
7769 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7770 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7772 echo "linking $srcdir/$ac_source to $ac_dest"
7774 if test ! -r $srcdir/$ac_source; then
7775 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7779 # Make relative symlinks.
7780 # Remove last slash and all that follows it. Not all systems have dirname.
7781 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7782 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7783 # The dest file is in a subdirectory.
7784 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7785 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7786 # A "../" for each directory in $ac_dest_dir_suffix.
7787 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7789 ac_dest_dir_suffix= ac_dots=
7793 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7794 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7797 # Make a symlink if possible; otherwise try a hard link.
7798 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7799 ln $srcdir/$ac_source $ac_dest; then :
7801 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7805 cat >> $CONFIG_STATUS <<EOF
7810 with_multisubdir=${with_multisubdir}
7811 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7812 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7813 libgcj_basedir=${libgcj_basedir}
7818 cat >> $CONFIG_STATUS <<\EOF
7820 for am_file in include/config.h gcj/libgcj-config.h; do
7821 case " $CONFIG_HEADERS " in
7823 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7826 am_indx=`expr "$am_indx" + 1`
7828 # Only add multilib support code if we just rebuilt top-level Makefile.
7829 case " $CONFIG_FILES " in
7831 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7835 # Make subdirectories and `.d
' files. Look in both srcdir and
7836 # builddir for the .java files.
7839 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' \) -print) ;
7840 find . \( -name '*.java
' -o -name '*.cc
' \) -print) | \
7841 fgrep -v testsuite | \
7842 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/' | \
7844 echo "include $f" >> deps.mk
7847 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
7849 if test ! -d $d; then
7850 $libgcj_basedir/../mkinstalldirs $d
7858 chmod +x $CONFIG_STATUS
7859 rm -fr confdefs* $ac_clean_files
7860 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7862 if test "$no_recursion" != yes; then
7864 # Remove --cache-file and --srcdir arguments so they do not pile up.
7865 ac_sub_configure_args=
7867 for ac_arg in $ac_configure_args; do
7868 if test -n "$ac_prev"; then
7873 -cache-file | --cache-file | --cache-fil | --cache-fi \
7874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7875 ac_prev=cache_file ;;
7876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7879 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7881 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7883 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7887 for ac_config_dir in $DIRLTDL; do
7889 # Do not complain, so a configure script can configure whichever
7890 # parts of a large source tree are present.
7891 if test ! -d $srcdir/$ac_config_dir; then
7895 echo configuring in $ac_config_dir
7900 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7902 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7910 # A "../" for each directory in /$ac_config_dir.
7911 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
7914 .) # No --srcdir option. We are building in place.
7915 ac_sub_srcdir=$srcdir ;;
7916 /*) # Absolute path.
7917 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7919 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7922 # Check for guested configure; otherwise get Cygnus style configure.
7923 if test -f $ac_sub_srcdir/configure; then
7924 ac_sub_configure=$ac_sub_srcdir/configure
7925 elif test -f $ac_sub_srcdir/configure.in; then
7926 ac_sub_configure=$ac_configure
7928 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7932 # The recursion is here.
7933 if test -n "$ac_sub_configure"; then
7935 # Make the cache file name correct relative to the subdirectory.
7936 case "$cache_file" in
7937 /*) ac_sub_cache_file=$cache_file ;;
7939 ac_sub_cache_file="$ac_dots$cache_file" ;;
7941 case "$ac_given_INSTALL" in
7942 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7943 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7946 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7947 # The eval makes quoting arguments work.
7948 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7951 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }