blob: 044f7c2d761880966abe9512284853c5bf207bc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
Index: noatun-plugins/configure.in.in
===================================================================
--- noatun-plugins/configure.in.in (revision 428268)
+++ noatun-plugins/configure.in.in (working copy)
@@ -173,14 +173,20 @@
noatun_sdl=no
dnl Check for SDL
dnl require SDL 1.2 just because it's the new stable version, and it's what I have
-NOATUN_PATH_SDL(
-[1.2.0],
-[
-noatun_sdl=yes
-],
-[
-]
-)
+
+AC_ARG_WITH(sdl,
+ [AS_HELP_STRING(--with-sdl,
+ [enable SDL Noatun plugins @<:@default=check@:>@])],
+ [], with_sdl=check)
+
+if test "x$with_sdl" != xno; then
+ NOATUN_PATH_SDL([1.2.0], [noatun_sdl=yes], [])
+
+ if test "x$with_sdl" != xcheck && test "x$noatun_sdl" != xyes; then
+ AC_MSG_FAILURE([--with-sdl was given, but test for SDL failed])
+ fi
+fi
+
AM_CONDITIONAL(include_SDL, test "$noatun_sdl" = yes)
AC_CHECK_HEADERS(endian.h)
|