mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r7799) -Fix (r7759): gracefully handle cases where the directory libz.a is in is given via --with-libz.
This commit is contained in:
parent
eee7138b16
commit
1e89d6e432
@ -1672,7 +1672,12 @@ detect_zlib() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Make sure it exists
|
# Make sure it exists
|
||||||
|
if [ -f "$zlib" ]
|
||||||
|
then
|
||||||
zlib=`ls $with_zlib 2>/dev/null`
|
zlib=`ls $with_zlib 2>/dev/null`
|
||||||
|
else
|
||||||
|
zlib=`ls $with_zlib/libz.a 2>/dev/null`
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$zlib" ]
|
if [ -z "$zlib" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user