summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-11 23:08:48 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-11 23:08:48 +0200
commit040f975fc1de14ada5e0a7324bb5e51e461be2dd (patch)
tree9d768b3c622d6806853b7d884792788dba36d1d7
parent035d6e91bd83574cab5a913c5c3a924d9011696b (diff)
downloadvim-git-040f975fc1de14ada5e0a7324bb5e51e461be2dd.tar.gz
patch 8.2.1424: Mac build failsv8.2.1424
Problem: Mac build fails. Solution: Adjust configure to not fall back to Athena. Adjust some other files.
-rwxr-xr-xsrc/auto/configure17
-rw-r--r--src/configure.ac15
-rw-r--r--src/libvterm/src/state.c4
-rw-r--r--src/os_macosx.m2
-rw-r--r--src/version.c13
5 files changed, 38 insertions, 13 deletions
diff --git a/src/auto/configure b/src/auto/configure
index fcb2f40e8..5cef55548 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -4744,6 +4744,10 @@ rm -f core conftest.err conftest.$ac_objext \
OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
+
+ if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then
+ with_x=no
+ fi
fi
if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
@@ -9232,6 +9236,19 @@ $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
SKIP_PHOTON=YES ;;
esac
+elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
+ case "$enable_gui_canon" in
+ no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
+$as_echo "no GUI support" >&6; } ;;
+ yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
+$as_echo "yes - automatic GUI support" >&6; }
+ gui_auto=yes ;;
+ auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - disable GUI support for Mac OS" >&5
+$as_echo "auto - disable GUI support for Mac OS" >&6; } ;;
+ *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
+$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
+ SKIP_CARBON=YES ;;
+ esac
else
case "$enable_gui_canon" in
diff --git a/src/configure.ac b/src/configure.ac
index 8a5216a8a..e17a74c9a 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -262,6 +262,12 @@ if test "`(uname) 2>/dev/null`" = Darwin; then
dnl TODO: use -arch i386 on Intel machines
dnl Removed -no-cpp-precomp, only for very old compilers.
CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
+
+ dnl Assume we don't want X11 unless it was specifically asked for
+ dnl (--with-x) or Motif, Athena or GTK GUI is used.
+ if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then
+ with_x=no
+ fi
fi
dnl Avoid a bug with -O2 with gcc 4.0.1. Symptom: malloc() reports double
@@ -2421,6 +2427,15 @@ elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
SKIP_PHOTON=YES ;;
esac
+elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
+ case "$enable_gui_canon" in
+ no) AC_MSG_RESULT(no GUI support) ;;
+ yes|"") AC_MSG_RESULT(yes - automatic GUI support)
+ gui_auto=yes ;;
+ auto) AC_MSG_RESULT(auto - disable GUI support for Mac OS) ;;
+ *) AC_MSG_RESULT([Sorry, $enable_gui GUI is not supported])
+ SKIP_CARBON=YES ;;
+ esac
else
case "$enable_gui_canon" in
diff --git a/src/libvterm/src/state.c b/src/libvterm/src/state.c
index 4fe3d7d20..390aa8dce 100644
--- a/src/libvterm/src/state.c
+++ b/src/libvterm/src/state.c
@@ -133,7 +133,7 @@ static void scroll(VTermState *state, VTermRect rect, int downward, int rightwar
if(rect.start_col == 0 && rect.end_col == state->cols && rightward == 0) {
int height = rect.end_row - rect.start_row - abs(downward);
int row;
- VTermLineInfo zeroLineInfo = { 0 };
+ VTermLineInfo zeroLineInfo = {0x0};
if(downward > 0) {
memmove(state->lineinfo + rect.start_row,
@@ -1813,7 +1813,7 @@ static int on_resize(int rows, int cols, void *user)
}
for( ; row < rows; row++) {
- VTermLineInfo lineInfo = {0};
+ VTermLineInfo lineInfo = {0x0};
newlineinfo[row] = lineInfo;
}
diff --git a/src/os_macosx.m b/src/os_macosx.m
index 4c04395ea..0ac59b4cc 100644
--- a/src/os_macosx.m
+++ b/src/os_macosx.m
@@ -33,7 +33,7 @@
* gui_mac.c are used then. TODO: remove those instead?
* But for MacVim we do need these ones.
*/
-#if defined(FEAT_CLIPBOARD) && (!defined(FEAT_GUI_ENABLED) || defined(FEAT_GUI_MACVIM))
+#if defined(FEAT_CLIPBOARD) && (!defined(FEAT_GUI_ENABLED))
/* Used to identify clipboard data copied from Vim. */
diff --git a/src/version.c b/src/version.c
index f6257b58a..ec86fb4f5 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1424,
+/**/
1423,
/**/
1422,
@@ -3954,17 +3956,8 @@ list_version(void)
# else
# if defined(MSWIN)
msg_puts(_("with GUI."));
-# else
-# if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON
- msg_puts(_("with Carbon GUI."));
-# else
-# if defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX
- msg_puts(_("with Cocoa GUI."));
-# else
-# endif
-# endif
-# endif
# endif
+# endif
# endif
# endif
# endif