Only default --enable-debug if the user has not turned it off, from Ken Lau.

This commit is contained in:
Nicholas Marriott 2024-09-16 21:18:54 +01:00
parent 37771a5a8d
commit 8b1a3bb2e5

View File

@ -56,10 +56,11 @@ AC_USE_SYSTEM_EXTENSIONS
test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
# Is this --enable-debug?
case "x$VERSION" in xnext*) enable_debug=yes;; esac
AC_ARG_ENABLE(
debug,
AS_HELP_STRING(--enable-debug, enable debug build flags),
,
[case "x$VERSION" in xnext*) enable_debug=yes;; esac]
)
AM_CONDITIONAL(IS_DEBUG, test "x$enable_debug" = xyes)