GNOME Bugzilla – Bug 774732
libsigc++-2.10.0 fails to disable benchmarks when configured with --disable-benchmarks
Last modified: 2016-11-24 08:58:56 UTC
Created attachment 340330 [details] [review] 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 the atteched patch, 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.
Thanks. Pushed to git master and the libsigc++-2-10 branch. I guess I didn't notice this because it shouldn't be necessary to explicitly disable the benchmark. Wasn't it enough to just not enable it?
Thanks for the quick feedback. Sure, there were ways around it. But in Gentoo we have some code that automatically maps so-called USE flags to --enable/--disable arguments for ./configure and I preferred to keep that code the way it was (also because the "problem" might also pop up for other people compiling manually)
I suppose this bug is fixed now, so I close it.