summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-11-08 20:23:27 +0000
committerSadie Powell <sadie@witchery.services>2020-11-08 20:23:27 +0000
commit2145cc3f947dc84c2ea006917b27cd525ac311b8 (patch)
tree2b34331c28aa01be2c664df3130f5105ff0e551e /configure
parent3151d60c1ecc9462e4c335282ee6c31672f45111 (diff)
Skip extra whitespace in --{enable,disable}-extras.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index eade9fe3b..223fc4d14 100755
--- a/configure
+++ b/configure
@@ -111,8 +111,8 @@ exit 1 unless GetOptions(
);
if (scalar(@opt_enableextras) + scalar(@opt_disableextras) > 0) {
- @opt_enableextras = split /[, ]+/, join(',', @opt_enableextras);
- @opt_disableextras = split /[, ]+/, join(',', @opt_disableextras);
+ @opt_enableextras = grep { /\S/ } split /[, ]+/, join(',', @opt_enableextras);
+ @opt_disableextras = grep { /\S/ } split /[, ]+/, join(',', @opt_disableextras);
enable_extras(@opt_enableextras);
disable_extras(@opt_disableextras);
list_extras;