From: Lars Op den Kamp Date: Thu, 6 Dec 2012 22:49:17 +0000 (+0100) Subject: search for clock_gettime instead of blindly linking rt X-Git-Tag: upstream/2.2.0~1^2~7^2~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=994bcb9764af0b26a256d99c05993836f816eb43;p=deb_libcec.git search for clock_gettime instead of blindly linking rt --- diff --git a/configure.ac b/configure.ac index c7b7b1b..9512a1e 100644 --- a/configure.ac +++ b/configure.ac @@ -116,7 +116,7 @@ AC_CHECK_FUNCS([dlopen dlclose dlsym]) case "${host}" in *-*-linux*) # for timeutils - LIBS="$LIBS -lrt" + AC_SEARCH_LIBS([clock_gettime], [rt]) ;; *-apple-darwin*) LIBS="$LIBS -framework CoreVideo -framework IOKit"