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 flags. But modifying compiler flags can, in a Makefile.am, only be done on a per-program or per-library basis, not on a per-compilation-unit basis. So, you have to add $(NO_CXX) to the compilation flags for your library yourself. In theory, one could add a 'traditional-c' flag to the module description, let gnulib-tool see if one of the modules of the library has this flag set, and add $(NO_CXX) to the compiler flags of the library. But that would be a lot of code to develop, and given that you have an easy one-liner workaround, I don't see much point in having this feature in gnulib proper. Bruno