summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2011-04-07 00:40:40 (GMT)
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2011-04-07 00:40:40 (GMT)
commit6cd9048cf96d54959ae052af5ac8a709e17d95da (patch)
treec5bdebdf7953201da6eb359592a38fa67fe7e323 /configure.ac
parent9c5863ad3548cec9064b1b3edf04ddded70f1846 (diff)
downloadgst-plugins-bad-6cd9048cf96d54959ae052af5ac8a709e17d95da.tar.gz
gst-plugins-bad-6cd9048cf96d54959ae052af5ac8a709e17d95da.tar.xz
shm: Fix MSG_NOSIGNAL check
Include sys/socket.h before checking for MSG_NOSIGNAL, also check that sys/socket.h before doing any other checks for shm
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index ade22e9..5fb1c3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -540,8 +540,15 @@ AG_GST_CHECK_FEATURE(QUICKTIME, [QuickTime wrapper], qtwrapper, [
dnl check for shm_open (for shm plugin)
translit(dnm, m, l) AM_CONDITIONAL(USE_SHM, true)
AG_GST_CHECK_FEATURE(SHM, [POSIX shared memory source and sink], shm, [
- AC_CHECK_LIB(rt, shm_open,
- AC_CHECK_DECL(MSG_NOSIGNAL, HAVE_SHM=yes, HAVE_SHM=no), HAVE_SHM=no)
+ if test "x$HAVE_SYS_SOCKET_H" = "xyes"; then
+ AC_CHECK_LIB([rt], [shm_open],
+ AC_CHECK_DECL([MSG_NOSIGNAL], HAVE_SHM=yes, HAVE_SHM=no, [
+#include <sys/socket.h>
+ ]),
+ HAVE_SHM=no)
+ else
+ HAVE_SHM=no
+ fi
])
dnl check for Video CD