]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1589: Cannot disable cscope interface using configure v9.1.1589
authorChristian Brabandt <cb@256bit.org>
Fri, 25 Jul 2025 16:27:53 +0000 (18:27 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 25 Jul 2025 16:27:53 +0000 (18:27 +0200)
Problem:  Cannot disable cscope interface using configure, because in
          feature.h FEAT_CSCOPE will always be enabled for huge builds
          (chdiza)
Solution: Don't define FEAT_CSCOPE from configure script but set the
          ENABLE_CSCOPE flag and check for the presence of that flag in
          feature.h

fixes: #17825
closes: #17842

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/auto/configure
src/config.h.in
src/configure.ac
src/feature.h
src/version.c

index 2652a2a504c83cedab5d47caaece8eb8d860ea76..5f755924709ce8ae1eb798faf540eb499caed43b 100755 (executable)
@@ -8653,14 +8653,14 @@ if test ${enable_cscope+y}
 then :
   enableval=$enable_cscope;
 else case e in #(
-  e) enable_cscope="no" ;;
+  e) enable_cscope="yes" ;;
 esac
 fi
 
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
 printf "%s\n" "$enable_cscope" >&6; }
 if test "$enable_cscope" = "yes"; then
-  printf "%s\n" "#define FEAT_CSCOPE 1" >>confdefs.h
+  printf "%s\n" "#define ENABLE_CSCOPE 1" >>confdefs.h
 
 fi
 
index 1b8495515ff484e8d0377fe278d11e384230e4a3..fce8d5f44ffccb51eb8211a67cf132f57eb81d74 100644 (file)
 #undef HAVE_SYSMOUSE
 
 /* Define if you want to include the Cscope interface. */
-#undef FEAT_CSCOPE
+#undef ENABLE_CSCOPE
 
 /* Define if you don't want to include right-left support. */
 #undef DISABLE_RIGHTLEFT
index a4ff405bc2a21a7d50a611290c79a40cd9c2ffc7..9016f969933d0f897a25646a139eb7a2cc6c07cd 100644 (file)
@@ -2168,10 +2168,10 @@ AC_SUBST(RUBY_LIBS)
 AC_MSG_CHECKING(--enable-cscope argument)
 AC_ARG_ENABLE(cscope,
        [  --enable-cscope         Include cscope interface.], ,
-       [enable_cscope="no"])
+       [enable_cscope="yes"])
 AC_MSG_RESULT($enable_cscope)
 if test "$enable_cscope" = "yes"; then
-  AC_DEFINE(FEAT_CSCOPE)
+  AC_DEFINE(ENABLE_CSCOPE)
 fi
 
 AC_MSG_CHECKING(--disable-netbeans argument)
index 145de0be5fd32e5f4c4002c63437e018bfc9f08f..a87b9c2bbe3852e5bdc233b61fcb2cbfd679c1bb 100644 (file)
 /*
  * +cscope             Unix only: Cscope support.
  */
-#if defined(UNIX) && defined(FEAT_HUGE) && !defined(FEAT_CSCOPE) && !defined(MACOS_X)
+#if defined(UNIX) && defined(FEAT_HUGE) && defined(ENABLE_CSCOPE) && !defined(MACOS_X)
 # define FEAT_CSCOPE
 #endif
 
index e9e601aa2270505496ff3d30229c67eb1aaff762..60cb58b4e0881b30949a3af6fdece7e8c6cd6396 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1589,
 /**/
     1588,
 /**/