beta-0.89.2
[luatex.git] / source / libs / cairo / cairo-src / build / configure.ac.noversion
blob18c4bd5f7ae317d8cabbdcbc9952e4cc59193f28
1 dnl
2 dnl Version stuff
3 dnl
5 dnl Disable autoconf's version macros.  We try hard to not rebuild the entire
6 dnl library just because version changed.  The PACKAGE_VERSION* stuff in
7 dnl config.h is negating all the effort.
8 dnl
9 dnl We're not actually supposed to be doing this, and indeed adding the
10 dnl AC_DEFINEs below causes confdefs.h to contain duplicate incompatible
11 dnl #defines for the same PACKAGE_* symbols.  Those are provoking warnings
12 dnl from the compiler, and that throws our CAIRO_TRY_LINK_*_ checks off,
13 dnl because they think that there's something wrong with some flag they're
14 dnl testing rather than confdefs.h!  So let's do the gross thing and puke
15 dnl into confdefs.h some #undefs.
16 echo '#undef PACKAGE_VERSION' >>confdefs.h
17 echo '#undef PACKAGE_STRING' >>confdefs.h
18 echo '#undef PACKAGE_NAME' >>confdefs.h
19 echo '#undef PACKAGE_TARNAME' >>confdefs.h
20 AC_DEFINE(PACKAGE_VERSION,      [USE_cairo_version_OR_cairo_version_string_INSTEAD])
21 AC_DEFINE(PACKAGE_STRING,       [USE_cairo_version_OR_cairo_version_string_INSTEAD])
22 AC_DEFINE(PACKAGE_NAME,         [USE_cairo_INSTEAD])
23 AC_DEFINE(PACKAGE_TARNAME,      [USE_cairo_INSTEAD])