[glibmm] Get rid of some old Autoconf macro cruft
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glibmm] Get rid of some old Autoconf macro cruft
- Date: Mon, 10 Aug 2009 23:07:04 +0000 (UTC)
commit 567ef8f6c9c4b2e8282c96e3b3b6b1946630d5ca
Author: Daniel Elstner <danielk openismus com>
Date: Tue Aug 11 00:43:38 2009 +0200
Get rid of some old Autoconf macro cruft
* scripts/dk-warn.m4: Delete file, since the functionality is now
provided by MM_ARG_ENABLE_WARNINGS() from the mm-common module.
* scripts/docgen.m4: Delete obsolete file.
* scripts/cxx_std.m4: Remove stray text snippet from the top of the
file. Probably a cut'n'paste accident.
* scripts/cxx.m4 (GLIBMM_MEMBER_FUNCTIONS_MEMBER_TEMPLATES): Do not
AC_DEFINE to 0 in the else branch, as that will do the wrong thing
when #ifdef is used instead of #if.
* scripts/README: Delete file consisting solely of whitespace.
* configure.ac: Add note on pointless test for namespace std.
ChangeLog | 15 +++++++
configure.ac | 2 +
scripts/README | 1 -
scripts/cxx.m4 | 12 ++----
scripts/cxx_std.m4 | 1 -
scripts/dk-warn.m4 | 114 ----------------------------------------------------
scripts/docgen.m4 | 75 ----------------------------------
7 files changed, 21 insertions(+), 199 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8dc6c3e..0032e44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
2009-08-10 Daniel Elstner <danielk openismus com>
+ Get rid of some old Autoconf macro cruft
+
+ * scripts/dk-warn.m4: Delete file, since the functionality is now
+ provided by MM_ARG_ENABLE_WARNINGS() from the mm-common module.
+ * scripts/docgen.m4: Delete obsolete file.
+ * scripts/cxx_std.m4: Remove stray text snippet from the top of the
+ file. Probably a cut'n'paste accident.
+ * scripts/cxx.m4 (GLIBMM_MEMBER_FUNCTIONS_MEMBER_TEMPLATES): Do not
+ AC_DEFINE to 0 in the else branch, as that will do the wrong thing
+ when #ifdef is used instead of #if.
+ * scripts/README: Delete file consisting solely of whitespace.
+ * configure.ac: Add note on pointless test for namespace std.
+
+2009-08-10 Daniel Elstner <danielk openismus com>
+
Clean up configure check for Windows host
* configure.ac (OS_WIN32): Rename conditional to HOST_WINDOWS_NATIVE
diff --git a/configure.ac b/configure.ac
index 6058072..b200bbe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,7 +93,9 @@ DK_CHECK_FEATURE([wide stream],
[[std::wostringstream s; (void) s.str();]])
])
+# TODO: This is completely pointless nowadays.
GLIBMM_CXX_HAS_NAMESPACE_STD
+
GLIBMM_CXX_HAS_STD_ITERATOR_TRAITS
GLIBMM_CXX_HAS_SUN_REVERSE_ITERATOR
GLIBMM_CXX_HAS_TEMPLATE_SEQUENCE_CTORS
diff --git a/scripts/cxx.m4 b/scripts/cxx.m4
index 8dce019..37062b7 100644
--- a/scripts/cxx.m4
+++ b/scripts/cxx.m4
@@ -133,15 +133,11 @@ AC_TRY_COMPILE(
func = &foo::doit<int>; //Compiler bugs usually show here.
(void)func;
}
-],[],[
- glibmm_cxx_member_functions_member_templates=yes
- AC_DEFINE([GLIBMM_MEMBER_FUNCTIONS_MEMBER_TEMPLATES],[1],[does the C++ compiler allow member functions to refer to member templates])
+],[],[glibmm_cxx_member_functions_member_templates=yes
+ AC_DEFINE([GLIBMM_MEMBER_FUNCTIONS_MEMBER_TEMPLATES], [1],
+ [does the C++ compiler allow member functions to refer to member templates])
+], [glibmm_cxx_member_functions_member_templates=no])
AC_MSG_RESULT([$glibmm_cxx_member_functions_member_templates])
-],[
- glibmm_cxx_member_functions_member_templates=no
- AC_DEFINE([GLIBMM_MEMBER_FUNCTIONS_MEMBER_TEMPLATES],[0])
- AC_MSG_RESULT([$glibmm_cxx_member_functions_member_templates])
-])
])
## GLIBMM_CXX_CAN_DISAMBIGUATE_CONST_TEMPLATE_SPECIALIZATIONS()
diff --git a/scripts/cxx_std.m4 b/scripts/cxx_std.m4
index cb64fd4..aa3d5c9 100644
--- a/scripts/cxx_std.m4
+++ b/scripts/cxx_std.m4
@@ -1,4 +1,3 @@
-cv_cxx_has_namespace_std
## GLIBMM_CXX_HAS_NAMESPACE_STD()
##
## Test whether libstdc++ declares namespace std. For safety,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]