From 4681e58d7f3cda2a2ac6d05b6ec1a106f568e029 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 19 May 2012 19:32:40 -0500 Subject: Converted the Ledger build system to use CMake --- src/system.hh.in | 63 +++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 53 insertions(+), 10 deletions(-) (limited to 'src/system.hh.in') diff --git a/src/system.hh.in b/src/system.hh.in index fd019ba7..e81dfc00 100644 --- a/src/system.hh.in +++ b/src/system.hh.in @@ -41,7 +41,48 @@ * None of these header files (with the exception of acconf.h, when * configure is re-run) are expected to change. */ -#include "config.h" + +#ifndef _SYSTEM_HH +#define _SYSTEM_HH + +//#warning("Loading system.hh. This should occur only once!") + +/*------------------------------------------------------------------------*/ +/* Application configuration */ +/*------------------------------------------------------------------------*/ + +#define Ledger_VERSION_MAJOR @Ledger_VERSION_MAJOR@ +#define Ledger_VERSION_MINOR @Ledger_VERSION_MINOR@ +#define Ledger_VERSION_PATCH @Ledger_VERSION_PATCH@ +#define Ledger_VERSION_DATE @Ledger_VERSION_DATE@ + +#define HAVE_CXX11 @HAVE_CXX11@ + +#define HAVE_LANGINFO_H @HAVE_LANGINFO_H@ +#define HAVE_EDIT @HAVE_EDIT@ +#define HAVE_GETTEXT @HAVE_GETTEXT@ + +#define HAVE_ACCESS @HAVE_ACCESS@ +#define HAVE_REALPATH @HAVE_REALPATH@ +#define HAVE_GETPWUID @HAVE_GETPWUID@ +#define HAVE_GETPWNAM @HAVE_GETPWNAM@ +#define HAVE_ISATTY @HAVE_ISATTY@ + +#define HAVE_UNIX_PIPES @HAVE_UNIX_PIPES@ + +#define HAVE_BOOST_PYTHON @HAVE_BOOST_PYTHON@ +#define HAVE_BOOST_REGEX_UNICODE @HAVE_BOOST_REGEX_UNICODE@ +#define HAVE_BOOST_SERIALIZATION 0 + +#define DEBUG_MODE @DEBUG_MODE@ +#define NDEBUG @NDEBUG@ + +#define DOCUMENT_MODEL 0 +#define REDUCE_TO_INTEGER 0 + +/*------------------------------------------------------------------------*/ +/* System includes */ +/*------------------------------------------------------------------------*/ #if defined(__GNUG__) && __GNUG__ < 3 #define _XOPEN_SOURCE @@ -109,11 +150,11 @@ typedef std::ostream::pos_type ostream_pos_type; #else #include #endif -#if defined(HAVE_GETPWUID) || defined(HAVE_GETPWNAM) +#if HAVE_GETPWUID || HAVE_GETPWNAM #include #endif -#if defined(HAVE_UNIX_PIPES) +#if HAVE_UNIX_PIPES #include #include #endif @@ -123,7 +164,7 @@ typedef std::ostream::pos_type ostream_pos_type; #include "sha1.h" #include "utf8.h" -#if defined(HAVE_LIBEDIT) +#if HAVE_EDIT #include #endif @@ -147,7 +188,6 @@ typedef std::ostream::pos_type ostream_pos_type; #include #endif -#include #include #include @@ -155,6 +195,7 @@ typedef std::ostream::pos_type ostream_pos_type; #include #include +#include #include #include @@ -179,7 +220,7 @@ typedef std::ostream::pos_type ostream_pos_type; #include #include -#if defined(HAVE_BOOST_REGEX_UNICODE) +#if HAVE_BOOST_REGEX_UNICODE #include #else #include @@ -193,8 +234,8 @@ typedef std::ostream::pos_type ostream_pos_type; #include #include -#if defined(HAVE_GETTEXT) -#include "gettext.h" +#if HAVE_GETTEXT +#include #define _(str) gettext(str) #define _f(str) boost::format(gettext(str)) #else @@ -202,7 +243,7 @@ typedef std::ostream::pos_type ostream_pos_type; #define _f(str) boost::format(str) #endif -#if defined(HAVE_BOOST_SERIALIZATION) +#if HAVE_BOOST_SERIALIZATION #include #include @@ -282,7 +323,7 @@ void serialize(Archive& ar, istream_pos_type& pos, const unsigned int) #endif // HAVE_BOOST_SERIALIZATION -#if defined(HAVE_BOOST_PYTHON) +#if HAVE_BOOST_PYTHON #include @@ -296,3 +337,5 @@ void serialize(Archive& ar, istream_pos_type& pos, const unsigned int) #include #endif // HAVE_BOOST_PYTHON + +#endif // _SYSTEM_HH -- cgit v1.2.3