From fa2477edb46dfbd455e6bed4b9f74b76e62af21a Mon Sep 17 00:00:00 2001 From: jehan monnier Date: Thu, 22 Oct 2009 22:14:27 +0200 Subject: [PATCH] debug libtool hack for wince build --- linphone/configure.in | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/linphone/configure.in b/linphone/configure.in index 9730803bc..ca8b8f40b 100644 --- a/linphone/configure.in +++ b/linphone/configure.in @@ -39,6 +39,7 @@ case $target_os in CFLAGS="$CFLAGS -D_WIN32_WCE" LIBS="$LIBS -lws2 -liphlpapi" mingw_found=yes + mingwce_found=yes ;; *mingw*) CFLAGS="$CFLAGS -DORTP_STATIC -D_WIN32_WINNT=0x0501" @@ -88,9 +89,15 @@ 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]) -LIBS="$LIBS -L/usr/lib -lintl" + if test "$mingwce_found" != "yes" ; then + AC_DEFINE(ENABLE_NLS,1,[Tells whether localisation is possible]) + AC_DEFINE(HAVE_GETTEXT,1,[Tells wheter localisation is possible]) + LIBS="$LIBS -L/usr/lib -lintl" + else + dnl gettext macro does not work properly under mingw. + AM_GNU_GETTEXT([external]) + LIBS="$LIBS $LIBINTL" + fi fi GETTEXT_PACKAGE=linphone