Remove unused configure option --enable-debug
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 6 Oct 2013 02:19:13 +0000 (22:19 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 10 Oct 2013 01:08:16 +0000 (21:08 -0400)
Makefile.am
config/.gitignore [new file with mode: 0644]
config/debug.m4 [deleted file]
configure.ac

index ace901c..623e0b9 100644 (file)
@@ -6,7 +6,6 @@ SUBDIRS = src data doc
 
 ## We want these in the dist tarball
 EXTRA_DIST = autogen.sh \
-             $(ac_aux_dir)/debug.m4 \
              pixmaps \
              test-files
 
diff --git a/config/.gitignore b/config/.gitignore
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/config/debug.m4 b/config/debug.m4
deleted file mode 100644 (file)
index f8fc330..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-dnl
-dnl Macro for adding an option to 'configure' for enabling debugging messages
-dnl
-AC_DEFUN([HV_CHECK_FOR_DEBUG],[
-AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
-                                    [enable debugging messages on console
-                                     (default is NO)]),[
-  if test x"${enableval}" = xyes; then
-    debug_messages=1
-    AC_DEFINE([DEBUG],1,[Set to 1 to enable debugging messages.])
-  elif test x"${enableval}" = xno; then
-    debug_messages=0
-  else
-    AC_MSG_ERROR(bad value for --enable-debug option)
-  fi
-], debug_messages=0 )
-])
-
index 2f0407a..dd13336 100644 (file)
@@ -21,14 +21,6 @@ AC_TYPE_SIZE_T
 dnl Basic CFLAGS values
 CFLAGS="${CFLAGS} -Wall"
 
-dnl Checks for '--enable-debug' option
-HV_CHECK_FOR_DEBUG
-
-if test x"${debug_messages}" = x1; then
-dnl -g is for GDB debugging
-  CFLAGS="${CFLAGS} -g -gdwarf-2 -g3"
-fi
-
 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.26.0])
 AC_SUBST(GLIB_CFLAGS)
 AC_SUBST(GLIB_LIBS)
@@ -77,13 +69,6 @@ else
   echo "no"
 fi
 
-echo -n "  Debugging messages:  "
-if test x"${debug_messages}" = x1; then
-  echo "yes"
-else
-  echo "no"
-fi
-
 echo \
 "
   See config.h for further configuration information.