]> granicus.if.org Git - vim/commitdiff
patch 8.2.0228: configure does not recognize gcc version on BSD v8.2.0228
authorBram Moolenaar <Bram@vim.org>
Fri, 7 Feb 2020 19:50:07 +0000 (20:50 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 7 Feb 2020 19:50:07 +0000 (20:50 +0100)
Problem:    Configure does not recognize gcc version on BSD.
Solution:   Do not use "\+" in the pattern matching the version number. (Ozaki
            Kiichi, closes #5590)

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

index 59f3e68d63cf7aa5d2d4fa40ce99683ad135d3e0..ff2739c86f85b2680efefa0ab82aa3fbcf4427aa 100755 (executable)
@@ -14762,7 +14762,7 @@ DEPEND_CFLAGS_FILTER=
 if test "$GCC" = yes; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
 $as_echo_n "checking for GCC 3 or later... " >&6; }
-  gccmajor=`echo "$gccversion" | sed -e 's/^\([0-9]\+\)\..*$/\1/g'`
+  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9][0-9]*\)\..*$/\1/g'`
   if test "$gccmajor" -gt "2"; then
     DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
index bf10eac5511b9fae61f269c9dc2132f27e690066..fe2022802b058bcce623c871c180020f261abe86 100644 (file)
@@ -4447,7 +4447,7 @@ dnl the number before the version number.
 DEPEND_CFLAGS_FILTER=
 if test "$GCC" = yes; then
   AC_MSG_CHECKING(for GCC 3 or later)
-  gccmajor=`echo "$gccversion" | sed -e 's/^\([[0-9]]\+\)\..*$/\1/g'`
+  gccmajor=`echo "$gccversion" | sed -e 's/^\([[1-9]][[0-9]]*\)\..*$/\1/g'`
   if test "$gccmajor" -gt "2"; then
     DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
     AC_MSG_RESULT(yes)
index 82f1003beb98b2abccf5eb88bf9fa1218bae62ad..29c1614784d2c23bc7ca9c6f9d812e0489136980 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    228,
 /**/
     227,
 /**/