]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
configure: support --param=value style
authorAndrea Claudi <aclaudi@redhat.com>
Thu, 14 Oct 2021 08:50:53 +0000 (10:50 +0200)
committerDavid Ahern <dsahern@kernel.org>
Fri, 15 Oct 2021 23:57:05 +0000 (17:57 -0600)
This commit makes it possible to specify values for configure params
using the common autotools configure syntax '--param=value'.

Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Acked-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David Ahern <dsahern@kernel.org>
configure

index 26e06eb81323ef5e99b39631f9723d0af9399cd9..9a2645d9dd0c22b72ce24886d8e89771bdb5af9a 100755 (executable)
--- a/configure
+++ b/configure
@@ -504,12 +504,18 @@ else
                        --include_dir)
                                shift
                                INCLUDE="$1" ;;
+                       --include_dir=*)
+                               INCLUDE="${1#*=}" ;;
                        --libbpf_dir)
                                shift
                                LIBBPF_DIR="$1" ;;
+                       --libbpf_dir=*)
+                               LIBBPF_DIR="${1#*=}" ;;
                        --libbpf_force)
                                shift
                                LIBBPF_FORCE="$1" ;;
+                       --libbpf_force=*)
+                               LIBBPF_FORCE="${1#*=}" ;;
                        -h | --help)
                                usage 0 ;;
                        --*)