Commit 1345a357 authored by Damien Fouilleul's avatar Damien Fouilleul

- configure.ac: only tests for Osso and Xdsp if X11 is available

parent ef7599ee
...@@ -5787,17 +5787,21 @@ fi ...@@ -5787,17 +5787,21 @@ fi
AC_LANG_POP(C++) AC_LANG_POP(C++)
AM_CONDITIONAL(BUILD_MOZILLA,${mozilla}) AM_CONDITIONAL(BUILD_MOZILLA,${mozilla})
dnl Tests for Osso and Xsp dnl Tests for Osso and Xsp
AC_CHECK_LIB(osso, osso_display_blanking_pause,[ if test "${enable_x11}" != "no" &&
(test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" ||
test "${enable_x11}" = "yes"); then
AC_CHECK_LIB(osso, osso_display_blanking_pause,[
PKG_CHECK_MODULES(GLIB2, glib-2.0, [ PKG_CHECK_MODULES(GLIB2, glib-2.0, [
VLC_ADD_CPPFLAGS([x11],[-DHAVE_OSSO ${DBUS_CFLAGS} ${GLIB2_CFLAGS}]) VLC_ADD_CPPFLAGS([x11],[-DHAVE_OSSO ${DBUS_CFLAGS} ${GLIB2_CFLAGS}])
VLC_ADD_LDFLAGS([x11],[-losso]) VLC_ADD_LDFLAGS([x11],[-losso])
]) ])
]) ])
AC_CHECK_LIB(Xsp, XSPSetPixelDoubling,[ AC_CHECK_LIB(Xsp, XSPSetPixelDoubling,[
VLC_ADD_CPPFLAGS([x11],[-DHAVE_XSP]) VLC_ADD_CPPFLAGS([x11],[-DHAVE_XSP])
VLC_ADD_LDFLAGS([x11],[-lXsp]) VLC_ADD_LDFLAGS([x11],[-lXsp])
]) ])
fi
dnl dnl
dnl Mediacontrol Python bindings dnl Mediacontrol Python bindings
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment