mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-20 07:10:46 +02:00
[aclocal] Move CAIRO_PARSE_VERSION to acinclude.m4
It belongs there as it includes other files. It was breaking build on older autoconf it seems.
This commit is contained in:
parent
656b0e3ea7
commit
879b5c7057
2 changed files with 13 additions and 11 deletions
13
acinclude.m4
13
acinclude.m4
|
|
@ -4,3 +4,16 @@ dnl [m4_newline] didn't appear until autoconf 2.62
|
|||
m4_ifdef([m4_newline],,m4_define([m4_newline],[
|
||||
]))
|
||||
|
||||
dnl ==========================================================================
|
||||
|
||||
dnl This has to be in acinclude.m4 as it includes other files
|
||||
|
||||
dnl Parse Version.mk and declare m4 variables out of it
|
||||
m4_define([CAIRO_PARSE_VERSION],dnl
|
||||
m4_translit(dnl
|
||||
m4_bpatsubst(m4_include(cairo-version.h),
|
||||
[^.define \([a-zA-Z0-9_]*\) *\([0-9][0-9]*\)],
|
||||
[[m4_define(\1, \[\2\])]]),
|
||||
[A-Z], [a-z])dnl
|
||||
)dnl
|
||||
|
||||
|
|
|
|||
|
|
@ -8,17 +8,6 @@ m4_pattern_forbid([^cr_])
|
|||
|
||||
dnl ==========================================================================
|
||||
|
||||
dnl Parse Version.mk and declare m4 variables out of it
|
||||
m4_define([CAIRO_PARSE_VERSION],dnl
|
||||
m4_translit(dnl
|
||||
m4_bpatsubst(m4_include(cairo-version.h),
|
||||
[^.define \([a-zA-Z0-9_]*\) *\([0-9][0-9]*\)],
|
||||
[[m4_define(\1, \[\2\])]]),
|
||||
[A-Z], [a-z])dnl
|
||||
)dnl
|
||||
|
||||
dnl ==========================================================================
|
||||
|
||||
dnl Usage:
|
||||
dnl CAIRO_BIGENDIAN
|
||||
dnl
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue