Re: no-c++.m4: bug fix: egrep: repetition-operator operand invalid

2017-12-05 Thread Bruno Haible
plied as follows. 2017-12-05 Sam Steingold Bruno Haible 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. diff --git

no-c++.m4: bug fix: egrep: repetition-operator operand invalid

2017-12-05 Thread Sam Steingold
bject: [PATCH] Avoid the "egrep: repetition-operator operand invalid" error on Darwin --- m4/no-c++.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m4/no-c++.m4 b/m4/no-c++.m4 index ed06b22b6..b2fa0184f 100644 --- a/m4/no-c++.m4 +++ b/m4/no-c++.m4 @@ -7,

Re: no-c++

2009-08-10 Thread Simon Josefsson
Paolo Bonzini writes: >> Is there a wide class of projects or operating systems that recommends >> or suggests use of CC=c++ that I've missed? I'm trying to understand >> the origins of the CC=c++ notion. Learning that may help me understand >> the bigger picture. > > For example, when a projec

Re: no-c++

2009-08-10 Thread Paolo Bonzini
Is there a wide class of projects or operating systems that recommends or suggests use of CC=c++ that I've missed? I'm trying to understand the origins of the CC=c++ notion. Learning that may help me understand the bigger picture. For example, when a project is considering switching from C t

Re: no-c++

2009-08-10 Thread Sam Steingold
On Mon, Aug 10, 2009 at 10:12 AM, Simon Josefsson wrote: > Sam Steingold writes: > >> Some packages are compilable with both C (production) and C++ (extra >> compilation time type checking and run-time verification for >> debugging). >> when such a package uses code from gnulib, it wants to compil

Re: no-c++

2009-08-10 Thread Simon Josefsson
Sam Steingold writes: > On Mon, Aug 10, 2009 at 6:28 AM, Simon Josefsson wrote: >> Bruno Haible writes: >> >>> Should the 'regex' module (and possibly other modules which require C >>> syntax) depend on the 'no-c++' module? We can open a p

Re: no-c++

2009-08-10 Thread Sam Steingold
On Mon, Aug 10, 2009 at 6:28 AM, Simon Josefsson wrote: > Bruno Haible writes: > >> Should the 'regex' module (and possibly other modules which require C >> syntax) depend on the 'no-c++' module? We can open a poll on it. > > I don't understa

Re: no-c++

2009-08-10 Thread Simon Josefsson
Bruno Haible writes: > Should the 'regex' module (and possibly other modules which require C > syntax) depend on the 'no-c++' module? We can open a poll on it. I don't understand the rationale for the no-c++ module, let alone making any other modules depend

Re: no-c++

2009-08-09 Thread Bruno Haible
Sam Steingold wrote in <http://lists.gnu.org/archive/html/bug-gnulib/2009-08/msg00112.html>: > my suggestion eliminates two expensive steps: > > now: > > import the non-C++ module > regenerate all autoconf files > try to compile with c++, fail > import no-c++ &

Re: no-c++

2009-08-08 Thread Sam Steingold
> * Bruno Haible [2009-08-08 11:47:01 +0200]: > > Sam Steingold wrote: >> modules which cannot be compiled with c++ (regex, gettimeofday) should depend >> on no-c++ > > This cannot be implemented as you wish. The ability to compile in C mode when > CC="g++"

Re: no-c++

2009-08-08 Thread Bruno Haible
Sam Steingold wrote: > modules which cannot be compiled with c++ (regex, gettimeofday) should depend > on no-c++ This cannot be implemented as you wish. The ability to compile in C mode when CC="g++" is done through a variable NO_CXX that has to be added to the compiler flag

no-c++

2009-08-05 Thread Sam Steingold
modules which cannot be compiled with c++ (regex, gettimeofday) should depend on no-c++

Re: new module no-c++

2006-12-22 Thread Bruno Haible
I added this module now. > === modules/no-c++ === > Description: > Support for compiling in C mode when CC is set to a C++ compiler. > > Files: > m4/no-c++.m4 > > Depends-on: > > configure.ac: > gt_NO_C

Re: new module no-c++

2006-12-11 Thread Bruno Haible
Paul Eggert wrote: > for it to be useful won't we > also need to sprinkle $(NO_CXX) throughout the descriptions of all > modules that are not compilable with g++? Yes. This is easy to do. I imagine Simon's buildbot will give us the list of modules for which it is necessary. So far, I put each suc

Re: new module no-c++

2006-12-11 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > Objections? I have no objections to this module, but for it to be useful won't we also need to sprinkle $(NO_CXX) throughout the descriptions of all modules that are not compilable with g++? How would that work?

new module no-c++

2006-12-11 Thread Bruno Haible
such modules in automake "convenience libraries" and compile them with a C compiler, even if $CC is set to a C++ compiler. So far only "CC=g++" is supported, but that's sufficient since g++ implements ANSI C++ fairly decently. Objections? Bruno ======