diff options
author | atmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-21 12:26:29 +0000 |
---|---|---|
committer | atmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-21 12:26:29 +0000 |
commit | 9614ba33d6f15d162fe9eb6ec550894f2cca5bfd (patch) | |
tree | 88b5e82dce385be7abeee0f4c27f51c54068d05f | |
parent | 7f9753b1031700bee194fb5be045a13016a1e4e3 (diff) |
fixed sdl detection (showed outdated even if not detected)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@559 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -399,11 +399,13 @@ $_cc $TMPC -o $TMPO -lpthread &> /dev/null || \ # 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 |