dcaee6
To: vim_dev@googlegroups.com
dcaee6
Subject: Patch 7.4.061
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.061 (after 7.4.055 and 7.4.056)
dcaee6
Problem:    Availability macros configure check in wrong place.
dcaee6
Solution:   Also check when not using Darwin. Remove version check.
dcaee6
Files:      src/configure.in, src/auto/configure, src/os_unix.c
dcaee6
dcaee6
dcaee6
*** ../vim-7.4.060/src/configure.in	2013-11-02 21:04:32.000000000 +0100
dcaee6
--- src/configure.in	2013-11-03 00:34:07.000000000 +0100
dcaee6
***************
dcaee6
*** 206,215 ****
dcaee6
      dnl TODO: use -arch i386 on Intel machines
dcaee6
      CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
dcaee6
  
dcaee6
-     dnl Mac OS X 10.9+ no longer include AvailabilityMacros.h in Carbon
dcaee6
-     dnl so we need to include it to have access to version macros.
dcaee6
-     AC_CHECK_HEADER(AvailabilityMacros.h, [AC_DEFINE(HAVE_AVAILABILITYMACROS_H, 1, [ Define if we have AvailabilityMacros.h on Mac OS X ])])
dcaee6
- 
dcaee6
      dnl If Carbon is found, assume we don't want X11
dcaee6
      dnl unless it was specifically asked for (--with-x)
dcaee6
      dnl or Motif, Athena or GTK GUI is used.
dcaee6
--- 206,211 ----
dcaee6
***************
dcaee6
*** 232,237 ****
dcaee6
--- 228,237 ----
dcaee6
    AC_MSG_RESULT(no)
dcaee6
  fi
dcaee6
  
dcaee6
+ dnl Mac OS X 10.9+ no longer include AvailabilityMacros.h in Carbon
dcaee6
+ dnl so we need to include it to have access to version macros.
dcaee6
+ AC_CHECK_HEADER(AvailabilityMacros.h, HAVE_AVAILABILITYMACROS_H=1)
dcaee6
+ 
dcaee6
  AC_SUBST(OS_EXTRA_SRC)
dcaee6
  AC_SUBST(OS_EXTRA_OBJ)
dcaee6
  
dcaee6
*** ../vim-7.4.060/src/auto/configure	2013-11-02 21:04:32.000000000 +0100
dcaee6
--- src/auto/configure	2013-11-03 00:36:20.000000000 +0100
dcaee6
***************
dcaee6
*** 4223,4229 ****
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
  		  inttypes.h stdint.h unistd.h
dcaee6
  do :
dcaee6
--- 4223,4229 ----
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
  		  inttypes.h stdint.h unistd.h
dcaee6
  do :
dcaee6
***************
dcaee6
*** 4241,4256 ****
dcaee6
  done
dcaee6
  
dcaee6
  
dcaee6
! ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
dcaee6
! if test "x$ac_cv_header_AvailabilityMacros_h" = x""yes; then :
dcaee6
! 
dcaee6
! $as_echo "#define HAVE_AVAILABILITYMACROS_H 1" >>confdefs.h
dcaee6
! 
dcaee6
! fi
dcaee6
! 
dcaee6
! 
dcaee6
! 
dcaee6
!                 ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
dcaee6
  if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
dcaee6
    CARBON=yes
dcaee6
  fi
dcaee6
--- 4241,4247 ----
dcaee6
  done
dcaee6
  
dcaee6
  
dcaee6
! ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
dcaee6
  if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
dcaee6
    CARBON=yes
dcaee6
  fi
dcaee6
***************
dcaee6
*** 4272,4277 ****
dcaee6
--- 4263,4275 ----
dcaee6
  $as_echo "no" >&6; }
dcaee6
  fi
dcaee6
  
dcaee6
+ ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
dcaee6
+ if test "x$ac_cv_header_AvailabilityMacros_h" = x""yes; then :
dcaee6
+   HAVE_AVAILABILITYMACROS_H=1
dcaee6
+ fi
dcaee6
+ 
dcaee6
+ 
dcaee6
+ 
dcaee6
  
dcaee6
  
dcaee6
  
dcaee6
*** ../vim-7.4.060/src/os_unix.c	2013-11-02 21:49:28.000000000 +0100
dcaee6
--- src/os_unix.c	2013-11-03 00:34:29.000000000 +0100
dcaee6
***************
dcaee6
*** 804,812 ****
dcaee6
   * completely full.
dcaee6
   */
dcaee6
  
dcaee6
! #if defined(HAVE_AVAILABILITYMACROS_H) \
dcaee6
!     && defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \
dcaee6
!     && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1090)
dcaee6
  # include <AvailabilityMacros.h>
dcaee6
  #endif
dcaee6
  
dcaee6
--- 804,810 ----
dcaee6
   * completely full.
dcaee6
   */
dcaee6
  
dcaee6
! #if defined(HAVE_AVAILABILITYMACROS_H)
dcaee6
  # include <AvailabilityMacros.h>
dcaee6
  #endif
dcaee6
  
dcaee6
*** ../vim-7.4.060/src/version.c	2013-11-03 00:28:20.000000000 +0100
dcaee6
--- src/version.c	2013-11-03 00:37:02.000000000 +0100
dcaee6
***************
dcaee6
*** 740,741 ****
dcaee6
--- 740,743 ----
dcaee6
  {   /* Add new patch number below this line */
dcaee6
+ /**/
dcaee6
+     61,
dcaee6
  /**/
dcaee6
dcaee6
-- 
dcaee6
It is illegal to rob a bank and then shoot at the bank teller with a water
dcaee6
pistol.
dcaee6
		[real standing law in Louisana, 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    ///