diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-02-12 16:30:35 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-02-21 17:10:04 +0000 |
commit | 5ff84e4f50e34bfda5a1f5597d76b767c5c511a0 (patch) | |
tree | d4b6992c33b3ea7a14ba33d39c71c406fdd4b18c | |
parent | 7d974cd9629db088cffce1ecb095ace4f1d68846 (diff) | |
download | meson-5ff84e4f50e34bfda5a1f5597d76b767c5c511a0.zip meson-5ff84e4f50e34bfda5a1f5597d76b767c5c511a0.tar.gz meson-5ff84e4f50e34bfda5a1f5597d76b767c5c511a0.tar.bz2 |
Skip test cases/frameworks/6 gettext if prereqs not found
Skip test cases/frameworks/6 gettext if gettext or libintl not found
-rw-r--r-- | test cases/frameworks/6 gettext/meson.build | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test cases/frameworks/6 gettext/meson.build b/test cases/frameworks/6 gettext/meson.build index 6b517a4..e02234b 100644 --- a/test cases/frameworks/6 gettext/meson.build +++ b/test cases/frameworks/6 gettext/meson.build @@ -1,5 +1,14 @@ project('gettext example', 'c') +gettext = find_program('gettext', required: false) +if not gettext.found() + error('MESON_SKIP_TEST gettext not found.') +endif + +if not meson.get_compiler('c').has_header('libintl.h') + error('MESON_SKIP_TEST libintl.h not found.') +endif + i18n = import('i18n') subdir('po') |