ledger/acprep
2004-08-29 03:23:55 -04:00

31 lines
726 B
Bash
Executable file

#!/bin/sh
libtoolize --automake -fc
aclocal
autoheader
touch AUTHORS ChangeLog
if [ "$1" = "--dist" ]; then
automake -acfi
else
automake -acf
fi
autoconf
INCDIRS="-I/sw/include -I/usr/include/httpd/xml -I/sw/include/python2.3"
INCDIRS="$INCDIRS -Wno-long-double"
LIBDIRS="-L/sw/lib"
if [ "$1" = "--debug" ]; then
./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
CXXFLAGS="-g" --enable-debug --disable-shared
elif [ "$1" = "--opt" ]; then
./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
CXXFLAGS="-fomit-frame-pointer -fastf -mcpu=7450 -fPIC" \
--enable-standalone
elif [ "$1" = "--perf" ]; then
./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g -pg"
fi
rm AUTHORS ChangeLog