diff options
author | Eugene Sandulenko | 2016-05-11 15:52:20 +0200 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:05:07 +0600 |
commit | 52240c68c7301b941f51ea315994ee7e4665707b (patch) | |
tree | 04a30ae51d5aeacff5ffebb96ee3451722a1687b /configure | |
parent | e4e2ec390d364770d16a3a478796c1b949e8645f (diff) | |
download | scummvm-rg350-52240c68c7301b941f51ea315994ee7e4665707b.tar.gz scummvm-rg350-52240c68c7301b941f51ea315994ee7e4665707b.tar.bz2 scummvm-rg350-52240c68c7301b941f51ea315994ee7e4665707b.zip |
CONFIGURE: Added detection for SDL_net
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -117,6 +117,7 @@ done # # Default lib behavior yes/no/auto _vorbis=auto +_sdlnet=auto _tremor=auto _tremolo=no _flac=auto @@ -3677,6 +3678,24 @@ EOF cc_check -lm && append_var LIBS "-lm" # +# Check for SDL_Net +# +echocheck "SDL_Net" +if test "$_sdlnet" = auto ; then + _sdlnet=no + cat > $TMPC << EOF +#include "SDL/SDL_net.h" +int main(int argc, char *argv[]) { SDLNet_Init(); return 0; } +EOF + cc_check $LIBS $INCLUDES -lSDL_net && _sdlnet=yes +fi +if test "$_sdlnet" = yes ; then + LIBS="$LIBS -lSDL_net" +fi +define_in_config_if_yes "$_sdlnet" 'USE_SDL_NET' +echo "$_sdlnet" + +# # Check for Ogg Vorbis # echocheck "Ogg Vorbis" |