librt fix

This commit is contained in:
Alexander Skovpen
2014-06-10 23:27:06 +04:00
parent 4a8d737bdf
commit 19866b8def
5 changed files with 920 additions and 483 deletions
+2 -1
View File
@@ -140,6 +140,7 @@ AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(mkdir mktime select socket strspn strcasecmp mkstemp)
AC_CHECK_FUNCS(rename statfs statvfs setproctitle)
AC_CHECK_FUNCS([clock_gettime], [CLOCK_LIB=],[AC_CHECK_LIB([rt], [clock_gettime], [CLOCK_LIB=-lrt])])
AC_SUBST([CLOCK_LIB])
AC_OUTPUT(Makefile)
AC_OUTPUT(../debian/Makefile)