summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-02 16:25:26 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-02 16:25:26 -0400
commitf857b33dadc54cc0d0fdbbfe8cbe4ad12c9d785c (patch)
tree5440939777b855e46f82340651190afd8894ff67
parent9c499f6db327d82d8cc4a5af757912b2787a8ff5 (diff)
downloadfork-ledger-f857b33dadc54cc0d0fdbbfe8cbe4ad12c9d785c.tar.gz
fork-ledger-f857b33dadc54cc0d0fdbbfe8cbe4ad12c9d785c.tar.bz2
fork-ledger-f857b33dadc54cc0d0fdbbfe8cbe4ad12c9d785c.zip
Attempt to "auto-discover" the user's Boost installation suffix.
-rwxr-xr-xacprep11
1 files changed, 11 insertions, 0 deletions
diff --git a/acprep b/acprep
index 4fc7c526..8055a268 100755
--- a/acprep
+++ b/acprep
@@ -28,6 +28,17 @@ if [ -z "$PYTHON_VERSION" ]; then
fi
BOOST_SUFFIX=""
+for lib in $(ls -1 /opt/local/lib/libboost_regex*.a \
+ /usr/local/lib/libboost_regex*.a 2> /dev/null \
+ | sort -r)
+do
+ lib=$(basename "$lib")
+ BOOST_SUFFIX=$(echo "$lib" | sed 's/libboost_regex-//' | sed 's/\.a//')
+ echo "Discovered Boost suffix: --boost $BOOST_SUFFIX"
+ BOOST_SUFFIX="-$BOOST_SUFFIX"
+ break
+done
+
BOOST_VERSION="1_37"
INCDIRS="-isystem /usr/local/include"