Merge pull request #833 from libexpat/configure-ac-protect-multilib

`configure.ac`: Protect against `expat_config.h.in` defining `SIZEOF_VOID_P`
This commit is contained in:
Sebastian Pipping 2024-02-28 00:55:34 +01:00 committed by GitHub
commit a387201ca4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -418,6 +418,14 @@ AC_SUBST([SO_MINOR])
AC_SUBST([SO_PATCH])
AC_SUBST([ac_cv_sizeof_void_p])
dnl Protect against generating an expat_config.h that would break multilib
AS_IF([grep -F -q SIZEOF_VOID_P "${srcdir}"/expat_config.h.in],
[AC_MSG_ERROR(
[Plain autoreconf/autoheader does not cut it,
please use ./buildconf.sh or imitate its effect
through other means, so that file expat_config.h.in
no longer defines macro SIZEOF_VOID_P, as that would
break multilib support. Thank you.])])
dnl write the Automake flags we set
AC_SUBST([AM_CPPFLAGS])