build: refactor configure, add --verbose
#22450
+1,649
−1,630
Merged
--verbose
#22450