Changeset - r5505:d2063ca00441
[Not reviewed]
master
0 1 0
rubidium - 18 years ago 2007-01-03 16:36:36
rubidium@openttd.org
(svn r7799) -Fix (r7759): gracefully handle cases where the directory libz.a is in is given via --with-libz.
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1669,13 +1669,18 @@ detect_zlib() {
 

	
 
				exit 1
 
			fi
 
		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" ]
 
	then
 
		log 1 "checking zlib... not found"
 
		if [ "$with_zlib" = "2" ]
0 comments (0 inline, 0 general)