[gcjx] Patch: FYI: tweak gcjx configure

Tom Tromey tromey@redhat.com
Sun Jan 23 23:05:00 GMT 2005


I'm checking this in on the gcjx branch.

We don't want -D options in the Makefile, since then they can't
easily be picked up by the tree back end build.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* aclocal.m4, configure, Makefile.in, gcjx-config.h.in: Rebuilt.
	* Makefile.am (AM_CPPFLAGS): Removed -D options.
	* configure.ac (_GLIBCXX_DEBUG, _GLIBCPP_USE_C99): Define.

Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/Attic/Makefile.am,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 Makefile.am
--- Makefile.am 13 Jan 2005 03:18:33 -0000 1.1.2.1
+++ Makefile.am 23 Jan 2005 23:04:09 -0000
@@ -21,7 +21,7 @@
 ## FIXME: gcc specific
 WARNINGS = -Wall -Winvalid-pch -Wreturn-type
 AM_CXXFLAGS = $(WARNINGS)
-AM_CPPFLAGS = -I$(srcdir)/fdlibm -D_GLIBCXX_DEBUG -D_GLIBCPP_USE_C99
+AM_CPPFLAGS = -I$(srcdir)/fdlibm
 
 source/keyword.h: source/keyword.gperf
 	cd $(srcdir) && gperf -L ANSI-C -C -F ', TOKEN_INVALID' -t -o -N find_keyword -k1,2,\$$ source/keyword.gperf > tmp.kwd && mv tmp.kwd source/keyword.h
Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/Attic/configure.ac,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 configure.ac
--- configure.ac 13 Jan 2005 03:55:27 -0000 1.1.2.2
+++ configure.ac 23 Jan 2005 23:04:09 -0000
@@ -25,5 +25,8 @@
 
 AC_C_BIGENDIAN
 
+AC_DEFINE(_GLIBCXX_DEBUG, 1, [enable libstdc++ checking])
+AC_DEFINE(_GLIBCPP_USE_C99, 1, [enable c99 features])
+
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT



More information about the Java-patches mailing list