]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: properly handle gettext non-existence
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 5 Aug 2023 06:57:28 +0000 (08:57 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sat, 5 Aug 2023 07:10:57 +0000 (09:10 +0200)
Commit e91a49c9747f ("meson: don't build po if no gettext")
tried to add the possibility to build util-linux without gettext.

Unfortunately by default the call to find_program() would abort the
build if the program is not found.
Avoid aborting the build.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
po/meson.build

index c10deafd28a60e761eff8f947d996ddc8b248087..8adfa48d8327b891fb05a6bc5dcdcea65261e76c 100644 (file)
@@ -1,4 +1,4 @@
-if not find_program('gettext').found()
+if not find_program('gettext', required : false).found()
   subdir_done()
 endif