check through list of different sdl-configs, this should make fbsd work out of the box, still need to do an sdl code test though

svn-id: r8791
This commit is contained in:
Jonathan Gray 2003-07-06 06:21:17 +00:00
parent 580e9ec770
commit 5f3d4c3435

25
configure vendored
View file

@ -71,6 +71,27 @@ EOF
eval "$1 -o tmp_cxx_compiler tmp_cxx_compiler.cpp 2> /dev/null" && eval "./tmp_cxx_compiler 2> /dev/null" && rm -f tmp_cxx_compiler tmp_cxx_compiler.cpp
}
#
# Determine sdl-config
#
# TODO: small bit of code to test sdl useability
find_sdlconfig()
{
printf "Looking for sdl-config... "
sdlconfigs="$_sdlconfig sdl-config sdl11-config sdl12-config"
CXX=
for sdlconfig in $sdlconfigs; do
if test "-e $sdlconfig" ; then
_sdlconfig=$sdlconfig
echo $_sdlconfig
break
else
echo "none found!"
exit 1
fi
done
}
#
# Determine a data type with the given length
#
@ -428,19 +449,20 @@ echo
echo -n "Backend... "
echo "$_backend"
echo
#
# Backend related stuff
#
case $_backend in
sdl)
find_sdlconfig
INCLUDES="$INCLUDES `$_sdlconfig --cflags`"
LIBS="$LIBS `$_sdlconfig --libs`"
OBJS="$OBJS backends/sdl/sdl-common.o backends/sdl/sdl.o"
MODULES="$MODULES backends/sdl"
;;
sdlgl)
find_sdlconfig
INCLUDES="$INCLUDES `$_sdlconfig --cflags`"
LIBS="$LIBS `$_sdlconfig --libs` -lGL"
OBJS="$OBJS backends/sdl/sdl-common.o backends/sdl/sdl_gl.o"
@ -460,6 +482,7 @@ case $_backend in
;;
esac
echo
echo "Creating config.h"
cat > config.h << EOF
/* This file is automatically generated by configure */