]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
enable passthrough build of g732_1 and g729 codecs
authorMichael Jerris <mike@jerris.com>
Mon, 2 Oct 2006 03:00:37 +0000 (03:00 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 2 Oct 2006 03:00:37 +0000 (03:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2934 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_g723_1/Makefile
src/mod/codecs/mod_g729/Makefile

index e8b6fbdbca1ff10111a10fe369994614e8524680..47c7c8a2a5a0eb3ef92da81b92ef14838297f8a4 100644 (file)
@@ -1,6 +1,13 @@
+ifeq ($(shell ls $(BASE)/libs/libg723_1),$(BASE)/libs/libg723_1)
+
 CFLAGS += -I$(PREFIX)/include/g723
 LDFLAGS +=-lg723
 
+else
+
+CFLAGS += -DG723_PASSTHROUGH
+endif
+
 all:   $(MODNAME).$(DYNAMIC_LIB_EXTEN)
 
 depends:
index 63ba4d4bddb4d3f2e0343213bfd9ae70c5f4b83e..ad8c52540cab678831d89b57a03a0f5d56441aee 100644 (file)
@@ -1,6 +1,14 @@
+ifeq ($(shell ls $(BASE)/libs/libg729),$(BASE)/libs/libg729)
+
 CFLAGS += -I$(PREFIX)/include/g729
 LDFLAGS +=-lg729
 
+else
+
+CFLAGS += -DG729_PASSTHROUGH
+
+endif
+
 all:   $(MODNAME).$(DYNAMIC_LIB_EXTEN)
 
 depends: