From b62a44279fdf346e57df3cba0a894a513e07dd42 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Mon, 6 Jun 2011 16:40:14 +0000 Subject: [PATCH] make gettext optional some problem might arise like undef symbols if they are not guarded correctly (like in alarm, see next commit) SVN revision: 59994 --- Makefile.am | 8 +++++++- configure.ac | 14 ++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 03a1939..3d32196 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,13 @@ MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess config.h.in \ config.sub configure depcomp install-sh ltmain.sh \ missing module.desktop config.rpath mkinstalldirs -SUBDIRS = src po +SUBDIRS = src + +if HAVE_PO + +SUBDIRS += po + +endif EDJE_FLAGS = -v \ -id $(top_srcdir)/images diff --git a/configure.ac b/configure.ac index 345d42b..e9aca22 100644 --- a/configure.ac +++ b/configure.ac @@ -23,8 +23,18 @@ define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl AC_PROG_LIBTOOL +m4_ifdef([AM_GNU_GETTEXT_VERSION], [ +AM_GNU_GETTEXT_VERSION([0.14]) +]) + +m4_ifdef([AM_GNU_GETTEXT], [ AM_GNU_GETTEXT([external]) -AM_GNU_GETTEXT_VERSION(0.14) +po_makefile_in=po/Makefile.in +AM_CONDITIONAL([HAVE_PO], [true]) +],[ +AM_CONDITIONAL([HAVE_PO], [false]) +]) +AC_SUBST(LTLIBINTL) PKG_CHECK_MODULES(E, [enlightenment]) release=$(pkg-config --variable=release enlightenment) @@ -76,8 +86,8 @@ AC_OUTPUT([ Makefile src/Makefile e_modules-mem.spec -po/Makefile.in module.desktop +$po_makefile_in ], [ ])