changeset 558:30d9f61e9c0b

fixed sdl detection (showed outdated even if not detected)
author atmosfear
date Sat, 21 Apr 2001 12:26:29 +0000
parents e4aca0d51268
children 6fbd39309b87
files configure
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Apr 21 02:24:36 2001 +0000
+++ b/configure	Sat Apr 21 12:26:29 2001 +0000
@@ -399,11 +399,13 @@
 
 # Atmosfear: added SDL versioncheck and autodetect; removed warnings.
 _sdl=no
-if test `sdl-config --version | sed s/[=[:punct:]=]//g` -gt 116 ; then
-	$_cc $TMPC -o $TMPO -L/usr/lib/ -L/usr/local/lib/ -lSDL -lpthread &> /dev/null && _sdl=yes
-else
-	_sdl=outdated
-fi
+if $_cc $TMPC -o $TMPO -L/usr/lib/ -L/usr/local/lib/ -lSDL -lpthread &> /dev/null ; then
+	if test `sdl-config --version | sed s/[=[:punct:]=]//g` -gt 116 ; then
+		_sdl=yes
+	else
+		_sdl=outdated
+	fi
+fi	
 
 _termcap=no
 $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes