summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac22
1 files changed, 18 insertions, 4 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index 15eaac9b..9c802ec4 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -759,6 +759,14 @@ AC_ARG_ENABLE(libsamplerate,
AC_MSG_RESULT([Skipping libsamplerate detection])
)
+dnl # SDL alt prefix
+AC_ARG_WITH(sdl,
+ AC_HELP_STRING([--with-sdl=DIR],
+ [Specify alternate libSDL prefix]),
+ [],
+ [with_sdl=no]
+ )
+
dnl # SDL
AC_ARG_ENABLE(sdl,
AC_HELP_STRING([--disable-sdl],
@@ -769,13 +777,19 @@ AC_ARG_ENABLE(sdl,
fi
],
[
+ SDL_CONFIG="sdl-config"
+ if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
+ SDL_CONFIG=$with_sdl/bin/sdl-config
+ AC_MSG_RESULT([Using SDL prefix... $with_sdl])
+ fi
+
AC_MSG_CHECKING([SDL availability..])
- if sdl-config --version; then
- AC_SUBST(ac_sdl_cflags)
+ if $SDL_CONFIG --version; then
+ AC_SUBST(ac_sdl_cflags)
AC_SUBST(ac_sdl_ldflags)
- ac_sdl_cflags=`sdl-config --cflags`
+ ac_sdl_cflags=`$SDL_CONFIG --cflags`
ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
- ac_sdl_ldflags=`sdl-config --libs`
+ ac_sdl_ldflags=`$SDL_CONFIG --libs`
LIBS="$LIBS $ac_sdl_ldflags"
fi
])