]> granicus.if.org Git - vim/commitdiff
patch 8.0.1050: terminal window feature not included by default v8.0.1050
authorBram Moolenaar <Bram@vim.org>
Sun, 3 Sep 2017 17:15:57 +0000 (19:15 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 3 Sep 2017 17:15:57 +0000 (19:15 +0200)
Problem:    Terminal window feature not included by default.
Solution:   Include the terminal feature for the "huge" build.

src/auto/configure
src/configure.ac
src/version.c

index df4c962bd572b26f292c3d60355c15f220c10c7f..7e46662023b9806f0b20e28b67f906d0d54ec67a 100755 (executable)
@@ -7473,20 +7473,34 @@ $as_echo_n "checking --enable-terminal argument... " >&6; }
 # Check whether --enable-terminal was given.
 if test "${enable_terminal+set}" = set; then :
   enableval=$enable_terminal; enable_terminal="yes"
+else
+  enable_terminal="auto"
 fi
 
-if test "$enable_terminal" = "yes"; then
+if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
   if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
 $as_echo "cannot use terminal emulator with tiny or small features" >&6; }
     enable_terminal="no"
   else
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+    if test "$enable_terminal" = "auto"; then
+      enable_terminal="yes"
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
+$as_echo "defaulting to yes" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
+    fi
   fi
 else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+  if test "$enable_terminal" = "auto"; then
+    enable_terminal="no"
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
+$as_echo "defaulting to no" >&6; }
+  else
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+  fi
 fi
 if test "$enable_terminal" = "yes"; then
   $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
index ea4df8f0ea2cdf8f7bb8e3d3535c758bf528874e..918c36c1dac0349b80d53f7026f7f32023330480 100644 (file)
@@ -2031,16 +2031,26 @@ fi
 AC_MSG_CHECKING(--enable-terminal argument)
 AC_ARG_ENABLE(terminal,
        [  --enable-terminal       Enable terminal emulation support.],
-       [enable_terminal="yes"], )
-if test "$enable_terminal" = "yes"; then
+       [enable_terminal="yes"], [enable_terminal="auto"])
+if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
   if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
     AC_MSG_RESULT([cannot use terminal emulator with tiny or small features])
     enable_terminal="no"
   else
-    AC_MSG_RESULT(yes)
+    if test "$enable_terminal" = "auto"; then
+      enable_terminal="yes"
+      AC_MSG_RESULT(defaulting to yes)
+    else
+      AC_MSG_RESULT(yes)
+    fi
   fi
 else
-  AC_MSG_RESULT(no)
+  if test "$enable_terminal" = "auto"; then
+    enable_terminal="no"
+    AC_MSG_RESULT(defaulting to no)
+  else
+    AC_MSG_RESULT(no)
+  fi
 fi
 if test "$enable_terminal" = "yes"; then
   AC_DEFINE(FEAT_TERMINAL)
index 4a5282fd72c0b2eb012061cd70284d2544012908..45537fe059a44bdd7fdc269528d95adf2da1f930 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1050,
 /**/
     1049,
 /**/