Browse Source

* acinclude.m4: Remove MC_ARG_ENABLE_DEVELOPER_MODE.
* configure.ac: Replace MC_ARG_ENABLE_DEVELOPER_MODE with a
simpler and more user-friendly piece of code.

Pavel Roskin 20 years ago
parent
commit
4f09f45404
3 changed files with 12 additions and 18 deletions
  1. 6 0
      ChangeLog
  2. 0 17
      acinclude.m4
  3. 6 1
      configure.ac

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2005-05-11  Pavel Roskin  <proski@gnu.org>
+
+	* acinclude.m4: Remove MC_ARG_ENABLE_DEVELOPER_MODE.
+	* configure.ac: Replace MC_ARG_ENABLE_DEVELOPER_MODE with a
+	simpler and more user-friendly piece of code.
+
 2005-05-01  Roland Illig  <roland.illig@gmx.de>
 
 	* syntax/c.syntax: Added missing punctuation characters.

+ 0 - 17
acinclude.m4

@@ -957,20 +957,3 @@ if test "$mc_cv_asm_labels" != yes; then
 	      [Define if functions cannot be renamed by asm labels])
 fi
 ])
-
-AC_DEFUN([MC_ARG_ENABLE_DEVELOPER_MODE],
-[AC_ARG_ENABLE([developer-mode],
-  AC_HELP_STRING([--enable-developer-mode], [Enable debugging help]))
-AM_CONDITIONAL([DEVELOPER], [test x"$enable_developer_mode" = x"yes"])
-if test x"$enable_developer_mode" = x"yes"; then
-  AC_DEFINE([MC_ENABLE_DEBUGGING_CODE], [1], [Enable debugging code])
-  if test x"$GCC" = x"yes"; then
-dnl Developers get some useful warnings and debugging support.
-dnl This will make the backtrace output more readable.
-    CFLAGS="-W -Wall -ggdb ${CFLAGS}"
-  fi
-elif test x"$GCC" = x"yes"; then
-dnl Some warnings cannot hurt at all
-  CFLAGS="-Wall"
-fi
-])

+ 6 - 1
configure.ac

@@ -553,7 +553,12 @@ if test "$GLIBC21" != yes; then
     AC_DEFINE(USE_INCLUDED_REGEX, 1, [Use the regex included here])
 fi
 
-MC_ARG_ENABLE_DEVELOPER_MODE()
+dnl If default CFLAGS is used with gcc, add -Wall
+if test -z "$ac_env_CFLAGS_set"; then
+    if test -n "$GCC"; then
+	CFLAGS="$CFLAGS -Wall"
+    fi
+fi
 
 AC_SUBST(CFLAGS)
 AC_SUBST(CPPFLAGS)