summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.lib7
1 files changed, 6 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index 2f07b8736..7079364d2 100644
--- a/config.lib
+++ b/config.lib
@@ -1672,7 +1672,12 @@ detect_zlib() {
fi
else
# Make sure it exists
- zlib=`ls $with_zlib 2>/dev/null`
+ if [ -f "$zlib" ]
+ then
+ zlib=`ls $with_zlib 2>/dev/null`
+ else
+ zlib=`ls $with_zlib/libz.a 2>/dev/null`
+ fi
fi
if [ -z "$zlib" ]