Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-12-01 00:37:47 +0400
committerTim-Philipp Müller <tim@centricular.net>2012-12-01 03:18:12 +0400
commit527c21853352ff3c9c26edf508cc2395410c7817 (patch)
treed842b68b09b4bdb8724665973c0d4d4ee73395d7 /configure.ac
parent81b9e197df07e300daa754f652086f45c7b6395d (diff)
v4l2src: link against -lrt for clock_gettime()
Need to explicitly link against -lrt for clock_gettime(), which we don't get in the libs any more, because core moved the gmodule-no-export-2.0 bit into Requires.Private. Not required for newer glibc, but for older ones, so check for that.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b649023ef..db3b1a73b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -134,6 +134,14 @@ dnl check for libm, for sin()
LT_LIB_M
AC_SUBST(LIBM)
+AC_CHECK_FUNCS(clock_gettime, [], [
+ AC_CHECK_LIB(rt, clock_gettime, [
+ AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
+ LIBRT="-lrt"
+ AC_SUBST([LIBRT])
+ ])
+])
+
dnl *** checks for header files ***
dnl check if we have ANSI C header files