Karsten Hopp 34b893
To: vim_dev@googlegroups.com
Karsten Hopp 34b893
Subject: Patch 7.4.061
Karsten Hopp 34b893
Fcc: outbox
Karsten Hopp 34b893
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 34b893
Mime-Version: 1.0
Karsten Hopp 34b893
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 34b893
Content-Transfer-Encoding: 8bit
Karsten Hopp 34b893
------------
Karsten Hopp 34b893
Karsten Hopp 34b893
Patch 7.4.061 (after 7.4.055 and 7.4.056)
Karsten Hopp 34b893
Problem:    Availability macros configure check in wrong place.
Karsten Hopp 34b893
Solution:   Also check when not using Darwin. Remove version check.
Karsten Hopp 34b893
Files:      src/configure.in, src/auto/configure, src/os_unix.c
Karsten Hopp 34b893
Karsten Hopp 34b893
Karsten Hopp 34b893
*** ../vim-7.4.060/src/configure.in	2013-11-02 21:04:32.000000000 +0100
Karsten Hopp 34b893
--- src/configure.in	2013-11-03 00:34:07.000000000 +0100
Karsten Hopp 34b893
***************
Karsten Hopp 34b893
*** 206,215 ****
Karsten Hopp 34b893
      dnl TODO: use -arch i386 on Intel machines
Karsten Hopp 34b893
      CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
Karsten Hopp 34b893
  
Karsten Hopp 34b893
-     dnl Mac OS X 10.9+ no longer include AvailabilityMacros.h in Carbon
Karsten Hopp 34b893
-     dnl so we need to include it to have access to version macros.
Karsten Hopp 34b893
-     AC_CHECK_HEADER(AvailabilityMacros.h, [AC_DEFINE(HAVE_AVAILABILITYMACROS_H, 1, [ Define if we have AvailabilityMacros.h on Mac OS X ])])
Karsten Hopp 34b893
- 
Karsten Hopp 34b893
      dnl If Carbon is found, assume we don't want X11
Karsten Hopp 34b893
      dnl unless it was specifically asked for (--with-x)
Karsten Hopp 34b893
      dnl or Motif, Athena or GTK GUI is used.
Karsten Hopp 34b893
--- 206,211 ----
Karsten Hopp 34b893
***************
Karsten Hopp 34b893
*** 232,237 ****
Karsten Hopp 34b893
--- 228,237 ----
Karsten Hopp 34b893
    AC_MSG_RESULT(no)
Karsten Hopp 34b893
  fi
Karsten Hopp 34b893
  
Karsten Hopp 34b893
+ dnl Mac OS X 10.9+ no longer include AvailabilityMacros.h in Carbon
Karsten Hopp 34b893
+ dnl so we need to include it to have access to version macros.
Karsten Hopp 34b893
+ AC_CHECK_HEADER(AvailabilityMacros.h, HAVE_AVAILABILITYMACROS_H=1)
Karsten Hopp 34b893
+ 
Karsten Hopp 34b893
  AC_SUBST(OS_EXTRA_SRC)
Karsten Hopp 34b893
  AC_SUBST(OS_EXTRA_OBJ)
Karsten Hopp 34b893
  
Karsten Hopp 34b893
*** ../vim-7.4.060/src/auto/configure	2013-11-02 21:04:32.000000000 +0100
Karsten Hopp 34b893
--- src/auto/configure	2013-11-03 00:36:20.000000000 +0100
Karsten Hopp 34b893
***************
Karsten Hopp 34b893
*** 4223,4229 ****
Karsten Hopp 34b893
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Karsten Hopp 34b893
          CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
Karsten Hopp 34b893
  
Karsten Hopp 34b893
!             # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Karsten Hopp 34b893
  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Karsten Hopp 34b893
  		  inttypes.h stdint.h unistd.h
Karsten Hopp 34b893
  do :
Karsten Hopp 34b893
--- 4223,4229 ----
Karsten Hopp 34b893
      OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Karsten Hopp 34b893
          CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
Karsten Hopp 34b893
  
Karsten Hopp 34b893
!                 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Karsten Hopp 34b893
  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Karsten Hopp 34b893
  		  inttypes.h stdint.h unistd.h
Karsten Hopp 34b893
  do :
Karsten Hopp 34b893
***************
Karsten Hopp 34b893
*** 4241,4256 ****
Karsten Hopp 34b893
  done
