From f952c8199586d9fba20052633aca252ff1230d29 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Sun, 16 Dec 2007 00:31:29 -0200 Subject: [PATCH] Add a proper autoconf check for Boost lambda.hpp. --- config.hh.in | 3 +++ configure.in | 2 +- flower/include/std-vector.hh | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config.hh.in b/config.hh.in index 4919408348..d7aca8f1f2 100644 --- a/config.hh.in +++ b/config.hh.in @@ -89,6 +89,9 @@ /* define if you have sstream */ #define HAVE_SSTREAM 0 +/* define if you have boost/lambda/lambda.hpp */ +#define HAVE_BOOST_LAMBDA_LAMBDA_HPP 0 + /* define if you have fontconfig */ #define HAVE_FONTCONFIG 0 diff --git a/configure.in b/configure.in index 0c4c47aa38..4292dfc92d 100644 --- a/configure.in +++ b/configure.in @@ -138,7 +138,7 @@ STEPMAKE_PATH_PROG(FONTFORGE, fontforge, REQUIRED, 20050624) AC_CHECK_HEADERS([assert.h grp.h libio.h pwd.h sys/stat.h wchar.h]) AC_LANG_PUSH(C++) -AC_CHECK_HEADERS([sstream]) +AC_CHECK_HEADERS([sstream boost/lambda/lambda.hpp]) AC_LANG_POP(C++) AC_HEADER_STAT AC_FUNC_MEMCMP diff --git a/flower/include/std-vector.hh b/flower/include/std-vector.hh index 5c2c09c9d0..1f391de20d 100644 --- a/flower/include/std-vector.hh +++ b/flower/include/std-vector.hh @@ -25,7 +25,7 @@ using namespace std; -#if HAVE_BOOST_LAMBDA +#if HAVE_BOOST_LAMBDA_LAMBDA_HPP #include #endif @@ -226,7 +226,7 @@ find (vector const &v, T const &key) return find (v.begin (), v.end (), key); } -#if HAVE_BOOST_LAMBDA +#if HAVE_BOOST_LAMBDA_LAMBDA_HPP #include using namespace boost::lambda; template -- 2.39.5