[PATCH:libX11 2/3 v2] config: Use correct AC_CONFIG_HEADERS macro

Gaetan Nadon memsize at videotron.ca
Wed Jan 19 06:13:50 PST 2011


On Tue, 2011-01-18 at 19:34 -0800, Alan Coopersmith wrote:

> Replaces obsolete AM_CONFIG_HEADER and undocumented AC_CONFIG_HEADER
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
> 
> Updated to use preferred macro as suggested by Gaetan
> 
>  configure.ac |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index a41d642..2e96d58 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -7,14 +7,13 @@ AC_INIT([libX11],
>          [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
>          libX11)
>  AC_CONFIG_SRCDIR([Makefile.am])
> +AC_CONFIG_HEADERS([src/config.h include/X11/XlibConf.h])
>  AC_CONFIG_MACRO_DIR([m4])
>  AC_CANONICAL_BUILD
>  AC_CANONICAL_HOST
>  
>  AM_INIT_AUTOMAKE([foreign dist-bzip2])
>  AM_MAINTAINER_MODE
> -AM_CONFIG_HEADER([src/config.h])
> -AC_CONFIG_HEADER([include/X11/XlibConf.h])
>  
>  # Set common system defines for POSIX extensions, such as _GNU_SOURCE
>  # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)


Reviewed-by: Gaetan Nadon <memsize at videotron.ca>

In autoconf/status.m4:

        # AC_CONFIG_HEADER(HEADER-TO-CREATE ...)
        # --------------------------------------
        # FIXME: Make it obsolete?
        AC_DEFUN([AC_CONFIG_HEADER],
        [AC_CONFIG_HEADERS([$1])])



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110119/d2e5a30a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110119/d2e5a30a/attachment.pgp>


More information about the xorg-devel mailing list