# HG changeset patch
# User Misty De Meo <mistydemeo@gmail.com>
# Date 1382246229 25200
#      Sat Oct 19 22:17:09 2013 -0700
# Branch no-cpp-precomp
# Node ID 1a5bd932f37886e6c40ac8cef6c162ff0faddfce
# Parent  92c9748e0ccbc42a5e28ce8fb9b8818e756a06da
Disable -no-cpp-precomp flag on OS X

This Apple-specific flag hasn't had effect since roughly 2002, and
prevents the build from working on non-Apple compilers like FSF GCC.

diff -r 92c9748e0ccb -r 1a5bd932f378 src/configure.in
--- a/src/configure.in	Sun Oct 06 17:46:56 2013 +0200
+++ b/src/configure.in	Sat Oct 19 22:17:09 2013 -0700
@@ -204,7 +204,7 @@
     OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
     OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
     dnl TODO: use -arch i386 on Intel machines
-    CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
+    CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX"
 
     dnl If Carbon is found, assume we don't want X11
     dnl unless it was specifically asked for (--with-x)
@@ -258,8 +258,7 @@
   ])
   if test "$GCC" = yes -a "$local_dir" != no; then
     echo 'void f(){}' > conftest.c
-    dnl -no-cpp-precomp is needed for OS X 10.2 (Ben Fowler)
-    have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
+    have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
     have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
     rm -f conftest.c conftest.o
   fi
diff -r 92c9748e0ccb -r 1a5bd932f378 src/osdef.sh
--- a/src/osdef.sh	Sun Oct 06 17:46:56 2013 +0200
+++ b/src/osdef.sh	Sat Oct 19 22:17:09 2013 -0700
@@ -47,11 +47,7 @@
 #endif
 EOF
 
-# Mac uses precompiled headers, but we need real headers here.
-case `uname` in
-    Darwin)	$CC -I. -I$srcdir -E -no-cpp-precomp osdef0.c >osdef0.cc;;
-    *)		$CC -I. -I$srcdir -E osdef0.c >osdef0.cc;;
-esac
+$CC -I. -I$srcdir -E osdef0.c >osdef0.cc
 
 # insert a space in front of each line, so that a function name at the
 # start of the line is matched with "[)*, 	]\1[ 	(]"
