summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-13 04:13:35 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-13 04:13:35 -0400
commit431edefffd580e4ff76806eef58e407da7eebfbf (patch)
tree965a849b87e76adc64672bb39bc8c93624e6c65f /acprep
parente8df441c07582735fa5a53e79f75ab56d319a876 (diff)
downloadfork-ledger-431edefffd580e4ff76806eef58e407da7eebfbf.tar.gz
fork-ledger-431edefffd580e4ff76806eef58e407da7eebfbf.tar.bz2
fork-ledger-431edefffd580e4ff76806eef58e407da7eebfbf.zip
Use MacPort's Python if available.
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep15
1 files changed, 9 insertions, 6 deletions
diff --git a/acprep b/acprep
index 7467cd42..138981db 100755
--- a/acprep
+++ b/acprep
@@ -25,7 +25,11 @@ autoreconf --force --install
SWITCHES="--disable-shared"
if [ -z "$PYTHON_HOME" ]; then
- PYTHON_HOME="/usr"
+ if [ "$(which python)" = /opt/local/bin/python ]; then
+ PYTHON_HOME="/opt/local"
+ else
+ PYTHON_HOME="/usr"
+ fi
fi
if [ -z "$PYTHON_VERSION" ]; then
PYTHON_VERSION="2.5"
@@ -284,11 +288,10 @@ fi
SWITCHES="$SWITCHES --with-boost-suffix=$BOOST_SUFFIX"
-PATH="$PYTHON_HOME/bin:$PATH" \
- "$HERE/configure" --srcdir="$HERE" \
- CXX="$CXX" CPPFLAGS="$CPPFLAGS" CXXFLAGS="$CXXFLAGS" \
- LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
- $SWITCHES
+"$HERE/configure" --srcdir="$HERE" \
+ CXX="$CXX" CPPFLAGS="$CPPFLAGS" CXXFLAGS="$CXXFLAGS" \
+ LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
+ $SWITCHES
# Alter the Makefile so that it's not nearly so verbose. This makes errors
# and warnings much easier to spot.