From 95d2d7fae73701c183beeb39aad29f076b02a115 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 5 Feb 2004 20:27:23 +0000 Subject: [PATCH] Any non-zero value enables an option. (Allows CONFIG_NUM_CONTEXTS to be recognized as a switch.) --- build/genconf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/genconf b/build/genconf index b088a142..7a53dc1b 100755 --- a/build/genconf +++ b/build/genconf @@ -10,7 +10,7 @@ use warnings; open CF, $ARGV[2] or die "Unable to open $ARGV[2]"; my %options = (); while () { - /^(CONFIG_\w+)=1/ || next; + /^(CONFIG_\w+)=[^0]/ || next; $options{$1} = 1; } close CF; -- 2.39.2