From f857b33dadc54cc0d0fdbbfe8cbe4ad12c9d785c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 2 Feb 2009 16:25:26 -0400 Subject: Attempt to "auto-discover" the user's Boost installation suffix. --- acprep | 11 +++++++++++ 1 file changed, 11 insertions(+) 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" -- cgit v1.2.3