after a possible following --mode argument has been parsed, so we
can handle `libtool --help --mode=foo'.
+2004-08-29 Gary V. Vaughan <gary@gnu.org>
+
+ * config/ltmain.in (opt_help): Defer showing help messages until
+ after a possible following --mode argument has been parsed, so we
+ can handle `libtool --help --mode=foo'.
+
2004-08-29 Gary V. Vaughan <gary@gnu.org>
We have had shell functions in ltmain.in for a few years without
lo2o="s/\\.lo\$/.${objext}/"
o2lo="s/\\.${objext}\$/.lo/"
+opt_help=false
opt_duplicate_deps=false
# If this variable is set in any of the actions, the command in it
# ;;
-\?|-h) func_usage ;;
- --help) func_mode_help ;;
+ --help) opt_help=: ;;
--version) func_version ;;
-*) func_fatal_help "unrecognized option \`$opt'" ;;
esac
done
+ # Now that we've collected a possible --mode arg, show help if necessary
+ $opt_help && func_mode_help
+
case $host in
*cygwin* | *mingw* | *pw32*)
# don't eliminate duplications in $postdeps and $predeps