mirror of https://github.com/mpv-player/mpv
fixed sdl detection (showed outdated even if not detected)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@559 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7f9753b103
commit
9614ba33d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue