@@ -186,6 +186,7 @@ curses=""
docs=""
nptl=""
pthread=""
+sdl=""
vde=""
vnc_tls=""
vnc_sasl=""
@@ -222,7 +223,6 @@ kerneldir=""
aix="no"
blobs="yes"
fdt="yes"
-sdl="yes"
xen="yes"
pkgversion=""
@@ -430,6 +430,8 @@ for opt do
;;
--disable-sdl) sdl="no"
;;
+ --enable-sdl) sdl="yes"
+ ;;
--fmod-lib=*) fmod_lib="$optarg"
;;
--fmod-inc=*) fmod_inc="$optarg"
@@ -646,6 +648,7 @@ echo " --disable-sparse disable sparse checker (default)"
echo " --disable-strip disable stripping binaries"
echo " --disable-werror disable compilation abort on warning"
echo " --disable-sdl disable SDL"
+echo " --enable-sdl enable SDL"
echo " --enable-cocoa enable COCOA (Mac OS X only)"
echo " --audio-drv-list=LIST set audio drivers list:"
echo " Available drivers: $audio_possible_drivers"
@@ -908,8 +911,7 @@ fi
sdl_too_old=no
-if test "$sdl" = "yes" ; then
- sdl=no
+if test "$sdl" != "no" ; then
cat > $TMPC << EOF
#include <SDL.h>
#undef main /* We don't want SDL to override our main() */
@@ -940,6 +942,11 @@ EOF
sdl=no
fi
fi # static link
+ else # sdl not found
+ if test "$sdl" = "yes" ; then
+ feature_not_found "sdl"
+ fi
+ sdl=no
fi # sdl compile test
fi
Signed-off-by: Juan Quintela <quintela@redhat.com> --- configure | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-)