Cleanup: configure.ac: remove redundant `AC_ARG_ENABLE` parameters
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 27 Feb 2020 21:51:38 +0000 (16:51 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 2 Mar 2020 19:56:58 +0000 (14:56 -0500)
commit18c9df91589153674cf2f156e0f80f4b617b75e1
tree62cf7dec248081dbe118d1125440e206a24b24ec
parentd91a8e262c3fb0154adbb71c56fc26fddcdf8f24
Cleanup: configure.ac: remove redundant `AC_ARG_ENABLE` parameters

According to the documentation [1], the last parameter of the
`AC_ARG_ENABLE()` macro (`action-if-not-given`) is executed only if
neither `--enable-foo` nor `--disable-foo` is provided.

So in cases where the feature is disabled by default, there is no need
to turn if off explicitly in the `action-if-not-given` parameter as
the macro will simply not set the `enable_foo` to `yes`.

Also, I fixed up the comment for the `enable_man_pages` variable.

[1] https://www.gnu.org/software/autoconf/manual/autoconf-2.66/html_node/Package-Options.html

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I7416bed88ed1e719ef896f0ca0117b382d99f68f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3151
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
configure.ac
This page took 0.024662 seconds and 4 git commands to generate.