summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorMichael Steinert <mike.steinert@gmail.com>2012-05-23 09:16:44 -0600
committerMichael Steinert <mike.steinert@gmail.com>2012-05-23 09:16:44 -0600
commit2f13e2e8c84f65d698830b7bc28591438b7176d5 (patch)
tree73a74952744161bbee3da86690a2ce05d03410b8 /m4
parent9a5fb47728e1281edafab5a95023c362138092a2 (diff)
downloadrabbitmq-c-github-ask-2f13e2e8c84f65d698830b7bc28591438b7176d5.tar.gz
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 <mike.steinert@gmail.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/popt.m46
1 files 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