]> granicus.if.org Git - sysstat/commitdiff
configure: Fix --enable-debuginfo option
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 20 Jun 2020 16:24:12 +0000 (18:24 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 20 Jun 2020 16:24:12 +0000 (18:24 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
configure
configure.in

index 681ad1fe2c31adefff13184c015a08edab051c79..a9a2a5d331f9eb27faf5b9858fdf1dde0f90d6eb 100755 (executable)
--- a/configure
+++ b/configure
@@ -623,7 +623,6 @@ ac_subst_vars='LTLIBOBJS
 LIBOBJS
 STRIP
 DFLAGS
-WITH_DEBUG
 INSTALL_DOC
 COLLECT_ALL
 REM_CHOWN
@@ -5570,7 +5569,9 @@ $as_echo "$AUX_DOC" >&6; }
 # Set directory for installing manual pages (see comment in Makefile)
 
 
-# Check whether --debuginfo options should be allowed
+# Check whether debug mode should be activated
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debug mode should be activated" >&5
+$as_echo_n "checking whether debug mode should be activated... " >&6; }
 # Check whether --enable-debuginfo was given.
 if test "${enable_debuginfo+set}" = set; then :
   enableval=$enable_debuginfo; WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG"
@@ -5578,7 +5579,8 @@ else
   WITH_DEBUG=no
 fi
 
-
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_DEBUG" >&5
+$as_echo "$WITH_DEBUG" >&6; }
 
 
 # Check whether object files should be stripped
index 6e5a8f51eebef77d811d651da836e038cff3e339..b75dc171a5f3586ddf5b9f4bdbd6556170761b8d 100644 (file)
@@ -673,12 +673,13 @@ AC_SUBST(INSTALL_DOC)
 # Set directory for installing manual pages (see comment in Makefile)
 AC_SUBST(mandir)
 
-# Check whether --debuginfo options should be allowed
+# Check whether debug mode should be activated
+AC_MSG_CHECKING(whether debug mode should be activated)
 AC_ARG_ENABLE(debuginfo, 
              AC_HELP_STRING([--enable-debuginfo],
                             [enable debug output (--debuginfo option)]),
                             WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG" , WITH_DEBUG=no)
-AC_SUBST(WITH_DEBUG)
+AC_MSG_RESULT($WITH_DEBUG)
 AC_SUBST(DFLAGS)
 
 # Check whether object files should be stripped