mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Peach" <>
Subject Review Request 33752: MESOS-2537: Fix AC_ARG_ENABLED option processing
Date Fri, 01 May 2015 15:42:04 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos and Cody Maloney.

Bugs: MESOS-2537

Repository: mesos


In a number of places, the Mesos configure script passes "$foo=yes"
to the 2nd argument of AC_ARG_ENABLED. However, the 2nd argument
is invoked when the option is provided in any form, not just when
the --enable-foo form is used. One result of this is that
--disable-optimize doesn't work.

The correct handling of the 2nd argument is to save the value of
"$enableval". This change sets the value of all the enable variables
using $enableval, and sets the default value based on the option

There are a number of enable options that were internally named
"$with_foo" and "$without_foo". Rename these to "$enable_foo" for
clarity and to remove the need for both a with_ and a without_

Finally, emit the compilation flags at the end of the configure
phase so it is easier to see the results of your configuration

----- 589ae97d0432370b462576cd1985544564893999 



Configure and build on CentOS 7 and Mac OS X 10.10.3. Verify that the status summary reflects
the expected compiler flags. Verify that --enable-foo and --disable-foo do different things.


James Peach

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message