]> git.wh0rd.org - patches.git/blobdiff - warzone-configure-enable.patch
more random patches. who knows.
[patches.git] / warzone-configure-enable.patch
diff --git a/warzone-configure-enable.patch b/warzone-configure-enable.patch
new file mode 100644 (file)
index 0000000..6e125d9
--- /dev/null
@@ -0,0 +1,50 @@
+--- warzone-2.0.3/configure.ac
++++ warzone-2.0.3/configure.ac
+@@ -50,29 +50,29 @@
+   AC_MSG_RESULT([no])
+ fi
+-#   --without-opengl will build without opengl
++#   --disable-opengl will build without opengl
+ # OpenGL is not anymore an option
+ # At least till we got a working software renderer
+-#AC_ARG_WITH(opengl,
+-#[  --with-opengl           use OpenGL to accelerate graphics [[auto]]],
+-#[ opengl=$withval ], [ opengl=maybe ])
++#AC_ARG_ENABLE(opengl,
++#[AC_HELP_STRING([--enable-opengl],[use OpenGL to accelerate graphics [auto]])],
++#[ opengl=$enableval ], [ opengl=maybe ])
+-#   --without-openal will build without OpenAL
++#   --disable-openal will build without OpenAL
+ # Commented out as OpenAL is not curently an option,
+ # but it will need to become optional someday.
+-#AC_ARG_WITH(openal,
+-#[  --with-openal           use OpenAL for sound [[auto]]],
+-#[ openal=$withval ], [ openal=maybe ])
+-
+-#   --without-ogg will build without Ogg vorbis support
+-AC_ARG_WITH(ogg,
+-[  --with-ogg              built support for Ogg files [[auto]]],
+-[ ogg=$withval ], [ ogg=maybe ])
+-
+-#   --without-mp3 will build without MP3 support
+-AC_ARG_WITH(mp3,
+-[  --with-mp3              built support for Mp3 files [[auto]]],
+-[ mp3=$withval ], [ mp3=maybe ])
++#AC_ARG_ENABLE(openal,
++#[AC_HELP_STRING([--enable-openal],[use OpenAL for sound [auto]])],
++#[ openal=$enableval ], [ openal=maybe ])
++
++#   --disable-ogg will build without Ogg vorbis support
++AC_ARG_ENABLE(ogg,
++[AC_HELP_STRING([--enable-ogg],[built support for Ogg files [auto]])],
++[ ogg=$enableval ], [ ogg=maybe ])
++
++#   --disable-mp3 will build without MP3 support
++AC_ARG_ENABLE(mp3,
++[AC_HELP_STRING([--enable-mp3],[built support for Mp3 files [auto]])],
++[ mp3=$enableval ], [ mp3=maybe ])
+ # windows conditional
+ case $host_os in