summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2011-07-20 03:16:25 +0000
committerBenny Prijono <bennylp@teluu.com>2011-07-20 03:16:25 +0000
commit53f26c0775ae2a685a21dc0318ec1a9934007326 (patch)
tree24099137eb54bd6ac4615cb03e54f7d037f2571a /aconfigure.ac
parente4f9b2c70f6144559a6ab43c3d6cbf41b41c0bbd (diff)
Fixed #1329: Added --with-sdl option in aconfigure script to specify alternate libSDL location
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3672 74dad513-b988-da41-8d7b-12977e46ad98
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
])