Skip to content

Commit a70dfe1

Browse files
sharkczjschmidb
authored andcommitted
fix handling of --disable-foo options
Currently passing eg. --disable-debug actually enables the debug build as one would expect from --enable-debug. The fix is to omit setting the enable_foo variable as the "action-if-given" parameter of AC_ARG_ENABLE, because it handles both the --enable and --disable forms. Signed-off-by: Dan Horák <[email protected]>
1 parent 50f9007 commit a70dfe1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

configure.ac

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ FLAGS="-Wall -Wextra -mzarch"
3535
dnl --- enable_debug
3636
AC_ARG_ENABLE(debug,
3737
[ --enable-debug turn on debugging flags],
38-
[enable_debug="yes"],[enable_debug="no"])
38+
[],[enable_debug="no"])
3939
AM_CONDITIONAL(DEBUG, test x$enable_debug = xyes)
4040

4141
if test "x$enable_debug" = xyes; then
@@ -46,7 +46,7 @@ fi
4646
dnl --- enable_coverage
4747
AC_ARG_ENABLE(coverage,
4848
[ --enable-coverage turn on coverage testing],
49-
[enable_coverage="yes"],[enable_coverage="no"])
49+
[],[enable_coverage="no"])
5050
AM_CONDITIONAL(COVERAGE, test x$enable_coverage = xyes)
5151

5252
if test "x$enable_coverage" = xyes; then
@@ -57,7 +57,7 @@ fi
5757
dnl --- enable_fips
5858
AC_ARG_ENABLE(fips,
5959
[ --enable-fips built with FIPS mode support],
60-
[enable_fips="yes"],[enable_fips="no"])
60+
[],[enable_fips="no"])
6161
AM_CONDITIONAL(ICA_FIPS, test x$enable_fips = xyes)
6262

6363
if test "x$enable_fips" = xyes; then
@@ -74,7 +74,7 @@ fi
7474
dnl --- enable_sanitizer
7575
AC_ARG_ENABLE(sanitizer,
7676
[ --enable-sanitizer turn on sanitizer (may not work on all systems)],
77-
[enable_sanitizer="yes"],[enable_sanitizer="no"])
77+
[],[enable_sanitizer="no"])
7878
AM_CONDITIONAL(SANITIZER, test x$enable_sanitizer = xyes)
7979

8080
if test "x$enable_sanitizer" = xyes; then
@@ -86,7 +86,7 @@ fi
8686
dnl --- enable_internal tests
8787
AC_ARG_ENABLE(internal_tests,
8888
[ --enable-internal-tests built internal tests],
89-
[enable_internal_tests="yes"],[enable_internal_tests="no"])
89+
[],[enable_internal_tests="no"])
9090
AM_CONDITIONAL(ICA_INTERNAL_TESTS, test x$enable_internal_tests = xyes)
9191

9292
if test "x$enable_internal_tests" = xyes; then

0 commit comments

Comments
 (0)