diff options
-rwxr-xr-x | acprep (renamed from scripts/acprep) | 5 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | ledger.cc | 3 |
3 files changed, 8 insertions, 4 deletions
@@ -11,7 +11,10 @@ fi autoheader autoconf -if [ "$1" = "--gen" ]; then +if [ "$1" = "--debug" ]; then ./configure CPPFLAGS="-I/sw/include -I/usr/include/httpd/xml" \ LDFLAGS=-L/sw/lib CXXFLAGS="-g" --enable-debug +elif [ "$1" = "--opt" ]; then + ./configure CPPFLAGS="-I/sw/include -I/usr/include/httpd/xml" \ + LDFLAGS=-L/sw/lib CXXFLAGS="-O3 -fomit-frame-pointer" fi diff --git a/configure.ac b/configure.ac index 6ce08aeb..682cd261 100644 --- a/configure.ac +++ b/configure.ac @@ -2,8 +2,8 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -AC_INIT(ledger, 2.0, johnw@netartisans.com) -AM_INIT_AUTOMAKE(ledger, 2.0) +AC_INIT(ledger, 2.0b, johnw@netartisans.com) +AM_INIT_AUTOMAKE(ledger, 2.0b) AC_CONFIG_SRCDIR([main.cc]) AC_CONFIG_HEADER([acconf.h]) @@ -1,12 +1,13 @@ #include "ledger.h" #include "valexpr.h" #include "datetime.h" +#include "acconf.h" #include <fstream> namespace ledger { -const std::string version = "2.0b"; +const std::string version = PACKAGE_VERSION; bool transaction_t::valid() const { |