From d60bfe0b251b3313d62f77176e8406526cfec592 Mon Sep 17 00:00:00 2001
From: Alexandre Bourget <alexandre.bourget@savoirfairelinux.com>
Date: Thu, 30 Aug 2007 11:46:07 -0400
Subject: [PATCH] Fix build of libiax2. We will now distribute it with SFLphone

Since there are multiple versions and that the official site isn't maintained,
we took the iaxclient version and merged it in here. We'll try to keep in sync
with those repos, and maybe we could host an updated version, or contact
upstream to ask them to merge the newer code.
---
 libs/README.libiax2          | 31 ++++++++++++++++++++++++++++++-
 libs/libiax2/src/Makefile.am |  3 ++-
 2 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/libs/README.libiax2 b/libs/README.libiax2
index ad57e63f75..5b7d0634e8 100644
--- a/libs/README.libiax2
+++ b/libs/README.libiax2
@@ -1,4 +1,33 @@
-Taken and merged from:
+Taken and merged from
+=====================
+
 
 https://iaxclient.svn.sourceforge.net/svnroot/iaxclient/trunk/
    `-> lib/libiax2
+
+
+Official SVN
+============
+
+The official SVN (browse + repos) is:
+
+  http://svncommunity.digium.com/
+
+but it seems unmaintained, and is behind the iaxclient's version.
+
+
+Internet Draft for IAX2 protocol
+================================
+
+http://tools.ietf.org/id/draft-guy-iax-03.txt
+
+
+Compilation and installation
+============================
+
+Run:
+-------------------------
+./gen.sh
+./configure --prefix=/usr
+make
+-------------------------
\ No newline at end of file
diff --git a/libs/libiax2/src/Makefile.am b/libs/libiax2/src/Makefile.am
index ac02c622ae..e2bb07fd63 100644
--- a/libs/libiax2/src/Makefile.am
+++ b/libs/libiax2/src/Makefile.am
@@ -1,7 +1,8 @@
 AM_CFLAGS = -Wall -O2
 AM_CFLAGS += -g -Wall -Wstrict-prototypes -I .
-AM_CFLAGS += -DDEBUG_SUPPORT -DLIBIAX
+AM_CFLAGS += -DLIBIAX
 AM_CFLAGS += -fsigned-char
+# -DDEBUG_SUPPORT (doesn't compile with it)
 # -DDEBUG_DEFAULT 
 AM_CFLAGS += $(UCFLAGS)
 
-- 
GitLab