9
0
Fork 0

configure: We do not want to always link to -lsctp

The AC_CHECK_LIB is always setting the LIBS variable and this
will be used for every linker call. We do not want this.
This commit is contained in:
Holger Hans Peter Freyther 2011-01-25 12:26:59 +01:00
parent 8a96e474a2
commit 8b997bb456
1 changed files with 2 additions and 0 deletions

View File

@ -26,7 +26,9 @@ PKG_CHECK_MODULES([LIBOSMOSCCP], [libosmo-sccp])
PKG_CHECK_MODULES([LIBOSMOVTY], [libosmovty])
#PKG_CHECK_MODULES([NEXUSWARE_C7], [nexusware-c7])
old_libs=$LIBS
AC_CHECK_LIB([sctp], sctp_sendmsg, [], [AC_MSG_ERROR([The sctp library is required.])])
LIBS=$old_libs
AC_ARG_ENABLE([uniporte], [AS_HELP_STRING([--enable-uniporte], [Build with uniporte])],
[