Karsten Hopp 34b893
  
Karsten Hopp 34b893
  
Karsten Hopp 34b893
! ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
Karsten Hopp 34b893
! if test "x$ac_cv_header_AvailabilityMacros_h" = x""yes; then :
Karsten Hopp 34b893
! 
Karsten Hopp 34b893
! $as_echo "#define HAVE_AVAILABILITYMACROS_H 1" >>confdefs.h
Karsten Hopp 34b893
! 
Karsten Hopp 34b893
! fi
Karsten Hopp 34b893
! 
Karsten Hopp 34b893
! 
Karsten Hopp 34b893
! 
Karsten Hopp 34b893
!                 ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
Karsten Hopp 34b893
  if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
Karsten Hopp 34b893
    CARBON=yes
Karsten Hopp 34b893
  fi
Karsten Hopp 34b893
--- 4241,4247 ----
Karsten Hopp 34b893
  done
Karsten Hopp 34b893
  
Karsten Hopp 34b893
  
Karsten Hopp 34b893
! ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
Karsten Hopp 34b893
  if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
Karsten Hopp 34b893
    CARBON=yes
Karsten Hopp 34b893
  fi
Karsten Hopp 34b893
***************
Karsten Hopp 34b893
*** 4272,4277 ****
Karsten Hopp 34b893
--- 4263,4275 ----
Karsten Hopp 34b893
  $as_echo "no" >&6; }
Karsten Hopp 34b893
  fi
Karsten Hopp 34b893
  
Karsten Hopp 34b893
+ ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
Karsten Hopp 34b893
+ if test "x$ac_cv_header_AvailabilityMacros_h" = x""yes; then :
Karsten Hopp 34b893
+   HAVE_AVAILABILITYMACROS_H=1
Karsten Hopp 34b893
+ fi
Karsten Hopp 34b893
+ 
Karsten Hopp 34b893
+ 
Karsten Hopp 34b893
+ 
Karsten Hopp 34b893
  
Karsten Hopp 34b893
  
Karsten Hopp 34b893
  
Karsten Hopp 34b893
*** ../vim-7.4.060/src/os_unix.c	2013-11-02 21:49:28.000000000 +0100
Karsten Hopp 34b893
--- src/os_unix.c	2013-11-03 00:34:29.000000000 +0100
Karsten Hopp 34b893
***************
Karsten Hopp 34b893
*** 804,812 ****
Karsten Hopp 34b893
   * completely full.
Karsten Hopp 34b893
   */
Karsten Hopp 34b893
  
Karsten Hopp 34b893
! #if defined(HAVE_AVAILABILITYMACROS_H) \
Karsten Hopp 34b893
!     && defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \
Karsten Hopp 34b893
!     && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1090)
Karsten Hopp 34b893
  # include <AvailabilityMacros.h>
Karsten Hopp 34b893
  #endif
Karsten Hopp 34b893
  
Karsten Hopp 34b893
--- 804,810 ----
Karsten Hopp 34b893
   * completely full.
Karsten Hopp 34b893
   */
Karsten Hopp 34b893
  
Karsten Hopp 34b893
! #if defined(HAVE_AVAILABILITYMACROS_H)
Karsten Hopp 34b893
  # include <AvailabilityMacros.h>
Karsten Hopp 34b893
  #endif
Karsten Hopp 34b893
  
Karsten Hopp 34b893
*** ../vim-7.4.060/src/version.c	2013-11-03 00:28:20.000000000 +0100
Karsten Hopp 34b893
--- src/version.c	2013-11-03 00:37:02.000000000 +0100
Karsten Hopp 34b893
***************
Karsten Hopp 34b893
*** 740,741 ****
Karsten Hopp 34b893
--- 740,743 ----
Karsten Hopp 34b893
  {   /* Add new patch number below this line */
Karsten Hopp 34b893
+ /**/
Karsten Hopp 34b893
+     61,
Karsten Hopp 34b893
  /**/
Karsten Hopp 34b893
Karsten Hopp 34b893
-- 
Karsten Hopp 34b893
It is illegal to rob a bank and then shoot at the bank teller with a water
Karsten Hopp 34b893
pistol.
Karsten Hopp 34b893
		[real standing law in Louisana, United States of America]
Karsten Hopp 34b893
Karsten Hopp 34b893
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 34b893
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 34b893
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 34b893
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///