summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xacprep (renamed from scripts/acprep)5
-rw-r--r--configure.ac4
-rw-r--r--ledger.cc3
3 files changed, 8 insertions, 4 deletions
diff --git a/scripts/acprep b/acprep
index 71e3a415..ac68b52b 100755
--- a/scripts/acprep
+++ b/acprep
@@ -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])
diff --git a/ledger.cc b/ledger.cc
index a5b0f51a..91b1985c 100644
--- a/ledger.cc
+++ b/ledger.cc
@@ -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
{