From nobody Thu Nov 6 12:14:38 2025 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; dkim=fail; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1540950787750877.6674967474195; Tue, 30 Oct 2018 18:53:07 -0700 (PDT) Received: from localhost ([::1]:56647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHfgw-00041h-J9 for importer@patchew.org; Tue, 30 Oct 2018 21:53:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHfVI-0000rZ-8J for qemu-devel@nongnu.org; Tue, 30 Oct 2018 21:41:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHfVF-0002ZR-Gl for qemu-devel@nongnu.org; Tue, 30 Oct 2018 21:41:04 -0400 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]:34667) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHfVF-0002YD-8q for qemu-devel@nongnu.org; Tue, 30 Oct 2018 21:41:01 -0400 Received: by mail-qt1-x82e.google.com with SMTP id z2-v6so16023830qts.1 for ; Tue, 30 Oct 2018 18:40:59 -0700 (PDT) Received: from localhost (76-251-165-188.lightspeed.austtx.sbcglobal.net. [76.251.165.188]) by smtp.gmail.com with ESMTPSA id y15-v6sm12602582qtn.34.2018.10.30.18.40.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Oct 2018 18:40:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=E4sEx9c8q9y+5BIR/AOl49WHAQfHX88H5T2zjUp56XQ=; b=tNQ9mJ/n0LL4pO8DkUbIDK2H/PrX8pqmH71tf/ePM8wVMs7Kf0bJsZHfotX7acfdpo F0bjelwpI71VAZxr6Bx5iA/yJ6Q59bvOlSINVvl4SweLEsXXmakL7pcsqGi7e1j6p36i p3v9NZrJi4QflGPdJRXiuNqyKO+9H1H0t0xetPilBcpQ0+HPiqF/iexSifbrmGYQFvJN Z69d+fiy5T5hh/PWkgJTz0VM5tJKQZwo3zW0dygsz8xMDiXpU5oggrXXkOLWvXVZxKg9 FwDmunRTTffibnEQP5YUmMi50NYAxCDz1VEOvSKk4PN4zBmrc5kMaGLRyxz18KKDOwSj Rdsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=E4sEx9c8q9y+5BIR/AOl49WHAQfHX88H5T2zjUp56XQ=; b=CZOSR56OVTlIl+EWjdQjGnXUTGXLWvf4zR1eLUhJ5F9xrEVh0CVls9fFGVDo29tEQ8 F5gXd3fQGv5OSGBVVCHSiDkoSTe6oOMV6mrwpg4SCxlt9whhn73J7sPmb7srwes/268N UJTVrfzE13qf61YA9tOu9HOi5o+gqiDa/voS2aM4GriARLHOhQ8YfPNpSWnM7znd/E5e tb0rbe/vopbDYto9R9YXc8slOqPsAcrHg7n9xyiUgBWvq8FGkzwuiBtDywQ2CtSF+pBW 8DGAQxE+LvBbF6so2vGRM6g3/w1mDxCm0tBiqsEL/oFsvcWcOIMM41873UZrIzBlYaxx vZfw== X-Gm-Message-State: AGRZ1gIkUwnnqCkz3nigEgHz0SH6hXRBLGx2LSm06BSOHMc7jRYoM/C4 S1j3XZMXJLSkJF1qCO4wlFjtPsov X-Google-Smtp-Source: AJdET5eOhDao/S1YAsVsLcEEU2pmBkoMQlEUyl76Oogu4PPhR0Xk6iRrGwuhU457GreDTMPH9koXGQ== X-Received: by 2002:ac8:23ed:: with SMTP id r42-v6mr928608qtr.89.1540950057789; Tue, 30 Oct 2018 18:40:57 -0700 (PDT) From: Michael Roth To: qemu-devel@nongnu.org Date: Tue, 30 Oct 2018 20:38:01 -0500 Message-Id: <20181031013821.24023-5-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181031013821.24023-1-mdroth@linux.vnet.ibm.com> References: <20181031013821.24023-1-mdroth@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::82e Subject: [Qemu-devel] [PULL v2 04/24] 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: peter.maydell@linaro.org, =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Tom=C3=A1=C5=A1 Golembiovsk=C3=BD Signed-off-by: Tom=C3=A1=C5=A1 Golembiovsk=C3=BD Reviewed-by: Marc-Andr=C3=A9 Lureau *make libudev optional to avoid breaking existing build/test environments *disable libudev for --static builds Signed-off-by: Michael Roth --- configure | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configure b/configure index a898e21c68..406f48f46e 100755 --- a/configure +++ b/configure @@ -474,6 +474,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" @@ -870,6 +871,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 @@ -5609,6 +5611,19 @@ if test "$libnfs" !=3D "no" ; then fi fi =20 +########################################## +# Do we have libudev +if test "$libudev" !=3D "no" ; then + if $pkg_config libudev && test "$static" !=3D "yes"; then + if test "$static" !=3D "yes"; then + libudev=3D"yes" + libudev_libs=3D$($pkg_config --libs libudev) + fi + else + 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" @@ -6033,6 +6048,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" @@ -6868,6 +6884,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.17.1