]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
bin/autoconf.as: Fix --help.
authorZack Weinberg <zackw@panix.com>
Tue, 22 Sep 2020 15:37:20 +0000 (11:37 -0400)
committerZack Weinberg <zackw@panix.com>
Tue, 22 Sep 2020 19:35:41 +0000 (15:35 -0400)
Commit 9b5c0f17741836e99d0a801c6309389d391c03f9 introduced a bug where
autoconf --help would only print “Try 'autoconf --help' for more information.”
Correct this.

* bin/autoconf.as: Print $help, not $usage_err, for --help.
  Consistently use AS_ECHO, not bare echo.

bin/autoconf.as

index ddf8cced0f4cdda38f4c7e9fd7029d1b61126848..1cfb54624365a98ccd3002e8f7f2b509fd244804 100644 (file)
@@ -98,9 +98,9 @@ while test $# -gt 0 ; do
               "x$1" : 'x-.\(.*\)'`]
   case $1 in
     --version | -V )
-       echo "$version" ; exit ;;
+       AS_ECHO(["$version"]); exit ;;
     --help | -h )
-       AS_ECHO(["$usage_err"]); exit ;;
+       AS_ECHO(["$help"]); exit ;;
 
     --verbose | -v )
        verbose=: