]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Let `libtool' without arguments point to `--help' again.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 4 Aug 2010 20:30:48 +0000 (22:30 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 4 Aug 2010 20:30:48 +0000 (22:30 +0200)
* libltdl/config/ltmain.m4sh (func_check_version_match):
Remove duplicate and wrong error check.
* tests/help.at (standard command line options): Extend test.
Report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/config/ltmain.m4sh
tests/help.at

index 6c7f86d4c1b9b14bef6ae75eff83d5ac2d8123a8..a435d6dc84daccb9992137396a44d16324f0a235 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       Let `libtool' without arguments point to `--help' again.
+       * libltdl/config/ltmain.m4sh (func_check_version_match):
+       Remove duplicate and wrong error check.
+       * tests/help.at (standard command line options): Extend test.
+       Report by Rainer Tammer.
+
        Avoid syntax error due to shift of nonexistent parameter.
        * libltdl/config/ltmain.m4sh <command-line handling>: Only shift
        if there is a positional parameter to shift.  Fixes `libtool
index 98c0a27e3103eb556685dfb28345d8e7c58bfe33..32a41c7d3964c275e3e7a79c3d7647dd83d9ec87 100644 (file)
@@ -413,8 +413,6 @@ M4SH_GETOPTS(
       func_fatal_configuration "not configured to build any kind of library"
     fi
 
-    test -z "$opt_mode" && func_fatal_error "error: you must specify a MODE."
-
     # Darwin sucks
     eval std_shrext=\"$shrext_cmds\"
 
index 3460a2b47558429c7bec23eef001bdb78a4a1b7b..e1bcbf52c7a1ee72287c55dd353bc3ac6714ffbe 100644 (file)
@@ -1,6 +1,6 @@
 # help.at -- standard command line options          -*- Autotest -*-
 #
-#   Copyright (C) 2009 Free Software Foundation, Inc.
+#   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
 #
 #   This file is part of GNU Libtool.
 #
@@ -35,6 +35,10 @@ AT_CHECK([$LIBTOOL --help-all], [], [ignore])
 AT_CHECK([$LIBTOOL --version], [], [stdout])
 AT_CHECK([grep 'Copyright.*Free Software Foundation' stdout], [], [ignore])
 
+AT_CHECK([$LIBTOOL], [1], [ignore], [stderr])
+AT_CHECK([grep 'specify a MODE' stderr], [], [ignore])
+AT_CHECK([grep ' --help' stderr], [], [ignore])
+
 AT_CLEANUP