From 4cfba571f52aeccd302d83212890a461cb473860 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Thu, 8 May 2008 13:53:49 -0600 Subject: [PATCH] Links with libecap when building with eCAP support. TODO: Make libecap location configurable. --- configure.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index cb76c104f5..3dd6904efb 100644 --- a/configure.in +++ b/configure.in @@ -793,13 +793,21 @@ then eCAP support requires loadable modules. Please do not use --disable-loadable-modules with --enable-ecap.]); fi + + dnl eCAP support requires libecap + AC_CHECK_LIB([ecap], [main], + [ECAP_LIBS="-lecap"], + [AC_MSG_FAILURE([ + eCAP support requires libecap library, + but no usable library was found])] + ) fi AM_CONDITIONAL(USE_ECAP, test $use_ecap = yes) if test $use_ecap = yes; then AC_DEFINE(USE_ECAP,1,[Enable eCAP support]) - ECAP_LIBS="eCAP/libeCAP.la" + ECAP_LIBS="eCAP/libeCAP.la $ECAP_LIBS" use_adaptation=yes else AC_DEFINE(USE_ECAP,0,[Disable eCAP support]) -- 2.47.2