summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2009-03-19 15:29:04 -0700
committerDavid Schleef <ds@schleef.org>2009-04-21 18:55:05 -0700
commitf5c083c89f4a3e9ea4955704f06b0e3c861a426c (patch)
treeb8d307646ab8e7ba7a8f4dad6edf970316777872 /m4
parentbc29123723f7fcd2eaa2a61644de1d6bcf6eab33 (diff)
sdl: Use SDL static-libs for conftest
Fixes: #573847. This fixes building with SDL on Windows. Signed-off-by: David Schleef <ds@schleef.org>
Diffstat (limited to 'm4')
-rw-r--r--m4/gst-sdl.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/gst-sdl.m4 b/m4/gst-sdl.m4
index cfc3196b5..6073b966f 100644
--- a/m4/gst-sdl.m4
+++ b/m4/gst-sdl.m4
@@ -51,6 +51,8 @@ AC_ARG_ENABLE(sdltest,
else
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
+ SDL_STATIC_LIBS=`$SDL_CONFIG $sdlconf_args --static-libs`
+
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
@@ -62,7 +64,7 @@ AC_ARG_ENABLE(sdltest,
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $SDL_CFLAGS"
- LIBS="$LIBS $SDL_LIBS"
+ LIBS="$LIBS $SDL_STATIC_LIBS"
dnl
dnl Now check if the installed SDL is sufficiently new. (Also sanity
dnl checks the results of sdl-config to some extent