Commit 1a99cdb1 authored by Philip Withnall's avatar Philip Withnall
Browse files

build: Use AX_CHECK_ENABLE_DEBUG

Drop manual debug code in configure.ac. The --enable-debug option to
configure remains unchanged. AX_CHECK_ENABLE_DEBUG is automatically
hooked up to AX_IS_RELEASE, so debug mode will automatically be disabled
for release builds.

https://wiki.gnome.org/Projects/GnomeCommon/Migration
parent 712afbac
......@@ -6,6 +6,9 @@ AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_MAINTAINER_MODE([enable])
# Options
AX_CHECK_ENABLE_DEBUG([yes],[DEBUG])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CPP
......@@ -16,10 +19,6 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
GNOME_COMPILE_WARNINGS([maximum])
GNOME_MAINTAINER_MODE_DEFINES
# Options
AC_ARG_ENABLE([debug],AS_HELP_STRING([--enable-debug],[Enable debugging]),[debug=$enableval],[debug=no])
AM_CONDITIONAL([DEBUG],[test "$debug" = "yes"])
# Code coverage
AX_CODE_COVERAGE()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment