summaryrefslogtreecommitdiff
path: root/m4/ax_cxx_have_ref.m4
diff options
context:
space:
mode:
authorEnrico M. Crisostomo <enrico.m.crisostomo@gmail.com>2014-09-14 00:05:38 +0200
committerPeter Simons <simons@cryp.to>2014-09-14 00:05:38 +0200
commit4f16bf31f2828c5b7ab249ca16ec458f54a2c9fb (patch)
treeb72714812969ec25f2d8261e0fd02cda888a2e04 /m4/ax_cxx_have_ref.m4
parent73663092747032cbbc1740bc4f6597574e993bc1 (diff)
downloadautoconf-archive-4f16bf31f2828c5b7ab249ca16ec458f54a2c9fb.tar.gz
AX_CXX_HAVE_REF: remove dependency on AX_CXX_NAMESPACES
Diffstat (limited to 'm4/ax_cxx_have_ref.m4')
-rw-r--r--m4/ax_cxx_have_ref.m414
1 files changed, 5 insertions, 9 deletions
diff --git a/m4/ax_cxx_have_ref.m4 b/m4/ax_cxx_have_ref.m4
index 9e5695d..5c1b206 100644
--- a/m4/ax_cxx_have_ref.m4
+++ b/m4/ax_cxx_have_ref.m4
@@ -8,14 +8,12 @@
#
# DESCRIPTION
#
-# This macros checks if std::ref, added in C++11, is defined in the
+# This macro checks if std::ref, added in C++11, is defined in the
# <functional> header.
#
# If it is, define the ax_cv_cxx_have_ref environment variable to "yes"
# and define HAVE_CXX_REF.
#
-# NOTE: This macros depends on AX_CXX_NAMESPACES.
-#
# LICENSE
#
# Copyright (c) 2014 Enrico M. Crisostomo <enrico.m.crisostomo@gmail.com>
@@ -25,20 +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_REF],
[AC_CACHE_CHECK(
[for std::ref in functional],
ax_cv_cxx_have_ref,
- [AC_REQUIRE([AX_CXX_NAMESPACES])
+ [dnl
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[
- [#include <functional>
- #ifdef HAVE_NAMESPACES
- using namespace std;
- #endif]
+ [#include <functional>]
+ [using namespace std;]
],
[
[int one(1);]