[m-rev.] diff: s/-traditional-cpp/-no-cpp-precomp/

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Jan 28 16:03:06 AEDT 2003


Estimated hours taken: 1.5
Branches: main, release

aclocal.m4:
	Use `-no-cpp-precomp' rather than `-traditional-cpp' to disable
	Apple's broken C preprocessor.  This is needed for recent releases
	of Apple's version of GCC, because `-traditional-cpp' has reverted
	to its original meaning (specifying a K&R-style preprocessor).

Workspace: /home/ceres/fjh/mercury
Index: aclocal.m4
===================================================================
RCS file: /home/mercury1/repository/mercury/aclocal.m4,v
retrieving revision 1.16
diff -u -d -r1.16 aclocal.m4
--- aclocal.m4	25 Nov 2002 11:53:16 -0000	1.16
+++ aclocal.m4	28 Jan 2003 05:00:18 -0000
@@ -65,7 +65,7 @@
 AC_DEFUN(MERCURY_CHECK_CC_NEEDS_TRAD_CPP,
 [
 AC_REQUIRE([AC_PROG_CC])
-AC_MSG_CHECKING(whether C compiler need --traditional-cpp)
+AC_MSG_CHECKING(whether C compiler needs -no-cpp-precomp)
 AC_CACHE_VAL(mercury_cv_cpp_precomp, [
 	>conftest.c
 	if	test "$GCC" = yes &&
@@ -79,7 +79,7 @@
 ])
 AC_MSG_RESULT($mercury_cv_cpp_precomp)
 if test $mercury_cv_cpp_precomp = yes; then
-	CC="$CC --traditional-cpp"
+	CC="$CC -no-cpp-precomp"
 fi
 ])
 #-----------------------------------------------------------------------------#

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list