[PATCH 2/4] Don't use deprecated acconfig.h for DEBUGGING

Peter Foley pefoley2@pefoley.com
Thu Mar 31 18:04:00 GMT 2016


Use the 3-arg form of AC_DEFINE.

winsup/cygwin/ChangeLog:
acconfig.h: Remove DEBUGGING define.
configure.ac: Add description to DEBUGGING define.
config.h.in: Regenerate.
configure: Ditto.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
---
 winsup/cygwin/acconfig.h   | 3 ---
 winsup/cygwin/config.h.in  | 6 +++---
 winsup/cygwin/configure    | 3 ++-
 winsup/cygwin/configure.ac | 2 +-
 4 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/winsup/cygwin/acconfig.h b/winsup/cygwin/acconfig.h
index 2f8d58c..ffe9f81 100644
--- a/winsup/cygwin/acconfig.h
+++ b/winsup/cygwin/acconfig.h
@@ -1,6 +1,3 @@
-/* Define if DEBUGGING support is requested.  */
-#undef DEBUGGING
-
 /* Define if MALLOC_DEBUGGING support is requested.  */
 #undef MALLOC_DEBUG
 
diff --git a/winsup/cygwin/config.h.in b/winsup/cygwin/config.h.in
index 39eb968..32f191a 100644
--- a/winsup/cygwin/config.h.in
+++ b/winsup/cygwin/config.h.in
@@ -1,13 +1,13 @@
 /* config.h.in.  Generated from configure.ac by autoheader.  */
-/* Define if DEBUGGING support is requested.  */
-#undef DEBUGGING
-
 /* Define if MALLOC_DEBUGGING support is requested.  */
 #undef MALLOC_DEBUG
 
 /* Define if using new vfork functionality. */
 #undef NEWVFORK
 
+/* Define if DEBUGGING support is requested. */
+#undef DEBUGGING
+
 /* Define to the address where bug reports for this package should be sent. */
 #undef PACKAGE_BUGREPORT
 
diff --git a/winsup/cygwin/configure b/winsup/cygwin/configure
index 8e69354..5f67d1f 100755
--- a/winsup/cygwin/configure
+++ b/winsup/cygwin/configure
@@ -4429,7 +4429,8 @@ fi
 # Check whether --enable-debugging was given.
 if test "${enable_debugging+set}" = set; then :
   enableval=$enable_debugging; case "${enableval}" in
-yes)	 $as_echo "#define DEBUGGING 1" >>confdefs.h
+yes)
+$as_echo "#define DEBUGGING 1" >>confdefs.h
  ;;
 no)	 ;;
 esac
diff --git a/winsup/cygwin/configure.ac b/winsup/cygwin/configure.ac
index efef76f..88e9694 100644
--- a/winsup/cygwin/configure.ac
+++ b/winsup/cygwin/configure.ac
@@ -66,7 +66,7 @@ AC_PROG_MAKE_SET
 AC_ARG_ENABLE(debugging,
 [ --enable-debugging		Build a cygwin DLL which has more consistency checking for debugging],
 [case "${enableval}" in
-yes)	 AC_DEFINE(DEBUGGING) ;;
+yes)	 AC_DEFINE([DEBUGGING],[1],[Define if DEBUGGING support is requested.]) ;;
 no)	 ;;
 esac
 ])
-- 
2.8.0



More information about the Cygwin-patches mailing list