X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=configure.ac;h=b9ef96113cb98166fd4fe6a0dc37705d3308babb;hp=73436288c936336203f515e1b84a4925a7c0513e;hb=d4cc32c4dddb01081c49a67d13ab4a737cda0ed0;hpb=fd958eb99c09d819a51dd147db7c189366e9382a diff --git a/configure.ac b/configure.ac index 73436288..b9ef9611 100644 --- a/configure.ac +++ b/configure.ac @@ -4713,7 +4713,16 @@ if test "x$with_libqpid_proton" = "xyes"; then CPPFLAGS="$SAVE_CPPFLAGS" fi -# add library checks for function calls +if test "x$with_libqpid_proton" = "xyes"; then + SAVE_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $with_libqpid_proton_ldflags" + + AC_CHECK_LIB([qpid-proton], [pn_connection], + [with_libqpid_proton="yes"], + [with_libqpid_proton="no (Symbol 'pn_connection' not found)"]) + + LDFLAGS="$SAVE_LDFLAGS" +fi if test "x$with_libqpid_proton" = "xyes"; then BUILD_WITH_LIBQPIDPROTON_CPPFLAGS="$with_libqpid_proton_cppflags"