diff options
author | John Wiegley <johnw@newartisans.com> | 2008-05-07 02:01:57 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-05-07 03:40:52 -0400 |
commit | 7603e3f8f2d43a0dbaa2aaa8fc975261a6d21a6c (patch) | |
tree | 80809f19d18eae713c25813338d0063cb369e479 /acprep | |
parent | 67b257a44159ba447a01ce4c9d6c3b01f0e1bd1f (diff) | |
download | ledger-7603e3f8f2d43a0dbaa2aaa8fc975261a6d21a6c.tar.gz ledger-7603e3f8f2d43a0dbaa2aaa8fc975261a6d21a6c.tar.bz2 ledger-7603e3f8f2d43a0dbaa2aaa8fc975261a6d21a6c.zip |
Updated the build process in acprep and configure.in to run without issues,
and to work with the Buildbot.
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 55 |
1 files changed, 34 insertions, 21 deletions
@@ -1,47 +1,60 @@ #!/bin/sh +export AUTOCONF_VERSION=2.61 +export AUTOMAKE_VERSION=1.9 + touch AUTHORS COPYING -if which glibtoolize > /dev/null 2>&1; then - glibtoolize --automake -f -c -else - libtoolize --automake -f -c +cmd=$(which glibtoolize 2>&1) +if [ -x "$cmd" ]; then + export LIBTOOLIZE="$cmd" fi -aclocal -autoheader -if [ "$1" = "--dist" ]; then - shift 1 - automake -a -c -f -i +autoreconf --force --install + +HERE="$PWD" + +if [ ! "$1" = "--local" ]; then + if [ -d "$HOME/Products" ]; then + projdir="$HOME/Products/$(basename $HERE)" + if [ ! -d "$projdir" ]; then + mkdir -p "$projdir" + fi + cd "$projdir" || (echo "Cannot change to $projdir"; exit 1) + fi else - automake -a -c -f + shift 1 fi -autoconf -INCDIRS="-I/sw/include -I/sw/include/boost -I/usr/include/httpd/xml" -#INCDIRS="$INCDIRS -I/sw/include/libofx" -INCDIRS="$INCDIRS -I/usr/include/python2.3" +INCDIRS="-I/opt/local/include -I/usr/local/include -I/usr/include/httpd/xml" +INCDIRS="$INCDIRS -I/usr/include/python2.5" INCDIRS="$INCDIRS -Wno-long-double" -LIBDIRS="-L/sw/lib -L/usr/local/lib -L/usr/lib/python2.3/config" +LIBDIRS="-L/opt/local/lib -L/usr/local/lib" if [ "$1" = "--debug" ]; then shift 1 - ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" \ + $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" \ --enable-debug --enable-python "$@" elif [ "$1" = "--opt" ]; then shift 1 - ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \ + $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \ CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC" "$@" elif [ "$1" = "--flat-opt" ]; then shift 1 - ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \ + $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \ CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450" "$@" elif [ "$1" = "--safe-opt" ]; then shift 1 - ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \ + $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \ CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC -DDEBUG_LEVEL=1" "$@" elif [ "$1" = "--perf" ]; then shift 1 - ./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g -pg" "$@" + $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g -pg" "$@" +elif [ "$1" = "--python" ]; then + shift 1 + $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" \ + --enable-python "$@" +else + $HERE/configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" "$@" fi -rm AUTHORS COPYING +rm -f AUTHORS COPYING |