Files
xen/tools/check/check_sdl
T
Ewan Mellor 7169017f84 Make the xenfb tools an optional part of the build, as they introduce new
dependencies (libvncserver and libsdl devel packages).  Enable them with
XENFB_TOOLS=y.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-02 16:39:53 +00:00

28 lines
396 B
Bash
Executable File

#!/bin/sh
# CHECK-BUILD CHECK-INSTALL
if [ ! "$XENFB_TOOLS" = "y" ]
then
echo -n "unused, "
exit 0
fi
RC=0
SDL_CONFIG="$(which sdl-config)"
if test -z ${SDL_CONFIG}; then
RC=1
else
${SDL_CONFIG} --libs 2>&1 > /dev/null
RC=$?
fi
if test $RC -ne 0; then
echo "FAILED"
echo " *** sdl-config is missing. "
echo " *** Please install libsdl-dev or sdl."
fi
exit $RC