From nobody Mon Feb 9 09:08:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.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 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1538653364983490.96780502388594; Thu, 4 Oct 2018 04:42:44 -0700 (PDT) Received: from localhost ([::1]:55161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g821j-0002y0-FL for importer@patchew.org; Thu, 04 Oct 2018 07:42:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g81tG-0004Dx-UO for qemu-devel@nongnu.org; Thu, 04 Oct 2018 07:34:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g81iU-0003Y1-NN for qemu-devel@nongnu.org; Thu, 04 Oct 2018 07:22:54 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:40718) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g81iU-0003X4-FE for qemu-devel@nongnu.org; Thu, 04 Oct 2018 07:22:50 -0400 Received: by mail-wr1-f52.google.com with SMTP id d2-v6so5058801wro.7 for ; Thu, 04 Oct 2018 04:22:50 -0700 (PDT) Received: from fiorina.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id k7-v6sm5191789wmf.41.2018.10.04.04.22.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Oct 2018 04:22:46 -0700 (PDT) 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=M72CmDnOs2t74mvkB61g3UAEOROo2UAHNMxhjCumw84=; b=kXf8CRotb2DPU/8e/cRL3USyJQCsxSEZ2r9XG/qVOJAxrwhEn5V4J7XWM4sZ7W1eqz QFuqqr6X424cTcQ9MaV3WVzxvR4r5e8GKJcBLnbfielJyQa7ZtJ1945xdHCj1hVEV/G+ KK9sNcHOqWUxW4caK2QrFjyBWoOpYkiVQqSwD+NBOwJRRod0gggaojrXDlA4ydyaG3i7 m2u4nDil9I4Y2UWB92JUmKzr2iD5kabfLkpwN0RQHNzL0VdYaxk/DbsmRAfM1Duu7lk9 niZQX8C9acSSfgtmSTURiu9vmL8ePZI6D4vQHe/bGO2V/MOTDwWmT9fmrSEDN4KC4oAD HWPA== X-Gm-Message-State: ABuFfogD+6Qzr3eBcZmKJWKT6feYAWw456ihV3n1q5Gs4lFiaTq0yoTS JDGlulM/eL0ma6WELqZ9ZZ4CUtuzHHI= X-Google-Smtp-Source: ACcGV61TSdwwMNvHZLeOiXbQ+qoyzc6pbigHlesDMi6dMRDmH0h/iYJx+oE8DE4BjdMfQJ18eCcISg== X-Received: by 2002:a5d:438e:: with SMTP id i14-v6mr4821043wrq.156.1538652167701; Thu, 04 Oct 2018 04:22:47 -0700 (PDT) From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= To: qemu-devel@nongnu.org Date: Thu, 4 Oct 2018 13:22:33 +0200 Message-Id: <2510f7c260bd2cbdf1b6089c2a021e6434cb0d38.1538652143.git.tgolembi@redhat.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.221.52 Subject: [Qemu-devel] [PATCH v4 06/11] configure: add test for libudev X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Roth , Olga Krishtal , =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= , Sameeh Jubran , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RDMRC_1 RSF_0 Z_629925259 SPT_0 Signed-off-by: Tom=C3=A1=C5=A1 Golembiovsk=C3=BD Reviewed-by: Marc-Andr=C3=A9 Lureau --- configure | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/configure b/configure index 0f168607e8..ac24cb3975 100755 --- a/configure +++ b/configure @@ -477,6 +477,7 @@ libxml2=3D"" docker=3D"no" debug_mutex=3D"no" libpmem=3D"" +libudev=3D"no" =20 # cross compilers defaults, can be overridden with --cross-cc-ARCH cross_cc_aarch64=3D"aarch64-linux-gnu-gcc" @@ -873,6 +874,7 @@ Linux) vhost_vsock=3D"yes" QEMU_INCLUDES=3D"-I\$(SRC_PATH)/linux-headers -I$(pwd)/linux-headers $QE= MU_INCLUDES" supported_os=3D"yes" + libudev=3D"yes" ;; esac =20 @@ -5676,6 +5678,20 @@ if test "$libnfs" !=3D "no" ; then fi fi =20 +########################################## +# Do we have libudev +if test "$libudev" !=3D "no" ; then + if $pkg_config libudev; then + libudev=3D"yes" + libudev_libs=3D$($pkg_config --libs libudev) + else + if test "$libudev" =3D "yes" ; then + feature_not_found "libudev" "Install systemd development files" + fi + libudev=3D"no" + fi +fi + # Now we've finished running tests it's OK to add -Werror to the compiler = flags if test "$werror" =3D "yes"; then QEMU_CFLAGS=3D"-Werror $QEMU_CFLAGS" @@ -6100,6 +6116,7 @@ echo "VxHS block device $vxhs" echo "capstone $capstone" echo "docker $docker" echo "libpmem support $libpmem" +echo "libudev $libudev" =20 if test "$sdl_too_old" =3D "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -6944,6 +6961,11 @@ if test "$docker" !=3D "no"; then echo "HAVE_USER_DOCKER=3Dy" >> $config_host_mak fi =20 +if test "$libudev" !=3D "no"; then + echo "CONFIG_LIBUDEV=3Dy" >> $config_host_mak + echo "LIBUDEV_LIBS=3D$libudev_libs" >> $config_host_mak +fi + # use included Linux headers if test "$linux" =3D "yes" ; then mkdir -p linux-headers --=20 2.19.0