~canonical-dx-team/nux/trunk

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Didier Roche
  • Date: 2010-11-29 15:28:04 UTC
  • Revision ID: didier.roche@canonical.com-20101129152804-wjh76yiubhsre2sx
fix maintainer mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
AC_SUBST(GCC_FLAGS)
188
188
 
189
189
# use strict compiler flags only on development releases
190
 
m4_define([maintainer_flags_default], [m4_if(m4_eval(nux_minor_version % 2), [1], [yes], [no])])
191
 
AC_ARG_ENABLE([maintainer-flags],
192
 
              [AC_HELP_STRING([--enable-maintainer-flags=@<:@no/yes@:>@],
 
190
m4_define([maintainer_mode_default], [m4_if(m4_eval(nux_micro_version % 2), [1], [yes], [no])])
 
191
AC_ARG_ENABLE([maintainer-mode],
 
192
              [AC_HELP_STRING([--enable-maintainer-mode=@<:@no/yes@:>@],
193
193
                              [Use strict compiler flags @<:@default=no@:>@])],
194
194
              [],
195
 
              [enable_maintainer_flags=maintainer_flags_default])
 
195
              [enable_maintainer_mode=maintainer_mode_default])
196
196
 
197
197
MAINTAINER_CFLAGS=""
198
 
AS_IF([test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"],
 
198
AS_IF([test "x$enable_maintainer_mode" = "xyes" && test "x$GCC" = "xyes"],
199
199
      [
200
200
         MAINTAINER_CFLAGS+="-Werror -Wall -Wcast-align -Wno-uninitialized -Wempty-body -Wformat-security -Winit-self"
201
201
      ]