From nobody Tue Nov 18 07:22:09 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1608158223; cv=none; d=zohomail.com; s=zohoarc; b=fFPqzzGAUHloRXrTZHQCuFoB0N7FzT2ZQfddItePlbPR4QsJBH2GFegreoqLV+IjZgN7hbNnKIjnaSyOXk7NNZ6KL4IjT8N9Vnu4aVeDKTCtlGSEYjY10XhBLBRH1g9XXORwM+LfXCInxMgz/6K3ItMF+rDYHWn7vbDgA+5Yqbc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608158223; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=q+yVXnhCi8nxgBbuZe7LUforhT3RhLUfoY188yCYeYY=; b=kuwTC6Li1A2TnfG8wMxES2RJtNkEfkV2R4g2oNFnPKvLCPvJIar8/CWd7yNLo/fJLuTT5CmSJs9U/w5xnzAYfL6HzenEFRO/yL24RKwTBCyIZOkKsqVSBJFdZ3zpwsw6wDBZgw3QHYZmso6MzCx5vcyUPr6+if2AOrDkPuLM1W8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16081582234221009.3219803299332; Wed, 16 Dec 2020 14:37:03 -0800 (PST) Received: from localhost ([::1]:37426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpa1q-0003jM-KE for importer@patchew.org; Wed, 16 Dec 2020 11:51:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpZyg-0007v2-Vz for qemu-devel@nongnu.org; Wed, 16 Dec 2020 11:48:39 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:33581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpZye-0002OP-Rk for qemu-devel@nongnu.org; Wed, 16 Dec 2020 11:48:38 -0500 Received: by mail-wm1-x336.google.com with SMTP id n16so2306616wmc.0 for ; Wed, 16 Dec 2020 08:48:35 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id w4sm3498238wmc.13.2020.12.16.08.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Dec 2020 08:48:30 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2BA3A1FF8F; Wed, 16 Dec 2020 16:48:28 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=q+yVXnhCi8nxgBbuZe7LUforhT3RhLUfoY188yCYeYY=; b=AAGBPu8+fj3ei0DyCd0pxkqVXTvxDFghQtDTc5jdlVcW2iPIgWX4HgUKg2eyA5EXvd trKcGjdJ/RkwPWLTD7DjnYl0BNHZg7k7pq9xyvL7ZK9VKBkFOVAed4kcoxx7uK9xR06L eiOFQRfp9533JuhWBfqbRUwIABKVFCRyc6k9UO1lo+PXtuh2pCC6KTNlpLb1Lma7WTS6 Ea5Z+aP/jZF7OB1esf3Na9bL9g7unhoH9+zD3+WYMmtpuYA0oJGYhP6Ihy34vd+kbxSk gMtLFlRI2u5XBtYIM8LDhExlb0xM9fxkOC2hIJDk3L91EP4PsohVK5NJJ+9u4DHxWK5A ItRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=q+yVXnhCi8nxgBbuZe7LUforhT3RhLUfoY188yCYeYY=; b=U6kpSmy4zS3nyGk2xOQXyo518toc9lGJozpUu8JrCOTUqoOPoQJVBMvjExd4qpLqSJ haJYtuUJqISRI93qCorOeRNyCoz+jTMU60g8u72t8U6GowEb1EVqL+Oq/Faecd3LeUFr yckhexxIEmeClirCFDujG4SjNjyWAcdhEXa65/UNvsSUqOJIXkt+sKmS2s7pDP+E/Y6p iRrQ9cAqMTGbPdFt0ncKkaEm2ILFnvLoC8tqBIC1yy8lRxeN7fWEaRovxMA0rZEEBTfS 3E/pbXRNm7frNtwJBK8nV04/KF0FrgrYThB7vnTt8BJSxXg6YyaFO6E1VTBAiwqs/cCk VXag== X-Gm-Message-State: AOAM530SBk2egrUVU/PryC/1f3TWECcv8MKYJ+8dyhBwD50uVEYzKXRO kIlpJtm1YGiH0Q4bljCxMo/T9Q== X-Google-Smtp-Source: ABdhPJw5/htfREhxJeU1+dpEHTxnIyIphikyBhUOwyCXYZy+pgKCkeP+I9362rsP6l8HIW7NfI05wg== X-Received: by 2002:a1c:1dd4:: with SMTP id d203mr4295012wmd.118.1608137314804; Wed, 16 Dec 2020 08:48:34 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 03/11] configure: move gettext detection to meson.build Date: Wed, 16 Dec 2020 16:48:19 +0000 Message-Id: <20201216164827.24457-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201216164827.24457-1-alex.bennee@linaro.org> References: <20201216164827.24457-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This will allow meson to honour -Dauto_features=3Ddisabled later. Suggested-by: Paolo Bonzini Signed-off-by: Alex Benn=C3=A9e Acked-by: Paolo Bonzini Message-Id: <20201210190417.31673-4-alex.bennee@linaro.org> diff --git a/configure b/configure index d37ec98aa9..f9b1e4fbb0 100755 --- a/configure +++ b/configure @@ -448,7 +448,7 @@ libdaxctl=3D"" meson=3D"" ninja=3D"" skip_meson=3Dno -gettext=3D"" +gettext=3D"auto" fuse=3D"auto" fuse_lseek=3D"auto" =20 @@ -1016,9 +1016,9 @@ for opt do ;; --enable-vnc) vnc=3D"enabled" ;; - --disable-gettext) gettext=3D"false" + --disable-gettext) gettext=3D"disabled" ;; - --enable-gettext) gettext=3D"true" + --enable-gettext) gettext=3D"enabled" ;; --oss-lib=3D*) oss_lib=3D"$optarg" ;; @@ -2847,19 +2847,6 @@ if test "$xen_pci_passthrough" !=3D "disabled"; then fi fi =20 -########################################## -# gettext probe -if test "$gettext" !=3D "false" ; then - if has xgettext; then - gettext=3Dtrue - else - if test "$gettext" =3D "true" ; then - feature_not_found "gettext" "Install xgettext binary" - fi - gettext=3Dfalse - fi -fi - ########################################## # X11 probe if $pkg_config --exists "x11"; then diff --git a/meson_options.txt b/meson_options.txt index 74ac853548..f8f053b5c8 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -9,7 +9,7 @@ option('sphinx_build', type : 'string', value : '', =20 option('docs', type : 'feature', value : 'auto', description: 'Documentations build support') -option('gettext', type : 'boolean', value : true, +option('gettext', type : 'feature', value : 'auto', description: 'Localization of the GTK+ user interface') option('install_blobs', type : 'boolean', value : true, description: 'install provided firmware blobs') diff --git a/po/meson.build b/po/meson.build index 1387fd979a..a863f0575f 100644 --- a/po/meson.build +++ b/po/meson.build @@ -1,6 +1,6 @@ i18n =3D import('i18n') =20 -if get_option('gettext') +if find_program('xgettext', required: get_option('gettext')).found() i18n.gettext(meson.project_name(), args: '--msgid-bugs-address=3Dqemu-devel@nongnu.org', preset: 'glib') --=20 2.20.1