diff options
author | Enrico M. Crisostomo <enrico.m.crisostomo@gmail.com> | 2014-09-13 23:58:36 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2014-09-13 23:58:36 +0200 |
commit | dcb9724425ee2f5fbf8dd97862b941335c5db43d (patch) | |
tree | 67ee1f59fde4fee49956bb89f4b2bef073ecc9a7 /m4/ax_cxx_have_hash.m4 | |
parent | b872a22fde8c7b8cbf995ea1e11bc7a21e27061b (diff) | |
download | autoconf-archive-dcb9724425ee2f5fbf8dd97862b941335c5db43d.tar.gz |
AX_CXX_HAVE_HASH: remove dependency on AX_CXX_NAMESPACES
Diffstat (limited to 'm4/ax_cxx_have_hash.m4')
-rw-r--r-- | m4/ax_cxx_have_hash.m4 | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/m4/ax_cxx_have_hash.m4 b/m4/ax_cxx_have_hash.m4 index ee5255b..8af7e8f 100644 --- a/m4/ax_cxx_have_hash.m4 +++ b/m4/ax_cxx_have_hash.m4 @@ -8,14 +8,12 @@ # # DESCRIPTION # -# This macros checks if std::hash, added in C++11, is defined in the +# This macro checks if std::hash, added in C++11, is defined in the # <functional> header. # # If it is, define the ax_cv_cxx_have_hash environment variable to "yes" # and define HAVE_CXX_HASH. # -# NOTE: This macros depends on AX_CXX_NAMESPACES. -# # LICENSE # # Copyright (c) 2014 Enrico M. Crisostomo <enrico.m.crisostomo@gmail.com> @@ -25,18 +23,18 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 1 +#serial 2 AC_DEFUN([AX_CXX_HAVE_HASH], [AC_CACHE_CHECK( [for std::hash in functional], ax_cv_cxx_have_hash, - [AC_REQUIRE([AX_CXX_NAMESPACES]) + [dnl AC_LANG_PUSH([C++]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [ - [#include <functional> - #include <string>] + [#include <functional>] + [#include <string>] [using std::hash;] ], [] |