naccyde / rpms / iproute

Forked from rpms/iproute 7 months ago
Clone

Blame SOURCES/0005-configure-support-param-value-style.patch

32391d
From fd03755c5b59a7c197dc9089494c08780f1669a7 Mon Sep 17 00:00:00 2001
32391d
Message-Id: <fd03755c5b59a7c197dc9089494c08780f1669a7.1637678195.git.aclaudi@redhat.com>
32391d
In-Reply-To: <b30268eda844bdebbb8e5e4f5735e3b1bb666368.1637678195.git.aclaudi@redhat.com>
32391d
References: <b30268eda844bdebbb8e5e4f5735e3b1bb666368.1637678195.git.aclaudi@redhat.com>
32391d
From: Andrea Claudi <aclaudi@redhat.com>
32391d
Date: Tue, 23 Nov 2021 15:28:18 +0100
32391d
Subject: [PATCH] configure: support --param=value style
32391d
32391d
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2016061
32391d
Upstream Status: iproute2.git commit 4b8bca5f
32391d
32391d
commit 4b8bca5f9e3e6f210b1036166dc98801e76d8ee5
32391d
Author: Andrea Claudi <aclaudi@redhat.com>
32391d
Date:   Thu Oct 14 10:50:53 2021 +0200
32391d
32391d
    configure: support --param=value style
32391d
32391d
    This commit makes it possible to specify values for configure params
32391d
    using the common autotools configure syntax '--param=value'.
32391d
32391d
    Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
32391d
    Acked-by: Phil Sutter <phil@nwl.cc>
32391d
    Signed-off-by: David Ahern <dsahern@kernel.org>
32391d
---
32391d
 configure | 6 ++++++
32391d
 1 file changed, 6 insertions(+)
32391d
32391d
diff --git a/configure b/configure
32391d
index 26e06eb8..9a2645d9 100755
32391d
--- a/configure
32391d
+++ b/configure
32391d
@@ -504,12 +504,18 @@ else
32391d
 			--include_dir)
32391d
 				shift
32391d
 				INCLUDE="$1" ;;
32391d
+			--include_dir=*)
32391d
+				INCLUDE="${1#*=}" ;;
32391d
 			--libbpf_dir)
32391d
 				shift
32391d
 				LIBBPF_DIR="$1" ;;
32391d
+			--libbpf_dir=*)
32391d
+				LIBBPF_DIR="${1#*=}" ;;
32391d
 			--libbpf_force)
32391d
 				shift
32391d
 				LIBBPF_FORCE="$1" ;;
32391d
+			--libbpf_force=*)
32391d
+				LIBBPF_FORCE="${1#*=}" ;;
32391d
 			-h | --help)
32391d
 				usage 0 ;;
32391d
 			--*)
32391d
-- 
32391d
2.31.1
32391d