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