From 0460d0060381588d1ed0e1ffe1ce4aa4168f1443 Mon Sep 17 00:00:00 2001
From: smorlat <smorlat@3f6dc0c8-ddfe-455d-9043-3cd528dc4637>
Date: Tue, 1 Sep 2009 13:23:05 +0000
Subject: [PATCH] fix internationalization problem on mac os. add a README for
 macos compilation.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@616 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
---
 linphone/Makefile.am  |  2 +-
 linphone/README.macos | 29 +++++++++++++++++++++++++++++
 linphone/configure.in |  1 +
 3 files changed, 31 insertions(+), 1 deletion(-)
 create mode 100644 linphone/README.macos

diff --git a/linphone/Makefile.am b/linphone/Makefile.am
index a922a54604..74d2b79e65 100644
--- a/linphone/Makefile.am
+++ b/linphone/Makefile.am
@@ -1,7 +1,7 @@
 ## Process this file with automake to produce Makefile.in
 
 # let make re-run automake upon need
-ACLOCAL_AMFLAGS = -I m4
+ACLOCAL_AMFLAGS = -I m4 -I/opt/local/share/aclocal
 
 if EXTERNAL_ORTP
 ORTP_DIR =
diff --git a/linphone/README.macos b/linphone/README.macos
new file mode 100644
index 0000000000..dcaecfde81
--- /dev/null
+++ b/linphone/README.macos
@@ -0,0 +1,29 @@
+Compiling linphone on macos X
+
+This procedure works for audio, video still not fully supported.
+It was tested on macos X (leopard) on september 2009.
+
+Requirements:
+* xcode (for gcc)
+* the 'port' command to install various dependencies
+* svn or git checkout'd linphone tree.
+
+Steps:
+* install with the 'port install' command the following dependencies
+	- automake
+	- autoconf
+	- libtool
+	- intltool
+	- gtk2
+	- speex-dev
+* add /opt/local/bin to your PATH by editing (or creating) ~/.profile, logout and login again for changes to take effect
+
+* within linphone source directory, run ./autogen.sh
+* run 
+	./configure --prefix=/opt/local --disable-video --with-readline=none && make
+	(note: we disable readline for linphonec because it appears to hang at this time)
+* install to /opt/local
+	sudo make install 
+
+
+
diff --git a/linphone/configure.in b/linphone/configure.in
index 8a85cd2944..63489b5071 100644
--- a/linphone/configure.in
+++ b/linphone/configure.in
@@ -74,6 +74,7 @@ AC_DEFINE_UNQUOTED(LINPHONE_ALL_LANGS, "$ALL_LINGUAS", [All supported languages]
 if test "$mingw_found" != "yes" ; then
 dnl gettext macro does not work properly under mingw.
 AM_GNU_GETTEXT([external])
+LIBS="$LIBS $LIBINTL"
 else
 AC_DEFINE(ENABLE_NLS,1,[Tells whether localisation is possible])
 AC_DEFINE(HAVE_GETTEXT,1,[Tells wheter localisation is possible])
-- 
GitLab