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
This commit is contained in:
Vincent Torri 2011-06-06 16:40:14 +00:00
parent e614f84bd3
commit 012ad51fee
2 changed files with 19 additions and 3 deletions

View File

@ -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

View File

@ -24,8 +24,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])
PKG_CHECK_MODULES(EVRY, [everything])
@ -59,8 +69,8 @@ AC_ARG_ENABLE(homedir-install,
AC_OUTPUT([
Makefile
src/Makefile
po/Makefile.in
module.desktop
e_module.spec
$po_makefile_in
], [
])