AM_CONDITIONAL(ENABLE_SPEEXDSP, test "x$HAVE_SPEEXDSP" = xyes)
dnl Check for celt. Compile it only if a recent enough version is found
#LIBCELT_MIN_VERSION=0.7.1
# AC_ARG_WITH([celt],
# [AS_HELP_STRING([--without-celt],
# [disable support for celt codec])],
# [],
# [with_celt=yes])
# AS_IF([test "x$with_celt" != xno],
# [AC_CHECK_HEADER([celt/celt.h], , AC_MSG_FAILURE([Unable to find the libcelt headers (you may need to install the dev package). You may use --without-celt to compile without celt codec support.]))]
# [AC_CHECK_LIB([celt], [celt_decode_ctl],
# [],
# [AC_MSG_FAILURE([libcelt link test failed. You may use --without-celt to compile without celt codec support.])])
# ])
#AC_DEFINE([HAVE_CELT], test "x$with_celt" = "xyes", [Define if you have libcelt])
#AM_CONDITIONAL(BUILD_CELT, test "x$with_celt" = "xyes"
with_celt=no
# check for libcelt
AC_ARG_WITH([celt],
[AS_HELP_STRING([--without-celt],
[disable support for celt codec])],
[],
[with_celt=yes])
AS_IF([test "x$with_celt" != xno],
PKG_CHECK_MODULES(CELT, celt >= 0.9.1,
[
BUILD_CELT=91 ; with_celt=yes
],
[
PKG_CHECK_MODULES(CELT, celt >= 0.7.1)
BUILD_CELT=71;with_celt=yes
PKG_CHECK_MODULES(CELT, celt >= 0.7.1,,AC_MSG_FAILURE([libcelt link test failed. You may use --without-celt to compile without celt codec support.]))
BUILD_CELT=71;with_celt=yes;
])
)
AC_SUBST(BUILD_CELT)
AM_CONDITIONAL(BUILD_CELT, test "x$with_celt" = "xyes" )
AC_MSG_NOTICE([[Configuration done! Please make sure that pjsip library (libs/pjproject) has already been compiled. Run `make' to build the software.]])