aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-15 14:49:01 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commite2b3a9366eaad23549ad8be9316872e48a9ac11b (patch)
treecf19f2f00e1eb2a92f68e0d68687fe354015d2f8 /configure
parentf571f3dd28a4b82973d26ff724edec60ad6ea845 (diff)
downloadscummvm-rg350-e2b3a9366eaad23549ad8be9316872e48a9ac11b.tar.gz
scummvm-rg350-e2b3a9366eaad23549ad8be9316872e48a9ac11b.tar.bz2
scummvm-rg350-e2b3a9366eaad23549ad8be9316872e48a9ac11b.zip
CONFIGURE: Add --with-sdlnet-prefix option
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 11 insertions, 3 deletions
diff --git a/configure b/configure
index 448da8ac16..fb24e1ee4f 100755
--- a/configure
+++ b/configure
@@ -1046,6 +1046,8 @@ Optional Libraries:
--with-sndio-prefix=DIR Prefix where sndio is installed (optional)
--disable-sndio disable sndio MIDI driver [autodetect]
+ --with-sdlnet-prefix=DIR Prefix where SDL_Net is
+ installed (optional)
--disable-sdlnet disable SDL_Net networking library [autodetect]
--disable-libcurl disable libcurl networking library [autodetect]
@@ -1241,6 +1243,11 @@ for ac_option in $@; do
LIBUNITY_CFLAGS="-I$arg/include"
LIBUNITY_LIBS="-L$arg/lib"
;;
+ --with-sdlnet-prefix=*)
+ arg=`echo $ac_option | cut -d '=' -f 2`
+ SDL_NET_CFLAGS="-I$arg/include"
+ SDL_NET_LIBS="-L$arg/lib"
+ ;;
--backend=*)
_backend=`echo $ac_option | cut -d '=' -f 2`
;;
@@ -4132,10 +4139,11 @@ if test "$_sdlnet" = auto ; then
#include "SDL/SDL_net.h"
int main(int argc, char *argv[]) { SDLNet_Init(); return 0; }
EOF
- cc_check $LIBS $INCLUDES -lSDL_net && _sdlnet=yes
+ cc_check $LIBS $INCLUDES $SDL_NET_CFLAGS $SDL_NET_LIBS -lSDL_net && _sdlnet=yes
fi
-if test "$_sdlnet" = yes ; then
- LIBS="$LIBS -lSDL_net"
+if test "$_sdlnet" = yes ; then
+ append_var LIBS "$SDL_NET_LIBS -lSDL_net"
+ append_var INCLUDES "$SDL_NET_CFLAGS"
fi
define_in_config_if_yes "$_sdlnet" 'USE_SDL_NET'
echo "$_sdlnet"