From 11cafd7673291d1f8122be6d8d62fe14d3245559 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 19 Jul 2018 16:00:10 +0200 Subject: [PATCH] configure: Clean code for --enable-debug * Remove unneeded arguments for AC_ARG_ENABLE (needs renaming of macro) * Use [] instead of () for default in help text Signed-off-by: Stefan Weil --- configure.ac | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index d9b9704089..7b4f325f48 100644 --- a/configure.ac +++ b/configure.ac @@ -284,12 +284,9 @@ AM_CONDITIONAL([NO_TESSDATA_PREFIX], [test "$tessdata_prefix" = "no"]) # Check whether to enable debugging AC_MSG_CHECKING([whether to enable debugging]) AC_ARG_ENABLE([debug], - [AS_HELP_STRING([--enable-debug], - [turn on debugging (default=no)])], - [debug=$enableval], - [debug="no"]) -AC_MSG_RESULT([$debug]) -if test x"$debug" = x"yes"; then + AS_HELP_STRING([--enable-debug], [turn on debugging [default=no]])) +AC_MSG_RESULT([$enable_debug]) +if test x"$enable_debug" = x"yes"; then AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -O0 -DDEBUG" AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -DDEBUG" else