diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-03-03 12:44:22 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-03-03 12:44:40 +0100 |
commit | 801bb2c67845538e1b80669681b1eb1c4a6994a7 (patch) | |
tree | c74eec8d7d9371a86db3ecd7c6479cb7eb06202f /build | |
parent | 473903c7aaad54d07d3c2d33166fd07af2f3efac (diff) | |
download | sigc++-801bb2c67845538e1b80669681b1eb1c4a6994a7.tar.gz |
Remove now-unnecessary SIGC_CXX_HAS_NAMESPACE_STD() configure check.
Bug #762065 (Kjell Ahlstedt)
Diffstat (limited to 'build')
-rw-r--r-- | build/cxx_std.m4 | 44 |
1 files changed, 0 insertions, 44 deletions
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 <algorithm> - #include <iterator> - #include <iostream> - #include <string> - ]],[[ - 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 <iterator> - #ifdef SIGC_HAVE_NAMESPACE_STD - using namespace std; - #endif ]],[[ typedef reverse_iterator<char*,random_access_iterator_tag,char,char&,char*,int> ReverseIter; ]])], |