diff options
-rw-r--r-- | configure.ac | 8 | ||||
-rw-r--r-- | sys/v4l2/Makefile.am | 3 |
2 files changed, 10 insertions, 1 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 diff --git a/sys/v4l2/Makefile.am b/sys/v4l2/Makefile.am index 29a32ba67..4330da6e1 100644 --- a/sys/v4l2/Makefile.am +++ b/sys/v4l2/Makefile.am @@ -64,7 +64,8 @@ libgstvideo4linux2_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \ $(GST_LIBS) \ $(xv_libs) \ $(LIBV4L2_LIBS) \ - $(GUDEV_LIBS) + $(GUDEV_LIBS) \ + $(LIBRT) noinst_HEADERS = \ gstv4l2bufferpool.h \ |