mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
tests: conditionally compile the streams example
Detect pthreads.h in configure.ac Only compile the streams example when pthreads.h is present. Fixes #585039
This commit is contained in:
parent
1769cc7297
commit
fbaa49faf4
2 changed files with 13 additions and 2 deletions
|
@ -305,6 +305,10 @@ AC_CHECK_HEADERS([sys/utsname.h])
|
|||
dnl Check for stdio_ext.f for __fbufsize
|
||||
AC_CHECK_HEADERS([stdio_ext.h])
|
||||
|
||||
dnl check for pthreads
|
||||
AC_CHECK_HEADERS([pthread.h], HAVE_PTHREAD_H=yes)
|
||||
AM_CONDITIONAL(HAVE_PTHREAD_H, test "x$HAVE_PTHREAD_H" = "xyes")
|
||||
|
||||
dnl Check for valgrind.h
|
||||
dnl separate from HAVE_VALGRIND because you can have the program, but not
|
||||
dnl the dev package
|
||||
|
|
|
@ -17,12 +17,18 @@ else
|
|||
ADAPTER_TEST_DIR =
|
||||
endif
|
||||
|
||||
# streams test needs pthreads
|
||||
if HAVE_PTHREAD_H
|
||||
STREAMS_TEST_DIR = streams
|
||||
else
|
||||
STREAMS_TEST_DIR =
|
||||
endif
|
||||
|
||||
always_dirs = \
|
||||
controller \
|
||||
helloworld \
|
||||
manual \
|
||||
metadata \
|
||||
streams \
|
||||
queue \
|
||||
stepping
|
||||
|
||||
|
@ -45,7 +51,8 @@ always_dirs = \
|
|||
SUBDIRS = \
|
||||
$(always_dirs) \
|
||||
$(ADAPTER_TEST_DIR) \
|
||||
$(STREAMS_TEST_DIR) \
|
||||
$(GST_PARSE_DIRS) \
|
||||
$(GST_LOADSAVE_DIRS)
|
||||
|
||||
DIST_SUBDIRS = $(always_dirs) adapter xml typefind launch
|
||||
DIST_SUBDIRS = $(always_dirs) adapter streams xml typefind launch
|
||||
|
|
Loading…
Reference in a new issue