summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xacprep15
1 files changed, 6 insertions, 9 deletions
diff --git a/acprep b/acprep
index 138981db..7467cd42 100755
--- a/acprep
+++ b/acprep
@@ -25,11 +25,7 @@ autoreconf --force --install
SWITCHES="--disable-shared"
if [ -z "$PYTHON_HOME" ]; then
- if [ "$(which python)" = /opt/local/bin/python ]; then
- PYTHON_HOME="/opt/local"
- else
- PYTHON_HOME="/usr"
- fi
+ PYTHON_HOME="/usr"
fi
if [ -z "$PYTHON_VERSION" ]; then
PYTHON_VERSION="2.5"
@@ -288,10 +284,11 @@ fi
SWITCHES="$SWITCHES --with-boost-suffix=$BOOST_SUFFIX"
-"$HERE/configure" --srcdir="$HERE" \
- CXX="$CXX" CPPFLAGS="$CPPFLAGS" CXXFLAGS="$CXXFLAGS" \
- LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
- $SWITCHES
+PATH="$PYTHON_HOME/bin:$PATH" \
+ "$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.