Mercurial > gnulib
changeset 39177:8b7883612bf4
no-c++: Avoid "egrep: repetition-operator operand invalid" error.
* m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
AC_EGREP_CPP pattern.
author | Sam Steingold <sds@gnu.org> |
---|---|
date | Tue, 05 Dec 2017 11:02:33 -0500 |
parents | 8ee9e5707f73 |
children | 81d47bfd0911 |
files | ChangeLog m4/no-c++.m4 |
diffstat | 2 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Dec 03 23:35:26 2017 +0100 +++ b/ChangeLog Tue Dec 05 11:02:33 2017 -0500 @@ -1,3 +1,10 @@ +2017-12-05 Sam Steingold <sds@gnu.org> + Bruno Haible <bruno@clisp.org> + + no-c++: Avoid "egrep: repetition-operator operand invalid" error. + * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the + AC_EGREP_CPP pattern. + 2017-12-03 Bruno Haible <bruno@clisp.org> all: Replace more http URLs by https URLs.
--- a/m4/no-c++.m4 Sun Dec 03 23:35:26 2017 +0100 +++ b/m4/no-c++.m4 Tue Dec 05 11:02:33 2017 -0500 @@ -1,4 +1,4 @@ -# no-c++.m4 serial 1 +# no-c++.m4 serial 2 dnl Copyright (C) 2006, 2009-2017 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -7,14 +7,14 @@ # Support for C source files that cannot be compiled by a C++ compiler. # Set NO_CXX to the C++ compiler flags needed to request C mode instead of # C++ mode. -# So far only g++ is supported. +# So far only g++ is supported. This includes clang++, as it is g++ compatible. AC_DEFUN([gt_NO_CXX], [ NO_CXX= - AC_EGREP_CPP([Is g++], [ + AC_EGREP_CPP([Is_g_plus_plus], [ #if defined __GNUC__ && defined __cplusplus - Is g++ + Is_g_plus_plus #endif ], [NO_CXX="-x c"])