From: Emanuele Torre Date: Thu, 18 May 2023 19:16:56 +0000 (+0200) Subject: configure: fix --help alignment X-Git-Tag: curl-8_1_1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81f3c4bc650421aa43b9045c8cb73af975c1dcc2;p=thirdparty%2Fcurl.git configure: fix --help alignment AC_ARG_ENABLE seems to only trim off whitespace from the start and end of its help-string argument, while prepending two spaces of indentation to all lines. This means that the two spaces of indentation between the --enable-rtsp and the --disable-rtsp line were not removed causing ./configure --help to print: Optional Features: [...] --enable-rtsp Enable RTSP support --disable-rtsp Disable RTSP support I removed the indentation to fix the issue, now it prints: Optional Features: [...] --enable-rtsp Enable RTSP support --disable-rtsp Disable RTSP support The --enable-hsts and --disable-hsts lines had the same problems, and have been fixed too. Closes #11142 --- diff --git a/configure.ac b/configure.ac index ef82e944f4..75a882b12a 100644 --- a/configure.ac +++ b/configure.ac @@ -906,13 +906,11 @@ if test X"$want_hyper" != Xno; then AC_MSG_NOTICE([Disable RTSP support with hyper]) AC_DEFINE(CURL_DISABLE_RTSP, 1, [to disable RTSP]) AC_SUBST(CURL_DISABLE_RTSP, [1]) - else - AC_MSG_CHECKING([whether to support rtsp]) AC_ARG_ENABLE(rtsp, - AS_HELP_STRING([--enable-rtsp],[Enable RTSP support]) - AS_HELP_STRING([--disable-rtsp],[Disable RTSP support]), +AS_HELP_STRING([--enable-rtsp],[Enable RTSP support]) +AS_HELP_STRING([--disable-rtsp],[Disable RTSP support]), [ case "$enableval" in no) AC_MSG_RESULT(no) @@ -4271,14 +4269,13 @@ AS_HELP_STRING([--disable-headers-api],[Disable headers-api support]), dnl only check for HSTS if there's SSL present if test -n "$SSL_ENABLED"; then - dnl ************************************************************ dnl switch on/off hsts dnl AC_MSG_CHECKING([whether to support HSTS]) AC_ARG_ENABLE(hsts, - AS_HELP_STRING([--enable-hsts],[Enable HSTS support]) - AS_HELP_STRING([--disable-hsts],[Disable HSTS support]), +AS_HELP_STRING([--enable-hsts],[Enable HSTS support]) +AS_HELP_STRING([--disable-hsts],[Disable HSTS support]), [ case "$enableval" in no) AC_MSG_RESULT(no)