diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-10 08:13:36 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-10 08:13:36 -0400 |
commit | 5aa1f8b6249a4d6d933b9ce1b2c79011439a04c6 (patch) | |
tree | f1720ab10052373f5850b03137fa046b95f7e1da /tools | |
parent | 37009c0879ab674b12073692c0e63ff493deb236 (diff) | |
download | fork-ledger-5aa1f8b6249a4d6d933b9ce1b2c79011439a04c6.tar.gz fork-ledger-5aa1f8b6249a4d6d933b9ce1b2c79011439a04c6.tar.bz2 fork-ledger-5aa1f8b6249a4d6d933b9ce1b2c79011439a04c6.zip |
Disable --cache, and use of Boost.Serialization
This makes the --cache option meaningless, but it wasn't proving to be a
speed benefit anyway. Plus, Boost.Serialization slows down overall
build times by an order of magnitude, and can consume inordinate amounts
of memory during compilation.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/configure.ac | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/tools/configure.ac b/tools/configure.ac index c0a03249..7762b5ba 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -315,36 +315,38 @@ else fi # check for boost_serialization -AC_CACHE_CHECK( - [if boost_serialization is available], - [boost_serialization_cpplib_avail_cv_], - [boost_serialization_save_libs=$LIBS - LIBS="-lboost_serialization$BOOST_SUFFIX -lboost_system$BOOST_SUFFIX $LIBS" - AC_LANG_PUSH(C++) - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#include <boost/archive/binary_oarchive.hpp> - #include <iostream> - struct foo { - int a; - template<class Archive> - void serialize(Archive & ar, const unsigned int) { - ar & a; - } - };]], - [[boost::archive::binary_oarchive oa(std::cout); - foo x; - oa << x;]])], - [boost_serialization_cpplib_avail_cv_=true], - [boost_serialization_cpplib_avail_cv_=false]) - AC_LANG_POP - LIBS=$boost_serialization_save_libs]) - -if [test x$boost_serialization_cpplib_avail_cv_ = xtrue ]; then - AC_DEFINE([HAVE_BOOST_SERIALIZATION], [1], [Whether Boost.Serialization is available]) - LIBS="-lboost_serialization$BOOST_SUFFIX $LIBS" -fi -AM_CONDITIONAL(HAVE_BOOST_SERIALIZATION, test x$boost_serialization_cpplib_avail_cv_ = xtrue) +# AC_CACHE_CHECK( +# [if boost_serialization is available], +# [boost_serialization_cpplib_avail_cv_], +# [boost_serialization_save_libs=$LIBS +# LIBS="-lboost_serialization$BOOST_SUFFIX -lboost_system$BOOST_SUFFIX $LIBS" +# AC_LANG_PUSH(C++) +# AC_LINK_IFELSE( +# [AC_LANG_PROGRAM( +# [[#include <boost/archive/binary_oarchive.hpp> +# #include <iostream> +# struct foo { +# int a; +# template<class Archive> +# void serialize(Archive & ar, const unsigned int) { +# ar & a; +# } +# };]], +# [[boost::archive::binary_oarchive oa(std::cout); +# foo x; +# oa << x;]])], +# [boost_serialization_cpplib_avail_cv_=true], +# [boost_serialization_cpplib_avail_cv_=false]) +# AC_LANG_POP +# LIBS=$boost_serialization_save_libs]) +# +# if [test x$boost_serialization_cpplib_avail_cv_ = xtrue ]; then +# AC_DEFINE([HAVE_BOOST_SERIALIZATION], [1], [Whether Boost.Serialization is available]) +# LIBS="-lboost_serialization$BOOST_SUFFIX $LIBS" +# fi +# AM_CONDITIONAL(HAVE_BOOST_SERIALIZATION, test x$boost_serialization_cpplib_avail_cv_ = xtrue) + +AM_CONDITIONAL(HAVE_BOOST_SERIALIZATION, false) # check for Python if [ test x$python = xtrue ]; then |