aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-11 15:52:20 +0200
committerAlexander Tkachev2016-08-24 16:05:07 +0600
commit52240c68c7301b941f51ea315994ee7e4665707b (patch)
tree04a30ae51d5aeacff5ffebb96ee3451722a1687b
parente4e2ec390d364770d16a3a478796c1b949e8645f (diff)
downloadscummvm-rg350-52240c68c7301b941f51ea315994ee7e4665707b.tar.gz
scummvm-rg350-52240c68c7301b941f51ea315994ee7e4665707b.tar.bz2
scummvm-rg350-52240c68c7301b941f51ea315994ee7e4665707b.zip
CONFIGURE: Added detection for SDL_net
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index e77351a99d..b663701562 100755
--- a/configure
+++ b/configure
@@ -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"