@@ -323,8 +323,8 @@ AC_ARG_ENABLE(datafiles, AC_HELP_STRING([--disable-datafiles],
[enable_datafiles=${enableval}])
AM_CONDITIONAL(DATAFILES, test "${enable_datafiles}" != "no")
-AC_ARG_ENABLE(manpages, AC_HELP_STRING([--enable-manpages],
- [enable building of manual pages]),
+AC_ARG_ENABLE(manpages, AC_HELP_STRING([--disable-manpages],
+ [disable building of manual pages]),
[enable_manpages=${enableval}])
if (test "${enable_manpages}" != "no"); then
AC_CHECK_PROGS(RST2MAN, [rst2man rst2man.py], "no")
@@ -332,8 +332,8 @@ if (test "${enable_manpages}" != "no"); then
AC_MSG_ERROR([rst2man is required])
fi
fi
-AM_CONDITIONAL(MANPAGES, test "${enable_manpages}" = "yes")
-AM_CONDITIONAL(RUN_RST2MAN, test "${enable_manpages}" = "yes" && test "${RST2MAN}" != "no")
+AM_CONDITIONAL(MANPAGES, test "${enable_manpages}" != "no")
+AM_CONDITIONAL(RUN_RST2MAN, test "${enable_manpages}" != "no" && test "${RST2MAN}" != "no")
AC_ARG_ENABLE(testing, AC_HELP_STRING([--enable-testing],
[enable testing tools]),
From: Tedd Ho-Jeong An <tedd.an@intel.com> The current config option for manpages provided by the configure.ac alwasys enables the manpages whether 'enable-manpages' option is specified or not. To clarify the expected behavior, this patch changes the manpages option to 'disable-manpages' so the manpages are alwasy enabled unless the '--disable-manpages' option is specified. --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)