mirror of https://github.com/OpenTTD/OpenTTD
(svn r7799) -Fix (r7759): gracefully handle cases where the directory libz.a is in is given via --with-libz.
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