From nobody Tue Feb 10 02:55:13 2026 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=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1633612635291856.3798470191039; Thu, 7 Oct 2021 06:17:15 -0700 (PDT) Received: from localhost ([::1]:49068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYTGs-00030Q-1w for importer@patchew.org; Thu, 07 Oct 2021 09:17:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYT8b-0005TT-Qf for qemu-devel@nongnu.org; Thu, 07 Oct 2021 09:08:42 -0400 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:47075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYT8Z-0007nU-5N for qemu-devel@nongnu.org; Thu, 07 Oct 2021 09:08:41 -0400 Received: by mail-ed1-x533.google.com with SMTP id z20so22788655edc.13 for ; Thu, 07 Oct 2021 06:08:38 -0700 (PDT) Received: from avogadro.lan ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id o12sm791254edw.84.2021.10.07.06.08.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 06:08:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PtPCM/1v4Q1iI3WF6cDEVwQ9iur4Hc5E6IdRJ9YJx90=; b=mQWIOojAPIQiKBglen5dLMV7/hTH5cJDXS1MqcFlf4GiDx4nGM9UTW6z1kBynpIlcD xiLbTpmHLIxY2sWCyscRNPLfkAX8aDFdneQrV4mUn5hF4F6CRA9SGvdYefubJ420Mswr DggngSoCWK26PDvNknuRBE9qG5KIfHwWbCk96mN82BGQiNLY3RZ2QuHQCdIO0a1chrRq xpIPT254ntMMF+GSlHZDl1hyIpb9hINRKMnjkRFHT/gTxy79C9VB+FvFT1Xkrez3QyFe UQ7tx6RFf6cctbK+9KBhJVwzDdFGu8i1k8AN7VEXst6rshsfIdgyraa0QlN2N2UobzXH kIwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=PtPCM/1v4Q1iI3WF6cDEVwQ9iur4Hc5E6IdRJ9YJx90=; b=FnWXIozw3QToHJKcyb84bWbGX1Y5uRtlUxeSscShLNC3Rtcj+y4ahPbMdkr4UJWoyW bT9ID7QPp7UFF0kCtWaur08mrw+baDrjzTu6A+f8GCEcOjZc8YoY9+wF8SVljHmqo990 lyD75S5hBXyfhYsR2gCja6ItRBGpBjBkFK2WpTHEsDiametVrP+mfGICs/zuuM5g6RIT mAVxd9M5zUlafhS6y6iE3O8o1o8yLC+psHB+3kjApSNg3T0+jfIzX/a5x2uzgX8H40UY NXYUOPQuOEX3UAsNFjsN56lwS84aMGvXdKOB+Hnf38U9HBtC7haACmBpygtTFzifsjt4 c4bw== X-Gm-Message-State: AOAM531BRIOTwskR8FSyhNnkXsdfTQOIWL4DLMYjCmc/7IqBSZxFWXhD u7SNDTMPy+63vYMAdXsD4rL3Sko25rE= X-Google-Smtp-Source: ABdhPJy5YZA7722pvSF/MxgaGs3bs9NxoxEdjO/fPOAk9NnWk6/jhdQm3i94v5Y6RDJfHy2gOC5h9w== X-Received: by 2002:a50:d84c:: with SMTP id v12mr5943539edj.203.1633612113718; Thu, 07 Oct 2021 06:08:33 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 10/24] configure, meson: move CONFIG_HOST_DSOSUF to Meson Date: Thu, 7 Oct 2021 15:08:15 +0200 Message-Id: <20211007130829.632254-5-pbonzini@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211007130630.632028-1-pbonzini@redhat.com> References: <20211007130630.632028-1-pbonzini@redhat.com> MIME-Version: 1.0 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::533; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x533.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1633612637275100001 Content-Type: text/plain; charset="utf-8" This is just a constant string, there is no need to pass it in config-host.= mak. Signed-off-by: Paolo Bonzini Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- configure | 6 ------ meson.build | 10 +++++----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/configure b/configure index 4bfc5e350d..f91b8e1f0d 100755 --- a/configure +++ b/configure @@ -351,7 +351,6 @@ bigendian=3D"no" mingw32=3D"no" gcov=3D"no" EXESUF=3D"" -HOST_DSOSUF=3D".so" modules=3D"no" module_upgrades=3D"no" prefix=3D"/usr/local" @@ -594,9 +593,6 @@ fi # cross-compiling to one of these OSes then you'll need to specify # the correct CPU with the --cpu option. case $targetos in -Darwin) - HOST_DSOSUF=3D".dylib" - ;; SunOS) # $(uname -m) returns i86pc even on an x86_64 box, so default based on i= sainfo if test -z "$cpu" && test "$(isainfo -k)" =3D "amd64"; then @@ -785,7 +781,6 @@ fi =20 if test "$mingw32" =3D "yes" ; then EXESUF=3D".exe" - HOST_DSOSUF=3D".dll" # MinGW needs -mthreads for TLS and macro _MT. CONFIGURE_CFLAGS=3D"-mthreads $CONFIGURE_CFLAGS" write_c_skeleton; @@ -4636,7 +4631,6 @@ echo "GLIB_LIBS=3D$glib_libs" >> $config_host_mak echo "QEMU_LDFLAGS=3D$QEMU_LDFLAGS" >> $config_host_mak echo "LD_I386_EMULATION=3D$ld_i386_emulation" >> $config_host_mak echo "EXESUF=3D$EXESUF" >> $config_host_mak -echo "HOST_DSOSUF=3D$HOST_DSOSUF" >> $config_host_mak echo "LIBS_QGA=3D$libs_qga" >> $config_host_mak if test "$gcov" =3D "yes" ; then echo "CONFIG_GCOV=3Dy" >> $config_host_mak diff --git a/meson.build b/meson.build index 98fa4b68d9..6842402a60 100644 --- a/meson.build +++ b/meson.build @@ -250,6 +250,7 @@ iokit =3D [] emulator_link_args =3D [] nvmm =3Dnot_found hvf =3D not_found +host_dsosuf =3D '.so' if targetos =3D=3D 'windows' socket =3D cc.find_library('ws2_32') winmm =3D cc.find_library('winmm') @@ -258,9 +259,11 @@ if targetos =3D=3D 'windows' version_res =3D win.compile_resources('version.rc', depend_files: files('pc-bios/qemu-ns= is.ico'), include_directories: include_directo= ries('.')) + host_dsosuf =3D '.dll' elif targetos =3D=3D 'darwin' coref =3D dependency('appleframeworks', modules: 'CoreFoundation') iokit =3D dependency('appleframeworks', modules: 'IOKit', required: fals= e) + host_dsosuf =3D '.dylib' elif targetos =3D=3D 'sunos' socket =3D [cc.find_library('socket'), cc.find_library('nsl'), @@ -1460,6 +1463,7 @@ config_host_data.set('QEMU_VERSION_MAJOR', meson.proj= ect_version().split('.')[0] config_host_data.set('QEMU_VERSION_MINOR', meson.project_version().split('= .')[1]) config_host_data.set('QEMU_VERSION_MICRO', meson.project_version().split('= .')[2]) =20 +config_host_data.set_quoted('CONFIG_HOST_DSOSUF', host_dsosuf) config_host_data.set('HAVE_HOST_BLOCK_DEVICE', have_host_block_device) =20 # has_header @@ -1606,10 +1610,9 @@ config_host_data.set('HAVE_BROKEN_SIZE_MAX', not cc.= compiles(''' return printf("%zu", SIZE_MAX); }''', args: ['-Werror'])) =20 - ignored =3D ['CONFIG_QEMU_INTERP_PREFIX'] # actually per-target arrays =3D ['CONFIG_BDRV_RW_WHITELIST', 'CONFIG_BDRV_RO_WHITELIST'] -strings =3D ['HOST_DSOSUF', 'CONFIG_IASL'] +strings =3D ['CONFIG_IASL'] foreach k, v: config_host if ignored.contains(k) # do nothing @@ -1621,9 +1624,6 @@ foreach k, v: config_host elif k =3D=3D 'ARCH' config_host_data.set('HOST_' + v.to_upper(), 1) elif strings.contains(k) - if not k.startswith('CONFIG_') - k =3D 'CONFIG_' + k.to_upper() - endif config_host_data.set_quoted(k, v) elif k.startswith('CONFIG_') or k.startswith('HAVE_') or k.startswith('H= OST_') config_host_data.set(k, v =3D=3D 'y' ? 1 : v) --=20 2.31.1