forked from aniani/vim
updated for version 7.4.055
Problem: Mac: Where availability macros are defined depends on the system. Solution: Add a configure check. (Felix Bünemann)
This commit is contained in:
11
src/auto/configure
vendored
11
src/auto/configure
vendored
@@ -4241,7 +4241,16 @@ fi
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
|
ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
|
||||||
|
if test "x$ac_cv_header_AvailabilityMacros_h" = x""yes; then :
|
||||||
|
|
||||||
|
$as_echo "#define HAVE_AVAILABILITYMACROS_H 1" >>confdefs.h
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
|
||||||
if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
|
if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
|
||||||
CARBON=yes
|
CARBON=yes
|
||||||
fi
|
fi
|
||||||
|
@@ -442,3 +442,6 @@
|
|||||||
|
|
||||||
/* Define if you want Cygwin to use the WIN32 clipboard, not compatible with X11*/
|
/* Define if you want Cygwin to use the WIN32 clipboard, not compatible with X11*/
|
||||||
#undef FEAT_CYGWIN_WIN32_CLIPBOARD
|
#undef FEAT_CYGWIN_WIN32_CLIPBOARD
|
||||||
|
|
||||||
|
/* Define if we have AvailabilityMacros.h on Mac OS X */
|
||||||
|
#undef HAVE_AVAILABILITYMACROS_H
|
||||||
|
@@ -206,6 +206,10 @@ if test "`(uname) 2>/dev/null`" = Darwin; then
|
|||||||
dnl TODO: use -arch i386 on Intel machines
|
dnl TODO: use -arch i386 on Intel machines
|
||||||
CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
|
CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
|
||||||
|
|
||||||
|
dnl Mac OS X 10.9+ no longer include AvailabilityMacros.h in Carbon
|
||||||
|
dnl so we need to include it to have access to version macros.
|
||||||
|
AC_CHECK_HEADER(AvailabilityMacros.h, [AC_DEFINE(HAVE_AVAILABILITYMACROS_H, 1, [ Define if we have AvailabilityMacros.h on Mac OS X ])])
|
||||||
|
|
||||||
dnl If Carbon is found, assume we don't want X11
|
dnl If Carbon is found, assume we don't want X11
|
||||||
dnl unless it was specifically asked for (--with-x)
|
dnl unless it was specifically asked for (--with-x)
|
||||||
dnl or Motif, Athena or GTK GUI is used.
|
dnl or Motif, Athena or GTK GUI is used.
|
||||||
|
@@ -16,6 +16,11 @@
|
|||||||
# define OPAQUE_TOOLBOX_STRUCTS 0
|
# define OPAQUE_TOOLBOX_STRUCTS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Include MAC_OS_X_VERSION_* macros */
|
||||||
|
#ifdef HAVE_AVAILABILITYMACROS_H
|
||||||
|
# include <AvailabilityMacros.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Macintosh machine-dependent things.
|
* Macintosh machine-dependent things.
|
||||||
*
|
*
|
||||||
@@ -263,7 +268,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Some "prep work" definition to be able to compile the MacOS X
|
/* Some "prep work" definition to be able to compile the MacOS X
|
||||||
* version with os_unix.x instead of os_mac.c. Based on the result
|
* version with os_unix.c instead of os_mac.c. Based on the result
|
||||||
* of ./configure for console MacOS X.
|
* of ./configure for console MacOS X.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
55,
|
||||||
/**/
|
/**/
|
||||||
54,
|
54,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user