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
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\"
# 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.
#
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