提交 c4198157 编写于 作者: J Juan Quintela 提交者: Anthony Liguori

Add sdl to new feature convention

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 a25dba17
...@@ -183,6 +183,7 @@ curl="" ...@@ -183,6 +183,7 @@ curl=""
curses="" curses=""
docs="" docs=""
nptl="" nptl=""
sdl=""
vde="" vde=""
vnc_tls="" vnc_tls=""
vnc_sasl="" vnc_sasl=""
...@@ -217,7 +218,6 @@ kerneldir="" ...@@ -217,7 +218,6 @@ kerneldir=""
aix="no" aix="no"
blobs="yes" blobs="yes"
fdt="yes" fdt="yes"
sdl="yes"
xen="yes" xen="yes"
pkgversion="" pkgversion=""
...@@ -407,6 +407,8 @@ for opt do ...@@ -407,6 +407,8 @@ for opt do
;; ;;
--disable-sdl) sdl="no" --disable-sdl) sdl="no"
;; ;;
--enable-sdl) sdl="yes"
;;
--fmod-lib=*) fmod_lib="$optarg" --fmod-lib=*) fmod_lib="$optarg"
;; ;;
--fmod-inc=*) fmod_inc="$optarg" --fmod-inc=*) fmod_inc="$optarg"
...@@ -618,6 +620,7 @@ echo " --disable-sparse disable sparse checker (default)" ...@@ -618,6 +620,7 @@ echo " --disable-sparse disable sparse checker (default)"
echo " --disable-strip disable stripping binaries" echo " --disable-strip disable stripping binaries"
echo " --disable-werror disable compilation abort on warning" echo " --disable-werror disable compilation abort on warning"
echo " --disable-sdl disable SDL" echo " --disable-sdl disable SDL"
echo " --enable-sdl enable SDL"
echo " --enable-cocoa enable COCOA (Mac OS X only)" echo " --enable-cocoa enable COCOA (Mac OS X only)"
echo " --audio-drv-list=LIST set audio drivers list:" echo " --audio-drv-list=LIST set audio drivers list:"
echo " Available drivers: $audio_possible_drivers" echo " Available drivers: $audio_possible_drivers"
...@@ -879,8 +882,7 @@ fi ...@@ -879,8 +882,7 @@ fi
sdl_too_old=no sdl_too_old=no
if test "$sdl" = "yes" ; then if test "$sdl" != "no" ; then
sdl=no
cat > $TMPC << EOF cat > $TMPC << EOF
#include <SDL.h> #include <SDL.h>
#undef main /* We don't want SDL to override our main() */ #undef main /* We don't want SDL to override our main() */
...@@ -911,6 +913,11 @@ EOF ...@@ -911,6 +913,11 @@ EOF
sdl=no sdl=no
fi fi
fi # static link fi # static link
else # sdl not found
if test "$sdl" = "yes" ; then
feature_not_found "sdl"
fi
sdl=no
fi # sdl compile test fi # sdl compile test
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册