Mercurial > noffle
diff configure @ 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 | 688bd51704e0 |
children | 8eb2975c8c1a |
line wrap: on
line diff
--- 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