From d4eaf172a79a306f6db3a8b79cfe71d132412946 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 12 Jun 2010 09:02:25 +0200 Subject: [PATCH] Avoid linking lldpd to libxml2 and lldpctl to libnetsnmp. AC_CHECK_LIB default action is to add the check library to LIBS. We don't want this. --- m4/snmp.m4 | 2 +- m4/xml2.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/snmp.m4 b/m4/snmp.m4 index 09c57add..369233a3 100644 --- a/m4/snmp.m4 +++ b/m4/snmp.m4 @@ -24,7 +24,7 @@ int main(void); ])],[AC_MSG_RESULT(yes)],[ AC_MSG_RESULT(no) AC_MSG_ERROR([*** incorrect CFLAGS from net-snmp-config])]) - AC_CHECK_LIB([netsnmp], [snmp_register_callback], [], + AC_CHECK_LIB([netsnmp], [snmp_register_callback], [:], [AC_MSG_ERROR([*** unable to use net-snmp])], ${NETSNMP_LIBS}) AC_SUBST([NETSNMP_LIBS]) AC_SUBST([NETSNMP_CFLAGS]) diff --git a/m4/xml2.m4 b/m4/xml2.m4 index 6da85613..9e8686f1 100644 --- a/m4/xml2.m4 +++ b/m4/xml2.m4 @@ -24,7 +24,7 @@ int main(void); ])],[AC_MSG_RESULT(yes)],[ AC_MSG_RESULT(no) AC_MSG_ERROR([*** incorrect CFLAGS from xml2-config])]) - AC_CHECK_LIB([xml2], [xmlNewTextWriterDoc], [], + AC_CHECK_LIB([xml2], [xmlNewTextWriterDoc], [:], [AC_MSG_ERROR([*** unable to use xml2])], ${XML2_LIBS}) AC_SUBST([XML2_LIBS]) AC_SUBST([XML2_CFLAGS]) -- 2.39.5