1
dnl Available from the GNU Autoconf Macro Archive at:
2
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_numeric_limits.html
4
AC_DEFUN([AC_CXX_HAVE_NUMERIC_LIMITS],
5
[AC_CACHE_CHECK(whether the compiler has numeric_limits<T>,
6
ac_cv_cxx_have_numeric_limits,
7
[AC_REQUIRE([AC_CXX_NAMESPACES])
10
AC_TRY_COMPILE([#include <limits>
11
#ifdef HAVE_NAMESPACES
13
#endif],[double e = numeric_limits<double>::epsilon(); return 0;],
14
ac_cv_cxx_have_numeric_limits=yes, ac_cv_cxx_have_numeric_limits=no)
17
if test "$ac_cv_cxx_have_numeric_limits" = yes; then
18
AC_DEFINE(HAVE_NUMERIC_LIMITS,,[define if the compiler has numeric_limits<T>])