# HG changeset patch # User rubidium # Date 2007-01-03 16:36:36 # Node ID d2063ca00441669103ec363f57e7e839fb236a1b # Parent 67ef109ae5e8f35aeaf8115099c34cf33664dc7f (svn r7799) -Fix (r7759): gracefully handle cases where the directory libz.a is in is given via --with-libz. diff --git a/config.lib b/config.lib --- 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" ]