Add a flag to set quiet mode for configure

This is currently the default.
This commit is contained in:
Pierre Pronchery 2018-03-18 23:39:57 +01:00
parent ad71bb7d82
commit 60e606c396

View File

@ -91,9 +91,10 @@ static int _usage(void)
if((configure = configure_new(NULL)) == NULL)
return configure_error(2, "%s", error_get(NULL));
fprintf(stderr, "%s%s%s%s%s%s%s%s%s%s%s%s%s",
"Usage: " PROGNAME " [-nSv][-b bindir][-d destdir][-i includedir][-l libdir]\n"
"Usage: " PROGNAME " [-nqSv][-b bindir][-d destdir][-i includedir][-l libdir]\n"
" [-O system][-p prefix][-s sbindir][directory...]\n"
" -n Do not actually write Makefiles\n"
" -q Quiet mode (default)\n"
" -v Verbose mode\n"
" -b Binary files directory (default: \"",
_usage_get_path(configure, "bindir"), "\")\n"
@ -162,6 +163,9 @@ int main(int argc, char * argv[])
case 'p':
paths.prefix = optarg;
break;
case 'q':
prefs.flags = prefs.flags & ~PREFS_v;
break;
case 'S':
prefs.flags |= PREFS_S;
break;