summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lermytte <gentoo@lermytte.be>2016-11-19 23:54:19 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-11-20 11:45:48 +0100
commit6175d5d7d465e01253d43d4d792af988fee78d88 (patch)
tree1df427b9fb6ae5031bfaaad003fc525effde1e5b
parentb71b38ca8cac858f3a0c1358f489fd1ecba41fc4 (diff)
downloadsigc++-6175d5d7d465e01253d43d4d792af988fee78d88.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.ac3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 2e32dd7..7f93290 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,8 +59,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])