configure.ac: check if -lrt is necessary for clock_gettime()

This commit is contained in:
Max Kellermann 2014-01-27 14:59:09 +01:00
parent 8ed9f779cd
commit 1451344221

View File

@ -159,6 +159,8 @@ dnl ---------------------------------------------------------------------------
dnl Header/Library Checks
dnl ---------------------------------------------------------------------------
AC_SEARCH_LIBS([clock_gettime], [rt])
AC_SEARCH_LIBS([syslog], [bsd socket inet],
[AC_DEFINE(HAVE_SYSLOG, 1, [Define if syslog() is available])])