1 AC_DEFUN([LP_CHECK_ILBC],[
4 [ --with-ilbc Set prefix where ilbc headers and libs can be found (ex:/usr, /usr/local, none to disable ilbc support) [default=/usr] ],
5 [ ilbc_prefix=${withval}],[ ilbc_prefix="/usr" ])
7 if test "$ilbc_prefix" = "none" ; then
8 AC_MSG_NOTICE([iLBC codec support disabled. ])
10 ILBC_CFLAGS=" -I${ilbc_prefix}/include/ilbc"
11 ILBC_LIBS="-L${ilbc_prefix}/lib -lilbc -lm"
12 CPPFLAGS_save=$CPPFLAGS
16 AC_CHECK_HEADERS(iLBC_decode.h,[AC_CHECK_LIB(ilbc,iLBC_decode,ilbc_found=yes,ilbc_found=no)
19 CPPFLAGS=$CPPFLAGS_save
22 if test "$ilbc_found" = "no" ; then
23 AC_MSG_WARN([Could not find ilbc headers or libs. Please install ilbc package from http://www.linphone.org if you want iLBC codec support in linphone.])
27 AC_DEFINE(HAVE_ILBC,1,[Defined when we have ilbc codec lib])