From: Bruno Haible <bruno@clisp.org>
Date: Thu, 20 Jan 2011 09:31:24 +0000 (+0100)
Subject: Allow the user to avoid the GNULIB_TEST_* macros.
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff4bb04bec0c8d7834bfb0590d6de08fa0ceefd0;p=pspp

Allow the user to avoid the GNULIB_TEST_* macros.

* m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
Suggested by Paul Eggert.
---

diff --git a/ChangeLog b/ChangeLog
index 85e510e97f..3ca0e44913 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-01-20  Bruno Haible  <bruno@clisp.org>
+
+	Allow the user to avoid the GNULIB_TEST_* macros.
+	* m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
+	Suggested by Paul Eggert.
+
 2011-01-14  Jim Meyering  <meyering@redhat.com>
 
 	bootstrap: avoid failure when there is no .gitmodules file
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4
index 1a1794ce9a..c4f41f180b 100644
--- a/m4/gnulib-common.m4
+++ b/m4/gnulib-common.m4
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 21
+# gnulib-common.m4 serial 22
 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -102,6 +102,16 @@ AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS],
     [Define to 1 when the gnulib module $1 should be tested.])
 ])
 
+# gl_ASSERT_NO_GNULIB_TESTS
+# asserts that there will be no gnulib tests in the scope of the configure.ac
+# and thereby enables an optimization of config.h.
+# Used by Emacs.
+AC_DEFUN([gl_ASSERT_NO_GNULIB_TESTS],
+[
+  dnl Override gl_MODULE_INDICATOR_FOR_TESTS.
+  AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS], [])
+])
+
 # Test whether <features.h> exists.
 # Set HAVE_FEATURES_H.
 AC_DEFUN([gl_FEATURES_H],