cleanups in configure

This commit is contained in:
p.kosyh 2009-11-08 08:46:23 +00:00
parent 48d7e6fd29
commit 37aa933be5

View file

@ -64,15 +64,15 @@ int main(int argc, char **argv)
EOF
echo $cc
echo -n "Checking test build...("
echo -n $cc /tmp/sdl-test.c $ops `sdl-config --cflags` `sdl-config --libs` -lSDL_ttf -lSDL_mixer -lSDL_image
if ! $cc /tmp/sdl-test.c $ops `sdl-config --cflags` `sdl-config --libs` -lSDL_ttf -lSDL_mixer -lSDL_image; then
echo -n $cc /tmp/sdl-test.c $ops `sdl-config --cflags` `sdl-config --libs` -lSDL_ttf -lSDL_mixer -lSDL_image -o /tmp/sdl-test
if ! $cc /tmp/sdl-test.c $ops `sdl-config --cflags` `sdl-config --libs` -lSDL_ttf -lSDL_mixer -lSDL_image -o /tmp/sdl-test; then
echo ") failed".
echo "Please, check those dev packages installed: SDL_ttf SDL_mixer SDL_image."
rm /tmp/sdl-test.c
rm /tmp/sdl-test.c /tmp/sdl-test
exit 1
fi
echo ") ok"
rm /tmp/sdl-test.c
rm /tmp/sdl-test.c /tmp/sdl-test
if ! make clean >/dev/null 2>&1; then
echo " * Warning!!! Can not do make clean..."
fi