1 dnl aclocal.m4 generated automatically by aclocal 1.4
3 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 dnl PARTICULAR PURPOSE.
13 dnl This provides configure definitions used by all the newlib
14 dnl configure.in files.
16 dnl Basic newlib configury. This calls basic introductory stuff,
17 dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs
18 dnl configure.host. The only argument is the relative path to the top
21 AC_DEFUN(NEWLIB_CONFIGURE,
23 dnl Default to --enable-multilib
24 AC_ARG_ENABLE(multilib,
25 [ --enable-multilib build many library versions (default)],
26 [case "${enableval}" in
29 *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
30 esac], [multilib=yes])dnl
32 dnl Support --enable-target-optspace
33 AC_ARG_ENABLE(target-optspace,
34 [ --enable-target-optspace optimize for space],
35 [case "${enableval}" in
36 yes) target_optspace=yes ;;
37 no) target_optspace=no ;;
38 *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;;
39 esac], [target_optspace=])dnl
41 dnl Support --enable-malloc-debugging - currently only supported for Cygwin
42 AC_ARG_ENABLE(malloc-debugging,
43 [ --enable-malloc-debugging indicate malloc debugging requested],
44 [case "${enableval}" in
45 yes) malloc_debugging=yes ;;
46 no) malloc_debugging=no ;;
47 *) AC_MSG_ERROR(bad value ${enableval} for malloc-debugging option) ;;
48 esac], [malloc_debugging=])dnl
50 dnl Support --enable-newlib-mb
51 AC_ARG_ENABLE(newlib-mb,
52 [ --enable-newlib-mb enable multibyte support],
53 [case "${enableval}" in
56 *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;;
57 esac], [newlib_mb=no])dnl
59 dnl Support --enable-newlib-multithread
60 AC_ARG_ENABLE(newlib-multithread,
61 [ --enable-newlib-multithread enable support for multiple threads],
62 [case "${enableval}" in
63 yes) newlib_multithread=yes ;;
64 no) newlib_multithread=no ;;
65 *) AC_MSG_ERROR(bad value ${enableval} for newlib-multithread option) ;;
66 esac], [newlib_multithread=yes])dnl
68 dnl Support --enable-newlib-elix-level
69 AC_ARG_ENABLE(newlib-elix-level,
70 [ --enable-newlib-elix-level supply desired elix library level (1-4)],
71 [case "${enableval}" in
72 0) newlib_elix_level=0 ;;
73 1) newlib_elix_level=1 ;;
74 2) newlib_elix_level=2 ;;
75 3) newlib_elix_level=3 ;;
76 4) newlib_elix_level=4 ;;
77 *) AC_MSG_ERROR(bad value ${enableval} for newlib-elix-level option) ;;
78 esac], [newlib_elix_level=0])dnl
80 dnl Support --disable-newlib-io-float
81 AC_ARG_ENABLE(newlib-io-float,
82 [ --disable-newlib-io-float disable printf/scanf family float support],
83 [case "${enableval}" in
84 yes) newlib_io_float=yes ;;
85 no) newlib_io_float=no ;;
86 *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-float option) ;;
87 esac], [newlib_io_float=yes])dnl
90 dnl We may get other options which we don't document:
91 dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
93 test -z "[$]{with_target_subdir}" && with_target_subdir=.
95 if test "[$]{srcdir}" = "."; then
96 if test "[$]{with_target_subdir}" != "."; then
97 newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1"
99 newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1"
102 newlib_basedir="[$]{srcdir}/$1"
104 AC_SUBST(newlib_basedir)
108 AM_INIT_AUTOMAKE(newlib, 1.10.0)
110 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
111 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
112 # are probably using a cross compiler, which will not be able to fully
113 # link an executable. This should really be fixed in autoconf
116 AC_DEFUN(LIB_AC_PROG_CC,
117 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
118 AC_CHECK_PROG(CC, gcc, gcc)
119 if test -z "$CC"; then
120 AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
121 test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
126 if test $ac_cv_prog_gcc = yes; then
128 dnl Check whether -g works, even if CFLAGS is set, in case the package
129 dnl plays around with CFLAGS (such as to build both debugging and
130 dnl normal versions of a library), tasteless as that idea is.
131 ac_test_CFLAGS="${CFLAGS+set}"
132 ac_save_CFLAGS="$CFLAGS"
135 if test "$ac_test_CFLAGS" = set; then
136 CFLAGS="$ac_save_CFLAGS"
137 elif test $ac_cv_prog_cc_g = yes; then
144 test "${CFLAGS+set}" = set || CFLAGS="-g"
150 AC_CHECK_TOOL(AS, as)
151 AC_CHECK_TOOL(AR, ar)
152 AC_CHECK_TOOL(RANLIB, ranlib, :)
158 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
159 # at least currently, we never actually build a program, so we never
160 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
161 # fails, because we are probably configuring with a cross compiler
162 # which can't create executables. So we include AC_EXEEXT to keep
163 # automake happy, but we don't execute it, since we don't care about
169 . [$]{newlib_basedir}/configure.host
171 newlib_cflags="[$]{newlib_cflags} -fno-builtin"
173 NEWLIB_CFLAGS=${newlib_cflags}
174 AC_SUBST(NEWLIB_CFLAGS)
179 AM_CONDITIONAL(ELIX_LEVEL_0, test x[$]{newlib_elix_level} = x0)
180 AM_CONDITIONAL(ELIX_LEVEL_1, test x[$]{newlib_elix_level} = x1)
181 AM_CONDITIONAL(ELIX_LEVEL_2, test x[$]{newlib_elix_level} = x2)
182 AM_CONDITIONAL(ELIX_LEVEL_3, test x[$]{newlib_elix_level} = x3)
183 AM_CONDITIONAL(ELIX_LEVEL_4, test x[$]{newlib_elix_level} = x4)
185 AM_CONDITIONAL(USE_LIBTOOL, test x[$]{use_libtool} = xyes)
187 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
188 # use oext, which is set in configure.host based on the target platform.
195 AC_SUBST(libm_machine_dir)
196 AC_SUBST(machine_dir)
200 # Do all the work for Automake. This macro actually does too much --
201 # some checks are only needed if your package does certain things.
202 # But this isn't really a big deal.
207 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
209 AC_DEFUN(AM_INIT_AUTOMAKE,
210 [AC_REQUIRE([AC_PROG_INSTALL])
215 dnl test to see if srcdir already configured
216 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
217 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
220 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
221 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
222 AC_REQUIRE([AM_SANITY_CHECK])
223 AC_REQUIRE([AC_ARG_PROGRAM])
224 dnl FIXME This is truly gross.
225 missing_dir=`cd $ac_aux_dir && pwd`
226 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
227 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
228 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
229 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
230 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
231 AC_REQUIRE([AC_PROG_MAKE_SET])])
234 # Check to make sure that the build environment is sane.
237 AC_DEFUN(AM_SANITY_CHECK,
238 [AC_MSG_CHECKING([whether build environment is sane])
241 echo timestamp > conftestfile
242 # Do `set' in a subshell so we don't clobber the current shell's
243 # arguments. Must try -L first in case configure is actually a
244 # symlink; some systems play weird games with the mod time of symlinks
245 # (eg FreeBSD returns the mod time of the symlink's containing
248 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
249 if test "[$]*" = "X"; then
251 set X `ls -t $srcdir/configure conftestfile`
253 if test "[$]*" != "X $srcdir/configure conftestfile" \
254 && test "[$]*" != "X conftestfile $srcdir/configure"; then
256 # If neither matched, then we have a broken ls. This can happen
257 # if, for instance, CONFIG_SHELL is bash and it inherits a
258 # broken ls alias from the environment. This has actually
259 # happened. Such a system could not be considered "sane".
260 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
261 alias in your environment])
264 test "[$]2" = conftestfile
270 AC_MSG_ERROR([newly created file is older than distributed files!
271 Check your system clock])
276 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
277 dnl The program must properly implement --version.
278 AC_DEFUN(AM_MISSING_PROG,
279 [AC_MSG_CHECKING(for working $2)
280 # Run test in a subshell; some versions of sh will print an error if
281 # an executable is not found, even if stderr is redirected.
282 # Redirect stdin to placate older versions of autoconf. Sigh.
283 if ($2 --version) < /dev/null > /dev/null 2>&1; then
288 AC_MSG_RESULT(missing)
292 # Add --enable-maintainer-mode option to configure.
297 AC_DEFUN(AM_MAINTAINER_MODE,
298 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
299 dnl maintainer-mode is disabled by default
300 AC_ARG_ENABLE(maintainer-mode,
301 [ --enable-maintainer-mode enable make rules and dependencies not useful
302 (and sometimes confusing) to the casual installer],
303 USE_MAINTAINER_MODE=$enableval,
304 USE_MAINTAINER_MODE=no)
305 AC_MSG_RESULT($USE_MAINTAINER_MODE)
306 AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
307 MAINT=$MAINTAINER_MODE_TRUE
312 # Define a conditional.
314 AC_DEFUN(AM_CONDITIONAL,
326 # serial 46 AC_PROG_LIBTOOL
327 AC_DEFUN([AC_PROG_LIBTOOL],
328 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
329 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
330 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
331 AC_PROVIDE_IFELSE([AC_PROG_CXX],
333 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
336 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
337 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
338 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
339 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
341 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
343 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
345 [ifdef([AC_PROG_GCJ],
346 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ
348 ifdef([A][M_PROG_GCJ],
349 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ
351 ifdef([LT_AC_PROG_GCJ],
352 [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ
355 AC_DEFUN([_AC_PROG_LIBTOOL],
356 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
357 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
358 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
360 # Save cache, so that ltconfig can load it
363 # Actually configure libtool. ac_aux_dir is where install-sh is found.
364 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
365 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
366 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
367 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
368 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
369 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
370 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
371 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
372 || AC_MSG_ERROR([libtool configure failed])
374 # Reload cache, that may have been modified by ltconfig
377 # This can be used to rebuild libtool when needed
378 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
380 # Always use our own libtool.
381 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
384 # Redirect the config.log output again, so that the ltconfig log is not
385 # clobbered by the next message.
389 AC_DEFUN([AC_LIBTOOL_SETUP],
391 AC_REQUIRE([AC_ENABLE_SHARED])dnl
392 AC_REQUIRE([AC_ENABLE_STATIC])dnl
393 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
394 AC_REQUIRE([AC_CANONICAL_HOST])dnl
395 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
396 AC_REQUIRE([AC_PROG_CC])dnl
397 AC_REQUIRE([AC_PROG_LD])dnl
398 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
399 AC_REQUIRE([AC_PROG_NM])dnl
400 AC_REQUIRE([AC_PROG_LN_S])dnl
401 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
402 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
403 AC_REQUIRE([AC_OBJEXT])dnl
404 AC_REQUIRE([AC_EXEEXT])dnl
407 # Only perform the check for file, if the check method requires it
408 case $deplibs_check_method in
410 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
416 AC_CHECK_TOOL(RANLIB, ranlib, :)
417 AC_CHECK_TOOL(STRIP, strip, :)
419 # Check for any special flags to pass to ltconfig.
420 libtool_flags="--cache-file=$cache_file"
421 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
422 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
423 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
424 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
425 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
426 ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
427 [libtool_flags="$libtool_flags --enable-dlopen"])
428 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
429 [libtool_flags="$libtool_flags --enable-win32-dll"])
430 AC_ARG_ENABLE(libtool-lock,
431 [ --disable-libtool-lock avoid locking (might break parallel builds)])
432 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
433 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
436 [ --with-pic try to use only PIC/non-PIC objects [default=use both]],
437 pic_mode="$withval", pic_mode=default)
438 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
439 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
441 # Some flags need to be propagated to the compiler or linker for good
445 # Find out which ABI we are using.
446 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
447 if AC_TRY_EVAL(ac_compile); then
448 case `/usr/bin/file conftest.$ac_objext` in
464 # Find out which ABI we are using.
465 echo 'int i;' > conftest.$ac_ext
466 if AC_TRY_EVAL(ac_compile); then
467 case "`/usr/bin/file conftest.o`" in
480 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
481 SAVE_CFLAGS="$CFLAGS"
482 CFLAGS="$CFLAGS -belf"
483 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
486 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
488 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
489 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
490 CFLAGS="$SAVE_CFLAGS"
494 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
495 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
496 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
497 AC_CHECK_TOOL(AS, as, false)
498 AC_CHECK_TOOL(OBJDUMP, objdump, false)
500 # recent cygwin and mingw systems supply a stub DllMain which the user
501 # can override, but on older systems we have to supply one
502 AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
504 [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
506 [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
509 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
510 # old mingw systems require "-dll" to link a DLL, while more recent ones
512 SAVE_CFLAGS="$CFLAGS"
513 CFLAGS="$CFLAGS -mdll"
514 AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
515 [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
516 CFLAGS="$SAVE_CFLAGS" ;;
517 *-*-cygwin* | *-*-pw32*)
518 # cygwin systems need to pass --dll to the linker, and not link
519 # crt.o which will require a WinMain@16 definition.
520 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
527 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
528 AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
530 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
531 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
533 # AC_ENABLE_SHARED - implement the --enable-shared flag
534 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
535 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
537 AC_DEFUN([AC_ENABLE_SHARED],
538 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
539 AC_ARG_ENABLE(shared,
540 changequote(<<, >>)dnl
541 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
543 [p=${PACKAGE-default}
545 yes) enable_shared=yes ;;
546 no) enable_shared=no ;;
549 # Look at the argument we got. We use all the common list separators.
550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
551 for pkg in $enableval; do
552 if test "X$pkg" = "X$p"; then
559 enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
562 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
563 AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
564 AC_ENABLE_SHARED(no)])
566 # AC_ENABLE_STATIC - implement the --enable-static flag
567 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
568 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
570 AC_DEFUN([AC_ENABLE_STATIC],
571 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
572 AC_ARG_ENABLE(static,
573 changequote(<<, >>)dnl
574 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
576 [p=${PACKAGE-default}
578 yes) enable_static=yes ;;
579 no) enable_static=no ;;
582 # Look at the argument we got. We use all the common list separators.
583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
584 for pkg in $enableval; do
585 if test "X$pkg" = "X$p"; then
592 enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
595 # AC_DISABLE_STATIC - set the default static flag to --disable-static
596 AC_DEFUN([AC_DISABLE_STATIC],
597 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
598 AC_ENABLE_STATIC(no)])
601 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
602 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
603 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
605 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
606 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
607 AC_ARG_ENABLE(fast-install,
608 changequote(<<, >>)dnl
609 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
611 [p=${PACKAGE-default}
613 yes) enable_fast_install=yes ;;
614 no) enable_fast_install=no ;;
616 enable_fast_install=no
617 # Look at the argument we got. We use all the common list separators.
618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
619 for pkg in $enableval; do
620 if test "X$pkg" = "X$p"; then
621 enable_fast_install=yes
627 enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
630 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
631 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
632 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
633 AC_ENABLE_FAST_INSTALL(no)])
635 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
636 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
637 # Where MODE is either `yes' or `no'. If omitted, it defaults to
639 AC_DEFUN([AC_LIBTOOL_PICMODE],
640 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
641 pic_mode=ifelse($#,1,$1,default)])
644 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
645 AC_DEFUN([AC_PATH_TOOL_PREFIX],
646 [AC_MSG_CHECKING([for $1])
647 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
650 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
653 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
656 ac_save_MAGIC_CMD="$MAGIC_CMD"
657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658 dnl $ac_dummy forces splitting on constant user-supplied paths.
659 dnl POSIX.2 word splitting is done only on the output of word expansions,
660 dnl not every word. This closes a longstanding sh security hole.
661 ac_dummy="ifelse([$2], , $PATH, [$2])"
662 for ac_dir in $ac_dummy; do
663 test -z "$ac_dir" && ac_dir=.
664 if test -f $ac_dir/$1; then
665 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
666 if test -n "$file_magic_test_file"; then
667 case $deplibs_check_method in
669 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
672 egrep "$file_magic_regex" > /dev/null; then
677 *** Warning: the command libtool uses to detect shared libraries,
678 *** $file_magic_cmd, produces output that libtool cannot recognize.
679 *** The result is that libtool may fail to recognize shared libraries
680 *** as such. This will affect the creation of libtool libraries that
681 *** depend on shared libraries, but programs linked with such libtool
682 *** libraries will work regardless of this problem. Nevertheless, you
683 *** may want to report the problem to your system manager and/or to
684 *** bug-libtool@gnu.org
694 MAGIC_CMD="$ac_save_MAGIC_CMD"
697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
698 if test -n "$MAGIC_CMD"; then
699 AC_MSG_RESULT($MAGIC_CMD)
706 # AC_PATH_MAGIC - find a file program which can recognise a shared library
707 AC_DEFUN([AC_PATH_MAGIC],
708 [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
709 AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
710 if test -z "$lt_cv_path_MAGIC_CMD"; then
711 if test -n "$ac_tool_prefix"; then
712 AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
720 # AC_PROG_LD - find the path to the GNU or non-GNU linker
721 AC_DEFUN([AC_PROG_LD],
723 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
724 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
725 AC_REQUIRE([AC_PROG_CC])dnl
726 AC_REQUIRE([AC_CANONICAL_HOST])dnl
727 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
729 if test "$GCC" = yes; then
730 # Check if gcc -print-prog-name=ld gives a path.
731 AC_MSG_CHECKING([for ld used by GCC])
734 # gcc leaves a trailing carriage return which upsets mingw
735 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
737 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
740 # Accept absolute paths.
741 [[\\/]* | [A-Za-z]:[\\/]*)]
742 re_direlt=['/[^/][^/]*/\.\./']
743 # Canonicalize the path of ld
744 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
745 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
746 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
748 test -z "$LD" && LD="$ac_prog"
751 # If it fails, then pretend we aren't using GCC.
755 # If it is relative, then search for the first ld in PATH.
759 elif test "$with_gnu_ld" = yes; then
760 AC_MSG_CHECKING([for GNU ld])
762 AC_MSG_CHECKING([for non-GNU ld])
764 AC_CACHE_VAL(lt_cv_path_LD,
765 [if test -z "$LD"; then
766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
767 for ac_dir in $PATH; do
768 test -z "$ac_dir" && ac_dir=.
769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
770 lt_cv_path_LD="$ac_dir/$ac_prog"
771 # Check to see if the program is GNU ld. I'd rather use --version,
772 # but apparently some GNU ld's only accept -v.
773 # Break only if it was the GNU/non-GNU ld that we prefer.
774 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
775 test "$with_gnu_ld" != no && break
777 test "$with_gnu_ld" != yes && break
783 lt_cv_path_LD="$LD" # Let the user override the test with a path.
786 if test -n "$LD"; then
791 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
795 AC_DEFUN([AC_PROG_LD_GNU],
796 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
797 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
798 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
799 lt_cv_prog_gnu_ld=yes
803 with_gnu_ld=$lt_cv_prog_gnu_ld
806 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
807 # -- PORTME Some linkers may need a different reload flag.
808 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
809 [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
810 [lt_cv_ld_reload_flag='-r'])
811 reload_flag=$lt_cv_ld_reload_flag
812 test -n "$reload_flag" && reload_flag=" $reload_flag"
815 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
816 # -- PORTME fill in with the dynamic library characteristics
817 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
818 [AC_CACHE_CHECK([how to recognise dependant libraries],
819 lt_cv_deplibs_check_method,
820 [lt_cv_file_magic_cmd='$MAGIC_CMD'
821 lt_cv_file_magic_test_file=
822 lt_cv_deplibs_check_method='unknown'
823 # Need to set the preceding variable on all platforms that support
824 # interlibrary dependencies.
825 # 'none' -- dependencies not supported.
826 # `unknown' -- same as none, but documents that we really don't know.
827 # 'pass_all' -- all dependencies passed with no checks.
828 # 'test_compile' -- check by making test program.
829 # 'file_magic [regex]' -- check by looking for files in library path
830 # which responds to the $file_magic_cmd with a given egrep regex.
831 # If you have `file' or equivalent on your system and you're not sure
832 # whether `pass_all' will *always* work, you probably want this one.
836 lt_cv_deplibs_check_method=pass_all
840 lt_cv_deplibs_check_method=pass_all
844 lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)']
845 lt_cv_file_magic_cmd='/usr/bin/file -L'
846 lt_cv_file_magic_test_file=/shlib/libc.so
849 cygwin* | mingw* |pw32*)
850 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
851 lt_cv_file_magic_cmd='$OBJDUMP -f'
855 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
856 lt_cv_file_magic_cmd='/usr/bin/file -L'
858 rhapsody* | darwin1.[012])
859 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
862 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
868 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
871 # Not sure whether the presence of OpenBSD here was a mistake.
872 # Let's accept both of them until this is cleared up.
873 lt_cv_deplibs_check_method=['file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']
874 lt_cv_file_magic_cmd=/usr/bin/file
875 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
879 lt_cv_deplibs_check_method=pass_all
884 lt_cv_deplibs_check_method=pass_all
890 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']
891 lt_cv_file_magic_cmd=/usr/bin/file
892 lt_cv_file_magic_test_file=/usr/lib/libc.sl
895 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64']
896 lt_cv_file_magic_cmd=/usr/bin/file
897 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
905 # this will be overridden with pass_all, but let us keep it just in case
906 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
910 *-32|*"-32 ") libmagic=32-bit;;
911 *-n32|*"-n32 ") libmagic=N32;;
912 *-64|*"-64 ") libmagic=64-bit;;
913 *) libmagic=never-match;;
915 # this will be overridden with pass_all, but let us keep it just in case
916 lt_cv_deplibs_check_method=["file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"]
919 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
920 lt_cv_deplibs_check_method=pass_all
923 # This must be Linux ELF.
926 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
927 lt_cv_deplibs_check_method=pass_all ;;
929 # glibc up to 2.1.1 does not perform some relocations on ARM
930 lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'] ;;
932 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
936 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
937 [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
939 [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$']
944 [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
945 lt_cv_file_magic_cmd=/usr/bin/file
946 lt_cv_file_magic_test_file=/usr/lib/libnls.so
949 osf3* | osf4* | osf5*)
950 # this will be overridden with pass_all, but let us keep it just in case
951 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
952 lt_cv_file_magic_test_file=/shlib/libc.so
953 lt_cv_deplibs_check_method=pass_all
957 lt_cv_deplibs_check_method=pass_all
961 lt_cv_deplibs_check_method=pass_all
962 lt_cv_file_magic_test_file=/lib/libc.so
965 [sysv5uw[78]* | sysv4*uw2*)]
966 lt_cv_deplibs_check_method=pass_all
969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
972 lt_cv_deplibs_check_method=pass_all
975 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]']
976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
982 file_magic_cmd=$lt_cv_file_magic_cmd
983 deplibs_check_method=$lt_cv_deplibs_check_method
987 # AC_PROG_NM - find the path to a BSD-compatible name lister
988 AC_DEFUN([AC_PROG_NM],
989 [AC_MSG_CHECKING([for BSD-compatible nm])
990 AC_CACHE_VAL(lt_cv_path_NM,
991 [if test -n "$NM"; then
992 # Let the user override the test.
995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
996 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
997 test -z "$ac_dir" && ac_dir=.
998 tmp_nm=$ac_dir/${ac_tool_prefix}nm
999 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1000 # Check to see if the nm accepts a BSD-compat flag.
1001 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1002 # nm: unknown option "B" ignored
1003 # Tru64's nm complains that /dev/null is an invalid object file
1004 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1005 lt_cv_path_NM="$tmp_nm -B"
1007 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1008 lt_cv_path_NM="$tmp_nm -p"
1011 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1012 continue # so that we can try to find one that supports BSD flags
1017 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1020 AC_MSG_RESULT([$NM])
1023 # AC_CHECK_LIBM - check for math library
1024 AC_DEFUN([AC_CHECK_LIBM],
1025 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1028 *-*-beos* | *-*-cygwin* | *-*-pw32*)
1029 # These system don't have libm
1032 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
1033 AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
1036 AC_CHECK_LIB(m, main, LIBM="-lm")
1041 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
1042 # the libltdl convenience library and INCLTDL to the include flags for
1043 # the libltdl header and adds --enable-ltdl-convenience to the
1044 # configure arguments. Note that LIBLTDL and INCLTDL are not
1045 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
1046 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
1047 # with '${top_builddir}/' and INCLTDL will be prefixed with
1048 # '${top_srcdir}/' (note the single quotes!). If your package is not
1049 # flat and you're not using automake, define top_builddir and
1050 # top_srcdir appropriately in the Makefiles.
1051 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
1052 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1053 case $enable_ltdl_convenience in
1054 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
1055 "") enable_ltdl_convenience=yes
1056 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1058 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
1059 INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
1062 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
1063 # the libltdl installable library and INCLTDL to the include flags for
1064 # the libltdl header and adds --enable-ltdl-install to the configure
1065 # arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
1066 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
1067 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
1068 # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
1069 # with '${top_srcdir}/' (note the single quotes!). If your package is
1070 # not flat and you're not using automake, define top_builddir and
1071 # top_srcdir appropriately in the Makefiles.
1072 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1073 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
1074 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1075 AC_CHECK_LIB(ltdl, main,
1076 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
1077 [if test x"$enable_ltdl_install" = xno; then
1078 AC_MSG_WARN([libltdl not installed, but installation disabled])
1080 enable_ltdl_install=yes
1083 if test x"$enable_ltdl_install" = x"yes"; then
1084 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1085 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
1086 INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
1088 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1094 # If this macro is not defined by Autoconf, define it here.
1095 ifdef([AC_PROVIDE_IFELSE],
1097 [define([AC_PROVIDE_IFELSE],
1098 [ifdef([AC_PROVIDE_$1],
1101 # AC_LIBTOOL_CXX - enable support for C++ libraries
1102 AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_AC_LIBTOOL_CXX])])
1104 AC_DEFUN([_AC_LIBTOOL_CXX],
1105 [AC_REQUIRE([AC_PROG_CXX])
1106 AC_REQUIRE([AC_PROG_CXXCPP])
1107 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
1109 lt_save_CFLAGS="$CFLAGS"
1110 dnl Make sure LTCC is set to the C compiler, i.e. set LTCC before CC
1111 dnl is set to the C++ compiler.
1112 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
1113 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1114 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1115 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1116 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1117 deplibs_check_method="$deplibs_check_method" \
1118 file_magic_cmd="$file_magic_cmd" \
1119 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
1120 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
1121 || AC_MSG_ERROR([libtool tag configuration failed])
1123 CFLAGS="$lt_save_CFLAGS"
1125 # Redirect the config.log output again, so that the ltconfig log is not
1126 # clobbered by the next message.
1127 exec 5>>./config.log
1130 # AC_LIBTOOL_GCJ - enable support for GCJ libraries
1131 AC_DEFUN([AC_LIBTOOL_GCJ],[AC_REQUIRE([_AC_LIBTOOL_GCJ])])
1133 AC_DEFUN([_AC_LIBTOOL_GCJ],
1134 [AC_REQUIRE([AC_PROG_LIBTOOL])
1135 AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
1136 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
1137 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
1138 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
1139 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
1140 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
1141 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
1143 lt_save_CFLAGS="$CFLAGS"
1144 dnl Make sure LTCC is set to the C compiler, i.e. set LTCC before CC
1145 dnl is set to the C++ compiler.
1146 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
1147 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1148 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1149 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1150 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1151 deplibs_check_method="$deplibs_check_method" \
1152 file_magic_cmd="$file_magic_cmd" \
1153 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
1154 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
1155 || AC_MSG_ERROR([libtool tag configuration failed])
1157 CFLAGS="$lt_save_CFLAGS"
1159 # Redirect the config.log output again, so that the ltconfig log is not
1160 # clobbered by the next message.
1161 exec 5>>./config.log
1165 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
1166 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
1167 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
1168 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
1169 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
1170 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
1171 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
1173 dnl This is just to silence aclocal about the macro not being used
1174 ifelse([AC_DISABLE_FAST_INSTALL])dnl
1176 AC_DEFUN([LT_AC_PROG_GCJ],
1177 [AC_CHECK_TOOL(GCJ, gcj, no)
1178 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"