From 7201b079fc96705cf28fa1b034a18de46b390382 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 29 Jan 2022 08:28:15 +0100 Subject: [PATCH] meson: reverse intl check If we have a library, use that, otherwise use the normal dep. Might fix build on musl --- meson.build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 51da224cc..3bd69d4ef 100644 --- a/meson.build +++ b/meson.build @@ -426,10 +426,9 @@ libinotify_dep = (build_machine.system() == 'freebsd' : dependency('', required: false)) # On FreeBSD, libintl library is required for gettext -libintl_dep = dependency('intl', required: false) - +libintl_dep = cc.find_library('intl', required: false) if not libintl_dep.found() - libintl_dep = cc.find_library('intl', required: false) + libintl_dep = dependency('intl', required: false) endif summary({'intl support': libintl_dep.found()}, bool_yn: true)