~ubuntu-branches/ubuntu/raring/blitz++/raring

« back to all changes in this revision

Viewing changes to m4/ac_cxx_have_numeric_limits.m4

  • Committer: Bazaar Package Importer
  • Author(s): Konstantinos Margaritis
  • Date: 2005-02-28 20:25:01 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050228202501-3i4f2sknnprsqfhz
Tags: 1:0.8-4
Added missing build-depends (Closes: #297323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
3
dnl
 
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])
 
8
 AC_LANG_SAVE
 
9
 AC_LANG_CPLUSPLUS
 
10
 AC_TRY_COMPILE([#include <limits>
 
11
#ifdef HAVE_NAMESPACES
 
12
using namespace std;
 
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)
 
15
 AC_LANG_RESTORE
 
16
])
 
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>])
 
19
fi
 
20
])