Skip to content
Snippets Groups Projects
Commit a9f04433 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

configure --without-speex done

If the flag --without-speex is passed to configure, you dont need libspeex-dev package
parent 5458144d
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,12 @@ sflcodecdir = $(libdir)/sflphone/codecs ...@@ -2,6 +2,12 @@ sflcodecdir = $(libdir)/sflphone/codecs
noinst_LTLIBRARIES = libaudio.la noinst_LTLIBRARIES = libaudio.la
if BUILD_SPEEX
SPEEX_FLAG = -DBUILD_SPEEX
else
SPEEX_FLAG =
endif
SUBDIRS = codecs SUBDIRS = codecs
libaudio_la_SOURCES = audiofile.cpp tonelist.cpp \ libaudio_la_SOURCES = audiofile.cpp tonelist.cpp \
...@@ -10,8 +16,7 @@ tonegenerator.cpp codecDescriptor.cpp \ ...@@ -10,8 +16,7 @@ tonegenerator.cpp codecDescriptor.cpp \
audioloop.cpp ringbuffer.cpp $(SPEEX_SOURCES_CPP) audioloop.cpp ringbuffer.cpp $(SPEEX_SOURCES_CPP)
AM_CXXFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libs $(libccext2_CFLAGS) $(libdbuscpp_CFLAGS) $(libccrtp1_CFLAGS) $(USER_INCLUDES) \ AM_CXXFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libs $(libccext2_CFLAGS) $(libdbuscpp_CFLAGS) $(libccrtp1_CFLAGS) $(USER_INCLUDES) \
-DCODECS_DIR=\""$(sflcodecdir)"\" -DCODECS_DIR=\""$(sflcodecdir)"\" $(SPEEX_FLAG)
libaudio_la_CPPFLAGS = $(SPEEX_FLAG)
noinst_HEADERS = audioloop.h common.h ringbuffer.h audiofile.h \ noinst_HEADERS = audioloop.h common.h ringbuffer.h audiofile.h \
tonelist.h audiortp.h audiolayer.h audiodevice.h \ tonelist.h audiortp.h audiolayer.h audiodevice.h \
......
...@@ -283,6 +283,14 @@ CodecDescriptor::seemsValid( std::string lib) ...@@ -283,6 +283,14 @@ CodecDescriptor::seemsValid( std::string lib)
std::string begin = SFL_CODEC_VALID_PREFIX; std::string begin = SFL_CODEC_VALID_PREFIX;
std::string end = SFL_CODEC_VALID_EXTEN; std::string end = SFL_CODEC_VALID_EXTEN;
#ifdef BUILD_SPEEX
// Nothing special
#else
std::string speex = "speex";
if( lib.substr(begin.length() , lib.length() - begin.length() - end.length()) == speex)
return false;
#endif
if(lib.substr(0, begin.length()) == begin) if(lib.substr(0, begin.length()) == begin)
if(lib.substr(lib.length() - end.length() , end.length() ) == end) if(lib.substr(lib.length() - end.length() , end.length() ) == end)
return true; return true;
......
...@@ -1122,7 +1122,6 @@ ManagerImpl::retrieveActiveCodecs() ...@@ -1122,7 +1122,6 @@ ManagerImpl::retrieveActiveCodecs()
tokenizer tokens(s, slash); tokenizer tokens(s, slash);
for(tokenizer::iterator tok_iter = tokens.begin(); tok_iter!= tokens.end(); ++tok_iter) for(tokenizer::iterator tok_iter = tokens.begin(); tok_iter!= tokens.end(); ++tok_iter)
{ {
printf("%s\n", (*tok_iter).c_str());
order.push_back(*tok_iter); order.push_back(*tok_iter);
} }
return order; return order;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment