From a2f7cc3499a0d5132bf075aa0da87121be1ed178 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Wed, 14 Jun 2017 10:46:45 +0200 Subject: [PATCH] Define --module-assertions only of modules are available Fixes Bug#27352. * src/emacs.c (usage_message, standard_args): Define --module-assertions only if Emacs has been compiled with module support. --- src/emacs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/emacs.c b/src/emacs.c index b0892c7ebb8..da8df1bf1c7 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -223,8 +223,12 @@ Initialization options:\n\ --fg-daemon[=NAME] start a (named) server in the foreground\n\ --debug-init enable Emacs Lisp debugger for init file\n\ --display, -d DISPLAY use X server DISPLAY\n\ +", +#ifdef HAVE_MODULES + "\ --module-assertions assert behavior of dynamic modules\n\ ", +#endif "\ --no-build-details do not add build details such as time stamps\n\ --no-desktop do not load a saved desktop\n\ @@ -1733,7 +1737,9 @@ static const struct standard_args standard_args[] = { "-nl", "--no-loadup", 70, 0 }, { "-nsl", "--no-site-lisp", 65, 0 }, { "-no-build-details", "--no-build-details", 63, 0 }, +#ifdef HAVE_MODULES { "-module-assertions", "--module-assertions", 62, 0 }, +#endif /* -d must come last before the options handled in startup.el. */ { "-d", "--display", 60, 1 }, { "-display", 0, 60, 1 }, -- 2.39.2