From 2f6799a42360a995b665244b922ebd3b2275c839 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Tue, 28 Jul 2015 10:38:10 -0400 Subject: Replace my bounds-checked numeric conversion with Boost’s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Boost provides numeric_cast, which is much better than what I was using for safe numeric type conversion. This does introduce a Boost dependency, but that tends to be true of most nontrivial C++ programs, so it’s pretty reasonable. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9140509..763b8e4 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,10 @@ AC_CONFIG_HEADERS([config.h]) AC_PROG_CXX([clang++]) AX_CXX_COMPILE_STDCXX_11([noext], [mandatory]) +AX_BOOST_BASE([1.48.0], + [], + [AC_MSG_FAILURE([Boost is required])]) + AC_CHECK_HEADERS([urweb/urweb_cpp.h], [], [AC_MSG_FAILURE([Ur/Web headers are required])]) -- cgit v1.2.3