The build will fail early unless the appropriate flag has been
passed to configure.
This will make sure users who compile libvirt from source, as
well as downstream maintainers, are aware of the fact that
support for these architectures will be dropped in the future.
---
configure.ac | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/configure.ac b/configure.ac
index 08051d5..e08d85b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,6 +43,21 @@ m4_ifndef([AM_SILENT_RULES],
AC_CANONICAL_HOST
+LIBVIRT_ARG_ENABLE([DEPRECATED_ARCHITECTURES],
+ [enable/disable support for deprecated architectures], [no])
+case "$host" in
+ *x86*)
+ if test "$enable_deprecated_architectures" = "yes"; then
+ AC_DEFINE_UNQUOTED([ENABLE_DEPRECATED_ARCHITECTURES], 1,
+ [whether deprecated architectures are supported])
+ else
+ AC_MSG_ERROR([You're trying to build libvirt for a deprecated
architecture.
+Support for this architecture will be dropped in the future, but for the time being \
+you can still build libvirt by passing --enable-deprecated-architectures to configure])
+ fi
+ ;;
+esac
+
# First extract pieces from the version number string
LIBVIRT_MAJOR_VERSION=`echo $VERSION | awk -F. '{print $1}'`
LIBVIRT_MINOR_VERSION=`echo $VERSION | awk -F. '{print $2}'`
--
2.7.4