mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +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
346a0df0b7
commit
98be57246e
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user