X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconfigure;h=af5568c436c10b5aa7b1e800970ca42c0b26dd1e;hb=40b169c095486ba1b868486eb98a47c41f36ce8c;hp=f4556a1f9eedddf5413ef0054e44088975c225fe;hpb=945a27e179cc4d1290b488a5b7cba466f06d009b;p=melted diff --git a/src/modules/sdl/configure b/src/modules/sdl/configure index f4556a1..af5568c 100755 --- a/src/modules/sdl/configure +++ b/src/modules/sdl/configure @@ -3,11 +3,25 @@ if [ "$help" != "1" ] then -cat << EOF >> ../consumers.dat -sdl libmltsdl.so -sdl_preview libmltsdl.so -sdl_still libmltsdl.so -EOF + sdl-config --version > /dev/null 2>&1 + disable_sdl=$? + + if [ "$disable_sdl" = "0" ] + then + echo > config.mak + image=`sdl-config --prefix`/include/SDL/SDL_image.h + echo "sdl libmltsdl$LIBSUF" >> ../consumers.dat + echo "sdl_preview libmltsdl$LIBSUF" >> ../consumers.dat + echo "sdl_still libmltsdl$LIBSUF" >> ../consumers.dat + if [ -f "$image" ] + then + echo "sdl_image libmltsdl$LIBSUF" >> ../producers.dat + echo "WITH_SDL_IMAGE=1" >> config.mak + fi + else + echo "- sdl development libs not found: disabling" + touch ../disable-sdl + fi fi