
* configure.ac: Here. Use boost.m4's features instead of duplicating them. Do not explictly look for the Boost Preprocessor (Boost.PP) Library, as we do not directly use it. --- ChangeLog | 9 +++++++++ configure.ac | 35 +++-------------------------------- 2 files changed, 12 insertions(+), 32 deletions(-) diff --git a/ChangeLog b/ChangeLog index 76dbf12..37071a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2010-10-21 Roland Levillain <roland@lrde.epita.fr> + Revamp the handling of Boost libraries. + + * configure.ac: Here. + Use boost.m4's features instead of duplicating them. + Do not explictly look for the Boost Preprocessor (Boost.PP) + Library, as we do not directly use it. + +2010-10-21 Roland Levillain <roland@lrde.epita.fr> + Revamp the handling of Magick++. * m4/oln-with-lib.m4 (_OLN_WITH_LIB): Make all arguments diff --git a/configure.ac b/configure.ac index 02cd8bd..de405e9 100644 --- a/configure.ac +++ b/configure.ac @@ -199,38 +199,10 @@ AM_CONDITIONAL([DARWIN], [echo "$host_os" | grep '^darwin']) ## Boost ## ## ----- ## -oln_have_boost_preprocessor=no -oln_have_boost_tuple=no - -if test "x$with_boost" != xno; then - # Is Boost installed? - BOOST_REQUIRE([], oln_have_boost=no) - - if test "x$oln_have_boost" != xno; then - - # Preprocessor - BOOST_FIND_HEADER([boost/preprocessor/repetition/repeat.hpp], - oln_have_boost_preprocessor=no, - oln_have_boost_preprocessor=yes) - if test "x$oln_have_boost_preprocessor" = xyes; then - AC_DEFINE([HAVE_BOOST_PREPROCESSOR], 1, - [Define to 1 if we can use Boost Preprocessor.]) - fi - - # Tuple - BOOST_FIND_HEADER([boost/tuple/tuple.hpp], - oln_have_boost_tuple=no, - oln_have_boost_tuple=yes) - if test "x$oln_have_boost_tuple" = xyes; then - AC_DEFINE([HAVE_BOOST_TUPLE], 1, - [Define to 1 if we can use Boost Tuple.]) - fi - fi -fi +BOOST_TUPLE +AM_CONDITIONAL([HAVE_BOOST_TUPLE], + [test "x$ac_cv_header_boost_tuple_tuple_hpp" = xyes]) -AM_CONDITIONAL([HAVE_BOOST_PREPROCESSOR], - [test "x$oln_have_boost_preprocessor" = xyes]) -AM_CONDITIONAL([HAVE_BOOST_TUPLE], [test "x$oln_have_boost_tuple" = xyes]) ## ---------------- ## @@ -669,7 +641,6 @@ Build system type: $build Option Enabled and available ------------------------------------------------------------------------------- -Boost Preprocessor --with-boost=@<:@=DIR@:>@ $oln_have_boost_preprocessor Boost Tuple --with-boost=@<:@=DIR@:>@ $oln_have_boost_tuple CFITSIO --with-cfitsio@<:@=DIR@:>@ $oln_have_cfitsio GDCM --with-gdcm@<:@=DIR@:>@ $oln_have_gdcm -- 1.5.6.5