Mercurial > noffle
changeset 101:ce8191c38f44 noffle
[svn] * configure, configure.in: Changed the --enable-debug option of configure.
It now accepts the parameters 'no', 'min' and 'yes', i.e. no compiler-
warnings, minimum compiler-warnings and maximum compiler-warnings.
Default is 'min'. Stable releases should have 'no' as default, IHMO.
* NEWS: Update.
author | uh1763 |
---|---|
date | Mon, 29 May 2000 17:35:01 +0100 |
parents | af51bf245bc3 |
children | 38b0a1532a37 |
files | ChangeLog NEWS configure configure.in |
diffstat | 4 files changed, 40 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri May 26 10:46:29 2000 +0100 +++ b/ChangeLog Mon May 29 17:35:01 2000 +0100 @@ -2,6 +2,15 @@ NOFFLE ChangeLog ------------------------------------------------------------------------------- +Mon May 29 18:28:25 CEST 2000 Uwe Hermann <uh1763@bingo-ev.de> + + * configure, configure.in: Changed the --enable-debug option of configure. + It now accepts the parameters 'no', 'min' and 'yes', i.e. no compiler- + warnings, minimum compiler-warnings and maximum compiler-warnings. + Default is 'min'. Stable releases should have 'no' as default, IHMO. + + * NEWS: Update. + Thu May 25 22:03:56 BST 2000 Jim Hague <jim.hague@acm.org> * src/post.c: Fixed stupid bug in article checking code where a
--- a/NEWS Fri May 26 10:46:29 2000 +0100 +++ b/NEWS Mon May 29 17:35:01 2000 +0100 @@ -8,6 +8,7 @@ * Observe Expires: and Supersedes: headers. * Added post-locally option and '--post' command line option. * Add getgroups and omitgroups options. + * added ./configure-option '--enable-debug=[no/min/yes]' 1.0pre6 -------
--- a/configure Fri May 26 10:46:29 2000 +0100 +++ b/configure Mon May 29 17:35:01 2000 +0100 @@ -14,7 +14,7 @@ ac_help="$ac_help NOFFLE options: - --enable-debug turn on debugging (default=yes)" + --enable-debug=[no/min/yes] turn on debugging [default=min]" ac_help="$ac_help --with-docdir=PATH specify where to put the documentation " @@ -2532,18 +2532,28 @@ enableval="$enable_debug" : else - enable_debug=yes + enable_debug=min fi -if test "x$enable_debug" = "xyes" && test "x$GCC" = "xyes" -then +if test "x$enable_debug" = "xyes" && test "x$GCC" = "xyes"; then CFLAGS="$CFLAGS \ -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \ -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \ -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \ -Wmissing-declarations -Wnested-externs -Winline \ -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG" +else + + + if test "x$enable_debug" != "xno" && test "x$GCC" = "xyes"; then + CFLAGS="$CFLAGS \ +-Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow \ +-Wcast-qual -Wcast-align -Wwrite-strings \ +-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \ +-Wmissing-declarations -Wnested-externs -Winline \ +-D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG" + fi fi @@ -2554,7 +2564,7 @@ noffle_cv_docdir=$withval else echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6 -echo "configure:2558: checking where to put the documentation" >&5 +echo "configure:2568: checking where to put the documentation" >&5 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else
--- a/configure.in Fri May 26 10:46:29 2000 +0100 +++ b/configure.in Mon May 29 17:35:01 2000 +0100 @@ -129,17 +129,28 @@ AC_ARG_ENABLE(debug, [ NOFFLE options: - --enable-debug turn on debugging (default=yes)], , -enable_debug=yes) + --enable-debug=[no/min/yes] turn on debugging [default=min]], , +enable_debug=min) -if test "x$enable_debug" = "xyes" && test "x$GCC" = "xyes" -then +if test "x$enable_debug" = "xyes" && test "x$GCC" = "xyes"; then CFLAGS="$CFLAGS \ -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \ -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \ -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \ -Wmissing-declarations -Wnested-externs -Winline \ -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG" +else + + dnl Do nothing if --enable-debug=no + + if test "x$enable_debug" != "xno" && test "x$GCC" = "xyes"; then + CFLAGS="$CFLAGS \ +-Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow \ +-Wcast-qual -Wcast-align -Wwrite-strings \ +-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \ +-Wmissing-declarations -Wnested-externs -Winline \ +-D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG" + fi fi