build: enable -lintl if we find it

otherwise translations are not working
This commit is contained in:
Marcel Hollerbach 2017-12-03 22:23:44 +00:00 committed by Mike Blumenkrantz
parent 8301597011
commit e23ac1044b
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,5 @@
dep_intl = []
if get_option('nls')
i18n = import('i18n')
i18n.gettext('enlightenment',
@ -12,4 +14,5 @@ if get_option('nls')
'--foreign-user'
])
config_h.set('HAVE_GETTEXT', '1')
dep_intl = cc.find_library('intl', required : false)
endif

View File

@ -31,7 +31,8 @@ deps_e = [
dep_eio,
dep_eldbus,
dep_emotion,
dep_elementary
dep_elementary,
dep_intl
]
if config_h.has('HAVE_PAM') == true