Skip to content

Commit 4606600

Browse files
committed
Updated the boost autoconf macro.
1 parent eb77304 commit 4606600

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

ChangeLog

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
1.0.6:
22
* Display invalid requests as having the path '???'.
3+
* Updated the boost autoconf macro.
34

45
1.0.5:
56
* Performance improvements.

m4/ax_boost_base.m4

+17-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# and this notice are preserved. This file is offered as-is, without any
3434
# warranty.
3535

36-
#serial 20
36+
#serial 23
3737

3838
AC_DEFUN([AX_BOOST_BASE],
3939
[
@@ -91,9 +91,23 @@ if test "x$want_boost" = "xyes"; then
9191
dnl are found, e.g. when only header-only libraries are installed!
9292
libsubdirs="lib"
9393
ax_arch=`uname -m`
94-
if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
94+
case $ax_arch in
95+
x86_64|ppc64|s390x|sparc64|aarch64)
9596
libsubdirs="lib64 lib lib64"
96-
fi
97+
;;
98+
esac
99+
100+
dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give
101+
dnl them priority over the other paths since, if libs are found there, they
102+
dnl are almost assuredly the ones desired.
103+
AC_REQUIRE([AC_CANONICAL_HOST])
104+
libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
105+
106+
case ${host_cpu} in
107+
i?86)
108+
libsubdirs="lib/i386-${host_os} $libsubdirs"
109+
;;
110+
esac
97111
98112
dnl first we check the system location for boost libraries
99113
dnl this location ist chosen if boost libraries are installed with the --layout=system option

0 commit comments

Comments
 (0)