···1---- a/m4/ax_boost_base.m4
2-+++ b/m4/ax_boost_base.m4
3-@@ -33,7 +33,7 @@
4- # and this notice are preserved. This file is offered as-is, without any
5- # warranty.
6-7--#serial 20
8-+#serial 22
9-10- AC_DEFUN([AX_BOOST_BASE],
11- [
12-@@ -91,9 +91,17 @@ if test "x$want_boost" = "xyes"; then
13- dnl are found, e.g. when only header-only libraries are installed!
14- libsubdirs="lib"
15- ax_arch=`uname -m`
16-- if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
17-+ case $ax_arch in
18-+ x86_64|ppc64|s390x|sparc64|aarch64)
19- libsubdirs="lib64 lib lib64"
20-- fi
21-+ ;;
22-+ esac
23-+
24-+ dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give
25-+ dnl them priority over the other paths since, if libs are found there, they
26-+ dnl are almost assuredly the ones desired.
27-+ AC_REQUIRE([AC_CANONICAL_HOST])
28-+ libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
29-30- dnl first we check the system location for boost libraries
31- dnl this location ist chosen if boost libraries are installed with the --layout=system option