mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Use pkg-config when checking for sdl.
This makes setting up for cross-compiling cleaner.
This commit is contained in:
parent
568b719c1b
commit
042cae29b1
1 changed files with 5 additions and 3 deletions
|
@ -4,9 +4,11 @@ AC_ARG_ENABLE(sdl,
|
|||
)
|
||||
|
||||
if test "x$enable_sdl" != xno; then
|
||||
AM_PATH_SDL(1.2.0,
|
||||
HAVE_SDL=yes,
|
||||
HAVE_SDL=no)
|
||||
if test "x$PKG_CONFIG" != "x"; then
|
||||
PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], HAVE_SDL=yes, HAVE_SDL=no)
|
||||
else
|
||||
AM_PATH_SDL(1.2.0, HAVE_SDL=yes, HAVE_SDL=no)
|
||||
fi
|
||||
if test "x$HAVE_SDL" = "xyes"; then
|
||||
case "$host_os" in
|
||||
mingw*)
|
||||
|
|
Loading…
Reference in a new issue