From 801bb2c67845538e1b80669681b1eb1c4a6994a7 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Thu, 3 Mar 2016 12:44:22 +0100 Subject: Remove now-unnecessary SIGC_CXX_HAS_NAMESPACE_STD() configure check. Bug #762065 (Kjell Ahlstedt) --- build/cxx_std.m4 | 44 -------------------------------------------- 1 file changed, 44 deletions(-) (limited to 'build') diff --git a/build/cxx_std.m4 b/build/cxx_std.m4 index 8ef9548..e902c55 100644 --- a/build/cxx_std.m4 +++ b/build/cxx_std.m4 @@ -1,42 +1,3 @@ -cv_cxx_has_namespace_std -## SIGC_CXX_HAS_NAMESPACE_STD() -## -## Test whether libstdc++ declares namespace std. For safety, -## also check whether several randomly selected STL symbols -## are available in namespace std. -## -## On success, #define SIGC_HAVE_NAMESPACE_STD to 1. -## -AC_DEFUN([SIGC_CXX_HAS_NAMESPACE_STD], -[ - AC_CACHE_CHECK( - [whether C++ library symbols are declared in namespace std], - [sigc_cv_cxx_has_namespace_std], - [ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM( - [[ - #include - #include - #include - #include - ]],[[ - using std::min; - using std::find; - using std::copy; - using std::bidirectional_iterator_tag; - using std::string; - using std::istream; - using std::cout; - ]])], - [sigc_cv_cxx_has_namespace_std='yes'], - [sigc_cv_cxx_has_namespace_std='no'] - ) - ]) - - AS_IF([test "x${sigc_cv_cxx_has_namespace_std}" = 'xyes'], - [AC_DEFINE([SIGC_HAVE_NAMESPACE_STD],[1], [Defined when the libstdc++ declares the std-namespace])]) -]) - ## SIGC_CXX_HAS_SUN_REVERSE_ITERATOR() ## ## Check for Sun libCstd style std::reverse_iterator, which demands more than just one template parameter. @@ -44,8 +5,6 @@ AC_DEFUN([SIGC_CXX_HAS_NAMESPACE_STD], ## AC_DEFUN([SIGC_CXX_HAS_SUN_REVERSE_ITERATOR], [ - AC_REQUIRE([SIGC_CXX_HAS_NAMESPACE_STD]) - AC_CACHE_CHECK( [for non-standard Sun libCstd reverse_iterator], [sigc_cv_cxx_has_sun_reverse_iterator], @@ -53,9 +12,6 @@ AC_DEFUN([SIGC_CXX_HAS_SUN_REVERSE_ITERATOR], AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [[ #include - #ifdef SIGC_HAVE_NAMESPACE_STD - using namespace std; - #endif ]],[[ typedef reverse_iterator ReverseIter; ]])], -- cgit v1.2.1