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