From: Hangbin Liu Date: Mon, 31 May 2021 09:47:39 +0000 (+0800) Subject: configure: add options ability X-Git-Tag: v5.14.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9c3d70d902a;p=thirdparty%2Fiproute2.git configure: add options ability There are more and more global environment variables that land everywhere in configure, which is making user hard to know which one does what. Using command-line options would make it easier for users to learn or remember the config options. This patch converts the INCLUDE variable to command option first. Check if the first variable has '-' to compile with the old INCLUDE path setting method. Signed-off-by: Hangbin Liu Signed-off-by: David Ahern --- diff --git a/configure b/configure index 179eae08c..c58419c27 100755 --- a/configure +++ b/configure @@ -7,7 +7,7 @@ # off: disable libbpf probing # LIBBPF_DIR Path to libbpf DESTDIR to use -INCLUDE=${1:-"$PWD/include"} +INCLUDE="$PWD/include" # Output file which is input to Makefile CONFIG=config.mk @@ -486,6 +486,35 @@ endif EOF } +usage() +{ + cat <$CONFIG quiet_config >> $CONFIG