dcaee6
To: vim_dev@googlegroups.com
dcaee6
Subject: Patch 7.4.068
dcaee6
Fcc: outbox
dcaee6
From: Bram Moolenaar <Bram@moolenaar.net>
dcaee6
Mime-Version: 1.0
dcaee6
Content-Type: text/plain; charset=UTF-8
dcaee6
Content-Transfer-Encoding: 8bit
dcaee6
------------
dcaee6
dcaee6
Patch 7.4.068
dcaee6
Problem:    Cannot build Vim on Mac with non-Apple compilers.
dcaee6
Solution:   Remove the -no-cpp-precomp flag. (Misty De Meo)
dcaee6
Files:      src/configure.in, src/auto/configure, src/osdef.sh
dcaee6
dcaee6
dcaee6
*** ../vim-7.4.067/src/configure.in	2013-11-03 20:26:26.000000000 +0100
dcaee6
--- src/configure.in	2013-11-04 04:53:51.000000000 +0100
dcaee6
***************
dcaee6
*** 204,210 ****
dcaee6
      OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
dcaee6
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
dcaee6
      dnl TODO: use -arch i386 on Intel machines
dcaee6
!     CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
dcaee6
  
dcaee6
      dnl If Carbon is found, assume we don't want X11
dcaee6
      dnl unless it was specifically asked for (--with-x)
dcaee6
--- 204,211 ----
dcaee6
      OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
dcaee6
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
dcaee6
      dnl TODO: use -arch i386 on Intel machines
dcaee6
!     dnl Removed -no-cpp-precomp, only for very old compilers.
dcaee6
!     CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX"
dcaee6
  
dcaee6
      dnl If Carbon is found, assume we don't want X11
dcaee6
      dnl unless it was specifically asked for (--with-x)
dcaee6
***************
dcaee6
*** 262,269 ****
dcaee6
    ])
dcaee6
    if test "$GCC" = yes -a "$local_dir" != no; then
dcaee6
      echo 'void f(){}' > conftest.c
dcaee6
!     dnl -no-cpp-precomp is needed for OS X 10.2 (Ben Fowler)
dcaee6
!     have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
dcaee6
      have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
dcaee6
      rm -f conftest.c conftest.o
dcaee6
    fi
dcaee6
--- 263,270 ----
dcaee6
    ])
dcaee6
    if test "$GCC" = yes -a "$local_dir" != no; then
dcaee6
      echo 'void f(){}' > conftest.c
dcaee6
!     dnl Removed -no-cpp-precomp, only needed for OS X 10.2 (Ben Fowler)
dcaee6
!     have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
dcaee6
      have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
dcaee6
      rm -f conftest.c conftest.o
dcaee6
    fi
dcaee6
*** ../vim-7.4.067/src/auto/configure	2013-11-03 20:26:27.000000000 +0100
dcaee6
--- src/auto/configure	2013-11-04 04:54:16.000000000 +0100
dcaee6
***************
dcaee6
*** 4221,4227 ****
dcaee6
      MACOSX=yes
dcaee6
      OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
dcaee6
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
dcaee6
!         CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
dcaee6
  
dcaee6
                  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
dcaee6
  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
dcaee6
--- 4221,4227 ----
dcaee6
      MACOSX=yes
dcaee6
      OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
dcaee6
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
dcaee6
!             CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX"
dcaee6
  
dcaee6
                  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
dcaee6
  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
dcaee6
***************
dcaee6
*** 4311,4317 ****
dcaee6
  
dcaee6
    if test "$GCC" = yes -a "$local_dir" != no; then
dcaee6
      echo 'void f(){}' > conftest.c
dcaee6
!         have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
dcaee6
      have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
dcaee6
      rm -f conftest.c conftest.o
dcaee6
    fi
dcaee6
--- 4311,4317 ----
dcaee6
  
dcaee6
    if test "$GCC" = yes -a "$local_dir" != no; then
dcaee6
      echo 'void f(){}' > conftest.c
dcaee6
!         have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
dcaee6
      have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
dcaee6
      rm -f conftest.c conftest.o
dcaee6
    fi
dcaee6
*** ../vim-7.4.067/src/osdef.sh	2010-05-15 13:04:08.000000000 +0200
dcaee6
--- src/osdef.sh	2013-11-04 04:51:36.000000000 +0100
dcaee6
***************
dcaee6
*** 47,57 ****
dcaee6
  #endif
dcaee6
  EOF
dcaee6
  
dcaee6
! # Mac uses precompiled headers, but we need real headers here.
dcaee6
! case `uname` in
dcaee6
!     Darwin)	$CC -I. -I$srcdir -E -no-cpp-precomp osdef0.c >osdef0.cc;;
dcaee6
!     *)		$CC -I. -I$srcdir -E osdef0.c >osdef0.cc;;
dcaee6
! esac
dcaee6
  
dcaee6
  # insert a space in front of each line, so that a function name at the
dcaee6
  # start of the line is matched with "[)*, 	]\1[ 	(]"
dcaee6
--- 47,53 ----
dcaee6
  #endif
dcaee6
  EOF
dcaee6
  
dcaee6
! $CC -I. -I$srcdir -E osdef0.c >osdef0.cc
dcaee6
  
dcaee6
  # insert a space in front of each line, so that a function name at the
dcaee6
  # start of the line is matched with "[)*, 	]\1[ 	(]"
dcaee6
*** ../vim-7.4.067/src/version.c	2013-11-04 04:20:28.000000000 +0100
dcaee6
--- src/version.c	2013-11-04 04:51:51.000000000 +0100
dcaee6
***************
dcaee6
*** 740,741 ****
dcaee6
--- 740,743 ----
dcaee6
  {   /* Add new patch number below this line */
dcaee6
+ /**/
dcaee6
+     68,
dcaee6
  /**/
dcaee6
dcaee6
-- 
dcaee6
Violators can be fined, arrested or jailed for making ugly faces at a dog.
dcaee6
		[real standing law in Oklahoma, United States of America]
dcaee6
dcaee6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
dcaee6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
dcaee6
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
dcaee6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///