From 25eb48aea35d5b3daf111841efbe74ae3e0d69f5 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 19 Jul 2011 01:35:33 +0000 Subject: [PATCH] Only get -lrt when needed, from Pietro Cerutti. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b9ad0af5..ba00a790 100644 --- a/configure.ac +++ b/configure.ac @@ -102,7 +102,7 @@ AM_CONDITIONAL(IS_GLIBC, test "x$found_glibc" = xyes) AC_MSG_RESULT($found_glibc) # Look for clock_gettime. Must come before event_init. -AC_CHECK_LIB(rt, clock_gettime) +AC_SEARCH_LIBS(clock_gettime, rt) # Look for libevent. AC_SEARCH_LIBS(event_init, [event event-1.4 event2], found_libevent=yes, found_libevent=no)