From 09134d6e81a3396041b8e582f810ad75e880bd74 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 12 Feb 2009 22:14:10 -0400 Subject: Added -I/sw/include to Fink to acprep users --- acprep | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/acprep b/acprep index a9b7012e..864b577f 100755 --- a/acprep +++ b/acprep @@ -47,19 +47,38 @@ do done -INCDIRS="-isystem /usr/local/include" -INCDIRS="$INCDIRS -isystem /opt/local/include" -INCDIRS="$INCDIRS -isystem /usr/local/include/boost-$BOOST_VERSION" -INCDIRS="$INCDIRS -isystem $PYTHON_HOME/include/python$PYTHON_VERSION" - - USE_GLIBCXX_DEBUG=true CXXFLAGS="" ARCHFLAGS="" -LDARCHFLAGS="" LDFLAGS="" -LIBDIRS="-L/usr/local/lib -L$PYTHON_HOME/lib -L/opt/local/lib" -LIBDIRS="$LIBDIRS -L$PYTHON_HOME/lib/python$PYTHON_VERSION/config" +LDARCHFLAGS="" + + +INCDIRS="" +for include in \ + /usr/local/include \ + /usr/local/include/boost-$BOOST_VERSION \ + $PYTHON_HOME/include/python$PYTHON_VERSION \ + /opt/local/include \ + /sw/include +do + if [ -d "$include" ]; then + INCDIRS="$INCDIRS -isystem $include" + fi +done + +LIBDIRS="" +for lib in \ + /usr/local/lib \ + $PYTHON_HOME/lib \ + $PYTHON_HOME/lib/python$PYTHON_VERSION/config \ + /opt/local/lib \ + /sw/lib +do + if [ -d "$lib" ]; then + LIBDIRS="$LIBDIRS -L$lib" + fi +done SYSTEM=$(uname -s) -- cgit v1.2.3