3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --with-newlib Configuring with newlib"
22 --enable-multilib build many library versions (default)"
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
29 --enable-static[=PKGS] build static libraries [default=yes]"
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
35 --disable-libtool-lock avoid locking (might break parallel builds)"
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --without-libffi don't use libffi"
55 --disable-jvmpi disable JVMPI support"
57 --with-ecos enable runtime eCos target support"
59 --with-system-zlib use installed libz"
61 --with-x use the X Window System"
63 --enable-java-awt list of AWT peer implementations to be built"
65 --enable-java-gc=TYPE choose garbage collector [boehm]"
67 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
69 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
71 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
73 --disable-gtktest Do not try to compile and run a test GTK program"
75 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
77 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
79 --disable-glibtest Do not try to compile and run a test GLIB program"
81 --with-libart-prefix=PFX Prefix where LIBART is installed (optional)"
83 --with-libart-exec-prefix=PFX Exec prefix where LIBART is installed (optional)"
85 --disable-libarttest Do not try to compile and run a test LIBART program"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file=./config.cache
100 program_transform_name=s,x,x,
108 bindir='${exec_prefix}/bin'
109 sbindir='${exec_prefix}/sbin'
110 libexecdir='${exec_prefix}/libexec'
111 datadir='${prefix}/share'
112 sysconfdir='${prefix}/etc'
113 sharedstatedir='${prefix}/com'
114 localstatedir='${prefix}/var'
115 libdir='${exec_prefix}/lib'
116 includedir='${prefix}/include'
117 oldincludedir='/usr/include'
118 infodir='${prefix}/info'
119 mandir='${prefix}/man'
121 # Initialize some other variables.
124 SHELL=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
151 bindir="$ac_optarg" ;;
153 -build | --build | --buil | --bui | --bu)
155 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
156 build="$ac_optarg" ;;
158 -cache-file | --cache-file | --cache-fil | --cache-fi \
159 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
160 ac_prev=cache_file ;;
161 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
162 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
163 cache_file="$ac_optarg" ;;
165 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 datadir="$ac_optarg" ;;
171 -disable-* | --disable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* | --enable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
194 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
195 | --exec | --exe | --ex)
196 ac_prev=exec_prefix ;;
197 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
198 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
199 | --exec=* | --exe=* | --ex=*)
200 exec_prefix="$ac_optarg" ;;
202 -gas | --gas | --ga | --g)
203 # Obsolete; use --with-gas.
206 -help | --help | --hel | --he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host | --host | --hos | --ho)
263 -host=* | --host=* | --hos=* | --ho=*)
266 -includedir | --includedir | --includedi | --included | --include \
267 | --includ | --inclu | --incl | --inc)
268 ac_prev=includedir ;;
269 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
270 | --includ=* | --inclu=* | --incl=* | --inc=*)
271 includedir="$ac_optarg" ;;
273 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
276 infodir="$ac_optarg" ;;
278 -libdir | --libdir | --libdi | --libd)
280 -libdir=* | --libdir=* | --libdi=* | --libd=*)
281 libdir="$ac_optarg" ;;
283 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
284 | --libexe | --libex | --libe)
285 ac_prev=libexecdir ;;
286 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
287 | --libexe=* | --libex=* | --libe=*)
288 libexecdir="$ac_optarg" ;;
290 -localstatedir | --localstatedir | --localstatedi | --localstated \
291 | --localstate | --localstat | --localsta | --localst \
292 | --locals | --local | --loca | --loc | --lo)
293 ac_prev=localstatedir ;;
294 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
295 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
296 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
297 localstatedir="$ac_optarg" ;;
299 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
302 mandir="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
316 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
317 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
318 | --oldin | --oldi | --old | --ol | --o)
319 ac_prev=oldincludedir ;;
320 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
321 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
322 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
323 oldincludedir="$ac_optarg" ;;
325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
328 prefix="$ac_optarg" ;;
330 -program-prefix | --program-prefix | --program-prefi | --program-pref \
331 | --program-pre | --program-pr | --program-p)
332 ac_prev=program_prefix ;;
333 -program-prefix=* | --program-prefix=* | --program-prefi=* \
334 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
335 program_prefix="$ac_optarg" ;;
337 -program-suffix | --program-suffix | --program-suffi | --program-suff \
338 | --program-suf | --program-su | --program-s)
339 ac_prev=program_suffix ;;
340 -program-suffix=* | --program-suffix=* | --program-suffi=* \
341 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
342 program_suffix="$ac_optarg" ;;
344 -program-transform-name | --program-transform-name \
345 | --program-transform-nam | --program-transform-na \
346 | --program-transform-n | --program-transform- \
347 | --program-transform | --program-transfor \
348 | --program-transfo | --program-transf \
349 | --program-trans | --program-tran \
350 | --progr-tra | --program-tr | --program-t)
351 ac_prev=program_transform_name ;;
352 -program-transform-name=* | --program-transform-name=* \
353 | --program-transform-nam=* | --program-transform-na=* \
354 | --program-transform-n=* | --program-transform-=* \
355 | --program-transform=* | --program-transfor=* \
356 | --program-transfo=* | --program-transf=* \
357 | --program-trans=* | --program-tran=* \
358 | --progr-tra=* | --program-tr=* | --program-t=*)
359 program_transform_name="$ac_optarg" ;;
361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
362 | -silent | --silent | --silen | --sile | --sil)
365 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 sbindir="$ac_optarg" ;;
371 -sharedstatedir | --sharedstatedir | --sharedstatedi \
372 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
373 | --sharedst | --shareds | --shared | --share | --shar \
375 ac_prev=sharedstatedir ;;
376 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
377 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
378 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 sharedstatedir="$ac_optarg" ;;
382 -site | --site | --sit)
384 -site=* | --site=* | --sit=*)
387 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
390 srcdir="$ac_optarg" ;;
392 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
393 | --syscon | --sysco | --sysc | --sys | --sy)
394 ac_prev=sysconfdir ;;
395 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
396 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
397 sysconfdir="$ac_optarg" ;;
399 -target | --target | --targe | --targ | --tar | --ta | --t)
401 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
402 target="$ac_optarg" ;;
404 -v | -verbose | --verbose | --verbos | --verbo | --verb)
407 -version | --version | --versio | --versi | --vers)
408 echo "configure generated by autoconf version 2.13"
412 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* | --without-*)
425 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
438 | --x-incl | --x-inc | --x-in | --x-i)
439 ac_prev=x_includes ;;
440 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
441 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
442 x_includes="$ac_optarg" ;;
444 -x-libraries | --x-libraries | --x-librarie | --x-librari \
445 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
446 ac_prev=x_libraries ;;
447 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
448 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
449 x_libraries="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c) ;;
501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file=java/lang/System.java
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE; then
554 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp='$CPP $CPPFLAGS'
577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
592 ac_n= ac_c='\c' ac_t=
597 # This works around the fact that libtool configuration may change LD
598 # for this particular configuration, but some shells, instead of
599 # keeping the changes in LD private, export them just because LD is
601 ORIGINAL_LD_FOR_MULTILIBS=$LD
603 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
604 echo "configure:605: checking whether ln -s works" >&5
605 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
606 echo $ac_n "(cached) $ac_c" 1>&6
609 if ln -s X conftestdata 2>/dev/null
612 ac_cv_prog_LN_S="ln -s"
617 LN_S="$ac_cv_prog_LN_S"
618 if test "$ac_cv_prog_LN_S" = "ln -s"; then
619 echo "$ac_t""yes" 1>&6
621 echo "$ac_t""no" 1>&6
625 # Check whether --with-target-subdir or --without-target-subdir was given.
626 if test "${with_target_subdir+set}" = set; then
627 withval="$with_target_subdir"
631 # Check whether --with-cross-host or --without-cross-host was given.
632 if test "${with_cross_host+set}" = set; then
633 withval="$with_cross_host"
638 # Check whether --with-newlib or --without-newlib was given.
639 if test "${with_newlib+set}" = set; then
640 withval="$with_newlib"
645 # Find a good install program. We prefer a C program (faster),
646 # so one script is as good as another. But avoid the broken or
647 # incompatible versions:
648 # SysV /etc/install, /usr/sbin/install
649 # SunOS /usr/etc/install
652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
655 # ./install, which can be erroneously created by make from ./install.sh.
656 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
657 echo "configure:658: checking for a BSD compatible install" >&5
658 if test -z "$INSTALL"; then
659 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
663 for ac_dir in $PATH; do
664 # Account for people who put trailing slashes in PATH elements.
666 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
668 # OSF1 and SCO ODT 3.0 have their own names for install.
669 # Don't use installbsd from OSF since it installs stuff as root
671 for ac_prog in ginstall scoinst install; do
672 if test -f $ac_dir/$ac_prog; then
673 if test $ac_prog = install &&
674 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
675 # AIX install. It has an incompatible calling convention.
678 ac_cv_path_install="$ac_dir/$ac_prog -c"
689 if test "${ac_cv_path_install+set}" = set; then
690 INSTALL="$ac_cv_path_install"
692 # As a last resort, use the slow shell script. We don't cache a
693 # path for INSTALL within a source directory, because that will
694 # break other packages using the cache if that directory is
695 # removed, or if the path is relative.
696 INSTALL="$ac_install_sh"
699 echo "$ac_t""$INSTALL" 1>&6
701 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
702 # It thinks the first close brace ends the variable substitution.
703 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
705 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
707 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
709 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
710 echo "configure:711: checking whether build environment is sane" >&5
713 echo timestamp > conftestfile
714 # Do `set' in a subshell so we don't clobber the current shell's
715 # arguments. Must try -L first in case configure is actually a
716 # symlink; some systems play weird games with the mod time of symlinks
717 # (eg FreeBSD returns the mod time of the symlink's containing
720 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
721 if test "$*" = "X"; then
723 set X `ls -t $srcdir/configure conftestfile`
725 if test "$*" != "X $srcdir/configure conftestfile" \
726 && test "$*" != "X conftestfile $srcdir/configure"; then
728 # If neither matched, then we have a broken ls. This can happen
729 # if, for instance, CONFIG_SHELL is bash and it inherits a
730 # broken ls alias from the environment. This has actually
731 # happened. Such a system could not be considered "sane".
732 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
733 alias in your environment" 1>&2; exit 1; }
736 test "$2" = conftestfile
742 { echo "configure: error: newly created file is older than distributed files!
743 Check your system clock" 1>&2; exit 1; }
746 echo "$ac_t""yes" 1>&6
747 if test "$program_transform_name" = s,x,x,; then
748 program_transform_name=
750 # Double any \ or $. echo might interpret backslashes.
751 cat <<\EOF_SED > conftestsed
752 s,\\,\\\\,g; s,\$,$$,g
754 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
757 test "$program_prefix" != NONE &&
758 program_transform_name="s,^,${program_prefix},; $program_transform_name"
759 # Use a double $ so make ignores it.
760 test "$program_suffix" != NONE &&
761 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
763 # sed with no file args requires a program.
764 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
766 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
767 echo "configure:768: checking whether ${MAKE-make} sets \${MAKE}" >&5
768 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
769 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 cat > conftestmake <<\EOF
774 @echo 'ac_maketemp="${MAKE}"'
776 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
777 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
778 if test -n "$ac_maketemp"; then
779 eval ac_cv_prog_make_${ac_make}_set=yes
781 eval ac_cv_prog_make_${ac_make}_set=no
785 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
786 echo "$ac_t""yes" 1>&6
789 echo "$ac_t""no" 1>&6
790 SET_MAKE="MAKE=${MAKE-make}"
793 if test $host != $build; then
794 ac_tool_prefix=${host_alias}-
799 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
800 echo "configure:801: checking for Cygwin environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_cygwin'+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"
811 #define __CYGWIN__ __CYGWIN32__
816 if { (eval echo configure:817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
820 echo "configure: failed program was:" >&5
821 cat conftest.$ac_ext >&5
829 echo "$ac_t""$ac_cv_cygwin" 1>&6
831 test "$ac_cv_cygwin" = yes && CYGWIN=yes
832 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
833 echo "configure:834: checking for mingw32 environment" >&5
834 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 cat > conftest.$ac_ext <<EOF
838 #line 839 "configure"
839 #include "confdefs.h"
845 if { (eval echo configure:846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
849 echo "configure: failed program was:" >&5
850 cat conftest.$ac_ext >&5
858 echo "$ac_t""$ac_cv_mingw32" 1>&6
860 test "$ac_cv_mingw32" = yes && MINGW32=yes
862 # Check whether --enable-multilib or --disable-multilib was given.
863 if test "${enable_multilib+set}" = set; then
864 enableval="$enable_multilib"
865 case "${enableval}" in
868 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
875 # When building with srcdir == objdir, links to the source files will
876 # be created in directories within the target_subdir. We have to
877 # adjust toplevel_srcdir accordingly, so that configure finds
878 # install-sh and other auxiliary files that live in the top-level
880 if test "${srcdir}" = "."; then
881 if test -z "${with_target_subdir}"; then
884 if test "${with_target_subdir}" != "."; then
885 toprel="${with_multisrctop}../.."
887 toprel="${with_multisrctop}.."
894 libgcj_basedir=$srcdir/$toprel/./libjava
898 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
899 if test -f $ac_dir/install-sh; then
901 ac_install_sh="$ac_aux_dir/install-sh -c"
903 elif test -f $ac_dir/install.sh; then
905 ac_install_sh="$ac_aux_dir/install.sh -c"
909 if test -z "$ac_aux_dir"; then
910 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
912 ac_config_guess=$ac_aux_dir/config.guess
913 ac_config_sub=$ac_aux_dir/config.sub
914 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
917 # This overrides the previous occurrence for automake, but not for
918 # autoconf, which is exactly what we want.
920 for ac_dir in .. $srcdir/..; do
921 if test -f $ac_dir/install-sh; then
923 ac_install_sh="$ac_aux_dir/install-sh -c"
925 elif test -f $ac_dir/install.sh; then
927 ac_install_sh="$ac_aux_dir/install.sh -c"
931 if test -z "$ac_aux_dir"; then
932 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
934 ac_config_guess=$ac_aux_dir/config.guess
935 ac_config_sub=$ac_aux_dir/config.sub
936 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
940 # This works around an automake problem.
941 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
945 # Do some error checking and defaulting for the host and target type.
947 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
950 # 1. You are not allowed to specify --host, --target, and nonopt at the
952 # 2. Host defaults to nonopt.
953 # 3. If nonopt is not specified, then host defaults to the current host,
954 # as determined by config.guess.
955 # 4. Target and build default to nonopt.
956 # 5. If nonopt is not specified, then target and build default to host.
958 # The aliases save the names the user supplied, while $host etc.
959 # will get canonicalized.
960 case $host---$target---$nonopt in
961 NONE---*---* | *---NONE---* | *---*---NONE) ;;
962 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
966 # Make sure we can run config.sub.
967 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
968 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
971 echo $ac_n "checking host system type""... $ac_c" 1>&6
972 echo "configure:973: checking host system type" >&5
975 case "$host_alias" in
979 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
980 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
982 *) host_alias=$nonopt ;;
986 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
987 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990 echo "$ac_t""$host" 1>&6
992 echo $ac_n "checking target system type""... $ac_c" 1>&6
993 echo "configure:994: checking target system type" >&5
996 case "$target_alias" in
999 NONE) target_alias=$host_alias ;;
1000 *) target_alias=$nonopt ;;
1004 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1005 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1006 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1007 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1008 echo "$ac_t""$target" 1>&6
1010 echo $ac_n "checking build system type""... $ac_c" 1>&6
1011 echo "configure:1012: checking build system type" >&5
1014 case "$build_alias" in
1017 NONE) build_alias=$host_alias ;;
1018 *) build_alias=$nonopt ;;
1022 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1023 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1024 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1025 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1026 echo "$ac_t""$build" 1>&6
1028 test "$host_alias" != "$target_alias" &&
1029 test "$program_prefix$program_suffix$program_transform_name" = \
1031 program_prefix=${target_alias}-
1037 # Extract the first word of "gcc", so it can be a program name with args.
1038 set dummy gcc; ac_word=$2
1039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1040 echo "configure:1041: checking for $ac_word" >&5
1041 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 if test -n "$CC"; then
1045 ac_cv_prog_CC="$CC" # Let the user override the test.
1047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1060 if test -n "$CC"; then
1061 echo "$ac_t""$CC" 1>&6
1063 echo "$ac_t""no" 1>&6
1066 if test -z "$CC"; then
1067 # Extract the first word of "cc", so it can be a program name with args.
1068 set dummy cc; ac_word=$2
1069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1070 echo "configure:1071: checking for $ac_word" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 if test -n "$CC"; then
1075 ac_cv_prog_CC="$CC" # Let the user override the test.
1077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1080 for ac_dir in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir=.
1082 if test -f $ac_dir/$ac_word; then
1083 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1084 ac_prog_rejected=yes
1092 if test $ac_prog_rejected = yes; then
1093 # We found a bogon in the path, so make sure we never use it.
1094 set dummy $ac_cv_prog_CC
1096 if test $# -gt 0; then
1097 # We chose a different compiler from the bogus one.
1098 # However, it has the same basename, so the bogon will be chosen
1099 # first if we set CC to just the basename; use the full file name.
1101 set dummy "$ac_dir/$ac_word" "$@"
1109 if test -n "$CC"; then
1110 echo "$ac_t""$CC" 1>&6
1112 echo "$ac_t""no" 1>&6
1115 if test -z "$CC"; then
1116 case "`uname -s`" in
1118 # Extract the first word of "cl", so it can be a program name with args.
1119 set dummy cl; ac_word=$2
1120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1121 echo "configure:1122: checking for $ac_word" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 if test -n "$CC"; then
1126 ac_cv_prog_CC="$CC" # Let the user override the test.
1128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1130 for ac_dir in $ac_dummy; do
1131 test -z "$ac_dir" && ac_dir=.
1132 if test -f $ac_dir/$ac_word; then
1141 if test -n "$CC"; then
1142 echo "$ac_t""$CC" 1>&6
1144 echo "$ac_t""no" 1>&6
1149 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1153 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether we are using GNU C" >&5
1155 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1158 cat > conftest.c <<EOF
1163 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1170 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1172 if test $ac_cv_prog_gcc = yes; then
1178 ac_test_CFLAGS="${CFLAGS+set}"
1179 ac_save_CFLAGS="$CFLAGS"
1181 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether ${CC-cc} accepts -g" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1186 echo 'void f(){}' > conftest.c
1187 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1196 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1197 if test "$ac_test_CFLAGS" = set; then
1198 CFLAGS="$ac_save_CFLAGS"
1199 elif test $ac_cv_prog_cc_g = yes; then
1200 if test "$GCC" = yes; then
1206 if test "$GCC" = yes; then
1214 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1215 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1216 # different definition of CXX than other directories, since we don't
1217 # depend on libstdc++-v3 having already been built.
1221 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1222 # flags that come in CXX while configuring libjava. They're different
1223 # from those used for all other target libraries. If CXX is set in
1224 # the environment, respect that here.
1226 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1228 # Extract the first word of "$ac_prog", so it can be a program name with args.
1229 set dummy $ac_prog; ac_word=$2
1230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1231 echo "configure:1232: checking for $ac_word" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 if test -n "$glibjava_CXX"; then
1236 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1240 for ac_dir in $ac_dummy; do
1241 test -z "$ac_dir" && ac_dir=.
1242 if test -f $ac_dir/$ac_word; then
1243 ac_cv_prog_glibjava_CXX="$ac_prog"
1250 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1251 if test -n "$glibjava_CXX"; then
1252 echo "$ac_t""$glibjava_CXX" 1>&6
1254 echo "$ac_t""no" 1>&6
1257 test -n "$glibjava_CXX" && break
1259 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1263 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1265 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1266 echo "configure:1267: checking whether we are using GNU C++" >&5
1267 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 cat > conftest.C <<EOF
1275 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1282 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1284 if test $ac_cv_prog_gxx = yes; then
1286 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1287 ac_save_CXXFLAGS="$CXXFLAGS"
1289 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1290 echo "configure:1291: checking whether ${CXX-g++} accepts -g" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 echo 'void f(){}' > conftest.cc
1295 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1296 ac_cv_prog_cxx_g=yes
1304 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1305 if test "$ac_test_CXXFLAGS" = set; then
1306 CXXFLAGS="$ac_save_CXXFLAGS"
1307 elif test $ac_cv_prog_cxx_g = yes; then
1314 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1324 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1325 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1327 cat >> confdefs.h <<EOF
1328 #define PACKAGE "$PACKAGE"
1331 cat >> confdefs.h <<EOF
1332 #define VERSION "$VERSION"
1337 missing_dir=`cd $ac_aux_dir && pwd`
1338 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1339 echo "configure:1340: checking for working aclocal" >&5
1340 # Run test in a subshell; some versions of sh will print an error if
1341 # an executable is not found, even if stderr is redirected.
1342 # Redirect stdin to placate older versions of autoconf. Sigh.
1343 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1345 echo "$ac_t""found" 1>&6
1347 ACLOCAL="$missing_dir/missing aclocal"
1348 echo "$ac_t""missing" 1>&6
1351 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1352 echo "configure:1353: checking for working autoconf" >&5
1353 # Run test in a subshell; some versions of sh will print an error if
1354 # an executable is not found, even if stderr is redirected.
1355 # Redirect stdin to placate older versions of autoconf. Sigh.
1356 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1358 echo "$ac_t""found" 1>&6
1360 AUTOCONF="$missing_dir/missing autoconf"
1361 echo "$ac_t""missing" 1>&6
1364 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1365 echo "configure:1366: checking for working automake" >&5
1366 # Run test in a subshell; some versions of sh will print an error if
1367 # an executable is not found, even if stderr is redirected.
1368 # Redirect stdin to placate older versions of autoconf. Sigh.
1369 if (automake --version) < /dev/null > /dev/null 2>&1; then
1371 echo "$ac_t""found" 1>&6
1373 AUTOMAKE="$missing_dir/missing automake"
1374 echo "$ac_t""missing" 1>&6
1377 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1378 echo "configure:1379: checking for working autoheader" >&5
1379 # Run test in a subshell; some versions of sh will print an error if
1380 # an executable is not found, even if stderr is redirected.
1381 # Redirect stdin to placate older versions of autoconf. Sigh.
1382 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1383 AUTOHEADER=autoheader
1384 echo "$ac_t""found" 1>&6
1386 AUTOHEADER="$missing_dir/missing autoheader"
1387 echo "$ac_t""missing" 1>&6
1390 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1391 echo "configure:1392: checking for working makeinfo" >&5
1392 # Run test in a subshell; some versions of sh will print an error if
1393 # an executable is not found, even if stderr is redirected.
1394 # Redirect stdin to placate older versions of autoconf. Sigh.
1395 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1397 echo "$ac_t""found" 1>&6
1399 MAKEINFO="$missing_dir/missing makeinfo"
1400 echo "$ac_t""missing" 1>&6
1405 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1406 # run it explicitly here, it will be run implicitly before
1407 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1408 # be run before AC_CANONICAL_HOST.
1409 echo $ac_n "checking build system type""... $ac_c" 1>&6
1410 echo "configure:1411: checking build system type" >&5
1413 case "$build_alias" in
1416 NONE) build_alias=$host_alias ;;
1417 *) build_alias=$nonopt ;;
1421 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1422 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425 echo "$ac_t""$build" 1>&6
1428 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1429 set dummy ${ac_tool_prefix}as; ac_word=$2
1430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1431 echo "configure:1432: checking for $ac_word" >&5
1432 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1435 if test -n "$AS"; then
1436 ac_cv_prog_AS="$AS" # Let the user override the test.
1438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1440 for ac_dir in $ac_dummy; do
1441 test -z "$ac_dir" && ac_dir=.
1442 if test -f $ac_dir/$ac_word; then
1443 ac_cv_prog_AS="${ac_tool_prefix}as"
1448 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1452 if test -n "$AS"; then
1453 echo "$ac_t""$AS" 1>&6
1455 echo "$ac_t""no" 1>&6
1460 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1461 set dummy ${ac_tool_prefix}ar; ac_word=$2
1462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1463 echo "configure:1464: checking for $ac_word" >&5
1464 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 if test -n "$AR"; then
1468 ac_cv_prog_AR="$AR" # Let the user override the test.
1470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1472 for ac_dir in $ac_dummy; do
1473 test -z "$ac_dir" && ac_dir=.
1474 if test -f $ac_dir/$ac_word; then
1475 ac_cv_prog_AR="${ac_tool_prefix}ar"
1480 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1484 if test -n "$AR"; then
1485 echo "$ac_t""$AR" 1>&6
1487 echo "$ac_t""no" 1>&6
1492 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1493 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1495 echo "configure:1496: checking for $ac_word" >&5
1496 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 if test -n "$RANLIB"; then
1500 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1504 for ac_dir in $ac_dummy; do
1505 test -z "$ac_dir" && ac_dir=.
1506 if test -f $ac_dir/$ac_word; then
1507 ac_cv_prog_RANLIB="${ac_tool_prefix}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
1522 if test -z "$ac_cv_prog_RANLIB"; then
1523 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "ranlib", so it can be a program name with args.
1525 set dummy ranlib; ac_word=$2
1526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1527 echo "configure:1528: checking for $ac_word" >&5
1528 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 if test -n "$RANLIB"; then
1532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1536 for ac_dir in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir=.
1538 if test -f $ac_dir/$ac_word; then
1539 ac_cv_prog_RANLIB="ranlib"
1544 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1547 RANLIB="$ac_cv_prog_RANLIB"
1548 if test -n "$RANLIB"; then
1549 echo "$ac_t""$RANLIB" 1>&6
1551 echo "$ac_t""no" 1>&6
1560 # Find a good install program. We prefer a C program (faster),
1561 # so one script is as good as another. But avoid the broken or
1562 # incompatible versions:
1563 # SysV /etc/install, /usr/sbin/install
1564 # SunOS /usr/etc/install
1565 # IRIX /sbin/install
1567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1570 # ./install, which can be erroneously created by make from ./install.sh.
1571 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1572 echo "configure:1573: checking for a BSD compatible install" >&5
1573 if test -z "$INSTALL"; then
1574 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1578 for ac_dir in $PATH; do
1579 # Account for people who put trailing slashes in PATH elements.
1581 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1583 # OSF1 and SCO ODT 3.0 have their own names for install.
1584 # Don't use installbsd from OSF since it installs stuff as root
1586 for ac_prog in ginstall scoinst install; do
1587 if test -f $ac_dir/$ac_prog; then
1588 if test $ac_prog = install &&
1589 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1590 # AIX install. It has an incompatible calling convention.
1593 ac_cv_path_install="$ac_dir/$ac_prog -c"
1604 if test "${ac_cv_path_install+set}" = set; then
1605 INSTALL="$ac_cv_path_install"
1607 # As a last resort, use the slow shell script. We don't cache a
1608 # path for INSTALL within a source directory, because that will
1609 # break other packages using the cache if that directory is
1610 # removed, or if the path is relative.
1611 INSTALL="$ac_install_sh"
1614 echo "$ac_t""$INSTALL" 1>&6
1616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1617 # It thinks the first close brace ends the variable substitution.
1618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1625 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1626 echo "configure:1627: checking whether to enable maintainer-specific portions of Makefiles" >&5
1627 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1628 if test "${enable_maintainer_mode+set}" = set; then
1629 enableval="$enable_maintainer_mode"
1630 USE_MAINTAINER_MODE=$enableval
1632 USE_MAINTAINER_MODE=no
1635 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1638 if test $USE_MAINTAINER_MODE = yes; then
1639 MAINTAINER_MODE_TRUE=
1640 MAINTAINER_MODE_FALSE='#'
1642 MAINTAINER_MODE_TRUE='#'
1643 MAINTAINER_MODE_FALSE=
1645 MAINT=$MAINTAINER_MODE_TRUE
1651 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1652 echo "configure:1653: checking for executable suffix" >&5
1653 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1660 echo 'int main () { return 0; }' > conftest.$ac_ext
1662 if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1663 for file in conftest.*; do
1665 *.c | *.o | *.obj) ;;
1666 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1670 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1673 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1678 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1679 echo "$ac_t""${ac_cv_exeext}" 1>&6
1683 # configure.host sets the following important variables
1684 # libgcj_cflags - host specific C compiler flags
1685 # libgcj_cxxflags - host specific C++ compiler flags
1686 # libgcj_javaflags - host specific Java compiler flags
1692 . ${srcdir}/configure.host
1694 LIBGCJ_CFLAGS="${libgcj_cflags}"
1695 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1696 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1706 # Only use libltdl for native builds.
1707 if test -z "${with_cross_host}"; then
1708 case $enable_ltdl_convenience in
1709 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1710 "") enable_ltdl_convenience=yes
1711 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1713 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1714 INCLTDL='-I${top_srcdir}/''libltdl'
1718 cat >> confdefs.h <<\EOF
1722 # Sigh. Libtool's macro doesn't do the right thing.
1723 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1724 # FIXME: this is a hack.
1725 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1726 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1731 # Check whether --enable-shared or --disable-shared was given.
1732 if test "${enable_shared+set}" = set; then
1733 enableval="$enable_shared"
1734 p=${PACKAGE-default}
1736 yes) enable_shared=yes ;;
1737 no) enable_shared=no ;;
1740 # Look at the argument we got. We use all the common list separators.
1741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1742 for pkg in $enableval; do
1743 if test "X$pkg" = "X$p"; then
1754 # Check whether --enable-static or --disable-static was given.
1755 if test "${enable_static+set}" = set; then
1756 enableval="$enable_static"
1757 p=${PACKAGE-default}
1759 yes) enable_static=yes ;;
1760 no) enable_static=no ;;
1763 # Look at the argument we got. We use all the common list separators.
1764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1765 for pkg in $enableval; do
1766 if test "X$pkg" = "X$p"; then
1777 # Check whether --enable-fast-install or --disable-fast-install was given.
1778 if test "${enable_fast_install+set}" = set; then
1779 enableval="$enable_fast_install"
1780 p=${PACKAGE-default}
1782 yes) enable_fast_install=yes ;;
1783 no) enable_fast_install=no ;;
1785 enable_fast_install=no
1786 # Look at the argument we got. We use all the common list separators.
1787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1788 for pkg in $enableval; do
1789 if test "X$pkg" = "X$p"; then
1790 enable_fast_install=yes
1797 enable_fast_install=yes
1800 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1801 if test "${with_gnu_ld+set}" = set; then
1802 withval="$with_gnu_ld"
1803 test "$withval" = no || with_gnu_ld=yes
1809 if test "$GCC" = yes; then
1810 # Check if gcc -print-prog-name=ld gives a path.
1811 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1812 echo "configure:1813: checking for ld used by GCC" >&5
1815 # gcc leaves a trailing carriage return which upsets mingw
1816 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1818 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1821 # Accept absolute paths.
1822 [\\/]* | [A-Za-z]:[\\/]*)
1823 re_direlt='/[^/][^/]*/\.\./'
1824 # Canonicalize the path of ld
1825 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1826 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1827 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1829 test -z "$LD" && LD="$ac_prog"
1832 # If it fails, then pretend we aren't using GCC.
1836 # If it is relative, then search for the first ld in PATH.
1840 elif test "$with_gnu_ld" = yes; then
1841 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1842 echo "configure:1843: checking for GNU ld" >&5
1844 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1845 echo "configure:1846: checking for non-GNU ld" >&5
1847 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 if test -z "$LD"; then
1851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1852 for ac_dir in $PATH; do
1853 test -z "$ac_dir" && ac_dir=.
1854 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1855 lt_cv_path_LD="$ac_dir/$ac_prog"
1856 # Check to see if the program is GNU ld. I'd rather use --version,
1857 # but apparently some GNU ld's only accept -v.
1858 # Break only if it was the GNU/non-GNU ld that we prefer.
1859 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1860 test "$with_gnu_ld" != no && break
1862 test "$with_gnu_ld" != yes && break
1868 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1873 if test -n "$LD"; then
1874 echo "$ac_t""$LD" 1>&6
1876 echo "$ac_t""no" 1>&6
1878 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1879 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1880 echo "configure:1881: checking if the linker ($LD) is GNU ld" >&5
1881 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1885 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1886 lt_cv_prog_gnu_ld=yes
1888 lt_cv_prog_gnu_ld=no
1892 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1893 with_gnu_ld=$lt_cv_prog_gnu_ld
1896 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1897 echo "configure:1898: checking for $LD option to reload object files" >&5
1898 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 lt_cv_ld_reload_flag='-r'
1904 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1905 reload_flag=$lt_cv_ld_reload_flag
1906 test -n "$reload_flag" && reload_flag=" $reload_flag"
1908 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1909 echo "configure:1910: checking for BSD-compatible nm" >&5
1910 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1913 if test -n "$NM"; then
1914 # Let the user override the test.
1917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1918 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1919 test -z "$ac_dir" && ac_dir=.
1920 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1921 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1922 # Check to see if the nm accepts a BSD-compat flag.
1923 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1924 # nm: unknown option "B" ignored
1925 # Tru64's nm complains that /dev/null is an invalid object file
1926 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1927 lt_cv_path_NM="$tmp_nm -B"
1929 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1930 lt_cv_path_NM="$tmp_nm -p"
1933 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1934 continue # so that we can try to find one that supports BSD flags
1939 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1944 echo "$ac_t""$NM" 1>&6
1946 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1947 echo "configure:1948: checking how to recognise dependant libraries" >&5
1948 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 lt_cv_file_magic_cmd='$MAGIC_CMD'
1952 lt_cv_file_magic_test_file=
1953 lt_cv_deplibs_check_method='unknown'
1954 # Need to set the preceding variable on all platforms that support
1955 # interlibrary dependencies.
1956 # 'none' -- dependencies not supported.
1957 # `unknown' -- same as none, but documents that we really don't know.
1958 # 'pass_all' -- all dependencies passed with no checks.
1959 # 'test_compile' -- check by making test program.
1960 # 'file_magic [regex]' -- check by looking for files in library path
1961 # which responds to the $file_magic_cmd with a given egrep regex.
1962 # If you have `file' or equivalent on your system and you're not sure
1963 # whether `pass_all' will *always* work, you probably want this one.
1967 lt_cv_deplibs_check_method=pass_all
1971 lt_cv_deplibs_check_method=pass_all
1975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1976 lt_cv_file_magic_cmd='/usr/bin/file -L'
1977 lt_cv_file_magic_test_file=/shlib/libc.so
1980 cygwin* | mingw* |pw32*)
1981 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1982 lt_cv_file_magic_cmd='$OBJDUMP -f'
1985 darwin* | rhapsody*)
1986 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1987 lt_cv_file_magic_cmd='/usr/bin/file -L'
1989 rhapsody* | darwin1.012)
1990 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1993 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1999 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2002 # Not sure whether the presence of OpenBSD here was a mistake.
2003 # Let's accept both of them until this is cleared up.
2004 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2005 lt_cv_file_magic_cmd=/usr/bin/file
2006 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2010 lt_cv_deplibs_check_method=pass_all
2015 lt_cv_deplibs_check_method=pass_all
2021 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2022 lt_cv_file_magic_cmd=/usr/bin/file
2023 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2026 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2027 lt_cv_file_magic_cmd=/usr/bin/file
2028 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2036 # this will be overridden with pass_all, but let us keep it just in case
2037 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2041 *-32|*"-32 ") libmagic=32-bit;;
2042 *-n32|*"-n32 ") libmagic=N32;;
2043 *-64|*"-64 ") libmagic=64-bit;;
2044 *) libmagic=never-match;;
2046 # this will be overridden with pass_all, but let us keep it just in case
2047 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2050 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2051 lt_cv_deplibs_check_method=pass_all
2054 # This must be Linux ELF.
2057 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2058 lt_cv_deplibs_check_method=pass_all ;;
2060 # glibc up to 2.1.1 does not perform some relocations on ARM
2061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2063 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2067 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2068 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2070 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2076 lt_cv_file_magic_cmd=/usr/bin/file
2077 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2080 osf3* | osf4* | osf5*)
2081 # this will be overridden with pass_all, but let us keep it just in case
2082 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2083 lt_cv_file_magic_test_file=/shlib/libc.so
2084 lt_cv_deplibs_check_method=pass_all
2088 lt_cv_deplibs_check_method=pass_all
2092 lt_cv_deplibs_check_method=pass_all
2093 lt_cv_file_magic_test_file=/lib/libc.so
2096 sysv5uw[78]* | sysv4*uw2*)
2097 lt_cv_deplibs_check_method=pass_all
2100 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2101 case $host_vendor in
2103 lt_cv_deplibs_check_method=pass_all
2106 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]'
2107 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2115 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2116 file_magic_cmd=$lt_cv_file_magic_cmd
2117 deplibs_check_method=$lt_cv_deplibs_check_method
2119 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2120 echo "configure:2121: checking for object suffix" >&5
2121 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2125 echo 'int i = 1;' > conftest.$ac_ext
2126 if { (eval echo configure:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2127 for ac_file in conftest.*; do
2130 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2134 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2139 echo "$ac_t""$ac_cv_objext" 1>&6
2140 OBJEXT=$ac_cv_objext
2141 ac_objext=$ac_cv_objext
2143 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2145 # Only perform the check for file, if the check method requires it
2146 case $deplibs_check_method in
2148 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2149 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2150 echo "configure:2151: checking for ${ac_tool_prefix}file" >&5
2151 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2156 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2162 ac_save_MAGIC_CMD="$MAGIC_CMD"
2163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2164 ac_dummy="/usr/bin:$PATH"
2165 for ac_dir in $ac_dummy; do
2166 test -z "$ac_dir" && ac_dir=.
2167 if test -f $ac_dir/${ac_tool_prefix}file; then
2168 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2169 if test -n "$file_magic_test_file"; then
2170 case $deplibs_check_method in
2172 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2174 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2175 egrep "$file_magic_regex" > /dev/null; then
2180 *** Warning: the command libtool uses to detect shared libraries,
2181 *** $file_magic_cmd, produces output that libtool cannot recognize.
2182 *** The result is that libtool may fail to recognize shared libraries
2183 *** as such. This will affect the creation of libtool libraries that
2184 *** depend on shared libraries, but programs linked with such libtool
2185 *** libraries will work regardless of this problem. Nevertheless, you
2186 *** may want to report the problem to your system manager and/or to
2187 *** bug-libtool@gnu.org
2197 MAGIC_CMD="$ac_save_MAGIC_CMD"
2202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2203 if test -n "$MAGIC_CMD"; then
2204 echo "$ac_t""$MAGIC_CMD" 1>&6
2206 echo "$ac_t""no" 1>&6
2209 if test -z "$lt_cv_path_MAGIC_CMD"; then
2210 if test -n "$ac_tool_prefix"; then
2211 echo $ac_n "checking for file""... $ac_c" 1>&6
2212 echo "configure:2213: checking for file" >&5
2213 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2218 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2224 ac_save_MAGIC_CMD="$MAGIC_CMD"
2225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2226 ac_dummy="/usr/bin:$PATH"
2227 for ac_dir in $ac_dummy; do
2228 test -z "$ac_dir" && ac_dir=.
2229 if test -f $ac_dir/file; then
2230 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2231 if test -n "$file_magic_test_file"; then
2232 case $deplibs_check_method in
2234 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2237 egrep "$file_magic_regex" > /dev/null; then
2242 *** Warning: the command libtool uses to detect shared libraries,
2243 *** $file_magic_cmd, produces output that libtool cannot recognize.
2244 *** The result is that libtool may fail to recognize shared libraries
2245 *** as such. This will affect the creation of libtool libraries that
2246 *** depend on shared libraries, but programs linked with such libtool
2247 *** libraries will work regardless of this problem. Nevertheless, you
2248 *** may want to report the problem to your system manager and/or to
2249 *** bug-libtool@gnu.org
2259 MAGIC_CMD="$ac_save_MAGIC_CMD"
2264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2265 if test -n "$MAGIC_CMD"; then
2266 echo "$ac_t""$MAGIC_CMD" 1>&6
2268 echo "$ac_t""no" 1>&6
2280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2281 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2283 echo "configure:2284: checking for $ac_word" >&5
2284 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 if test -n "$RANLIB"; then
2288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2292 for ac_dir in $ac_dummy; do
2293 test -z "$ac_dir" && ac_dir=.
2294 if test -f $ac_dir/$ac_word; then
2295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2302 RANLIB="$ac_cv_prog_RANLIB"
2303 if test -n "$RANLIB"; then
2304 echo "$ac_t""$RANLIB" 1>&6
2306 echo "$ac_t""no" 1>&6
2310 if test -z "$ac_cv_prog_RANLIB"; then
2311 if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "ranlib", so it can be a program name with args.
2313 set dummy ranlib; ac_word=$2
2314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_word" >&5
2316 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 if test -n "$RANLIB"; then
2320 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2324 for ac_dir in $ac_dummy; do
2325 test -z "$ac_dir" && ac_dir=.
2326 if test -f $ac_dir/$ac_word; then
2327 ac_cv_prog_RANLIB="ranlib"
2332 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2335 RANLIB="$ac_cv_prog_RANLIB"
2336 if test -n "$RANLIB"; then
2337 echo "$ac_t""$RANLIB" 1>&6
2339 echo "$ac_t""no" 1>&6
2347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}strip; ac_word=$2
2349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2350 echo "configure:2351: checking for $ac_word" >&5
2351 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 if test -n "$STRIP"; then
2355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2359 for ac_dir in $ac_dummy; do
2360 test -z "$ac_dir" && ac_dir=.
2361 if test -f $ac_dir/$ac_word; then
2362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2369 STRIP="$ac_cv_prog_STRIP"
2370 if test -n "$STRIP"; then
2371 echo "$ac_t""$STRIP" 1>&6
2373 echo "$ac_t""no" 1>&6
2377 if test -z "$ac_cv_prog_STRIP"; then
2378 if test -n "$ac_tool_prefix"; then
2379 # Extract the first word of "strip", so it can be a program name with args.
2380 set dummy strip; ac_word=$2
2381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_word" >&5
2383 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 if test -n "$STRIP"; then
2387 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2391 for ac_dir in $ac_dummy; do
2392 test -z "$ac_dir" && ac_dir=.
2393 if test -f $ac_dir/$ac_word; then
2394 ac_cv_prog_STRIP="strip"
2399 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2402 STRIP="$ac_cv_prog_STRIP"
2403 if test -n "$STRIP"; then
2404 echo "$ac_t""$STRIP" 1>&6
2406 echo "$ac_t""no" 1>&6
2415 # Check for any special flags to pass to ltconfig.
2416 libtool_flags="--cache-file=$cache_file"
2417 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2418 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2419 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2420 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2421 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2422 libtool_flags="$libtool_flags --enable-dlopen"
2424 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2425 if test "${enable_libtool_lock+set}" = set; then
2426 enableval="$enable_libtool_lock"
2430 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2431 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2433 # Check whether --with-pic or --without-pic was given.
2434 if test "${with_pic+set}" = set; then
2441 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2442 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2444 # Some flags need to be propagated to the compiler or linker for good
2448 # Find out which ABI we are using.
2449 echo '#line 2450 "configure"' > conftest.$ac_ext
2450 if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2451 if test "$lt_cv_prog_gnu_ld" = yes; then
2452 case `/usr/bin/file conftest.$ac_objext` in
2454 LD="${LD-ld} -melf32bsmip"
2457 LD="${LD-ld} -melf32bmipn32"
2460 LD="${LD-ld} -melf64bmip"
2464 case `/usr/bin/file conftest.$ac_objext` in
2481 # Find out which ABI we are using.
2482 echo 'int i;' > conftest.$ac_ext
2483 if { (eval echo configure:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2484 case "`/usr/bin/file conftest.o`" in
2496 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2497 # Find out which ABI we are using.
2498 echo 'int i;' > conftest.$ac_ext
2499 if { (eval echo configure:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2500 case "`/usr/bin/file conftest.o`" in
2504 LD="${LD-ld} -m elf_i386"
2507 LD="${LD-ld} -m elf32ppclinux"
2510 LD="${LD-ld} -m elf_s390"
2513 LD="${LD-ld} -m elf32_sparc"
2520 LD="${LD-ld} -m elf_x86_64"
2522 ppc*-*linux*|powerpc*-*linux*)
2523 LD="${LD-ld} -m elf64ppc"
2526 LD="${LD-ld} -m elf64_s390"
2529 LD="${LD-ld} -m elf64_sparc"
2539 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2540 SAVE_CFLAGS="$CFLAGS"
2541 CFLAGS="$CFLAGS -belf"
2542 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2543 echo "configure:2544: checking whether the C compiler needs -belf" >&5
2544 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2550 ac_cpp='$CPP $CPPFLAGS'
2551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2553 cross_compiling=$ac_cv_prog_cc_cross
2555 cat > conftest.$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2563 if { (eval echo configure:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2565 lt_cv_cc_needs_belf=yes
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2570 lt_cv_cc_needs_belf=no
2574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2578 cross_compiling=$ac_cv_prog_cc_cross
2582 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2583 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2584 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2585 CFLAGS="$SAVE_CFLAGS"
2592 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2593 echo "configure:2594: checking how to run the C++ preprocessor" >&5
2594 if test -z "$CXXCPP"; then
2595 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2599 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2600 ac_cpp='$CXXCPP $CPPFLAGS'
2601 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2602 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2603 cross_compiling=$ac_cv_prog_cxx_cross
2604 CXXCPP="${CXX-g++} -E"
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2611 { (eval echo configure:2612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2613 if test -z "$ac_err"; then
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2623 ac_cv_prog_CXXCPP="$CXXCPP"
2625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2629 cross_compiling=$ac_cv_prog_cc_cross
2632 CXXCPP="$ac_cv_prog_CXXCPP"
2633 echo "$ac_t""$CXXCPP" 1>&6
2636 # Save cache, so that ltconfig can load it
2637 cat > confcache <<\EOF
2638 # This file is a shell script that caches the results of configure
2639 # tests run on this system so they can be shared between configure
2640 # scripts and configure runs. It is not useful on other systems.
2641 # If it contains results you don't want to keep, you may remove or edit it.
2643 # By default, configure uses ./config.cache as the cache file,
2644 # creating it if it does not exist already. You can give configure
2645 # the --cache-file=FILE option to use a different cache file; that is
2646 # what configure does when it calls configure scripts in
2647 # subdirectories, so they share the cache.
2648 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2649 # config.status only pays attention to the cache file if you give it the
2650 # --recheck option to rerun configure.
2653 # The following way of writing the cache mishandles newlines in values,
2654 # but we know of no workaround that is simple, portable, and efficient.
2655 # So, don't put newlines in cache variables' values.
2656 # Ultrix sh set writes to stderr and can't be redirected directly,
2657 # and sets the high bit in the cache file unless we assign to the vars.
2659 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2661 # `set' does not quote correctly, so add quotes (double-quote substitution
2662 # turns \\\\ into \\, and sed turns \\ into \).
2664 -e "s/'/'\\\\''/g" \
2665 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2668 # `set' quotes correctly as required by POSIX, so do not add quotes.
2669 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2672 if cmp -s $cache_file confcache; then
2675 if test -w $cache_file; then
2676 echo "updating cache $cache_file"
2677 cat confcache > $cache_file
2679 echo "not updating unwritable cache $cache_file"
2685 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2686 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2687 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2688 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2689 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2690 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2691 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2692 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2693 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2694 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2696 # Reload cache, that may have been modified by ltconfig
2697 if test -r "$cache_file"; then
2698 echo "loading cache $cache_file"
2701 echo "creating cache $cache_file"
2706 # This can be used to rebuild libtool when needed
2707 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2709 # Always use our own libtool.
2710 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2712 # Redirect the config.log output again, so that the ltconfig log is not
2713 # clobbered by the next message.
2714 exec 5>>./config.log
2718 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2720 lt_save_CFLAGS="$CFLAGS"
2721 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2722 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2723 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2724 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2725 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2726 deplibs_check_method="$deplibs_check_method" \
2727 file_magic_cmd="$file_magic_cmd" \
2728 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2729 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2730 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2732 CFLAGS="$lt_save_CFLAGS"
2734 # Redirect the config.log output again, so that the ltconfig log is not
2735 # clobbered by the next message.
2736 exec 5>>./config.log
2746 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2755 if test -d $srcdir/testsuite; then
2757 TESTSUBDIR_FALSE='#'
2763 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2764 if test "${enable_getenv_properties+set}" = set; then
2765 enableval="$enable_getenv_properties"
2770 if test -z "$enable_getenv_properties"; then
2771 enable_getenv_properties=${enable_getenv_properties_default-yes}
2773 if test "$enable_getenv_properties" = no; then
2774 cat >> confdefs.h <<\EOF
2775 #define DISABLE_GETENV_PROPERTIES 1
2780 if test -z "$enable_main_args"; then
2781 enable_main_args=${enable_main_args_default-yes}
2783 if test "$enable_main_args" = no; then
2784 cat >> confdefs.h <<\EOF
2785 #define DISABLE_MAIN_ARGS 1
2791 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2792 if test "${enable_hash_synchronization+set}" = set; then
2793 enableval="$enable_hash_synchronization"
2798 if test -z "$enable_hash_synchronization"; then
2799 enable_hash_synchronization=$enable_hash_synchronization_default
2802 if test "${slow_pthread_self}" = "yes"; then
2803 cat >> confdefs.h <<\EOF
2804 #define SLOW_PTHREAD_SELF 1
2812 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2813 if test "${enable_libgcj_debug+set}" = set; then
2814 enableval="$enable_libgcj_debug"
2815 if test "$enable_libgcj_debug" = yes; then
2816 cat >> confdefs.h <<\EOF
2825 # Check whether --enable-interpreter or --disable-interpreter was given.
2826 if test "${enable_interpreter+set}" = set; then
2827 enableval="$enable_interpreter"
2828 if test "$enable_interpreter" = yes; then
2829 # This can also be set in configure.host.
2830 libgcj_interpreter=yes
2831 elif test "$enable_interpreter" = no; then
2832 libgcj_interpreter=no
2837 if test "$libgcj_interpreter" = yes; then
2838 cat >> confdefs.h <<\EOF
2839 #define INTERPRETER 1
2843 INTERPRETER="$libgcj_interpreter"
2846 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2847 echo "configure:2848: checking for exception model to use" >&5
2850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2851 ac_cpp='$CXXCPP $CPPFLAGS'
2852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2854 cross_compiling=$ac_cv_prog_cxx_cross
2856 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2857 if test "${enable_sjlj_exceptions+set}" = set; then
2858 enableval="$enable_sjlj_exceptions"
2861 cat > conftest.$ac_ext << EOF
2862 #line 2863 "configure"
2871 old_CXXFLAGS="$CXXFLAGS"
2873 if { (eval echo configure:2874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2874 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2875 enable_sjlj_exceptions=yes
2876 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2877 enable_sjlj_exceptions=no
2880 CXXFLAGS="$old_CXXFLAGS"
2884 if test x$enable_sjlj_exceptions = xyes; then
2885 cat >> confdefs.h <<\EOF
2886 #define SJLJ_EXCEPTIONS 1
2889 ac_exception_model_name=sjlj
2890 elif test x$enable_sjlj_exceptions = xno; then
2891 ac_exception_model_name="call frame"
2893 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2900 cross_compiling=$ac_cv_prog_cc_cross
2902 echo "$ac_t""$ac_exception_model_name" 1>&6
2904 # If we are non using SJLJ exceptions, and this host does not have support
2905 # for unwinding from a signal handler, enable checked dereferences and divides.
2906 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2907 CHECKREFSPEC=-fcheck-references
2908 DIVIDESPEC=-fuse-divide-subroutine
2912 # Check whether --enable-java-net or --disable-java-net was given.
2913 if test "${enable_java_net+set}" = set; then
2914 enableval="$enable_java_net"
2919 if test -z "$enable_java_net"; then
2920 enable_java_net=${enable_java_net_default-yes}
2922 if test "$enable_java_net" = no; then
2923 cat >> confdefs.h <<\EOF
2924 #define DISABLE_JAVA_NET 1
2929 # Check whether --with-libffi or --without-libffi was given.
2930 if test "${with_libffi+set}" = set; then
2931 withval="$with_libffi"
2934 with_libffi=${with_libffi_default-yes}
2940 if test "$with_libffi" != no; then
2941 cat >> confdefs.h <<\EOF
2942 #define USE_LIBFFI 1
2945 LIBFFI=../libffi/libffi_convenience.la
2946 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2951 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2952 if test "${enable_jvmpi+set}" = set; then
2953 enableval="$enable_jvmpi"
2958 if test "$enable_jvmpi" != no; then
2959 cat >> confdefs.h <<\EOF
2960 #define ENABLE_JVMPI 1
2965 TARGET_ECOS=${PROCESS-"no"}
2966 # Check whether --with-ecos or --without-ecos was given.
2967 if test "${with_ecos+set}" = set; then
2968 withval="$with_ecos"
2969 TARGET_ECOS="$with_ecos"
2975 case "$TARGET_ECOS" in
2980 PLATFORMOBJS=win32.lo
2983 echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6
2984 echo "configure:2984: checking whether 'ld' is at least 2.13" >&5
2985 LD_PROG=`$CC --print-prog-name=ld`
2986 LD_VERSION=`$LD_PROG --version`
2987 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
2988 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
2989 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
2992 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
2996 if test "x$LD_OK" != x; then
2997 echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
2999 echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3000 echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2
3001 cat >> confdefs.h <<\EOF
3002 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3010 PLATFORMOBJS=posix.lo
3018 cat >> confdefs.h <<\EOF
3022 PLATFORMOBJS=posix.lo
3029 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3030 echo "configure:3028: checking how to run the C preprocessor" >&5
3031 # On Suns, sometimes $CPP names a directory.
3032 if test -n "$CPP" && test -d "$CPP"; then
3035 if test -z "$CPP"; then
3036 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3039 # This must be in double quotes, not single quotes, because CPP may get
3040 # substituted into the Makefile and "${CC-cc}" will confuse make.
3042 # On the NeXT, cc -E runs the code through the compiler's parser,
3043 # not just through cpp.
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3043 "configure"
3046 #include "confdefs.h"
3050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3051 { (eval echo configure:3049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3053 if test -z "$ac_err"; then
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3060 CPP="${CC-cc} -E -traditional-cpp"
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3060 "configure"
3063 #include "confdefs.h"
3067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3068 { (eval echo configure:3066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3070 if test -z "$ac_err"; then
3074 echo "configure: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3077 CPP="${CC-cc} -nologo -E"
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3077 "configure"
3080 #include "confdefs.h"
3084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3085 { (eval echo configure:3083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3087 if test -z "$ac_err"; then
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3101 ac_cv_prog_CPP="$CPP"
3103 CPP="$ac_cv_prog_CPP"
3105 ac_cv_prog_CPP="$CPP"
3107 echo "$ac_t""$CPP" 1>&6
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3108 "configure"
3111 #include "confdefs.h"
3114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3115 egrep "uint32_t" >/dev/null 2>&1; then
3117 cat >> confdefs.h <<\EOF
3118 #define HAVE_INT32_DEFINED 1
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3123 "configure"
3126 #include "confdefs.h"
3127 #include <inttypes.h>
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 egrep "uint32_t" >/dev/null 2>&1; then
3132 cat >> confdefs.h <<\EOF
3133 #define HAVE_INT32_DEFINED 1
3139 cat > conftest.$ac_ext <<EOF
3140 #line 3138 "configure"
3141 #include "confdefs.h"
3142 #include <sys/types.h>
3144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3145 egrep "u_int32_t" >/dev/null 2>&1; then
3147 cat >> confdefs.h <<\EOF
3148 #define HAVE_BSD_INT32_DEFINED 1
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3153 "configure"
3156 #include "confdefs.h"
3157 #include <sys/config.h>
3159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160 egrep "u_int32_t" >/dev/null 2>&1; then
3162 cat >> confdefs.h <<\EOF
3163 #define HAVE_BSD_INT32_DEFINED 1
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3170 "configure"
3173 #include "confdefs.h"
3176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3177 egrep "mktime" >/dev/null 2>&1; then
3179 cat >> confdefs.h <<\EOF
3180 #define HAVE_MKTIME 1
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3185 "configure"
3188 #include "confdefs.h"
3191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3192 egrep "localtime" >/dev/null 2>&1; then
3194 cat >> confdefs.h <<\EOF
3195 #define HAVE_LOCALTIME 1
3202 test -d java || mkdir java
3203 test -d java/io || mkdir java/io
3204 test -d gnu || mkdir gnu
3208 test -d java/lang || mkdir java/lang
3212 test -d java/net || mkdir java/net
3220 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3228 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3231 # Check whether --with-system-zlib or --without-system-zlib was given.
3232 if test "${with_system_zlib+set}" = set; then
3233 withval="$with_system_zlib"
3242 # If we find X, set shell vars x_includes and x_libraries to the
3243 # paths, otherwise set no_x=yes.
3244 # Uses ac_ vars as temps to allow command line to override cache and checks.
3245 # --without-x overrides everything else, but does not touch the cache.
3246 echo $ac_n "checking for X""... $ac_c" 1>&6
3247 echo "configure:3239: checking for X" >&5
3249 # Check whether --with-x or --without-x was given.
3250 if test "${with_x+set}" = set; then
3255 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3256 if test "x$with_x" = xno; then
3257 # The user explicitly disabled X.
3260 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3261 # Both variables are already set.
3264 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 # One or both of the vars are not set, and there is no cached value.
3268 ac_x_includes=NO ac_x_libraries=NO
3270 if mkdir conftestdir; then
3272 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3273 cat > Imakefile <<'EOF'
3275 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3277 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3278 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3279 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3280 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3281 for ac_extension in a so sl; do
3282 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3283 test -f $ac_im_libdir/libX11.$ac_extension; then
3284 ac_im_usrlibdir=$ac_im_libdir; break
3287 # Screen out bogus values from the imake configuration. They are
3288 # bogus both because they are the default anyway, and because
3289 # using them would break gcc on systems where it needs fixed includes.
3290 case "$ac_im_incroot" in
3292 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3294 case "$ac_im_usrlibdir" in
3296 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3303 if test "$ac_x_includes" = NO; then
3304 # Guess where to find include files, by looking for this one X11 .h file.
3305 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3307 # First, try using that file with no special directory specified.
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3301 "configure"
3310 #include "confdefs.h"
3311 #include <$x_direct_test_include>
3313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3314 { (eval echo configure:3306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3316 if test -z "$ac_err"; then
3318 # We can compile using X headers with no special include directory.
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3325 # Look for the header file in a standard set of common directories.
3326 # Check X11 before X11Rn because it is often a symlink to the current release.
3329 /usr/X11R6/include \
3330 /usr/X11R5/include \
3331 /usr/X11R4/include \
3334 /usr/include/X11R6 \
3335 /usr/include/X11R5 \
3336 /usr/include/X11R4 \
3338 /usr/local/X11/include \
3339 /usr/local/X11R6/include \
3340 /usr/local/X11R5/include \
3341 /usr/local/X11R4/include \
3343 /usr/local/include/X11 \
3344 /usr/local/include/X11R6 \
3345 /usr/local/include/X11R5 \
3346 /usr/local/include/X11R4 \
3350 /usr/XFree86/include/X11 \
3353 /usr/local/include \
3354 /usr/unsupported/include \
3355 /usr/athena/include \
3356 /usr/local/x11r5/include \
3357 /usr/lpp/Xamples/include \
3359 /usr/openwin/include \
3360 /usr/openwin/share/include \
3363 if test -r "$ac_dir/$x_direct_test_include"; then
3364 ac_x_includes=$ac_dir
3370 fi # $ac_x_includes = NO
3372 if test "$ac_x_libraries" = NO; then
3373 # Check for the libraries.
3375 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3376 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3378 # See if we find them without any special options.
3379 # Don't add to $LIBS permanently.
3380 ac_save_LIBS="$LIBS"
3381 LIBS="-l$x_direct_test_library $LIBS"
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3375 "configure"
3384 #include "confdefs.h"
3387 ${x_direct_test_function}()
3390 if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3392 LIBS="$ac_save_LIBS"
3393 # We can link X programs with no special library path.
3396 echo "configure: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3399 LIBS="$ac_save_LIBS"
3400 # First see if replacing the include by lib works.
3401 # Check X11 before X11Rn because it is often a symlink to the current release.
3402 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3413 /usr/local/X11/lib \
3414 /usr/local/X11R6/lib \
3415 /usr/local/X11R5/lib \
3416 /usr/local/X11R4/lib \
3418 /usr/local/lib/X11 \
3419 /usr/local/lib/X11R6 \
3420 /usr/local/lib/X11R5 \
3421 /usr/local/lib/X11R4 \
3425 /usr/XFree86/lib/X11 \
3429 /usr/unsupported/lib \
3431 /usr/local/x11r5/lib \
3432 /usr/lpp/Xamples/lib \
3436 /usr/openwin/share/lib \
3439 for ac_extension in a so sl; do
3440 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3441 ac_x_libraries=$ac_dir
3448 fi # $ac_x_libraries = NO
3450 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3451 # Didn't find X anywhere. Cache the known absence of X.
3452 ac_cv_have_x="have_x=no"
3454 # Record where we found X for the cache.
3455 ac_cv_have_x="have_x=yes \
3456 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3460 eval "$ac_cv_have_x"
3463 if test "$have_x" != yes; then
3464 echo "$ac_t""$have_x" 1>&6
3467 # If each of the values was on the command line, it overrides each guess.
3468 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3469 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3470 # Update the cache value to reflect the command line values.
3471 ac_cv_have_x="have_x=yes \
3472 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3473 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3476 if test "$no_x" = yes; then
3477 # Not all programs may use this symbol, but it does not hurt to define it.
3478 cat >> confdefs.h <<\EOF
3479 #define X_DISPLAY_MISSING 1
3482 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3484 if test -n "$x_includes"; then
3485 X_CFLAGS="$X_CFLAGS -I$x_includes"
3488 # It would also be nice to do this for all -L options, not just this one.
3489 if test -n "$x_libraries"; then
3490 X_LIBS="$X_LIBS -L$x_libraries"
3491 # For Solaris; some versions of Sun CC require a space after -R and
3492 # others require no space. Words are not sufficient . . . .
3493 case "`(uname -sr) 2>/dev/null`" in
3495 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3496 echo "configure:3488: checking whether -R must be followed by a space" >&5
3497 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3491 "configure"
3500 #include "confdefs.h"
3506 if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3516 if test $ac_R_nospace = yes; then
3517 echo "$ac_t""no" 1>&6
3518 X_LIBS="$X_LIBS -R$x_libraries"
3520 LIBS="$ac_xsave_LIBS -R $x_libraries"
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3514 "configure"
3523 #include "confdefs.h"
3529 if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3539 if test $ac_R_space = yes; then
3540 echo "$ac_t""yes" 1>&6
3541 X_LIBS="$X_LIBS -R $x_libraries"
3543 echo "$ac_t""neither works" 1>&6
3546 LIBS="$ac_xsave_LIBS"
3550 # Check for system-dependent libraries X programs must link with.
3551 # Do this before checking for the system-independent R6 libraries
3552 # (-lICE), since we may need -lsocket or whatever for X linking.
3554 if test "$ISC" = yes; then
3555 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3557 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3558 # libraries were built with DECnet support. And karl@cs.umb.edu says
3559 # the Alpha needs dnet_stub (dnet does not exist).
3560 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3561 echo "configure:3553: checking for dnet_ntoa in -ldnet" >&5
3562 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 ac_save_LIBS="$LIBS"
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3561 "configure"
3570 #include "confdefs.h"
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 /* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3580 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3582 eval "ac_cv_lib_$ac_lib_var=yes"
3584 echo "configure: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3587 eval "ac_cv_lib_$ac_lib_var=no"
3590 LIBS="$ac_save_LIBS"
3593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3597 echo "$ac_t""no" 1>&6
3600 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3601 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3602 echo "configure:3594: checking for dnet_ntoa in -ldnet_stub" >&5
3603 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 ac_save_LIBS="$LIBS"
3608 LIBS="-ldnet_stub $LIBS"
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3602 "configure"
3611 #include "confdefs.h"
3612 /* Override any gcc2 internal prototype to avoid an error. */
3613 /* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3621 if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623 eval "ac_cv_lib_$ac_lib_var=yes"
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3628 eval "ac_cv_lib_$ac_lib_var=no"
3631 LIBS="$ac_save_LIBS"
3634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3638 echo "$ac_t""no" 1>&6
3643 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3644 # to get the SysV transport functions.
3645 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3647 # The nsl library prevents programs from opening the X display
3648 # on Irix 5.2, according to dickey@clark.net.
3649 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3650 echo "configure:3642: checking for gethostbyname" >&5
3651 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3647 "configure"
3656 #include "confdefs.h"
3657 /* System header to define __stub macros and hopefully few prototypes,
3658 which can conflict with char gethostbyname(); below. */
3660 /* Override any gcc2 internal prototype to avoid an error. */
3661 /* We use char because int might match the return type of a gcc2
3662 builtin and then its argument prototype would still apply. */
3663 char gethostbyname();
3667 /* The GNU C library defines this for functions which it implements
3668 to always fail with ENOSYS. Some functions are actually named
3669 something starting with __ and the normal name is an alias. */
3670 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3678 if { (eval echo configure:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3680 eval "ac_cv_func_gethostbyname=yes"
3682 echo "configure: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3685 eval "ac_cv_func_gethostbyname=no"
3690 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3691 echo "$ac_t""yes" 1>&6
3694 echo "$ac_t""no" 1>&6
3697 if test $ac_cv_func_gethostbyname = no; then
3698 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3699 echo "configure:3691: checking for gethostbyname in -lnsl" >&5
3700 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 ac_save_LIBS="$LIBS"
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3699 "configure"
3708 #include "confdefs.h"
3709 /* Override any gcc2 internal prototype to avoid an error. */
3710 /* We use char because int might match the return type of a gcc2
3711 builtin and then its argument prototype would still apply. */
3712 char gethostbyname();
3718 if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3720 eval "ac_cv_lib_$ac_lib_var=yes"
3722 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3725 eval "ac_cv_lib_$ac_lib_var=no"
3728 LIBS="$ac_save_LIBS"
3731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3732 echo "$ac_t""yes" 1>&6
3733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3735 echo "$ac_t""no" 1>&6
3740 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3741 # socket/setsockopt and other routines are undefined under SCO ODT
3742 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3743 # on later versions), says simon@lia.di.epfl.ch: it contains
3744 # gethostby* variants that don't use the nameserver (or something).
3745 # -lsocket must be given before -lnsl if both are needed.
3746 # We assume that if connect needs -lnsl, so does gethostbyname.
3747 echo $ac_n "checking for connect""... $ac_c" 1>&6
3748 echo "configure:3740: checking for connect" >&5
3749 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3745 "configure"
3754 #include "confdefs.h"
3755 /* System header to define __stub macros and hopefully few prototypes,
3756 which can conflict with char connect(); below. */
3758 /* Override any gcc2 internal prototype to avoid an error. */
3759 /* We use char because int might match the return type of a gcc2
3760 builtin and then its argument prototype would still apply. */
3765 /* The GNU C library defines this for functions which it implements
3766 to always fail with ENOSYS. Some functions are actually named
3767 something starting with __ and the normal name is an alias. */
3768 #if defined (__stub_connect) || defined (__stub___connect)
3776 if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3778 eval "ac_cv_func_connect=yes"
3780 echo "configure: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3783 eval "ac_cv_func_connect=no"
3788 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3789 echo "$ac_t""yes" 1>&6
3792 echo "$ac_t""no" 1>&6
3795 if test $ac_cv_func_connect = no; then
3796 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3797 echo "configure:3789: checking for connect in -lsocket" >&5
3798 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3802 ac_save_LIBS="$LIBS"
3803 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3804 cat > conftest.$ac_ext <<EOF
3805 #line 3797 "configure"
3806 #include "confdefs.h"
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3816 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3818 eval "ac_cv_lib_$ac_lib_var=yes"
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3823 eval "ac_cv_lib_$ac_lib_var=no"
3826 LIBS="$ac_save_LIBS"
3829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3830 echo "$ac_t""yes" 1>&6
3831 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3833 echo "$ac_t""no" 1>&6
3838 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3839 echo $ac_n "checking for remove""... $ac_c" 1>&6
3840 echo "configure:3832: checking for remove" >&5
3841 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3842 echo $ac_n "(cached) $ac_c" 1>&6
3844 cat > conftest.$ac_ext <<EOF
3845 #line 3837 "configure"
3846 #include "confdefs.h"
3847 /* System header to define __stub macros and hopefully few prototypes,
3848 which can conflict with char remove(); below. */
3850 /* Override any gcc2 internal prototype to avoid an error. */
3851 /* We use char because int might match the return type of a gcc2
3852 builtin and then its argument prototype would still apply. */
3857 /* The GNU C library defines this for functions which it implements
3858 to always fail with ENOSYS. Some functions are actually named
3859 something starting with __ and the normal name is an alias. */
3860 #if defined (__stub_remove) || defined (__stub___remove)
3868 if { (eval echo configure:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3870 eval "ac_cv_func_remove=yes"
3872 echo "configure: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3875 eval "ac_cv_func_remove=no"
3880 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3881 echo "$ac_t""yes" 1>&6
3884 echo "$ac_t""no" 1>&6
3887 if test $ac_cv_func_remove = no; then
3888 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3889 echo "configure:3881: checking for remove in -lposix" >&5
3890 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3894 ac_save_LIBS="$LIBS"
3895 LIBS="-lposix $LIBS"
3896 cat > conftest.$ac_ext <<EOF
3897 #line 3889 "configure"
3898 #include "confdefs.h"
3899 /* Override any gcc2 internal prototype to avoid an error. */
3900 /* We use char because int might match the return type of a gcc2
3901 builtin and then its argument prototype would still apply. */
3908 if { (eval echo configure:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3910 eval "ac_cv_lib_$ac_lib_var=yes"
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3915 eval "ac_cv_lib_$ac_lib_var=no"
3918 LIBS="$ac_save_LIBS"
3921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3922 echo "$ac_t""yes" 1>&6
3923 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3925 echo "$ac_t""no" 1>&6
3930 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3931 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3932 echo "configure:3924: checking for shmat" >&5
3933 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3936 cat > conftest.$ac_ext <<EOF
3937 #line 3929 "configure"
3938 #include "confdefs.h"
3939 /* System header to define __stub macros and hopefully few prototypes,
3940 which can conflict with char shmat(); below. */
3942 /* Override any gcc2 internal prototype to avoid an error. */
3943 /* We use char because int might match the return type of a gcc2
3944 builtin and then its argument prototype would still apply. */
3949 /* The GNU C library defines this for functions which it implements
3950 to always fail with ENOSYS. Some functions are actually named
3951 something starting with __ and the normal name is an alias. */
3952 #if defined (__stub_shmat) || defined (__stub___shmat)
3960 if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3962 eval "ac_cv_func_shmat=yes"
3964 echo "configure: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3967 eval "ac_cv_func_shmat=no"
3972 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3973 echo "$ac_t""yes" 1>&6
3976 echo "$ac_t""no" 1>&6
3979 if test $ac_cv_func_shmat = no; then
3980 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3981 echo "configure:3973: checking for shmat in -lipc" >&5
3982 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3986 ac_save_LIBS="$LIBS"
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3981 "configure"
3990 #include "confdefs.h"
3991 /* Override any gcc2 internal prototype to avoid an error. */
3992 /* We use char because int might match the return type of a gcc2
3993 builtin and then its argument prototype would still apply. */
4000 if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4002 eval "ac_cv_lib_$ac_lib_var=yes"
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4007 eval "ac_cv_lib_$ac_lib_var=no"
4010 LIBS="$ac_save_LIBS"
4013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4015 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4017 echo "$ac_t""no" 1>&6
4023 # Check for libraries that X11R6 Xt/Xaw programs need.
4024 ac_save_LDFLAGS="$LDFLAGS"
4025 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4026 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4027 # check for ICE first), but we must link in the order -lSM -lICE or
4028 # we get undefined symbols. So assume we have SM if we have ICE.
4029 # These have to be linked with before -lX11, unlike the other
4030 # libraries we check for below, so use a different variable.
4031 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4032 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4033 echo "configure:4025: checking for IceConnectionNumber in -lICE" >&5
4034 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4038 ac_save_LIBS="$LIBS"
4039 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4033 "configure"
4042 #include "confdefs.h"
4043 /* Override any gcc2 internal prototype to avoid an error. */
4044 /* We use char because int might match the return type of a gcc2
4045 builtin and then its argument prototype would still apply. */
4046 char IceConnectionNumber();
4049 IceConnectionNumber()
4052 if { (eval echo configure:4044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4054 eval "ac_cv_lib_$ac_lib_var=yes"
4056 echo "configure: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4059 eval "ac_cv_lib_$ac_lib_var=no"
4062 LIBS="$ac_save_LIBS"
4065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4066 echo "$ac_t""yes" 1>&6
4067 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4069 echo "$ac_t""no" 1>&6
4072 LDFLAGS="$ac_save_LDFLAGS"
4077 # Check whether --enable-java-awt or --disable-java-awt was given.
4078 if test "${enable_java_awt+set}" = set; then
4079 enableval="$enable_java_awt"
4084 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4087 # The default toolkit to use is the first one specified.
4091 for peer in $peerlibs ; do
4094 if test "$no_x" = yes; then
4095 echo "*** xlib peers requested but no X library available" 1>&2
4099 if test -z "$TOOLKIT"; then
4100 TOOLKIT=gnu.awt.xlib.XToolkit
4105 if test "$no_x" = yes; then
4106 echo "*** xlib peers requested but no X library available" 1>&2
4110 if test -z "$TOOLKIT"; then
4111 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4113 test -d jniinclude || mkdir jniinclude
4122 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4129 if test "$use_xlib_awt" = yes; then
4138 if test "$use_gtk_awt" = yes; then
4149 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
4150 echo "configure:4142: checking for garbage collector to use" >&5
4151 # Check whether --enable-java-gc or --disable-java-gc was given.
4152 if test "${enable_java_gc+set}" = set; then
4153 enableval="$enable_java_gc"
4169 echo "$ac_t""boehm" 1>&6
4170 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4171 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
4172 JC1GCSPEC='-fuse-boehm-gc'
4173 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
4175 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
4178 cat >> confdefs.h <<\EOF
4179 #define HAVE_BOEHM_GC 1
4184 echo "$ac_t""none" 1>&6
4189 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
4202 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4203 echo "configure:4195: checking for thread model used by GCC" >&5
4204 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4205 echo "$ac_t""$THREADS" 1>&6
4215 cat >> confdefs.h <<\EOF
4216 #define LINUX_THREADS 1
4224 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4225 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
4228 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
4243 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4248 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4249 # merely adds pthread_* functions) but it does have a -pthread switch
4250 # which is required at link-time to select -lc_r *instead* of -lc.
4251 THREADLDFLAGS=-pthread
4252 # Don't set THREADSPEC here as might be expected since -pthread is
4253 # not processed when found within a spec file, it must come from
4254 # the command line. For now, the user must provide the -pthread
4255 # switch to link code compiled with gcj. In future, consider adding
4256 # support for weak references to pthread_* functions ala gthr.h API.
4257 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4260 # FreeBSD 5 implements a model much closer to other modern UNIX
4261 # which support threads. However, it still does not support
4263 THREADLDFLAGS=-pthread
4267 THREADLIBS=-lpthread
4268 THREADSPEC=-lpthread
4271 THREADOBJS=posix-threads.lo
4272 THREADH=posix-threads.h
4273 # MIT pthreads doesn't seem to have the mutexattr functions.
4274 # But for now we don't check for it. We just assume you aren't
4275 # using MIT pthreads.
4276 cat >> confdefs.h <<\EOF
4277 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4281 # If we're using the Boehm GC, then we happen to know that it
4282 # defines _REENTRANT, so we don't bother. Eww.
4283 if test "$GC" != boehm; then
4284 cat >> confdefs.h <<\EOF
4285 #define _REENTRANT 1
4289 cat >> confdefs.h <<\EOF
4290 #define _POSIX_PTHREAD_SEMANTICS 1
4296 THREADOBJS=win32-threads.lo
4297 THREADH=win32-threads.h
4301 THREADOBJS=no-threads.lo
4302 THREADH=no-threads.h
4313 if test -d sysdep; then true; else mkdir sysdep; fi
4317 # Hash synchronization is only useful with posix threads right now.
4318 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
4319 HASH_SYNC_SPEC=-fhash-synchronization
4320 cat >> confdefs.h <<\EOF
4321 #define JV_HASH_SYNCHRONIZATION 1
4330 if test "$GCC" = yes; then
4342 # We're in the tree with gcc, and need to include some of its headers.
4343 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4345 # Figure out where generated headers like libgcj-config.h get installed.
4346 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4347 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4348 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4349 tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
4353 if test "x${with_newlib}" = "xyes"; then
4354 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4355 # may not work correctly, because the compiler may not be able to
4358 # We assume newlib. This lets us hard-code the functions we know
4360 cat >> confdefs.h <<\EOF
4361 #define HAVE_MEMMOVE 1
4364 cat >> confdefs.h <<\EOF
4365 #define HAVE_MEMCPY 1
4368 cat >> confdefs.h <<\EOF
4369 #define HAVE_STRERROR 1
4372 cat >> confdefs.h <<\EOF
4376 cat >> confdefs.h <<\EOF
4377 #define HAVE_GMTIME_R 1
4380 cat >> confdefs.h <<\EOF
4381 #define HAVE_LOCALTIME_R 1
4384 cat >> confdefs.h <<\EOF
4385 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4388 cat >> confdefs.h <<\EOF
4389 #define HAVE_ALLOCA 1
4393 cat >> confdefs.h <<\EOF
4398 # If Canadian cross, then don't pick up tools from the build
4400 if test x"$build" != x"$with_cross_host" \
4401 && test x"$build" != x"$target"; then
4404 GCJ="${target_alias}-gcj"
4409 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4412 echo "configure:4403: checking for $ac_func" >&5
4413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 cat > conftest.$ac_ext <<EOF
4417 #line 4408 "configure"
4418 #include "confdefs.h"
4419 /* System header to define __stub macros and hopefully few prototypes,
4420 which can conflict with char $ac_func(); below. */
4422 /* Override any gcc2 internal prototype to avoid an error. */
4423 /* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4429 /* The GNU C library defines this for functions which it implements
4430 to always fail with ENOSYS. Some functions are actually named
4431 something starting with __ and the normal name is an alias. */
4432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4440 if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4442 eval "ac_cv_func_$ac_func=yes"
4444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4447 eval "ac_cv_func_$ac_func=no"
4452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4455 cat >> confdefs.h <<EOF
4456 #define $ac_tr_func 1
4460 echo "$ac_t""no" 1>&6
4464 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4467 echo "configure:4458: checking for $ac_func" >&5
4468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4469 echo $ac_n "(cached) $ac_c" 1>&6
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4463 "configure"
4473 #include "confdefs.h"
4474 /* System header to define __stub macros and hopefully few prototypes,
4475 which can conflict with char $ac_func(); below. */
4477 /* Override any gcc2 internal prototype to avoid an error. */
4478 /* We use char because int might match the return type of a gcc2
4479 builtin and then its argument prototype would still apply. */
4484 /* The GNU C library defines this for functions which it implements
4485 to always fail with ENOSYS. Some functions are actually named
4486 something starting with __ and the normal name is an alias. */
4487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4495 if { (eval echo configure:4486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4497 eval "ac_cv_func_$ac_func=yes"
4499 echo "configure: failed program was:" >&5
4500 cat conftest.$ac_ext >&5
4502 eval "ac_cv_func_$ac_func=no"
4507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4508 echo "$ac_t""yes" 1>&6
4509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4510 cat >> confdefs.h <<EOF
4511 #define $ac_tr_func 1
4515 echo "$ac_t""no" 1>&6
4519 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4522 echo "configure:4513: checking for $ac_func" >&5
4523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4524 echo $ac_n "(cached) $ac_c" 1>&6
4526 cat > conftest.$ac_ext <<EOF
4527 #line 4518 "configure"
4528 #include "confdefs.h"
4529 /* System header to define __stub macros and hopefully few prototypes,
4530 which can conflict with char $ac_func(); below. */
4532 /* Override any gcc2 internal prototype to avoid an error. */
4533 /* We use char because int might match the return type of a gcc2
4534 builtin and then its argument prototype would still apply. */
4539 /* The GNU C library defines this for functions which it implements
4540 to always fail with ENOSYS. Some functions are actually named
4541 something starting with __ and the normal name is an alias. */
4542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4550 if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 eval "ac_cv_func_$ac_func=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 eval "ac_cv_func_$ac_func=no"
4562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4565 cat >> confdefs.h <<EOF
4566 #define $ac_tr_func 1
4570 echo "$ac_t""no" 1>&6
4574 for ac_func in nl_langinfo setlocale
4576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4577 echo "configure:4568: checking for $ac_func" >&5
4578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4573 "configure"
4583 #include "confdefs.h"
4584 /* System header to define __stub macros and hopefully few prototypes,
4585 which can conflict with char $ac_func(); below. */
4587 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4594 /* The GNU C library defines this for functions which it implements
4595 to always fail with ENOSYS. Some functions are actually named
4596 something starting with __ and the normal name is an alias. */
4597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4605 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4607 eval "ac_cv_func_$ac_func=yes"
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4612 eval "ac_cv_func_$ac_func=no"
4617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4618 echo "$ac_t""yes" 1>&6
4619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4620 cat >> confdefs.h <<EOF
4621 #define $ac_tr_func 1
4625 echo "$ac_t""no" 1>&6
4629 for ac_func in inet_aton inet_addr
4631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4632 echo "configure:4623: checking for $ac_func" >&5
4633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6
4636 cat > conftest.$ac_ext <<EOF
4637 #line 4628 "configure"
4638 #include "confdefs.h"
4639 /* System header to define __stub macros and hopefully few prototypes,
4640 which can conflict with char $ac_func(); below. */
4642 /* Override any gcc2 internal prototype to avoid an error. */
4643 /* We use char because int might match the return type of a gcc2
4644 builtin and then its argument prototype would still apply. */
4649 /* The GNU C library defines this for functions which it implements
4650 to always fail with ENOSYS. Some functions are actually named
4651 something starting with __ and the normal name is an alias. */
4652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4660 if { (eval echo configure:4651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4662 eval "ac_cv_func_$ac_func=yes"
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4667 eval "ac_cv_func_$ac_func=no"
4672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4673 echo "$ac_t""yes" 1>&6
4674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4675 cat >> confdefs.h <<EOF
4676 #define $ac_tr_func 1
4680 echo "$ac_t""no" 1>&6
4684 for ac_func in inet_pton uname inet_ntoa
4686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4687 echo "configure:4678: checking for $ac_func" >&5
4688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4683 "configure"
4693 #include "confdefs.h"
4694 /* System header to define __stub macros and hopefully few prototypes,
4695 which can conflict with char $ac_func(); below. */
4697 /* Override any gcc2 internal prototype to avoid an error. */
4698 /* We use char because int might match the return type of a gcc2
4699 builtin and then its argument prototype would still apply. */
4704 /* The GNU C library defines this for functions which it implements
4705 to always fail with ENOSYS. Some functions are actually named
4706 something starting with __ and the normal name is an alias. */
4707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4715 if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4717 eval "ac_cv_func_$ac_func=yes"
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4722 eval "ac_cv_func_$ac_func=no"
4727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4728 echo "$ac_t""yes" 1>&6
4729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4730 cat >> confdefs.h <<EOF
4731 #define $ac_tr_func 1
4735 echo "$ac_t""no" 1>&6
4739 for ac_func in fork execvp pipe sigaction ftruncate
4741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4742 echo "configure:4733: checking for $ac_func" >&5
4743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4744 echo $ac_n "(cached) $ac_c" 1>&6
4746 cat > conftest.$ac_ext <<EOF
4747 #line 4738 "configure"
4748 #include "confdefs.h"
4749 /* System header to define __stub macros and hopefully few prototypes,
4750 which can conflict with char $ac_func(); below. */
4752 /* Override any gcc2 internal prototype to avoid an error. */
4753 /* We use char because int might match the return type of a gcc2
4754 builtin and then its argument prototype would still apply. */
4759 /* The GNU C library defines this for functions which it implements
4760 to always fail with ENOSYS. Some functions are actually named
4761 something starting with __ and the normal name is an alias. */
4762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4770 if { (eval echo configure:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4772 eval "ac_cv_func_$ac_func=yes"
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4777 eval "ac_cv_func_$ac_func=no"
4782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4783 echo "$ac_t""yes" 1>&6
4784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4785 cat >> confdefs.h <<EOF
4786 #define $ac_tr_func 1
4790 echo "$ac_t""no" 1>&6
4794 for ac_hdr in execinfo.h unistd.h dlfcn.h
4796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4798 echo "configure:4789: checking for $ac_hdr" >&5
4799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4794 "configure"
4804 #include "confdefs.h"
4807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4808 { (eval echo configure:4799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4810 if test -z "$ac_err"; then
4812 eval "ac_cv_header_$ac_safe=yes"
4815 echo "configure: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4818 eval "ac_cv_header_$ac_safe=no"
4822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4825 cat >> confdefs.h <<EOF
4826 #define $ac_tr_hdr 1
4830 echo "$ac_t""no" 1>&6
4834 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
4835 echo "configure:4826: checking for backtrace" >&5
4836 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4831 "configure"
4841 #include "confdefs.h"
4842 /* System header to define __stub macros and hopefully few prototypes,
4843 which can conflict with char backtrace(); below. */
4845 /* Override any gcc2 internal prototype to avoid an error. */
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4852 /* The GNU C library defines this for functions which it implements
4853 to always fail with ENOSYS. Some functions are actually named
4854 something starting with __ and the normal name is an alias. */
4855 #if defined (__stub_backtrace) || defined (__stub___backtrace)
4863 if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4865 eval "ac_cv_func_backtrace=yes"
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4870 eval "ac_cv_func_backtrace=no"
4875 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
4876 echo "$ac_t""yes" 1>&6
4880 # Has broken backtrace()
4883 # Has broken backtrace()
4886 cat >> confdefs.h <<\EOF
4887 #define HAVE_BACKTRACE 1
4894 echo "$ac_t""no" 1>&6
4898 # Has backtrace() defined in libgcj itself
4899 cat >> confdefs.h <<\EOF
4900 #define HAVE_BACKTRACE 1
4909 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
4910 echo "configure:4901: checking for dladdr in -ldl" >&5
4911 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
4912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 ac_save_LIBS="$LIBS"
4917 cat > conftest.$ac_ext <<EOF
4918 #line 4909 "configure"
4919 #include "confdefs.h"
4920 /* Override any gcc2 internal prototype to avoid an error. */
4921 /* We use char because int might match the return type of a gcc2
4922 builtin and then its argument prototype would still apply. */
4929 if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4931 eval "ac_cv_lib_$ac_lib_var=yes"
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4936 eval "ac_cv_lib_$ac_lib_var=no"
4939 LIBS="$ac_save_LIBS"
4942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4943 echo "$ac_t""yes" 1>&6
4945 cat >> confdefs.h <<\EOF
4946 #define HAVE_DLADDR 1
4950 echo "$ac_t""no" 1>&6
4953 if test x"$build" = x"$host"; then
4954 for ac_file in /proc/self/exe
4957 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
4958 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
4959 echo "configure:4950: checking for $ac_file" >&5
4960 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4963 if test "$cross_compiling" = yes; then
4964 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
4966 if test -r $ac_file; then
4967 eval "ac_cv_file_$ac_safe=yes"
4969 eval "ac_cv_file_$ac_safe=no"
4973 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4976 cat >> confdefs.h <<EOF
4977 #define $ac_tr_file 1
4980 cat >> confdefs.h <<\EOF
4981 #define HAVE_PROC_SELF_EXE 1
4985 echo "$ac_t""no" 1>&6
4993 cat >> confdefs.h <<\EOF
4994 #define HAVE_PROC_SELF_EXE 1
5003 am_cv_lib_iconv_ldpath=
5004 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5005 if test "${with_libiconv_prefix+set}" = set; then
5006 withval="$with_libiconv_prefix"
5008 for dir in `echo "$withval" | tr : ' '`; do
5009 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
5010 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
5016 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5017 echo "configure:5008: checking for iconv" >&5
5018 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5022 am_cv_func_iconv="no, consider installing GNU libiconv"
5024 cat > conftest.$ac_ext <<EOF
5025 #line 5016 "configure"
5026 #include "confdefs.h"
5030 iconv_t cd = iconv_open("","");
5031 iconv(cd,NULL,NULL,NULL,NULL);
5035 if { (eval echo configure:5026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5037 am_cv_func_iconv=yes
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5043 if test "$am_cv_func_iconv" != yes; then
5044 am_save_LIBS="$LIBS"
5045 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5046 cat > conftest.$ac_ext <<EOF
5047 #line 5038 "configure"
5048 #include "confdefs.h"
5052 iconv_t cd = iconv_open("","");
5053 iconv(cd,NULL,NULL,NULL,NULL);
5057 if { (eval echo configure:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5060 am_cv_func_iconv=yes
5062 echo "configure: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5066 LIBS="$am_save_LIBS"
5071 echo "$ac_t""$am_cv_func_iconv" 1>&6
5072 if test "$am_cv_func_iconv" = yes; then
5073 cat >> confdefs.h <<\EOF
5074 #define HAVE_ICONV 1
5077 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5078 echo "configure:5069: checking for iconv declaration" >&5
5079 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5083 cat > conftest.$ac_ext <<EOF
5084 #line 5075 "configure"
5085 #include "confdefs.h"
5093 #if defined(__STDC__) || defined(__cplusplus)
5094 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5103 if { (eval echo configure:5094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5105 am_cv_proto_iconv_arg1=""
5107 echo "configure: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5110 am_cv_proto_iconv_arg1="const"
5113 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);"
5116 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5117 echo "$ac_t""${ac_t:-
5118 }$am_cv_proto_iconv" 1>&6
5119 cat >> confdefs.h <<EOF
5120 #define ICONV_CONST $am_cv_proto_iconv_arg1
5125 if test "$am_cv_lib_iconv" = yes; then
5126 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5130 if test $ac_cv_header_locale_h = yes; then
5131 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5132 echo "configure:5123: checking for LC_MESSAGES" >&5
5133 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5136 cat > conftest.$ac_ext <<EOF
5137 #line 5128 "configure"
5138 #include "confdefs.h"
5144 if { (eval echo configure:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5146 am_cv_val_LC_MESSAGES=yes
5148 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5151 am_cv_val_LC_MESSAGES=no
5156 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5157 if test $am_cv_val_LC_MESSAGES = yes; then
5158 cat >> confdefs.h <<\EOF
5159 #define HAVE_LC_MESSAGES 1
5164 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5165 echo "configure:5156: checking whether struct tm is in sys/time.h or time.h" >&5
5166 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5161 "configure"
5171 #include "confdefs.h"
5172 #include <sys/types.h>
5175 struct tm *tp; tp->tm_sec;
5178 if { (eval echo configure:5169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5180 ac_cv_struct_tm=time.h
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5185 ac_cv_struct_tm=sys/time.h
5190 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5191 if test $ac_cv_struct_tm = sys/time.h; then
5192 cat >> confdefs.h <<\EOF
5193 #define TM_IN_SYS_TIME 1
5198 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5199 echo "configure:5190: checking for tm_zone in struct tm" >&5
5200 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5203 cat > conftest.$ac_ext <<EOF
5204 #line 5195 "configure"
5205 #include "confdefs.h"
5206 #include <sys/types.h>
5207 #include <$ac_cv_struct_tm>
5209 struct tm tm; tm.tm_zone;
5212 if { (eval echo configure:5203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5214 ac_cv_struct_tm_zone=yes
5216 echo "configure: failed program was:" >&5
5217 cat conftest.$ac_ext >&5
5219 ac_cv_struct_tm_zone=no
5224 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5225 if test "$ac_cv_struct_tm_zone" = yes; then
5226 cat >> confdefs.h <<\EOF
5227 #define HAVE_TM_ZONE 1
5231 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5232 echo "configure:5223: checking for tzname" >&5
5233 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5236 cat > conftest.$ac_ext <<EOF
5237 #line 5228 "configure"
5238 #include "confdefs.h"
5240 #ifndef tzname /* For SGI. */
5241 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5247 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5249 ac_cv_var_tzname=yes
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5259 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5260 if test $ac_cv_var_tzname = yes; then
5261 cat >> confdefs.h <<\EOF
5262 #define HAVE_TZNAME 1
5269 for ac_func in gethostbyname_r
5271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5272 echo "configure:5263: checking for $ac_func" >&5
5273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5268 "configure"
5278 #include "confdefs.h"
5279 /* System header to define __stub macros and hopefully few prototypes,
5280 which can conflict with char $ac_func(); below. */
5282 /* Override any gcc2 internal prototype to avoid an error. */
5283 /* We use char because int might match the return type of a gcc2
5284 builtin and then its argument prototype would still apply. */
5289 /* The GNU C library defines this for functions which it implements
5290 to always fail with ENOSYS. Some functions are actually named
5291 something starting with __ and the normal name is an alias. */
5292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5300 if { (eval echo configure:5291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5302 eval "ac_cv_func_$ac_func=yes"
5304 echo "configure: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5307 eval "ac_cv_func_$ac_func=no"
5312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5313 echo "$ac_t""yes" 1>&6
5314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5315 cat >> confdefs.h <<EOF
5316 #define $ac_tr_func 1
5319 cat >> confdefs.h <<\EOF
5320 #define HAVE_GETHOSTBYNAME_R 1
5323 # There are two different kinds of gethostbyname_r.
5324 # We look for the one that returns `int'.
5325 # Hopefully this check is robust enough.
5326 cat > conftest.$ac_ext <<EOF
5327 #line 5318 "configure"
5328 #include "confdefs.h"
5331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
5335 cat >> confdefs.h <<\EOF
5336 #define GETHOSTBYNAME_R_RETURNS_INT 1
5344 *" -D_REENTRANT "*) ;;
5346 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
5347 echo "configure:5338: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
5348 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5354 ac_cpp='$CXXCPP $CPPFLAGS'
5355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5357 cross_compiling=$ac_cv_prog_cxx_cross
5359 cat > conftest.$ac_ext <<EOF
5360 #line 5351 "configure"
5361 #include "confdefs.h"
5364 gethostbyname_r("", 0, 0);
5367 if { (eval echo configure:5358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5369 libjava_cv_gethostbyname_r_needs_reentrant=no
5371 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5374 CPPFLAGS_SAVE="$CPPFLAGS"
5375 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5368 "configure"
5378 #include "confdefs.h"
5381 gethostbyname_r("", 0, 0);
5384 if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5386 libjava_cv_gethostbyname_r_needs_reentrant=yes
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5391 libjava_cv_gethostbyname_r_needs_reentrant=fail
5394 CPPFLAGS="$CPPFLAGS_SAVE"
5399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5400 ac_cpp='$CPP $CPPFLAGS'
5401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5403 cross_compiling=$ac_cv_prog_cc_cross
5408 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5409 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5410 cat >> confdefs.h <<\EOF
5411 #define _REENTRANT 1
5418 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
5419 echo "configure:5410: checking for struct hostent_data" >&5
5420 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5423 cat > conftest.$ac_ext <<EOF
5424 #line 5415 "configure"
5425 #include "confdefs.h"
5427 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5428 # define _REENTRANT 1
5432 struct hostent_data data;
5435 if { (eval echo configure:5426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5437 libjava_cv_struct_hostent_data=yes
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5442 libjava_cv_struct_hostent_data=no
5447 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5448 if test "x$libjava_cv_struct_hostent_data" = xyes; then
5449 cat >> confdefs.h <<\EOF
5450 #define HAVE_STRUCT_HOSTENT_DATA 1
5456 echo "$ac_t""no" 1>&6
5461 # FIXME: libjava source code expects to find a prototype for
5462 # gethostbyaddr_r in netdb.h. The outer check ensures that
5463 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5464 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5465 # linkage check is enough, yet C++ code requires proper prototypes.)
5466 cat > conftest.$ac_ext <<EOF
5467 #line 5458 "configure"
5468 #include "confdefs.h"
5471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5472 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
5475 for ac_func in gethostbyaddr_r
5477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5478 echo "configure:5469: checking for $ac_func" >&5
5479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5474 "configure"
5484 #include "confdefs.h"
5485 /* System header to define __stub macros and hopefully few prototypes,
5486 which can conflict with char $ac_func(); below. */
5488 /* Override any gcc2 internal prototype to avoid an error. */
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5495 /* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named
5497 something starting with __ and the normal name is an alias. */
5498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5506 if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5508 eval "ac_cv_func_$ac_func=yes"
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5513 eval "ac_cv_func_$ac_func=no"
5518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5521 cat >> confdefs.h <<EOF
5522 #define $ac_tr_func 1
5525 cat >> confdefs.h <<\EOF
5526 #define HAVE_GETHOSTBYADDR_R 1
5529 # There are two different kinds of gethostbyaddr_r.
5530 # We look for the one that returns `int'.
5531 # Hopefully this check is robust enough.
5532 cat > conftest.$ac_ext <<EOF
5533 #line 5524 "configure"
5534 #include "confdefs.h"
5537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5538 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
5541 cat >> confdefs.h <<\EOF
5542 #define GETHOSTBYADDR_R_RETURNS_INT 1
5549 echo "$ac_t""no" 1>&6
5557 for ac_func in gethostname
5559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5560 echo "configure:5551: checking for $ac_func" >&5
5561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5556 "configure"
5566 #include "confdefs.h"
5567 /* System header to define __stub macros and hopefully few prototypes,
5568 which can conflict with char $ac_func(); below. */
5570 /* Override any gcc2 internal prototype to avoid an error. */
5571 /* We use char because int might match the return type of a gcc2
5572 builtin and then its argument prototype would still apply. */
5577 /* The GNU C library defines this for functions which it implements
5578 to always fail with ENOSYS. Some functions are actually named
5579 something starting with __ and the normal name is an alias. */
5580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5588 if { (eval echo configure:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5590 eval "ac_cv_func_$ac_func=yes"
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5595 eval "ac_cv_func_$ac_func=no"
5600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5601 echo "$ac_t""yes" 1>&6
5602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5603 cat >> confdefs.h <<EOF
5604 #define $ac_tr_func 1
5607 cat >> confdefs.h <<\EOF
5608 #define HAVE_GETHOSTNAME 1
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5603 "configure"
5613 #include "confdefs.h"
5616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5617 egrep "gethostname" >/dev/null 2>&1; then
5620 cat >> confdefs.h <<\EOF
5621 #define HAVE_GETHOSTNAME_DECL 1
5628 echo "$ac_t""no" 1>&6
5633 # Look for these functions in the thread library, but only bother
5634 # if using POSIX threads.
5635 if test "$THREADS" = posix; then
5637 LIBS="$LIBS $THREADLIBS"
5638 # Some POSIX thread systems don't have pthread_mutexattr_settype.
5640 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
5642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5643 echo "configure:5634: checking for $ac_func" >&5
5644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5639 "configure"
5649 #include "confdefs.h"
5650 /* System header to define __stub macros and hopefully few prototypes,
5651 which can conflict with char $ac_func(); below. */
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5660 /* The GNU C library defines this for functions which it implements
5661 to always fail with ENOSYS. Some functions are actually named
5662 something starting with __ and the normal name is an alias. */
5663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5671 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5673 eval "ac_cv_func_$ac_func=yes"
5675 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5678 eval "ac_cv_func_$ac_func=no"
5683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5686 cat >> confdefs.h <<EOF
5687 #define $ac_tr_func 1
5691 echo "$ac_t""no" 1>&6
5696 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
5697 # Solaris 7 the name librt is preferred.
5698 for ac_func in sched_yield
5700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5701 echo "configure:5692: checking for $ac_func" >&5
5702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5697 "configure"
5707 #include "confdefs.h"
5708 /* System header to define __stub macros and hopefully few prototypes,
5709 which can conflict with char $ac_func(); below. */
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5718 /* The GNU C library defines this for functions which it implements
5719 to always fail with ENOSYS. Some functions are actually named
5720 something starting with __ and the normal name is an alias. */
5721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5729 if { (eval echo configure:5720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5731 eval "ac_cv_func_$ac_func=yes"
5733 echo "configure: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5736 eval "ac_cv_func_$ac_func=no"
5741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5742 echo "$ac_t""yes" 1>&6
5743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5744 cat >> confdefs.h <<EOF
5745 #define $ac_tr_func 1
5749 echo "$ac_t""no" 1>&6
5750 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5751 echo "configure:5742: checking for sched_yield in -lrt" >&5
5752 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5753 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5754 echo $ac_n "(cached) $ac_c" 1>&6
5756 ac_save_LIBS="$LIBS"
5758 cat > conftest.$ac_ext <<EOF
5759 #line 5750 "configure"
5760 #include "confdefs.h"
5761 /* Override any gcc2 internal prototype to avoid an error. */
5762 /* We use char because int might match the return type of a gcc2
5763 builtin and then its argument prototype would still apply. */
5770 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5772 eval "ac_cv_lib_$ac_lib_var=yes"
5774 echo "configure: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5777 eval "ac_cv_lib_$ac_lib_var=no"
5780 LIBS="$ac_save_LIBS"
5783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5784 echo "$ac_t""yes" 1>&6
5786 cat >> confdefs.h <<\EOF
5787 #define HAVE_SCHED_YIELD 1
5790 THREADLIBS="$THREADLIBS -lrt"
5791 THREADSPEC="$THREADSPEC -lrt"
5793 echo "$ac_t""no" 1>&6
5795 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
5796 echo "configure:5787: checking for sched_yield in -lposix4" >&5
5797 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
5798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5801 ac_save_LIBS="$LIBS"
5802 LIBS="-lposix4 $LIBS"
5803 cat > conftest.$ac_ext <<EOF
5804 #line 5795 "configure"
5805 #include "confdefs.h"
5806 /* Override any gcc2 internal prototype to avoid an error. */
5807 /* We use char because int might match the return type of a gcc2
5808 builtin and then its argument prototype would still apply. */
5815 if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5817 eval "ac_cv_lib_$ac_lib_var=yes"
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5822 eval "ac_cv_lib_$ac_lib_var=no"
5825 LIBS="$ac_save_LIBS"
5828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5829 echo "$ac_t""yes" 1>&6
5831 cat >> confdefs.h <<\EOF
5832 #define HAVE_SCHED_YIELD 1
5835 THREADLIBS="$THREADLIBS -lposix4"
5836 THREADSPEC="$THREADSPEC -lposix4"
5838 echo "$ac_t""no" 1>&6
5848 # We can save a little space at runtime if the mutex has m_count
5849 # or __m_count. This is a nice hack for Linux.
5850 cat > conftest.$ac_ext <<EOF
5851 #line 5842 "configure"
5852 #include "confdefs.h"
5853 #include <pthread.h>
5856 extern pthread_mutex_t *mutex; int q = mutex->m_count;
5860 if { (eval echo configure:5851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5862 cat >> confdefs.h <<\EOF
5863 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
5867 echo "configure: failed program was:" >&5
5868 cat conftest.$ac_ext >&5
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5863 "configure"
5873 #include "confdefs.h"
5874 #include <pthread.h>
5877 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
5881 if { (eval echo configure:5872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5883 cat >> confdefs.h <<\EOF
5884 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
5888 echo "configure: failed program was:" >&5
5889 cat conftest.$ac_ext >&5
5896 # We require a way to get the time.
5898 for ac_func in gettimeofday time ftime
5900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5901 echo "configure:5892: checking for $ac_func" >&5
5902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5903 echo $ac_n "(cached) $ac_c" 1>&6
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5897 "configure"
5907 #include "confdefs.h"
5908 /* System header to define __stub macros and hopefully few prototypes,
5909 which can conflict with char $ac_func(); below. */
5911 /* Override any gcc2 internal prototype to avoid an error. */
5912 /* We use char because int might match the return type of a gcc2
5913 builtin and then its argument prototype would still apply. */
5918 /* The GNU C library defines this for functions which it implements
5919 to always fail with ENOSYS. Some functions are actually named
5920 something starting with __ and the normal name is an alias. */
5921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5929 if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5931 eval "ac_cv_func_$ac_func=yes"
5933 echo "configure: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5936 eval "ac_cv_func_$ac_func=no"
5941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5942 echo "$ac_t""yes" 1>&6
5943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5944 cat >> confdefs.h <<EOF
5945 #define $ac_tr_func 1
5949 echo "$ac_t""no" 1>&6
5953 if test "$time_found" = no; then
5954 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
5957 for ac_func in memmove
5959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5960 echo "configure:5951: checking for $ac_func" >&5
5961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5962 echo $ac_n "(cached) $ac_c" 1>&6
5964 cat > conftest.$ac_ext <<EOF
5965 #line 5956 "configure"
5966 #include "confdefs.h"
5967 /* System header to define __stub macros and hopefully few prototypes,
5968 which can conflict with char $ac_func(); below. */
5970 /* Override any gcc2 internal prototype to avoid an error. */
5971 /* We use char because int might match the return type of a gcc2
5972 builtin and then its argument prototype would still apply. */
5977 /* The GNU C library defines this for functions which it implements
5978 to always fail with ENOSYS. Some functions are actually named
5979 something starting with __ and the normal name is an alias. */
5980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5988 if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5990 eval "ac_cv_func_$ac_func=yes"
5992 echo "configure: failed program was:" >&5
5993 cat conftest.$ac_ext >&5
5995 eval "ac_cv_func_$ac_func=no"
6000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6001 echo "$ac_t""yes" 1>&6
6002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6003 cat >> confdefs.h <<EOF
6004 #define $ac_tr_func 1
6008 echo "$ac_t""no" 1>&6
6013 # We require memcpy.
6015 for ac_func in memcpy
6017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6018 echo "configure:6009: checking for $ac_func" >&5
6019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6020 echo $ac_n "(cached) $ac_c" 1>&6
6022 cat > conftest.$ac_ext <<EOF
6023 #line 6014 "configure"
6024 #include "confdefs.h"
6025 /* System header to define __stub macros and hopefully few prototypes,
6026 which can conflict with char $ac_func(); below. */
6028 /* Override any gcc2 internal prototype to avoid an error. */
6029 /* We use char because int might match the return type of a gcc2
6030 builtin and then its argument prototype would still apply. */
6035 /* The GNU C library defines this for functions which it implements
6036 to always fail with ENOSYS. Some functions are actually named
6037 something starting with __ and the normal name is an alias. */
6038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6046 if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6048 eval "ac_cv_func_$ac_func=yes"
6050 echo "configure: failed program was:" >&5
6051 cat conftest.$ac_ext >&5
6053 eval "ac_cv_func_$ac_func=no"
6058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6059 echo "$ac_t""yes" 1>&6
6060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6061 cat >> confdefs.h <<EOF
6062 #define $ac_tr_func 1
6066 echo "$ac_t""no" 1>&6
6070 if test "$memcpy_found" = no; then
6071 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
6074 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6075 echo "configure:6066: checking for dlopen in -ldl" >&5
6076 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6078 echo $ac_n "(cached) $ac_c" 1>&6
6080 ac_save_LIBS="$LIBS"
6082 cat > conftest.$ac_ext <<EOF
6083 #line 6074 "configure"
6084 #include "confdefs.h"
6085 /* Override any gcc2 internal prototype to avoid an error. */
6086 /* We use char because int might match the return type of a gcc2
6087 builtin and then its argument prototype would still apply. */
6094 if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6096 eval "ac_cv_lib_$ac_lib_var=yes"
6098 echo "configure: failed program was:" >&5
6099 cat conftest.$ac_ext >&5
6101 eval "ac_cv_lib_$ac_lib_var=no"
6104 LIBS="$ac_save_LIBS"
6107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6108 echo "$ac_t""yes" 1>&6
6110 cat >> confdefs.h <<\EOF
6111 #define HAVE_DLOPEN 1
6115 echo "$ac_t""no" 1>&6
6119 # Some library-finding code we stole from Tcl.
6120 #--------------------------------------------------------------------
6121 # Check for the existence of the -lsocket and -lnsl libraries.
6122 # The order here is important, so that they end up in the right
6123 # order in the command line generated by make. Here are some
6124 # special considerations:
6125 # 1. Use "connect" and "accept" to check for -lsocket, and
6126 # "gethostbyname" to check for -lnsl.
6127 # 2. Use each function name only once: can't redo a check because
6128 # autoconf caches the results of the last check and won't redo it.
6129 # 3. Use -lnsl and -lsocket only if they supply procedures that
6130 # aren't already present in the normal libraries. This is because
6131 # IRIX 5.2 has libraries, but they aren't needed and they're
6132 # bogus: they goof up name resolution if used.
6133 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6134 # To get around this problem, check for both libraries together
6135 # if -lsocket doesn't work by itself.
6136 #--------------------------------------------------------------------
6138 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
6139 echo "configure:6130: checking for socket libraries" >&5
6140 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6141 echo $ac_n "(cached) $ac_c" 1>&6
6145 unset ac_cv_func_connect
6146 echo $ac_n "checking for connect""... $ac_c" 1>&6
6147 echo "configure:6138: checking for connect" >&5
6148 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6149 echo $ac_n "(cached) $ac_c" 1>&6
6151 cat > conftest.$ac_ext <<EOF
6152 #line 6143 "configure"
6153 #include "confdefs.h"
6154 /* System header to define __stub macros and hopefully few prototypes,
6155 which can conflict with char connect(); below. */
6157 /* Override any gcc2 internal prototype to avoid an error. */
6158 /* We use char because int might match the return type of a gcc2
6159 builtin and then its argument prototype would still apply. */
6164 /* The GNU C library defines this for functions which it implements
6165 to always fail with ENOSYS. Some functions are actually named
6166 something starting with __ and the normal name is an alias. */
6167 #if defined (__stub_connect) || defined (__stub___connect)
6175 if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6177 eval "ac_cv_func_connect=yes"
6179 echo "configure: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6182 eval "ac_cv_func_connect=no"
6187 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6188 echo "$ac_t""yes" 1>&6
6191 echo "$ac_t""no" 1>&6
6195 if test "$gcj_checkSocket" = 1; then
6196 unset ac_cv_func_connect
6197 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
6198 echo "configure:6189: checking for main in -lsocket" >&5
6199 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6203 ac_save_LIBS="$LIBS"
6204 LIBS="-lsocket $LIBS"
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6197 "configure"
6207 #include "confdefs.h"
6213 if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6215 eval "ac_cv_lib_$ac_lib_var=yes"
6217 echo "configure: failed program was:" >&5
6218 cat conftest.$ac_ext >&5
6220 eval "ac_cv_lib_$ac_lib_var=no"
6223 LIBS="$ac_save_LIBS"
6226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6227 echo "$ac_t""yes" 1>&6
6228 gcj_cv_lib_sockets="-lsocket"
6230 echo "$ac_t""no" 1>&6
6235 if test "$gcj_checkBoth" = 1; then
6237 LIBS="$LIBS -lsocket -lnsl"
6238 unset ac_cv_func_accept
6239 echo $ac_n "checking for accept""... $ac_c" 1>&6
6240 echo "configure:6231: checking for accept" >&5
6241 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6244 cat > conftest.$ac_ext <<EOF
6245 #line 6236 "configure"
6246 #include "confdefs.h"
6247 /* System header to define __stub macros and hopefully few prototypes,
6248 which can conflict with char accept(); below. */
6250 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6257 /* The GNU C library defines this for functions which it implements
6258 to always fail with ENOSYS. Some functions are actually named
6259 something starting with __ and the normal name is an alias. */
6260 #if defined (__stub_accept) || defined (__stub___accept)
6268 if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6270 eval "ac_cv_func_accept=yes"
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6275 eval "ac_cv_func_accept=no"
6280 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6281 echo "$ac_t""yes" 1>&6
6283 gcj_cv_lib_sockets="-lsocket -lnsl"
6285 echo "$ac_t""no" 1>&6
6288 unset ac_cv_func_accept
6291 unset ac_cv_func_gethostbyname
6293 LIBS="$LIBS $gcj_cv_lib_sockets"
6294 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6295 echo "configure:6286: checking for gethostbyname" >&5
6296 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 cat > conftest.$ac_ext <<EOF
6300 #line 6291 "configure"
6301 #include "confdefs.h"
6302 /* System header to define __stub macros and hopefully few prototypes,
6303 which can conflict with char gethostbyname(); below. */
6305 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6308 char gethostbyname();
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6323 if { (eval echo configure:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6325 eval "ac_cv_func_gethostbyname=yes"
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6330 eval "ac_cv_func_gethostbyname=no"
6335 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6336 echo "$ac_t""yes" 1>&6
6339 echo "$ac_t""no" 1>&6
6340 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
6341 echo "configure:6332: checking for main in -lnsl" >&5
6342 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6346 ac_save_LIBS="$LIBS"
6348 cat > conftest.$ac_ext <<EOF
6349 #line 6340 "configure"
6350 #include "confdefs.h"
6356 if { (eval echo configure:6347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6358 eval "ac_cv_lib_$ac_lib_var=yes"
6360 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6363 eval "ac_cv_lib_$ac_lib_var=no"
6366 LIBS="$ac_save_LIBS"
6369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6370 echo "$ac_t""yes" 1>&6
6371 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6373 echo "$ac_t""no" 1>&6
6378 unset ac_cv_func_gethostbyname
6383 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6384 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6386 if test "$with_system_zlib" = yes; then
6387 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6388 echo "configure:6379: checking for deflate in -lz" >&5
6389 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6391 echo $ac_n "(cached) $ac_c" 1>&6
6393 ac_save_LIBS="$LIBS"
6395 cat > conftest.$ac_ext <<EOF
6396 #line 6387 "configure"
6397 #include "confdefs.h"
6398 /* Override any gcc2 internal prototype to avoid an error. */
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6407 if { (eval echo configure:6398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6409 eval "ac_cv_lib_$ac_lib_var=yes"
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 eval "ac_cv_lib_$ac_lib_var=no"
6417 LIBS="$ac_save_LIBS"
6420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6421 echo "$ac_t""yes" 1>&6
6424 echo "$ac_t""no" 1>&6
6430 # Test for Gtk stuff, if asked for.
6431 if test "$use_gtk_awt" = yes; then
6432 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6433 if test "${with_gtk_prefix+set}" = set; then
6434 withval="$with_gtk_prefix"
6435 gtk_config_prefix="$withval"
6437 gtk_config_prefix=""
6440 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
6441 if test "${with_gtk_exec_prefix+set}" = set; then
6442 withval="$with_gtk_exec_prefix"
6443 gtk_config_exec_prefix="$withval"
6445 gtk_config_exec_prefix=""
6448 # Check whether --enable-gtktest or --disable-gtktest was given.
6449 if test "${enable_gtktest+set}" = set; then
6450 enableval="$enable_gtktest"
6461 gtk_config_args="$gtk_config_args gthread"
6466 if test x$gtk_config_exec_prefix != x ; then
6467 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6468 if test x${GTK_CONFIG+set} != xset ; then
6469 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6472 if test x$gtk_config_prefix != x ; then
6473 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6474 if test x${GTK_CONFIG+set} != xset ; then
6475 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6479 # Extract the first word of "gtk-config", so it can be a program name with args.
6480 set dummy gtk-config; ac_word=$2
6481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6482 echo "configure:6473: checking for $ac_word" >&5
6483 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6484 echo $ac_n "(cached) $ac_c" 1>&6
6486 case "$GTK_CONFIG" in
6488 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6491 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6496 for ac_dir in $ac_dummy; do
6497 test -z "$ac_dir" && ac_dir=.
6498 if test -f $ac_dir/$ac_word; then
6499 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6504 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6508 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6509 if test -n "$GTK_CONFIG"; then
6510 echo "$ac_t""$GTK_CONFIG" 1>&6
6512 echo "$ac_t""no" 1>&6
6515 min_gtk_version=1.2.4
6516 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6517 echo "configure:6508: checking for GTK - version >= $min_gtk_version" >&5
6519 if test "$GTK_CONFIG" = "no" ; then
6522 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
6523 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
6524 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
6525 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6526 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
6527 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6528 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
6529 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6530 if test "x$enable_gtktest" = "xyes" ; then
6531 ac_save_CFLAGS="$CFLAGS"
6532 ac_save_LIBS="$LIBS"
6533 CFLAGS="$CFLAGS $GTK_CFLAGS"
6534 LIBS="$GTK_LIBS $LIBS"
6536 if test "$cross_compiling" = yes; then
6537 echo $ac_n "cross compiling; assumed OK... $ac_c"
6539 cat > conftest.$ac_ext <<EOF
6540 #line 6531 "configure"
6541 #include "confdefs.h"
6543 #include <gtk/gtk.h>
6550 int major, minor, micro;
6553 system ("touch conf.gtktest");
6555 /* HP/UX 9 (%@#!) writes to sscanf strings */
6556 tmp_version = g_strdup("$min_gtk_version");
6557 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
6558 printf("%s, bad version string\n", "$min_gtk_version");
6562 if ((gtk_major_version != $gtk_config_major_version) ||
6563 (gtk_minor_version != $gtk_config_minor_version) ||
6564 (gtk_micro_version != $gtk_config_micro_version))
6566 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6567 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
6568 gtk_major_version, gtk_minor_version, gtk_micro_version);
6569 printf ("*** was found! If gtk-config was correct, then it is best\n");
6570 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
6571 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6572 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6573 printf("*** required on your system.\n");
6574 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
6575 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
6576 printf("*** before re-running configure\n");
6578 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
6579 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
6580 (gtk_minor_version != GTK_MINOR_VERSION) ||
6581 (gtk_micro_version != GTK_MICRO_VERSION))
6583 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
6584 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6585 printf("*** library (version %d.%d.%d)\n",
6586 gtk_major_version, gtk_minor_version, gtk_micro_version);
6588 #endif /* defined (GTK_MAJOR_VERSION) ... */
6591 if ((gtk_major_version > major) ||
6592 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6593 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
6599 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
6600 gtk_major_version, gtk_minor_version, gtk_micro_version);
6601 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
6602 major, minor, micro);
6603 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
6605 printf("*** If you have already installed a sufficiently new version, this error\n");
6606 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
6607 printf("*** being found. The easiest way to fix this is to remove the old version\n");
6608 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
6609 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
6610 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6611 printf("*** so that the correct libraries are found at run-time))\n");
6618 if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6622 echo "configure: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6630 CFLAGS="$ac_save_CFLAGS"
6631 LIBS="$ac_save_LIBS"
6634 if test "x$no_gtk" = x ; then
6635 echo "$ac_t""yes" 1>&6
6638 echo "$ac_t""no" 1>&6
6639 if test "$GTK_CONFIG" = "no" ; then
6640 echo "*** The gtk-config script installed by GTK could not be found"
6641 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
6642 echo "*** your path, or set the GTK_CONFIG environment variable to the"
6643 echo "*** full path to gtk-config."
6645 if test -f conf.gtktest ; then
6648 echo "*** Could not run GTK test program, checking why..."
6649 CFLAGS="$CFLAGS $GTK_CFLAGS"
6650 LIBS="$LIBS $GTK_LIBS"
6651 cat > conftest.$ac_ext <<EOF
6652 #line 6643 "configure"
6653 #include "confdefs.h"
6655 #include <gtk/gtk.h>
6659 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
6662 if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6664 echo "*** The test program compiled, but did not run. This usually means"
6665 echo "*** that the run-time linker is not finding GTK or finding the wrong"
6666 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
6667 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6668 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6669 echo "*** is required on your system"
6671 echo "*** If you have an old version installed, it is best to remove it, although"
6672 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6674 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
6675 echo "*** came with the system with the command"
6677 echo "*** rpm --erase --nodeps gtk gtk-devel"
6679 echo "configure: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6682 echo "*** The test program failed to compile or link. See the file config.log for the"
6683 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
6684 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
6685 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
6688 CFLAGS="$ac_save_CFLAGS"
6689 LIBS="$ac_save_LIBS"
6700 # Check whether --with-glib-prefix or --without-glib-prefix was given.
6701 if test "${with_glib_prefix+set}" = set; then
6702 withval="$with_glib_prefix"
6703 glib_config_prefix="$withval"
6705 glib_config_prefix=""
6708 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
6709 if test "${with_glib_exec_prefix+set}" = set; then
6710 withval="$with_glib_exec_prefix"
6711 glib_config_exec_prefix="$withval"
6713 glib_config_exec_prefix=""
6716 # Check whether --enable-glibtest or --disable-glibtest was given.
6717 if test "${enable_glibtest+set}" = set; then
6718 enableval="$enable_glibtest"
6725 if test x$glib_config_exec_prefix != x ; then
6726 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
6727 if test x${GLIB_CONFIG+set} != xset ; then
6728 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
6731 if test x$glib_config_prefix != x ; then
6732 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
6733 if test x${GLIB_CONFIG+set} != xset ; then
6734 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
6738 for module in . gthread
6742 glib_config_args="$glib_config_args gmodule"
6745 glib_config_args="$glib_config_args gthread"
6750 # Extract the first word of "glib-config", so it can be a program name with args.
6751 set dummy glib-config; ac_word=$2
6752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6753 echo "configure:6744: checking for $ac_word" >&5
6754 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6757 case "$GLIB_CONFIG" in
6759 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
6762 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
6765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6767 for ac_dir in $ac_dummy; do
6768 test -z "$ac_dir" && ac_dir=.
6769 if test -f $ac_dir/$ac_word; then
6770 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
6775 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
6779 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
6780 if test -n "$GLIB_CONFIG"; then
6781 echo "$ac_t""$GLIB_CONFIG" 1>&6
6783 echo "$ac_t""no" 1>&6
6786 min_glib_version=1.2.4
6787 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
6788 echo "configure:6779: checking for GLIB - version >= $min_glib_version" >&5
6790 if test "$GLIB_CONFIG" = "no" ; then
6793 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
6794 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
6795 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
6796 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6797 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
6798 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6799 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
6800 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6801 if test "x$enable_glibtest" = "xyes" ; then
6802 ac_save_CFLAGS="$CFLAGS"
6803 ac_save_LIBS="$LIBS"
6804 CFLAGS="$CFLAGS $GLIB_CFLAGS"
6805 LIBS="$GLIB_LIBS $LIBS"
6807 if test "$cross_compiling" = yes; then
6808 echo $ac_n "cross compiling; assumed OK... $ac_c"
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6802 "configure"
6812 #include "confdefs.h"
6821 int major, minor, micro;
6824 system ("touch conf.glibtest");
6826 /* HP/UX 9 (%@#!) writes to sscanf strings */
6827 tmp_version = g_strdup("$min_glib_version");
6828 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
6829 printf("%s, bad version string\n", "$min_glib_version");
6833 if ((glib_major_version != $glib_config_major_version) ||
6834 (glib_minor_version != $glib_config_minor_version) ||
6835 (glib_micro_version != $glib_config_micro_version))
6837 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
6838 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
6839 glib_major_version, glib_minor_version, glib_micro_version);
6840 printf ("*** was found! If glib-config was correct, then it is best\n");
6841 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
6842 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6843 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6844 printf("*** required on your system.\n");
6845 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
6846 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
6847 printf("*** before re-running configure\n");
6849 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
6850 (glib_minor_version != GLIB_MINOR_VERSION) ||
6851 (glib_micro_version != GLIB_MICRO_VERSION))
6853 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
6854 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
6855 printf("*** library (version %d.%d.%d)\n",
6856 glib_major_version, glib_minor_version, glib_micro_version);
6860 if ((glib_major_version > major) ||
6861 ((glib_major_version == major) && (glib_minor_version > minor)) ||
6862 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
6868 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
6869 glib_major_version, glib_minor_version, glib_micro_version);
6870 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
6871 major, minor, micro);
6872 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
6874 printf("*** If you have already installed a sufficiently new version, this error\n");
6875 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
6876 printf("*** being found. The easiest way to fix this is to remove the old version\n");
6877 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
6878 printf("*** correct copy of glib-config. (In this case, you will have to\n");
6879 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6880 printf("*** so that the correct libraries are found at run-time))\n");
6887 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6891 echo "configure: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6899 CFLAGS="$ac_save_CFLAGS"
6900 LIBS="$ac_save_LIBS"
6903 if test "x$no_glib" = x ; then
6904 echo "$ac_t""yes" 1>&6
6907 echo "$ac_t""no" 1>&6
6908 if test "$GLIB_CONFIG" = "no" ; then
6909 echo "*** The glib-config script installed by GLIB could not be found"
6910 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
6911 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
6912 echo "*** full path to glib-config."
6914 if test -f conf.glibtest ; then
6917 echo "*** Could not run GLIB test program, checking why..."
6918 CFLAGS="$CFLAGS $GLIB_CFLAGS"
6919 LIBS="$LIBS $GLIB_LIBS"
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6912 "configure"
6922 #include "confdefs.h"
6928 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
6931 if { (eval echo configure:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6933 echo "*** The test program compiled, but did not run. This usually means"
6934 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
6935 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
6936 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6937 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6938 echo "*** is required on your system"
6940 echo "*** If you have an old version installed, it is best to remove it, although"
6941 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6943 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
6944 echo "*** came with the system with the command"
6946 echo "*** rpm --erase --nodeps gtk gtk-devel"
6948 echo "configure: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 echo "*** The test program failed to compile or link. See the file config.log for the"
6952 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
6953 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
6954 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
6957 CFLAGS="$ac_save_CFLAGS"
6958 LIBS="$ac_save_LIBS"
6969 enable_libarttest=no
6970 # Check whether --with-libart-prefix or --without-libart-prefix was given.
6971 if test "${with_libart_prefix+set}" = set; then
6972 withval="$with_libart_prefix"
6973 libart_prefix="$withval"
6978 # Check whether --with-libart-exec-prefix or --without-libart-exec-prefix was given.
6979 if test "${with_libart_exec_prefix+set}" = set; then
6980 withval="$with_libart_exec_prefix"
6981 libart_exec_prefix="$withval"
6983 libart_exec_prefix=""
6986 # Check whether --enable-libarttest or --disable-libarttest was given.
6987 if test "${enable_libarttest+set}" = set; then
6988 enableval="$enable_libarttest"
6991 enable_libarttest=yes
6995 if test x$libart_exec_prefix != x ; then
6996 libart_args="$libart_args --exec-prefix=$libart_exec_prefix"
6997 if test x${LIBART_CONFIG+set} != xset ; then
6998 LIBART_CONFIG=$libart_exec_prefix/bin/libart-config
7001 if test x$libart_prefix != x ; then
7002 libart_args="$libart_args --prefix=$libart_prefix"
7003 if test x${LIBART_CONFIG+set} != xset ; then
7004 LIBART_CONFIG=$libart_prefix/bin/libart-config
7008 # Extract the first word of "libart-config", so it can be a program name with args.
7009 set dummy libart-config; ac_word=$2
7010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7011 echo "configure:7002: checking for $ac_word" >&5
7012 if eval "test \"`echo '$''{'ac_cv_path_LIBART_CONFIG'+set}'`\" = set"; then
7013 echo $ac_n "(cached) $ac_c" 1>&6
7015 case "$LIBART_CONFIG" in
7017 ac_cv_path_LIBART_CONFIG="$LIBART_CONFIG" # Let the user override the test with a path.
7020 ac_cv_path_LIBART_CONFIG="$LIBART_CONFIG" # Let the user override the test with a dos path.
7023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7025 for ac_dir in $ac_dummy; do
7026 test -z "$ac_dir" && ac_dir=.
7027 if test -f $ac_dir/$ac_word; then
7028 ac_cv_path_LIBART_CONFIG="$ac_dir/$ac_word"
7033 test -z "$ac_cv_path_LIBART_CONFIG" && ac_cv_path_LIBART_CONFIG="no"
7037 LIBART_CONFIG="$ac_cv_path_LIBART_CONFIG"
7038 if test -n "$LIBART_CONFIG"; then
7039 echo "$ac_t""$LIBART_CONFIG" 1>&6
7041 echo "$ac_t""no" 1>&6
7044 min_libart_version=2.1.0
7045 echo $ac_n "checking for LIBART - version >= $min_libart_version""... $ac_c" 1>&6
7046 echo "configure:7037: checking for LIBART - version >= $min_libart_version" >&5
7048 if test "$LIBART_CONFIG" = "no" ; then
7051 LIBART_CFLAGS=`$LIBART_CONFIG $libartconf_args --cflags`
7052 LIBART_LIBS=`$LIBART_CONFIG $libartconf_args --libs`
7054 libart_major_version=`$LIBART_CONFIG $libart_args --version | \
7055 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7056 libart_minor_version=`$LIBART_CONFIG $libart_args --version | \
7057 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7058 libart_micro_version=`$LIBART_CONFIG $libart_config_args --version | \
7059 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7060 if test "x$enable_libarttest" = "xyes" ; then
7061 ac_save_CFLAGS="$CFLAGS"
7062 ac_save_LIBS="$LIBS"
7063 CFLAGS="$CFLAGS $LIBART_CFLAGS"
7064 LIBS="$LIBS $LIBART_LIBS"
7065 rm -f conf.libarttest
7066 if test "$cross_compiling" = yes; then
7067 echo $ac_n "cross compiling; assumed OK... $ac_c"
7069 cat > conftest.$ac_ext <<EOF
7070 #line 7061 "configure"
7071 #include "confdefs.h"
7076 #include <libart_lgpl/libart.h>
7079 my_strdup (char *str)
7085 new_str = malloc ((strlen (str) + 1) * sizeof(char));
7086 strcpy (new_str, str);
7096 int major, minor, micro;
7099 system ("touch conf.libarttest");
7101 /* HP/UX 9 (%@#!) writes to sscanf strings */
7102 tmp_version = my_strdup("$min_libart_version");
7103 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7104 printf("%s, bad version string\n", "$min_libart_version");
7108 if (($libart_major_version > major) ||
7109 (($libart_major_version == major) && ($libart_minor_version > minor)) ||
7110 (($libart_major_version == major) && ($libart_minor_version == minor) && ($libart_micro_version >= micro)))
7116 printf("\n*** 'libart-config --version' returned %d.%d.%d, but the minimum version\n", $libart_major_version, $libart_minor_version, $libart_micro_version);
7117 printf("*** of LIBART required is %d.%d.%d. If libart-config is correct, then it is\n", major, minor, micro);
7118 printf("*** best to upgrade to the required version.\n");
7119 printf("*** If libart-config was wrong, set the environment variable LIBART_CONFIG\n");
7120 printf("*** to point to the correct copy of libart-config, and remove the file\n");
7121 printf("*** config.cache before re-running configure\n");
7128 if { (eval echo configure:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7140 CFLAGS="$ac_save_CFLAGS"
7141 LIBS="$ac_save_LIBS"
7144 if test "x$no_libart" = x ; then
7145 echo "$ac_t""yes" 1>&6
7148 echo "$ac_t""no" 1>&6
7149 if test "$LIBART_CONFIG" = "no" ; then
7150 echo "*** The libart-config script installed by LIBART could not be found"
7151 echo "*** If LIBART was installed in PREFIX, make sure PREFIX/bin is in"
7152 echo "*** your path, or set the LIBART_CONFIG environment variable to the"
7153 echo "*** full path to libart-config."
7155 if test -f conf.libarttest ; then
7158 echo "*** Could not run LIBART test program, checking why..."
7159 CFLAGS="$CFLAGS $LIBART_CFLAGS"
7160 LIBS="$LIBS $LIBART_LIBS"
7161 cat > conftest.$ac_ext <<EOF
7162 #line 7153 "configure"
7163 #include "confdefs.h"
7166 #include <libart_lgpl/libart.h>
7172 if { (eval echo configure:7163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7174 echo "*** The test program compiled, but did not run. This usually means"
7175 echo "*** that the run-time linker is not finding LIBART or finding the wrong"
7176 echo "*** version of LIBART. If it is not finding LIBART, you'll need to set your"
7177 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7178 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7179 echo "*** is required on your system"
7181 echo "*** If you have an old version installed, it is best to remove it, although"
7182 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7184 echo "configure: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7187 echo "*** The test program failed to compile or link. See the file config.log for the"
7188 echo "*** exact error that occured. This usually means LIBART was incorrectly installed"
7189 echo "*** or that you have moved LIBART since it was installed. In the latter case, you"
7190 echo "*** may want to edit the libart-config script: $LIBART_CONFIG"
7193 CFLAGS="$ac_save_CFLAGS"
7194 LIBS="$ac_save_LIBS"
7203 rm -f conf.libarttest
7207 # On Solaris, and maybe other architectures, the Boehm collector
7209 if test "$GC" = boehm; then
7210 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
7211 echo "configure:7202: checking for main in -ldl" >&5
7212 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
7213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7214 echo $ac_n "(cached) $ac_c" 1>&6
7216 ac_save_LIBS="$LIBS"
7218 cat > conftest.$ac_ext <<EOF
7219 #line 7210 "configure"
7220 #include "confdefs.h"
7226 if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7228 eval "ac_cv_lib_$ac_lib_var=yes"
7230 echo "configure: failed program was:" >&5
7231 cat conftest.$ac_ext >&5
7233 eval "ac_cv_lib_$ac_lib_var=no"
7236 LIBS="$ac_save_LIBS"
7239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7240 echo "$ac_t""yes" 1>&6
7241 SYSTEMSPEC="$SYSTEMSPEC -ldl"
7243 echo "$ac_t""no" 1>&6
7248 if test -z "${with_multisubdir}"; then
7252 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7255 if test -x "${builddotdot}/../../gcc/gcj"; then
7256 dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7257 GCJ="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/"
7261 GCJ="gcj -B`${PWDCMD-pwd}`/"
7265 # Create it, so that compile/link tests don't fail
7266 test -f libgcj.spec || touch libgcj.spec
7268 # We must search the source tree for java.lang, since we still don't
7269 # have libgcj.jar nor java/lang/*.class
7270 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
7271 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7273 # Since some classes depend on this one, we need its source available
7274 # before we can do any GCJ compilation test :-(
7275 if test ! -f gnu/classpath/Configuration.java; then
7276 test -d gnu || mkdir gnu
7277 test -d gnu/classpath || mkdir gnu/classpath
7278 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7279 -e 's,@TOOLKIT@,$TOOLKIT,' \
7280 < $srcdir/gnu/classpath/Configuration.java.in \
7281 > gnu/classpath/Configuration.java
7282 # We do not want to redirect the output of the grep below to /dev/null,
7283 # but we add /dev/null to the input list so that grep will print the
7284 # filename of Configuration.java in case it finds any matches.
7285 if grep @ gnu/classpath/Configuration.java /dev/null; then
7286 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
7290 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}gcj; ac_word=$2
7292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7293 echo "configure:7284: checking for $ac_word" >&5
7294 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7295 echo $ac_n "(cached) $ac_c" 1>&6
7297 if test -n "$GCJ"; then
7298 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7302 for ac_dir in $ac_dummy; do
7303 test -z "$ac_dir" && ac_dir=.
7304 if test -f $ac_dir/$ac_word; then
7305 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
7312 GCJ="$ac_cv_prog_GCJ"
7313 if test -n "$GCJ"; then
7314 echo "$ac_t""$GCJ" 1>&6
7316 echo "$ac_t""no" 1>&6
7320 if test -z "$ac_cv_prog_GCJ"; then
7321 if test -n "$ac_tool_prefix"; then
7322 # Extract the first word of "gcj", so it can be a program name with args.
7323 set dummy gcj; ac_word=$2
7324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7325 echo "configure:7316: checking for $ac_word" >&5
7326 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7329 if test -n "$GCJ"; then
7330 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7334 for ac_dir in $ac_dummy; do
7335 test -z "$ac_dir" && ac_dir=.
7336 if test -f $ac_dir/$ac_word; then
7337 ac_cv_prog_GCJ="gcj"
7342 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
7345 GCJ="$ac_cv_prog_GCJ"
7346 if test -n "$GCJ"; then
7347 echo "$ac_t""$GCJ" 1>&6
7349 echo "$ac_t""no" 1>&6
7357 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7361 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
7363 lt_save_CFLAGS="$CFLAGS"
7364 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7365 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7366 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7367 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7368 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7369 deplibs_check_method="$deplibs_check_method" \
7370 file_magic_cmd="$file_magic_cmd" \
7371 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7372 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7373 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
7375 CFLAGS="$lt_save_CFLAGS"
7377 # Redirect the config.log output again, so that the ltconfig log is not
7378 # clobbered by the next message.
7379 exec 5>>./config.log
7384 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
7386 echo $ac_n "checking size of void *""... $ac_c" 1>&6
7387 echo "configure:7378: checking size of void *" >&5
7388 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7389 echo $ac_n "(cached) $ac_c" 1>&6
7391 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7392 cat > conftest.$ac_ext <<EOF
7393 #line 7384 "configure"
7394 #include "confdefs.h"
7395 #include "confdefs.h"
7396 #include <sys/types.h>
7400 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7403 if { (eval echo configure:7394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7405 ac_cv_sizeof_void_p=$ac_size
7407 echo "configure: failed program was:" >&5
7408 cat conftest.$ac_ext >&5
7411 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7416 if test x$ac_cv_sizeof_void_p = x ; then
7417 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
7419 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7420 cat >> confdefs.h <<EOF
7421 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7430 if test -z "$ZLIBSPEC"; then
7431 # Use zlib from the GCC tree.
7432 ZINCS='-I$(top_srcdir)/../zlib'
7433 ZLIBS=../zlib/libzgcj_convenience.la
7436 SYS_ZLIBS="$ZLIBSPEC"
7448 if test "$CANADIAN" = yes; then
7457 if test "$NULL_TARGET" = yes; then
7459 NULL_TARGET_FALSE='#'
7461 NULL_TARGET_TRUE='#'
7466 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
7475 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7476 NEEDS_DATA_START_TRUE=
7477 NEEDS_DATA_START_FALSE='#'
7479 NEEDS_DATA_START_TRUE='#'
7480 NEEDS_DATA_START_FALSE=
7484 if test -n "$with_cross_host" &&
7485 test x"$with_cross_host" != x"no"; then
7486 toolexecdir='$(exec_prefix)/$(target_alias)'
7487 toolexecmainlibdir='$(toolexecdir)/lib'
7489 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
7490 toolexecmainlibdir='$(libdir)'
7492 multi_os_directory=`$CC -print-multi-os-directory`
7493 case $multi_os_directory in
7494 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
7495 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
7501 # Determine gcj version number.
7503 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7505 GCJVERSION=$gcjversion
7507 cat >> confdefs.h <<EOF
7508 #define GCJVERSION "$GCJVERSION"
7512 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
7513 echo "configure:7504: checking for g++ -ffloat-store bug" >&5
7514 save_CFLAGS="$CFLAGS"
7515 CFLAGS="-x c++ -O2 -ffloat-store"
7516 cat > conftest.$ac_ext <<EOF
7517 #line 7508 "configure"
7518 #include "confdefs.h"
7524 if { (eval echo configure:7515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7526 echo "$ac_t""no" 1>&6
7528 echo "configure: failed program was:" >&5
7529 cat conftest.$ac_ext >&5
7531 cat >> confdefs.h <<\EOF
7532 #define __NO_MATH_INLINES 1
7535 echo "$ac_t""yes" 1>&6
7538 CFLAGS="$save_CFLAGS"
7540 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 net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
7542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7544 echo "configure:7535: checking for $ac_hdr" >&5
7545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6
7548 cat > conftest.$ac_ext <<EOF
7549 #line 7540 "configure"
7550 #include "confdefs.h"
7553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7554 { (eval echo configure:7545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7556 if test -z "$ac_err"; then
7558 eval "ac_cv_header_$ac_safe=yes"
7561 echo "configure: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7564 eval "ac_cv_header_$ac_safe=no"
7568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7569 echo "$ac_t""yes" 1>&6
7570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7571 cat >> confdefs.h <<EOF
7572 #define $ac_tr_hdr 1
7576 echo "$ac_t""no" 1>&6
7580 for ac_hdr in dirent.h
7582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7584 echo "configure:7575: checking for $ac_hdr" >&5
7585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7588 cat > conftest.$ac_ext <<EOF
7589 #line 7580 "configure"
7590 #include "confdefs.h"
7593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7594 { (eval echo configure:7585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7596 if test -z "$ac_err"; then
7598 eval "ac_cv_header_$ac_safe=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 eval "ac_cv_header_$ac_safe=no"
7608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7609 echo "$ac_t""yes" 1>&6
7610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7611 cat >> confdefs.h <<EOF
7612 #define $ac_tr_hdr 1
7616 echo "$ac_t""no" 1>&6
7620 for ac_hdr in inttypes.h
7622 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7624 echo "configure:7615: checking for $ac_hdr" >&5
7625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7626 echo $ac_n "(cached) $ac_c" 1>&6
7628 cat > conftest.$ac_ext <<EOF
7629 #line 7620 "configure"
7630 #include "confdefs.h"
7633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7634 { (eval echo configure:7625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7636 if test -z "$ac_err"; then
7638 eval "ac_cv_header_$ac_safe=yes"
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7644 eval "ac_cv_header_$ac_safe=no"
7648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7649 echo "$ac_t""yes" 1>&6
7650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7651 cat >> confdefs.h <<EOF
7652 #define $ac_tr_hdr 1
7655 cat >> confdefs.h <<\EOF
7656 #define HAVE_INTTYPES_H 1
7659 cat >> confdefs.h <<\EOF
7660 #define JV_HAVE_INTTYPES_H 1
7665 echo "$ac_t""no" 1>&6
7669 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7670 echo "configure:7661: checking for sys/wait.h that is POSIX.1 compatible" >&5
7671 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7672 echo $ac_n "(cached) $ac_c" 1>&6
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7666 "configure"
7676 #include "confdefs.h"
7677 #include <sys/types.h>
7678 #include <sys/wait.h>
7680 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7683 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7688 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7691 if { (eval echo configure:7682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7693 ac_cv_header_sys_wait_h=yes
7695 echo "configure: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7698 ac_cv_header_sys_wait_h=no
7703 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7704 if test $ac_cv_header_sys_wait_h = yes; then
7705 cat >> confdefs.h <<\EOF
7706 #define HAVE_SYS_WAIT_H 1
7712 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7713 echo "configure:7704: checking for ANSI C header files" >&5
7714 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7715 echo $ac_n "(cached) $ac_c" 1>&6
7717 cat > conftest.$ac_ext <<EOF
7718 #line 7709 "configure"
7719 #include "confdefs.h"
7725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7726 { (eval echo configure:7717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7728 if test -z "$ac_err"; then
7730 ac_cv_header_stdc=yes
7733 echo "configure: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7736 ac_cv_header_stdc=no
7740 if test $ac_cv_header_stdc = yes; then
7741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7742 cat > conftest.$ac_ext <<EOF
7743 #line 7734 "configure"
7744 #include "confdefs.h"
7747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7748 egrep "memchr" >/dev/null 2>&1; then
7752 ac_cv_header_stdc=no
7758 if test $ac_cv_header_stdc = yes; then
7759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7760 cat > conftest.$ac_ext <<EOF
7761 #line 7752 "configure"
7762 #include "confdefs.h"
7765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7766 egrep "free" >/dev/null 2>&1; then
7770 ac_cv_header_stdc=no
7776 if test $ac_cv_header_stdc = yes; then
7777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7778 if test "$cross_compiling" = yes; then
7781 cat > conftest.$ac_ext <<EOF
7782 #line 7773 "configure"
7783 #include "confdefs.h"
7785 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7786 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7788 int main () { int i; for (i = 0; i < 256; i++)
7789 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7793 if { (eval echo configure:7784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7797 echo "configure: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7800 ac_cv_header_stdc=no
7808 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7809 if test $ac_cv_header_stdc = yes; then
7810 cat >> confdefs.h <<\EOF
7811 #define STDC_HEADERS 1
7816 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
7817 echo "configure:7808: checking for ssize_t" >&5
7818 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7821 cat > conftest.$ac_ext <<EOF
7822 #line 7813 "configure"
7823 #include "confdefs.h"
7824 #include <sys/types.h>
7830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7831 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7833 ac_cv_type_ssize_t=yes
7836 ac_cv_type_ssize_t=no
7841 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7842 if test $ac_cv_type_ssize_t = no; then
7843 cat >> confdefs.h <<\EOF
7850 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
7851 echo "configure:7842: checking for in_addr_t" >&5
7852 cat > conftest.$ac_ext <<EOF
7853 #line 7844 "configure"
7854 #include "confdefs.h"
7855 #include <sys/types.h>
7860 #if HAVE_NETINET_IN_H
7861 #include <netinet/in.h>
7867 if { (eval echo configure:7858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7869 cat >> confdefs.h <<\EOF
7870 #define HAVE_IN_ADDR_T 1
7873 echo "$ac_t""yes" 1>&6
7875 echo "configure: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7878 echo "$ac_t""no" 1>&6
7882 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
7883 echo "configure:7874: checking whether struct ip_mreq is in netinet/in.h" >&5
7884 cat > conftest.$ac_ext <<EOF
7885 #line 7876 "configure"
7886 #include "confdefs.h"
7887 #include <netinet/in.h>
7889 struct ip_mreq mreq;
7892 if { (eval echo configure:7883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7894 cat >> confdefs.h <<\EOF
7895 #define HAVE_STRUCT_IP_MREQ 1
7898 echo "$ac_t""yes" 1>&6
7900 echo "configure: failed program was:" >&5
7901 cat conftest.$ac_ext >&5
7903 echo "$ac_t""no" 1>&6
7907 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
7908 echo "configure:7899: checking whether struct ipv6_mreq is in netinet/in.h" >&5
7909 cat > conftest.$ac_ext <<EOF
7910 #line 7901 "configure"
7911 #include "confdefs.h"
7912 #include <netinet/in.h>
7914 struct ipv6_mreq mreq6;
7917 if { (eval echo configure:7908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7919 cat >> confdefs.h <<\EOF
7920 #define HAVE_STRUCT_IPV6_MREQ 1
7923 echo "$ac_t""yes" 1>&6
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7928 echo "$ac_t""no" 1>&6
7932 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
7933 echo "configure:7924: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
7934 cat > conftest.$ac_ext <<EOF
7935 #line 7926 "configure"
7936 #include "confdefs.h"
7937 #include <netinet/in.h>
7939 struct sockaddr_in6 addr6;
7942 if { (eval echo configure:7933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7944 cat >> confdefs.h <<\EOF
7945 #define HAVE_INET6 1
7948 echo "$ac_t""yes" 1>&6
7950 echo "configure: failed program was:" >&5
7951 cat conftest.$ac_ext >&5
7953 echo "$ac_t""no" 1>&6
7957 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
7958 echo "configure:7949: checking for socklen_t in sys/socket.h" >&5
7959 cat > conftest.$ac_ext <<EOF
7960 #line 7951 "configure"
7961 #include "confdefs.h"
7962 #define _POSIX_PII_SOCKET
7963 #include <sys/types.h>
7964 #include <sys/socket.h>
7969 if { (eval echo configure:7960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7971 cat >> confdefs.h <<\EOF
7972 #define HAVE_SOCKLEN_T 1
7975 echo "$ac_t""yes" 1>&6
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 echo "$ac_t""no" 1>&6
7984 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
7985 echo "configure:7976: checking for tm_gmtoff in struct tm" >&5
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7978 "configure"
7988 #include "confdefs.h"
7991 struct tm tim; tim.tm_gmtoff = 0;
7994 if { (eval echo configure:7985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7996 cat >> confdefs.h <<\EOF
7997 #define STRUCT_TM_HAS_GMTOFF 1
8000 echo "$ac_t""yes" 1>&6
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8005 echo "$ac_t""no" 1>&6
8006 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
8007 echo "configure:7998: checking for global timezone variable" >&5
8008 cat > conftest.$ac_ext <<EOF
8009 #line 8000 "configure"
8010 #include "confdefs.h"
8013 void i(){long z2 = 2*timezone;}
8016 if { (eval echo configure:8007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8018 cat >> confdefs.h <<\EOF
8019 #define HAVE_TIMEZONE 1
8022 echo "$ac_t""yes" 1>&6
8024 echo "configure: failed program was:" >&5
8025 cat conftest.$ac_ext >&5
8027 echo "$ac_t""no" 1>&6
8028 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
8029 echo "configure:8020: checking for global _timezone variable" >&5
8030 cat > conftest.$ac_ext <<EOF
8031 #line 8022 "configure"
8032 #include "confdefs.h"
8035 long z2 = _timezone;
8038 if { (eval echo configure:8029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8040 cat >> confdefs.h <<\EOF
8041 #define HAVE_UNDERSCORE_TIMEZONE 1
8044 echo "$ac_t""yes" 1>&6
8046 echo "configure: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8049 echo "$ac_t""no" 1>&6
8057 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8058 # for constant arguments. Useless!
8059 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8060 echo "configure:8051: checking for working alloca.h" >&5
8061 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8062 echo $ac_n "(cached) $ac_c" 1>&6
8064 cat > conftest.$ac_ext <<EOF
8065 #line 8056 "configure"
8066 #include "confdefs.h"
8069 char *p = alloca(2 * sizeof(int));
8072 if { (eval echo configure:8063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8074 ac_cv_header_alloca_h=yes
8076 echo "configure: failed program was:" >&5
8077 cat conftest.$ac_ext >&5
8079 ac_cv_header_alloca_h=no
8084 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8085 if test $ac_cv_header_alloca_h = yes; then
8086 cat >> confdefs.h <<\EOF
8087 #define HAVE_ALLOCA_H 1
8092 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8093 echo "configure:8084: checking for alloca" >&5
8094 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8097 cat > conftest.$ac_ext <<EOF
8098 #line 8089 "configure"
8099 #include "confdefs.h"
8102 # define alloca __builtin_alloca
8105 # include <malloc.h>
8106 # define alloca _alloca
8109 # include <alloca.h>
8114 # ifndef alloca /* predefined by HP cc +Olibcalls */
8123 char *p = (char *) alloca(1);
8126 if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8128 ac_cv_func_alloca_works=yes
8130 echo "configure: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8133 ac_cv_func_alloca_works=no
8138 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8139 if test $ac_cv_func_alloca_works = yes; then
8140 cat >> confdefs.h <<\EOF
8141 #define HAVE_ALLOCA 1
8146 if test $ac_cv_func_alloca_works = no; then
8147 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8148 # that cause trouble. Some versions do not even contain alloca or
8149 # contain a buggy version. If you still want to use their alloca,
8150 # use ar to extract alloca.o from them instead of compiling alloca.c.
8151 ALLOCA=alloca.${ac_objext}
8152 cat >> confdefs.h <<\EOF
8157 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8158 echo "configure:8149: checking whether alloca needs Cray hooks" >&5
8159 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8160 echo $ac_n "(cached) $ac_c" 1>&6
8162 cat > conftest.$ac_ext <<EOF
8163 #line 8154 "configure"
8164 #include "confdefs.h"
8165 #if defined(CRAY) && ! defined(CRAY2)
8172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8173 egrep "webecray" >/dev/null 2>&1; then
8184 echo "$ac_t""$ac_cv_os_cray" 1>&6
8185 if test $ac_cv_os_cray = yes; then
8186 for ac_func in _getb67 GETB67 getb67; do
8187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8188 echo "configure:8179: checking for $ac_func" >&5
8189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8190 echo $ac_n "(cached) $ac_c" 1>&6
8192 cat > conftest.$ac_ext <<EOF
8193 #line 8184 "configure"
8194 #include "confdefs.h"
8195 /* System header to define __stub macros and hopefully few prototypes,
8196 which can conflict with char $ac_func(); below. */
8198 /* Override any gcc2 internal prototype to avoid an error. */
8199 /* We use char because int might match the return type of a gcc2
8200 builtin and then its argument prototype would still apply. */
8205 /* The GNU C library defines this for functions which it implements
8206 to always fail with ENOSYS. Some functions are actually named
8207 something starting with __ and the normal name is an alias. */
8208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8216 if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8218 eval "ac_cv_func_$ac_func=yes"
8220 echo "configure: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8223 eval "ac_cv_func_$ac_func=no"
8228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8229 echo "$ac_t""yes" 1>&6
8230 cat >> confdefs.h <<EOF
8231 #define CRAY_STACKSEG_END $ac_func
8236 echo "$ac_t""no" 1>&6
8242 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8243 echo "configure:8234: checking stack direction for C alloca" >&5
8244 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8245 echo $ac_n "(cached) $ac_c" 1>&6
8247 if test "$cross_compiling" = yes; then
8248 ac_cv_c_stack_direction=0
8250 cat > conftest.$ac_ext <<EOF
8251 #line 8242 "configure"
8252 #include "confdefs.h"
8253 find_stack_direction ()
8255 static char *addr = 0;
8260 return find_stack_direction ();
8263 return (&dummy > addr) ? 1 : -1;
8267 exit (find_stack_direction() < 0);
8270 if { (eval echo configure:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8272 ac_cv_c_stack_direction=1
8274 echo "configure: failed program was:" >&5
8275 cat conftest.$ac_ext >&5
8277 ac_cv_c_stack_direction=-1
8284 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8285 cat >> confdefs.h <<EOF
8286 #define STACK_DIRECTION $ac_cv_c_stack_direction
8291 for ac_hdr in unistd.h
8293 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8294 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8295 echo "configure:8286: checking for $ac_hdr" >&5
8296 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8291 "configure"
8301 #include "confdefs.h"
8304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8305 { (eval echo configure:8296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8307 if test -z "$ac_err"; then
8309 eval "ac_cv_header_$ac_safe=yes"
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8315 eval "ac_cv_header_$ac_safe=no"
8319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8320 echo "$ac_t""yes" 1>&6
8321 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8322 cat >> confdefs.h <<EOF
8323 #define $ac_tr_hdr 1
8327 echo "$ac_t""no" 1>&6
8331 for ac_func in getpagesize
8333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8334 echo "configure:8325: checking for $ac_func" >&5
8335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8336 echo $ac_n "(cached) $ac_c" 1>&6
8338 cat > conftest.$ac_ext <<EOF
8339 #line 8330 "configure"
8340 #include "confdefs.h"
8341 /* System header to define __stub macros and hopefully few prototypes,
8342 which can conflict with char $ac_func(); below. */
8344 /* Override any gcc2 internal prototype to avoid an error. */
8345 /* We use char because int might match the return type of a gcc2
8346 builtin and then its argument prototype would still apply. */
8351 /* The GNU C library defines this for functions which it implements
8352 to always fail with ENOSYS. Some functions are actually named
8353 something starting with __ and the normal name is an alias. */
8354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8362 if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8364 eval "ac_cv_func_$ac_func=yes"
8366 echo "configure: failed program was:" >&5
8367 cat conftest.$ac_ext >&5
8369 eval "ac_cv_func_$ac_func=no"
8374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8375 echo "$ac_t""yes" 1>&6
8376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8377 cat >> confdefs.h <<EOF
8378 #define $ac_tr_func 1
8382 echo "$ac_t""no" 1>&6
8386 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8387 echo "configure:8378: checking for working mmap" >&5
8388 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8389 echo $ac_n "(cached) $ac_c" 1>&6
8391 if test "$cross_compiling" = yes; then
8392 ac_cv_func_mmap_fixed_mapped=no
8394 cat > conftest.$ac_ext <<EOF
8395 #line 8386 "configure"
8396 #include "confdefs.h"
8398 /* Thanks to Mike Haertel and Jim Avera for this test.
8399 Here is a matrix of mmap possibilities:
8400 mmap private not fixed
8401 mmap private fixed at somewhere currently unmapped
8402 mmap private fixed at somewhere already mapped
8403 mmap shared not fixed
8404 mmap shared fixed at somewhere currently unmapped
8405 mmap shared fixed at somewhere already mapped
8406 For private mappings, we should verify that changes cannot be read()
8407 back from the file, nor mmap's back from the file at a different
8408 address. (There have been systems where private was not correctly
8409 implemented like the infamous i386 svr4.0, and systems where the
8410 VM page cache was not coherent with the filesystem buffer cache
8411 like early versions of FreeBSD and possibly contemporary NetBSD.)
8412 For shared mappings, we should conversely verify that changes get
8413 propogated back to all the places they're supposed to be.
8415 Grep wants private fixed already mapped.
8416 The main things grep needs to know about mmap are:
8417 * does it exist and is it safe to write into the mmap'd area
8418 * how to use it (BSD variants) */
8419 #include <sys/types.h>
8421 #include <sys/mman.h>
8423 /* This mess was copied from the GNU getpagesize.h. */
8424 #ifndef HAVE_GETPAGESIZE
8425 # ifdef HAVE_UNISTD_H
8426 # include <unistd.h>
8429 /* Assume that all systems that can run configure have sys/param.h. */
8430 # ifndef HAVE_SYS_PARAM_H
8431 # define HAVE_SYS_PARAM_H 1
8434 # ifdef _SC_PAGESIZE
8435 # define getpagesize() sysconf(_SC_PAGESIZE)
8436 # else /* no _SC_PAGESIZE */
8437 # ifdef HAVE_SYS_PARAM_H
8438 # include <sys/param.h>
8439 # ifdef EXEC_PAGESIZE
8440 # define getpagesize() EXEC_PAGESIZE
8441 # else /* no EXEC_PAGESIZE */
8443 # define getpagesize() NBPG * CLSIZE
8446 # endif /* no CLSIZE */
8447 # else /* no NBPG */
8449 # define getpagesize() NBPC
8450 # else /* no NBPC */
8452 # define getpagesize() PAGESIZE
8453 # endif /* PAGESIZE */
8454 # endif /* no NBPC */
8455 # endif /* no NBPG */
8456 # endif /* no EXEC_PAGESIZE */
8457 # else /* no HAVE_SYS_PARAM_H */
8458 # define getpagesize() 8192 /* punt totally */
8459 # endif /* no HAVE_SYS_PARAM_H */
8460 # endif /* no _SC_PAGESIZE */
8462 #endif /* no HAVE_GETPAGESIZE */
8465 extern "C" { void *malloc(unsigned); }
8473 char *data, *data2, *data3;
8477 pagesize = getpagesize();
8480 * First, make a file with some known garbage in it.
8482 data = malloc(pagesize);
8485 for (i = 0; i < pagesize; ++i)
8486 *(data + i) = rand();
8488 fd = creat("conftestmmap", 0600);
8491 if (write(fd, data, pagesize) != pagesize)
8496 * Next, try to mmap the file at a fixed address which
8497 * already has something else allocated at it. If we can,
8498 * also make sure that we see the same garbage.
8500 fd = open("conftestmmap", O_RDWR);
8503 data2 = malloc(2 * pagesize);
8506 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8507 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8508 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8510 for (i = 0; i < pagesize; ++i)
8511 if (*(data + i) != *(data2 + i))
8515 * Finally, make sure that changes to the mapped area
8516 * do not percolate back to the file as seen by read().
8517 * (This is a bug on some variants of i386 svr4.0.)
8519 for (i = 0; i < pagesize; ++i)
8520 *(data2 + i) = *(data2 + i) + 1;
8521 data3 = malloc(pagesize);
8524 if (read(fd, data3, pagesize) != pagesize)
8526 for (i = 0; i < pagesize; ++i)
8527 if (*(data + i) != *(data3 + i))
8530 unlink("conftestmmap");
8535 if { (eval echo configure:8526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8537 ac_cv_func_mmap_fixed_mapped=yes
8539 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8542 ac_cv_func_mmap_fixed_mapped=no
8549 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8550 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8551 cat >> confdefs.h <<\EOF
8560 # Extract the first word of "$ac_prog", so it can be a program name with args.
8561 set dummy $ac_prog; ac_word=$2
8562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8563 echo "configure:8554: checking for $ac_word" >&5
8564 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8565 echo $ac_n "(cached) $ac_c" 1>&6
8567 if test -n "$PERL"; then
8568 ac_cv_prog_PERL="$PERL" # Let the user override the test.
8570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8572 for ac_dir in $ac_dummy; do
8573 test -z "$ac_dir" && ac_dir=.
8574 if test -f $ac_dir/$ac_word; then
8575 ac_cv_prog_PERL="$ac_prog"
8582 PERL="$ac_cv_prog_PERL"
8583 if test -n "$PERL"; then
8584 echo "$ac_t""$PERL" 1>&6
8586 echo "$ac_t""no" 1>&6
8589 test -n "$PERL" && break
8591 test -n "$PERL" || PERL="false"
8598 SIGNAL_HANDLER=include/i386-signal.h
8600 sparc*-sun-solaris*)
8601 SIGNAL_HANDLER=include/sparc-signal.h
8604 # SYSDEP_SOURCES=sysdep/ia64.c
8605 # test -d sysdep || mkdir sysdep
8608 SIGNAL_HANDLER=include/dwarf2-signal.h
8611 SIGNAL_HANDLER=include/dwarf2-signal.h
8614 SIGNAL_HANDLER=include/dwarf2-signal.h
8617 SIGNAL_HANDLER=include/s390-signal.h
8620 SIGNAL_HANDLER=include/x86_64-signal.h
8623 SIGNAL_HANDLER=include/dwarf2-signal.h
8625 sh-*-linux* | sh[34]*-*-linux*)
8626 SIGNAL_HANDLER=include/dwarf2-signal.h
8629 SIGNAL_HANDLER=include/win32-signal.h
8632 SIGNAL_HANDLER=include/default-signal.h
8636 # If we're using sjlj exceptions, forget what we just learned.
8637 if test "$enable_sjlj_exceptions" = yes; then
8638 SIGNAL_HANDLER=include/default-signal.h
8641 # Define here any compiler flags that you need in order to make backtrace() work.
8645 BACKTRACESPEC=-fno-omit-frame-pointer
8654 if test "${multilib}" = "yes"; then
8655 multilib_arg="--enable-multilib"
8662 here=`${PWDCMD-pwd}`
8665 # We get this from the environment.
8669 cat > confcache <<\EOF
8670 # This file is a shell script that caches the results of configure
8671 # tests run on this system so they can be shared between configure
8672 # scripts and configure runs. It is not useful on other systems.
8673 # If it contains results you don't want to keep, you may remove or edit it.
8675 # By default, configure uses ./config.cache as the cache file,
8676 # creating it if it does not exist already. You can give configure
8677 # the --cache-file=FILE option to use a different cache file; that is
8678 # what configure does when it calls configure scripts in
8679 # subdirectories, so they share the cache.
8680 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8681 # config.status only pays attention to the cache file if you give it the
8682 # --recheck option to rerun configure.
8685 # The following way of writing the cache mishandles newlines in values,
8686 # but we know of no workaround that is simple, portable, and efficient.
8687 # So, don't put newlines in cache variables' values.
8688 # Ultrix sh set writes to stderr and can't be redirected directly,
8689 # and sets the high bit in the cache file unless we assign to the vars.
8691 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8693 # `set' does not quote correctly, so add quotes (double-quote substitution
8694 # turns \\\\ into \\, and sed turns \\ into \).
8696 -e "s/'/'\\\\''/g" \
8697 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8700 # `set' quotes correctly as required by POSIX, so do not add quotes.
8701 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8704 if cmp -s $cache_file confcache; then
8707 if test -w $cache_file; then
8708 echo "updating cache $cache_file"
8709 cat confcache > $cache_file
8711 echo "not updating unwritable cache $cache_file"
8716 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8719 # Let make expand exec_prefix.
8720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8722 # Any assignment to VPATH causes Sun make to only execute
8723 # the first set of double-colon rules, so remove it if not needed.
8724 # If there is a colon in the path, we need to keep it.
8725 if test "x$srcdir" = x.; then
8726 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8729 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8731 DEFS=-DHAVE_CONFIG_H
8733 # Without the "./", some shells look in PATH for config.status.
8734 : ${CONFIG_STATUS=./config.status}
8736 echo creating $CONFIG_STATUS
8737 rm -f $CONFIG_STATUS
8738 cat > $CONFIG_STATUS <<EOF
8740 # Generated automatically by configure.
8741 # Run this file to recreate the current configuration.
8742 # This directory was configured as follows,
8743 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8745 # $0 $ac_configure_args
8747 # Compiler output produced by configure, useful for debugging
8748 # configure, is in ./config.log if it exists.
8750 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8753 case "\$ac_option" in
8754 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8755 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8756 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8757 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8758 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8760 -help | --help | --hel | --he | --h)
8761 echo "\$ac_cs_usage"; exit 0 ;;
8762 *) echo "\$ac_cs_usage"; exit 1 ;;
8766 ac_given_srcdir=$srcdir
8767 ac_given_INSTALL="$INSTALL"
8769 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
8771 cat >> $CONFIG_STATUS <<EOF
8773 # Protect against being on the right side of a sed subst in config.status.
8774 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8775 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8779 s%@CFLAGS@%$CFLAGS%g
8780 s%@CPPFLAGS@%$CPPFLAGS%g
8781 s%@CXXFLAGS@%$CXXFLAGS%g
8782 s%@FFLAGS@%$FFLAGS%g
8784 s%@LDFLAGS@%$LDFLAGS%g
8786 s%@exec_prefix@%$exec_prefix%g
8787 s%@prefix@%$prefix%g
8788 s%@program_transform_name@%$program_transform_name%g
8789 s%@bindir@%$bindir%g
8790 s%@sbindir@%$sbindir%g
8791 s%@libexecdir@%$libexecdir%g
8792 s%@datadir@%$datadir%g
8793 s%@sysconfdir@%$sysconfdir%g
8794 s%@sharedstatedir@%$sharedstatedir%g
8795 s%@localstatedir@%$localstatedir%g
8796 s%@libdir@%$libdir%g
8797 s%@includedir@%$includedir%g
8798 s%@oldincludedir@%$oldincludedir%g
8799 s%@infodir@%$infodir%g
8800 s%@mandir@%$mandir%g
8802 s%@libgcj_basedir@%$libgcj_basedir%g
8803 s%@mkinstalldirs@%$mkinstalldirs%g
8805 s%@host_alias@%$host_alias%g
8806 s%@host_cpu@%$host_cpu%g
8807 s%@host_vendor@%$host_vendor%g
8808 s%@host_os@%$host_os%g
8809 s%@target@%$target%g
8810 s%@target_alias@%$target_alias%g
8811 s%@target_cpu@%$target_cpu%g
8812 s%@target_vendor@%$target_vendor%g
8813 s%@target_os@%$target_os%g
8815 s%@build_alias@%$build_alias%g
8816 s%@build_cpu@%$build_cpu%g
8817 s%@build_vendor@%$build_vendor%g
8818 s%@build_os@%$build_os%g
8820 s%@glibjava_CXX@%$glibjava_CXX%g
8822 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8823 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8824 s%@INSTALL_DATA@%$INSTALL_DATA%g
8825 s%@PACKAGE@%$PACKAGE%g
8826 s%@VERSION@%$VERSION%g
8827 s%@ACLOCAL@%$ACLOCAL%g
8828 s%@AUTOCONF@%$AUTOCONF%g
8829 s%@AUTOMAKE@%$AUTOMAKE%g
8830 s%@AUTOHEADER@%$AUTOHEADER%g
8831 s%@MAKEINFO@%$MAKEINFO%g
8832 s%@SET_MAKE@%$SET_MAKE%g
8835 s%@RANLIB@%$RANLIB%g
8836 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8837 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8839 s%@EXEEXT@%$EXEEXT%g
8840 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
8841 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
8842 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
8843 s%@INCLTDL@%$INCLTDL%g
8844 s%@LIBLTDL@%$LIBLTDL%g
8845 s%@DIRLTDL@%$DIRLTDL%g
8846 s%@OBJEXT@%$OBJEXT%g
8848 s%@LIBTOOL@%$LIBTOOL%g
8849 s%@CXXCPP@%$CXXCPP%g
8850 s%@subdirs@%$subdirs%g
8851 s%@COMPPATH@%$COMPPATH%g
8852 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
8853 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
8854 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
8855 s%@INTERPRETER@%$INTERPRETER%g
8856 s%@LIBFFI@%$LIBFFI%g
8857 s%@LIBFFIINCS@%$LIBFFIINCS%g
8858 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
8860 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
8861 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
8862 s%@ZLIBSPEC@%$ZLIBSPEC%g
8863 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
8864 s%@X_CFLAGS@%$X_CFLAGS%g
8865 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8866 s%@X_LIBS@%$X_LIBS%g
8867 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8868 s%@TOOLKIT@%$TOOLKIT%g
8869 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
8870 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
8871 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
8872 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
8873 s%@GCLIBS@%$GCLIBS%g
8874 s%@GCINCS@%$GCINCS%g
8875 s%@GCDEPS@%$GCDEPS%g
8876 s%@GCOBJS@%$GCOBJS%g
8877 s%@GCSPEC@%$GCSPEC%g
8878 s%@JC1GCSPEC@%$JC1GCSPEC%g
8879 s%@GCTESTSPEC@%$GCTESTSPEC%g
8880 s%@THREADLIBS@%$THREADLIBS%g
8881 s%@THREADINCS@%$THREADINCS%g
8882 s%@THREADDEPS@%$THREADDEPS%g
8883 s%@THREADOBJS@%$THREADOBJS%g
8884 s%@THREADSPEC@%$THREADSPEC%g
8885 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
8886 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
8887 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
8888 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
8889 s%@tool_include_dir@%$tool_include_dir%g
8890 s%@gcc_version@%$gcc_version%g
8891 s%@LIBICONV@%$LIBICONV%g
8892 s%@GTK_CONFIG@%$GTK_CONFIG%g
8893 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8894 s%@GTK_LIBS@%$GTK_LIBS%g
8895 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
8896 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8897 s%@GLIB_LIBS@%$GLIB_LIBS%g
8898 s%@LIBART_CONFIG@%$LIBART_CONFIG%g
8899 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
8900 s%@LIBART_LIBS@%$LIBART_LIBS%g
8902 s%@GCJFLAGS@%$GCJFLAGS%g
8904 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
8906 s%@DIVIDESPEC@%$DIVIDESPEC%g
8907 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
8908 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
8909 s%@IEEESPEC@%$IEEESPEC%g
8910 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
8911 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
8912 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
8913 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
8914 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
8915 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
8916 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
8917 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
8918 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
8919 s%@toolexecdir@%$toolexecdir%g
8920 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
8921 s%@toolexeclibdir@%$toolexeclibdir%g
8922 s%@GCJVERSION@%$GCJVERSION%g
8923 s%@ALLOCA@%$ALLOCA%g
8925 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
8926 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
8932 cat >> $CONFIG_STATUS <<\EOF
8934 # Split the substitutions into bite-sized pieces for seds with
8935 # small command number limits, like on Digital OSF/1 and HP-UX.
8936 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8937 ac_file=1 # Number of current file.
8938 ac_beg=1 # First line for current file.
8939 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8942 while $ac_more_lines; do
8943 if test $ac_beg -gt 1; then
8944 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8946 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8948 if test ! -s conftest.s$ac_file; then
8950 rm -f conftest.s$ac_file
8952 if test -z "$ac_sed_cmds"; then
8953 ac_sed_cmds="sed -f conftest.s$ac_file"
8955 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8957 ac_file=`expr $ac_file + 1`
8959 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8962 if test -z "$ac_sed_cmds"; then
8967 cat >> $CONFIG_STATUS <<EOF
8969 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
8971 cat >> $CONFIG_STATUS <<\EOF
8972 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8973 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8975 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8976 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8977 *) ac_file_in="${ac_file}.in" ;;
8980 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8982 # Remove last slash and all that follows it. Not all systems have dirname.
8983 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8984 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8985 # The file is in a subdirectory.
8986 test ! -d "$ac_dir" && mkdir "$ac_dir"
8987 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8988 # A "../" for each directory in $ac_dir_suffix.
8989 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8991 ac_dir_suffix= ac_dots=
8994 case "$ac_given_srcdir" in
8996 if test -z "$ac_dots"; then top_srcdir=.
8997 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8998 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9000 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9001 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9004 case "$ac_given_INSTALL" in
9005 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9006 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9009 echo creating "$ac_file"
9011 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9013 *Makefile*) ac_comsub="1i\\
9014 # $configure_input" ;;
9018 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9020 s%@configure_input@%$configure_input%g
9021 s%@srcdir@%$srcdir%g
9022 s%@top_srcdir@%$top_srcdir%g
9023 s%@INSTALL@%$INSTALL%g
9024 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9028 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9029 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9031 # ac_d sets the value in "#define NAME VALUE" lines.
9032 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9033 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9036 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9037 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9038 ac_uB='\([ ]\)%\1#\2define\3'
9041 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9042 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9043 ac_eB='$%\1#\2define\3'
9047 if test "${CONFIG_HEADERS+set}" != set; then
9049 cat >> $CONFIG_STATUS <<EOF
9050 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
9052 cat >> $CONFIG_STATUS <<\EOF
9054 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9055 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9057 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9058 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9059 *) ac_file_in="${ac_file}.in" ;;
9062 echo creating $ac_file
9064 rm -f conftest.frag conftest.in conftest.out
9065 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9066 cat $ac_file_inputs > conftest.in
9070 # Transform confdefs.h into a sed script conftest.vals that substitutes
9071 # the proper values into config.h.in to produce config.h. And first:
9072 # Protect against being on the right side of a sed subst in config.status.
9073 # Protect against being in an unquoted here document in config.status.
9075 cat > conftest.hdr <<\EOF
9078 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9082 sed -n -f conftest.hdr confdefs.h > conftest.vals
9085 # This sed command replaces #undef with comments. This is necessary, for
9086 # example, in the case of _POSIX_SOURCE, which is predefined and required
9087 # on some systems where configure will not decide to define it.
9088 cat >> conftest.vals <<\EOF
9089 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9092 # Break up conftest.vals because some shells have a limit on
9093 # the size of here documents, and old seds have small limits too.
9098 ac_lines=`grep -c . conftest.vals`
9099 # grep -c gives empty output for an empty file on some AIX systems.
9100 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9101 # Write a limited-size here document to conftest.frag.
9102 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9103 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9105 sed -f conftest.frag conftest.in > conftest.out
9107 mv conftest.out conftest.in
9109 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9111 mv conftest.tail conftest.vals
9115 cat >> $CONFIG_STATUS <<\EOF
9116 rm -f conftest.frag conftest.h
9117 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9118 cat conftest.in >> conftest.h
9120 if cmp -s $ac_file conftest.h 2>/dev/null; then
9121 echo "$ac_file is unchanged"
9124 # Remove last slash and all that follows it. Not all systems have dirname.
9125 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9126 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9127 # The file is in a subdirectory.
9128 test ! -d "$ac_dir" && mkdir "$ac_dir"
9131 mv conftest.h $ac_file
9137 cat >> $CONFIG_STATUS <<EOF
9138 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc java/net/natInetAddress${PLATFORMNET}.cc java/net/natNetworkInterface${PLATFORMNET}.cc java/net/natPlainSocketImpl${PLATFORMNET}.cc java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
9139 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc java/net/natInetAddress.cc java/net/natNetworkInterface.cc java/net/natPlainSocketImpl.cc java/net/natPlainDatagramSocketImpl.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
9142 cat >> $CONFIG_STATUS <<\EOF
9143 srcdir=$ac_given_srcdir
9144 while test -n "$ac_sources"; do
9145 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9146 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9148 echo "linking $srcdir/$ac_source to $ac_dest"
9150 if test ! -r $srcdir/$ac_source; then
9151 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9155 # Make relative symlinks.
9156 # Remove last slash and all that follows it. Not all systems have dirname.
9157 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9158 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9159 # The dest file is in a subdirectory.
9160 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9161 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9162 # A "../" for each directory in $ac_dest_dir_suffix.
9163 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9165 ac_dest_dir_suffix= ac_dots=
9169 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9170 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9173 # Make a symlink if possible; otherwise try a hard link.
9174 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9175 ln $srcdir/$ac_source $ac_dest; then :
9177 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9181 cat >> $CONFIG_STATUS <<EOF
9186 with_multisubdir=${with_multisubdir}
9187 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9188 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9189 libgcj_basedir=${libgcj_basedir}
9192 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9195 cat >> $CONFIG_STATUS <<\EOF
9197 for am_file in include/config.h gcj/libgcj-config.h; do
9198 case " $CONFIG_HEADERS " in
9200 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9203 am_indx=`expr "$am_indx" + 1`
9205 # Only add multilib support code if we just rebuilt top-level Makefile.
9206 case " $CONFIG_FILES " in
9208 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9209 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9213 # Make subdirectories and `.d' files. Look in both srcdir and
9214 # builddir for the .java files.
9217 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
9218 find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
9219 fgrep -v testsuite | \
9220 sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
9222 echo "include $f" >> deps.mk
9225 d=`echo $f | sed -e 's,/[^/]*$,,'`
9227 if test ! -d $d; then
9228 $libgcj_basedir/../mkinstalldirs $d
9236 chmod +x $CONFIG_STATUS
9237 rm -fr confdefs* $ac_clean_files
9238 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9240 if test "$no_recursion" != yes; then
9242 # Remove --cache-file and --srcdir arguments so they do not pile up.
9243 ac_sub_configure_args=
9245 for ac_arg in $ac_configure_args; do
9246 if test -n "$ac_prev"; then
9251 -cache-file | --cache-file | --cache-fil | --cache-fi \
9252 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9253 ac_prev=cache_file ;;
9254 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9255 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9261 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9265 for ac_config_dir in $DIRLTDL; do
9267 # Do not complain, so a configure script can configure whichever
9268 # parts of a large source tree are present.
9269 if test ! -d $srcdir/$ac_config_dir; then
9273 echo configuring in $ac_config_dir
9278 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9280 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9288 # A "../" for each directory in /$ac_config_dir.
9289 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9292 .) # No --srcdir option. We are building in place.
9293 ac_sub_srcdir=$srcdir ;;
9294 /*) # Absolute path.
9295 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9297 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9300 # Check for guested configure; otherwise get Cygnus style configure.
9301 if test -f $ac_sub_srcdir/configure; then
9302 ac_sub_configure=$ac_sub_srcdir/configure
9303 elif test -f $ac_sub_srcdir/configure.in; then
9304 ac_sub_configure=$ac_configure
9306 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9310 # The recursion is here.
9311 if test -n "$ac_sub_configure"; then
9313 # Make the cache file name correct relative to the subdirectory.
9314 case "$cache_file" in
9315 /*) ac_sub_cache_file=$cache_file ;;
9317 ac_sub_cache_file="$ac_dots$cache_file" ;;
9319 case "$ac_given_INSTALL" in
9320 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9321 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9324 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9325 # The eval makes quoting arguments work.
9326 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9329 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }