X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconfigure;h=af5568c436c10b5aa7b1e800970ca42c0b26dd1e;hb=d0d02a8f3f96d1a032c880412e6b3459d07feb1b;hp=1c40facacd0619423153f1a7fb0f5679b20a80f9;hpb=661165812e3410fe2f6f49d7af882b36a0efcf82;p=melted diff --git a/src/modules/sdl/configure b/src/modules/sdl/configure index 1c40fac..af5568c 100755 --- a/src/modules/sdl/configure +++ b/src/modules/sdl/configure @@ -1,11 +1,27 @@ -#!/bin/bash +#!/bin/sh if [ "$help" != "1" ] then -cat << EOF >> ../consumers.dat -sdl 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