aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"