summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-05 20:56:20 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-05 20:56:20 +0300
commit102a7d4fe6e8874ad7dcdfe085a22b51de22999b (patch)
tree3dfdb542035ba1f6c871b6901461c81f11b1c6db /configure.ac
parent0ca79840f3497375591a43b38d520ada03dfb2dd (diff)
downloadmv-102a7d4fe6e8874ad7dcdfe085a22b51de22999b.tar.gz
mv-102a7d4fe6e8874ad7dcdfe085a22b51de22999b.tar.bz2
mv-102a7d4fe6e8874ad7dcdfe085a22b51de22999b.tar.xz
mv-102a7d4fe6e8874ad7dcdfe085a22b51de22999b.zip
add configure option --without-internalsdlgfx for not use emdedded sdl2gfx.
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac20
1 files changed, 14 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 367fa66cc..a52c94108 100755
--- a/configure.ac
+++ b/configure.ac
@@ -90,12 +90,6 @@ if test "x$with_sdl2" == "xyes"; then
AC_MSG_ERROR([ *** Unable to find SDL2_mixer library (http://www.libsdl.org/projects/SDL_mixer/)]))
-# disabled for now
-# AC_CHECK_LIB(SDL2_gfx, rotozoomSurfaceXY, ,
-# AC_MSG_ERROR([ *** Unable to find SDL2_gfx library (http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx)]))
-# AC_CHECK_HEADERS(SDL_rotozoom.h, ,)
-
-# using embedded sdl2gfx
AC_CHECK_LIB(SDL2_net, SDLNet_Init, ,
AC_MSG_ERROR([ *** Unable to find SDL2_net library]))
@@ -137,6 +131,20 @@ fi
AM_CONDITIONAL(USE_SDL2, test x$with_sdl2 = xyes)
+# Option to enable internal sdl-gfx for SDL2 (for now it enabled by default)
+AC_ARG_WITH(internalsdlgfx,[ --without-internalsdlgfx don't use internal sdlgfx (for SDL2 only) ] )
+if test "x$with_internalsdlgfx" == "xno"; then
+ with_internalsdlgfx=no
+
+ AC_CHECK_LIB(SDL2_gfx, rotozoomSurfaceXY, ,
+ AC_MSG_ERROR([ *** Unable to find SDL2_gfx library (http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx)]))
+ AC_CHECK_HEADERS(SDL_rotozoom.h, ,)
+else
+ with_internalsdlgfx=yes
+ AC_DEFINE(USE_INTERNALSDLGFX, 1, [Defines if ManaPlus should use internal sdlgfx2])
+fi
+AM_CONDITIONAL(USE_INTERNALSDLGFX, test x$with_internalsdlgfx = xyes)
+
# Search for *-config
AC_PATH_PROG(PKG_CONFIG, pkg-config)
AC_PATH_PROG(CURL_CONFIG, curl-config)