diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-01-07 10:35:53 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-01-07 10:35:53 -0500 |
commit | 73ce1ab5a886193e8fbbe2a3697b5009162b2531 (patch) | |
tree | 1c471fe865e3c7c7815fc8e78702f2f0908379c5 | |
parent | 31dffd6441ba80ea998cedd10f9138198298e9fc (diff) | |
download | bfs-73ce1ab5a886193e8fbbe2a3697b5009162b2531.tar.xz |
configure: Reduce redundant info in CONFFLAGS for bfs --version
-rwxr-xr-x | configure | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -88,7 +88,7 @@ nproc() { } # Save the ./configure command line for bfs --version -export CONFFLAGS="$*" +export CONFFLAGS="" # Default to `make` MAKE="${MAKE-make}" @@ -97,6 +97,13 @@ MAKE="${MAKE-make}" for arg; do shift + # Only add --options to CONFFLAGS, so we don't print FLAG=values twice in bfs --version + case "$arg" in + -*) + CONFFLAGS="${CONFFLAGS}${CONFFLAGS:+ }${arg}" + ;; + esac + # --[(enable|disable|with|without)-]$name[=$value] value="${arg#*=}" name="${arg%%=*}" |