efl po - change intl.h check to use compiles so cflags it respected

this fixes building on fbsd... (where CFLAGS will now work to find
libintl.h)
This commit is contained in:
Carsten Haitzler 2019-03-01 10:54:27 +00:00
parent 5aec938fbc
commit 63c32295a0
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ if get_option('nls')
config_h.set('HAVE_GETTEXT', '1')
config_h.set('ENABLE_NLS', '1')
intl = cc.find_library('intl', required : false)
if cc.has_header('libintl.h', dependencies : intl) == false
if cc.compiles('#include <libintl.h>', dependencies : intl) == false
error('libintl.h not found')
endif
else