From 4d702db3f7a16c7aad20f799420c9a175194f722 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 26 Dec 2015 20:19:32 +0100 Subject: libsctp: Only define LIBSCTP_LIBS in case there is a lib --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cd91a6f..19f7d18 100644 --- a/configure.ac +++ b/configure.ac @@ -45,7 +45,9 @@ old_LIBS=$LIBS AC_SEARCH_LIBS([sctp_send], [sctp], [ AC_DEFINE(HAVE_LIBSCTP, 1, [Define 1 to enable SCTP support]) AC_SUBST(HAVE_LIBSCTP, [1]) - AC_SUBST(LIBSCTP_LIBS, [-l$ac_lib]) + if test -n "$ac_lib"; then + AC_SUBST(LIBSCTP_LIBS, [-l$ac_lib]) + fi ], [ AC_MSG_ERROR([sctp_send not found in searched libs])]) LIBS=$old_LIBS -- cgit v1.2.3