summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-04-18 20:22:14 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:32 -0400
commit1368952f4cf51a195e4432a68ece87cd90b38a8b (patch)
treec3dcc35cfd22017655d36f2fe416ebd8f9757851
parent9ec136db90058f7ceaac6a8b1ad2599b61319120 (diff)
downloadfork-ledger-1368952f4cf51a195e4432a68ece87cd90b38a8b.tar.gz
fork-ledger-1368952f4cf51a195e4432a68ece87cd90b38a8b.tar.bz2
fork-ledger-1368952f4cf51a195e4432a68ece87cd90b38a8b.zip
*** empty log message ***
-rwxr-xr-xacprep16
1 files changed, 11 insertions, 5 deletions
diff --git a/acprep b/acprep
index 631bf197..e85d212e 100755
--- a/acprep
+++ b/acprep
@@ -10,6 +10,7 @@ fi
aclocal
autoheader
if [ "$1" = "--dist" ]; then
+ shift 1
automake -a -c -f -i
else
automake -a -c -f
@@ -23,19 +24,24 @@ INCDIRS="$INCDIRS -Wno-long-double"
LIBDIRS="-L/sw/lib -L/usr/local/lib -L/sw/lib/python2.4/config"
if [ "$1" = "--debug" ]; then
+ shift 1
./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" \
- --enable-debug --enable-python
+ --enable-debug --enable-python "$@"
elif [ "$1" = "--opt" ]; then
+ shift 1
./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
- CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC"
+ CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC" "$@"
elif [ "$1" = "--flat-opt" ]; then
+ shift 1
./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
- CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450"
+ CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450" "$@"
elif [ "$1" = "--safe-opt" ]; then
+ shift 1
./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
- CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC -DDEBUG_LEVEL=1"
+ CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC -DDEBUG_LEVEL=1" "$@"
elif [ "$1" = "--perf" ]; then
- ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g -pg"
+ shift 1
+ ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g -pg" "$@"
fi
rm AUTHORS COPYING