diff options
author | Christophe Lermytte <gentoo@lermytte.be> | 2016-11-19 23:54:19 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-11-20 11:47:15 +0100 |
commit | 661f12a1e7c21378dc194ce527bdd6c192629481 (patch) | |
tree | 0b0e7e555fb30e92a833d33953268de901d7579d | |
parent | 83f1e2fe7855f85af570b9653903d2c426d67e72 (diff) | |
download | sigc++-661f12a1e7c21378dc194ce527bdd6c192629481.tar.gz |
Make --disable-benchmark work
Currently, when calling ./configure, the possible outcomes of the
enable_benchmark variable are:
./configure -> ""
./configure --enable-benchmark -> "yes"
./configure --enable-benchmark=yes -> "yes"
./configure --enable-benchmark=no -> "yes"
./configure --enable-benchmark=hello -> "yes"
./configure --disable-benchmark -> "yes"
With this commit, those values become
./configure -> ""
./configure --enable-benchmark -> "yes"
./configure --enable-benchmark=yes -> "yes"
./configure --enable-benchmark=no -> "no"
./configure --enable-benchmark=hello -> "hello"
./configure --disable-benchmark -> "no"
Note that enable_benchmark is currently only being checked for
being "yes" or not.
Bug #774732
-rw-r--r-- | configure.ac | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 62deef0..80e8505 100644 --- a/configure.ac +++ b/configure.ac @@ -69,8 +69,7 @@ MM_ARG_ENABLE_WARNINGS([SIGC_WXXFLAGS], MM_ARG_DISABLE_DEPRECATED_API([SIGCXX]) AC_ARG_ENABLE(benchmark, - AS_HELP_STRING([--enable-benchmark=yes|no]), - [enable_benchmark=yes] + AS_HELP_STRING([--enable-benchmark=yes|no]) ) AM_CONDITIONAL([SIGC_BUILD_BENCHMARK], [test "x$enable_benchmark" = xyes]) |