Only get -lrt when needed, from Pietro Cerutti.

This commit is contained in:
Nicholas Marriott 2011-07-19 01:35:33 +00:00
parent e5cee89727
commit 25eb48aea3

View File

@ -102,7 +102,7 @@ AM_CONDITIONAL(IS_GLIBC, test "x$found_glibc" = xyes)
AC_MSG_RESULT($found_glibc) AC_MSG_RESULT($found_glibc)
# Look for clock_gettime. Must come before event_init. # Look for clock_gettime. Must come before event_init.
AC_CHECK_LIB(rt, clock_gettime) AC_SEARCH_LIBS(clock_gettime, rt)
# Look for libevent. # Look for libevent.
AC_SEARCH_LIBS(event_init, [event event-1.4 event2], found_libevent=yes, found_libevent=no) AC_SEARCH_LIBS(event_init, [event event-1.4 event2], found_libevent=yes, found_libevent=no)