From c7c010e2730833d94220a7b2bc7492731e8b5a7a Mon Sep 17 00:00:00 2001 From: x0x7 Date: Fri, 1 Jan 2016 04:20:55 -0500 Subject: [PATCH] If prefix set then high chance of libs being there If they are compiling to target an alternative directory there are likely dependencies to the same target. Test for PREFIX/lib and PREFIX/include to be sure. --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure b/configure index 405b51f..112756d 100755 --- a/configure +++ b/configure @@ -127,6 +127,14 @@ if [ -d "/Library/Developer/CommandLineTools/usr/lib" ]; then fi LIBDIRS="$LIBDIRS /lib /usr/lib /usr/local/lib /opt/local/lib" INCDIRS="/usr/include /usr/local/include /opt/include /opt/local/include" +if [ -n "$PREFIX" ]; then + if [ -d "$PREFIX/lib"]; then + LIBDIRS="$LIBDIRS $PREFIX/lib" + fi + if [ -d "$PREFIX/include"]; then + INCDIRS="$INCDIRS $PREFIX/include" + fi +fi STRIP="strip" echo