]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
New module 'no-c++'.
authorBruno Haible <bruno@clisp.org>
Mon, 27 Nov 2006 12:52:11 +0000 (12:52 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:24 +0000 (12:14 +0200)
gnulib-local/ChangeLog
gnulib-local/Makefile.am
gnulib-local/m4/no-c++.m4 [new file with mode: 0644]
gnulib-local/modules/no-c++ [new file with mode: 0644]

index b83b18e9fa2cb7f99cef277bd120df61178ce1a5..7a2b4d3fb0618f36f5f0098b3480252c91cd8417 100644 (file)
@@ -1,3 +1,9 @@
+2006-11-26  Bruno Haible  <bruno@clisp.org>
+
+       * modules/no-c++: New file.
+       * m4/no-c++.m4: New file.
+       * Makefile.am (EXTRA_DIST): Add them.
+
 2006-11-26  Bruno Haible  <bruno@clisp.org>
 
        Support for VPATH builds.
index 08f96a760dd1803e4332c6ea5054e9af74a9af3c..3e51dbd3fda96d9ca2fc6f059922d98cefb5e5a9 100644 (file)
@@ -254,6 +254,7 @@ m4/hard-locale.m4.diff \
 m4/libcroco.m4 \
 m4/libglib.m4 \
 m4/libxml.m4 \
+m4/no-c++.m4 \
 m4/java.m4 \
 m4/quotearg.m4.diff \
 m4/quote.m4.diff \
@@ -287,6 +288,7 @@ modules/libglib \
 modules/libxml \
 modules/memory-ostream \
 modules/moo \
+modules/no-c++ \
 modules/ostream \
 modules/progreloc \
 modules/propername \
diff --git a/gnulib-local/m4/no-c++.m4 b/gnulib-local/m4/no-c++.m4
new file mode 100644 (file)
index 0000000..75238cb
--- /dev/null
@@ -0,0 +1,22 @@
+# no-c++.m4 serial 1 (gettext-0.16.1)
+dnl Copyright (C) 2006 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+# 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.
+
+AC_DEFUN([gt_NO_CXX],
+[
+  NO_CXX=
+  AC_EGREP_CPP([Is g++], [
+#if defined __GNUC__ && defined __cplusplus
+  Is g++
+#endif
+    ],
+    [NO_CXX="-x c"])
+  AC_SUBST([NO_CXX])
+])
diff --git a/gnulib-local/modules/no-c++ b/gnulib-local/modules/no-c++
new file mode 100644 (file)
index 0000000..2f9e7c1
--- /dev/null
@@ -0,0 +1,21 @@
+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_CXX
+
+Makefile.am:
+
+Include:
+
+License:
+LGPL
+
+Maintainer:
+Bruno Haible
+