From 2f13e2e8c84f65d698830b7bc28591438b7176d5 Mon Sep 17 00:00:00 2001 From: Michael Steinert Date: Wed, 23 May 2012 09:16:44 -0600 Subject: Fix check for Popt AC_SEARCH_LIBS was adding `-lpopt` to the LIBS variable, resulting in librabbitmq.so being linked with Popt. Switching to AC_CHECK_LIB fixes the problem. Signed-off-by: Michael Steinert --- m4/popt.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m4/popt.m4 b/m4/popt.m4 index c5b79d8..55f4162 100644 --- a/m4/popt.m4 +++ b/m4/popt.m4 @@ -38,9 +38,9 @@ AC_CHECK_HEADERS([popt.h], [_ax_popt_h=yes],, [$POPT_CFLAGS]) AS_IF([test "x$POPT_LIBS" = "x"], - [AC_SEARCH_LIBS([poptGetContext], [popt], - [POPT_LIBS=-lpopt - _ax_popt_lib=yes])], + [AC_CHECK_LIB([popt], [poptGetContext], + [POPT_LIBS=-lpopt + _ax_popt_lib=yes])], [_ax_popt_cflags=$CFLAGS CFLAGS="$POPT_CFLAGS $CFLAGS" _ax_popt_ldflags=$LDFLAGS -- cgit v1.2.1