[PATCH 2/2] Add XORG_DEFAULT_OPTIONS meta-macro.

Peter Hutterer peter.hutterer at who-t.net
Mon Aug 31 22:07:55 PDT 2009


On Mon, Aug 31, 2009 at 09:31:06PM -0700, Jeremy Huddleston wrote:
> +1 for modularity
> -1 for this coming in after you finished releasing 20ish updates =/

I know... this isn't something particularly urgent though.

Cheers,
  Peter

> Peter Hutterer wrote:
> > Many modules use the same set of m4 macros. Additions to the macros require
> > updating the configure.ac for each module affected. In the case of e.g.
> > protos and libs this means updating every single module.
> > 
> > This patch adds a XORG_DEFAULT_OPTIONS meta-macro that uses the other macros
> > defined. Macros can be added to this meta-macro and modules immediately get
> > to make use of it - without changes required to configure.ac.
> > 
> > Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> > ---
> >  xorg-macros.m4.in |   15 +++++++++++++++
> >  1 files changed, 15 insertions(+), 0 deletions(-)
> > 
> > diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
> > index 5c22332..ef9f34f 100644
> > --- a/xorg-macros.m4.in
> > +++ b/xorg-macros.m4.in
> > @@ -485,3 +485,18 @@ fi
> >  CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
> >  AC_SUBST([CWARNFLAGS])
> >  ]) # XORG_STRICT_OPTION
> > +
> > +# XORG_DEFAULT_OPTIONS
> > +# --------------------
> > +# Minimum version: 1.3.0
> > +#
> > +# Defines default options for X.Org modules.
> > +#
> > +AC_DEFUN([XORG_DEFAULT_OPTIONS], [
> > +XORG_CWARNFLAGS
> > +XORG_STRICT_OPTION
> > +XORG_CHECK_MALLOC_ZERO
> > +XORG_RELEASE_VERSION
> > +XORG_CHANGELOG
> > +XORG_MANPAGE_SECTIONS
> > +]) # XORG_DEFAULT_OPTIONS
> 


More information about the xorg-devel mailing list