mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
examples: build silly joystick seek example only on linux
jsseek depends on linux headers and should therefore only be built on linux. Fixes #614764.
This commit is contained in:
parent
45b39fcfc1
commit
7d1c889956
2 changed files with 21 additions and 0 deletions
17
configure.ac
17
configure.ac
|
@ -297,6 +297,23 @@ PKG_CHECK_MODULES(QT, QtGui >= 4.6, [
|
||||||
AM_CONDITIONAL(HAVE_QT, test "x$HAVE_QT" = "xyes")
|
AM_CONDITIONAL(HAVE_QT, test "x$HAVE_QT" = "xyes")
|
||||||
AM_CONDITIONAL(HAVE_QT_GV, test "x$HAVE_QT_GV" = "xyes")
|
AM_CONDITIONAL(HAVE_QT_GV, test "x$HAVE_QT_GV" = "xyes")
|
||||||
|
|
||||||
|
dnl chck for linux headers needed by the joystick seek example
|
||||||
|
AC_COMPILE_IFELSE(
|
||||||
|
[
|
||||||
|
AC_LANG_PROGRAM([
|
||||||
|
#include <linux/input.h>
|
||||||
|
#include <linux/joystick.h>
|
||||||
|
],[
|
||||||
|
struct js_event js;
|
||||||
|
js.type = JS_EVENT_AXIS;
|
||||||
|
])
|
||||||
|
], [
|
||||||
|
HAVE_LINUX_JOYSTICK_HEADERS="yes"
|
||||||
|
], [
|
||||||
|
HAVE_LINUX_JOYSTICK_HEADERS="no"
|
||||||
|
])
|
||||||
|
AM_CONDITIONAL(HAVE_LINUX_JOYSTICK_HEADERS, test "x$HAVE_LINUX_JOYSTICK_HEADERS" = "xyes")
|
||||||
|
|
||||||
dnl *** set variables based on configure arguments ***
|
dnl *** set variables based on configure arguments ***
|
||||||
|
|
||||||
dnl set license and copyright notice
|
dnl set license and copyright notice
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
if HAVE_GTK_X11
|
if HAVE_GTK_X11
|
||||||
|
if HAVE_LINUX_JOYSTICK_HEADERS
|
||||||
GTK_EXAMPLES=seek scrubby jsseek
|
GTK_EXAMPLES=seek scrubby jsseek
|
||||||
|
else
|
||||||
|
GTK_EXAMPLES=seek scrubby
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
examples = $(GTK_EXAMPLES) stepping stepping2
|
examples = $(GTK_EXAMPLES) stepping stepping2
|
||||||
|
|
Loading…
Reference in a new issue