(svn r7799) -Fix (r7759): gracefully handle cases where the directory libz.a is in is given via --with-libz.
authorrubidium
Wed, 03 Jan 2007 16:36:36 +0000
changeset 5505 fa01ea67ac75
parent 5504 a6ef917aa095
child 5506 f4d43d3e432f
(svn r7799) -Fix (r7759): gracefully handle cases where the directory libz.a is in is given via --with-libz.
config.lib
--- a/config.lib	Wed Jan 03 14:42:08 2007 +0000
+++ b/config.lib	Wed Jan 03 16:36:36 2007 +0000
@@ -1672,7 +1672,12 @@
 		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" ]