This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: add AC_PROVIDE to our macros
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: add AC_PROVIDE to our macros
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 28 Sep 1999 14:10:03 -0600
- Reply-To: tromey at cygnus dot com
I'm committing the appended patch. It adds an AC_PROVIDE to a couple
macros in boehm-gc/acinclude.m4. This fixes a bug caused when
cross-compiling and the compiler cannot link, and some other macro
requires the "real" AC_PROG_CC (e.g.). Similar patches for other
directories will follow.
1999-09-28 Tom Tromey <tromey@cygnus.com>
* aclocal.m4, configure: Rebuilt.
* acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
appropriate AC_PROG_ symbol.
Tom
Index: acinclude.m4
===================================================================
RCS file: /cvs/java/libgcj/boehm-gc/acinclude.m4,v
retrieving revision 1.3
diff -u -r1.3 acinclude.m4
--- acinclude.m4 1999/08/10 05:28:31 1.3
+++ acinclude.m4 1999/09/28 20:08:20
@@ -41,6 +41,8 @@
AC_DEFUN(LIB_AC_PROG_CC,
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
+dnl Fool anybody using AC_PROG_CC.
+AC_PROVIDE([AC_PROG_CC])
AC_CHECK_PROG(CC, gcc, gcc)
if test -z "$CC"; then
AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
@@ -76,6 +78,8 @@
# Likewise for AC_PROG_CXX.
AC_DEFUN(LIB_AC_PROG_CXX,
[AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
+dnl Fool anybody using AC_PROG_CXX.
+AC_PROVIDE([AC_PROG_CXX])
AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++, gcc)
test -z "$CXX" && AC_MSG_ERROR([no acceptable c++ found in \$PATH])