|
|
@ -10,10 +10,10 @@ |
|
|
# |
|
|
# |
|
|
# Test for the Boost C++ libraries of a particular version (or newer) |
|
|
# Test for the Boost C++ libraries of a particular version (or newer) |
|
|
# |
|
|
# |
|
|
# If no path to the installed boost library is given the macro searchs |
|
|
# If no path to the installed boost library is given the macro searches |
|
|
# under /usr, /usr/local, /opt and /opt/local and evaluates the |
|
|
# under /usr, /usr/local, /opt, /opt/local and /opt/homebrew and evaluates |
|
|
# $BOOST_ROOT environment variable. Further documentation is available at |
|
|
# the $BOOST_ROOT environment variable. Further documentation is available |
|
|
# <http://randspringer.de/boost/index.html>. |
|
|
# at <http://randspringer.de/boost/index.html>. |
|
|
# |
|
|
# |
|
|
# This macro calls: |
|
|
# This macro calls: |
|
|
# |
|
|
# |
|
|
@ -33,7 +33,7 @@ |
|
|
# and this notice are preserved. This file is offered as-is, without any |
|
|
# and this notice are preserved. This file is offered as-is, without any |
|
|
# warranty. |
|
|
# warranty. |
|
|
|
|
|
|
|
|
#serial 49 |
|
|
#serial 55 |
|
|
|
|
|
|
|
|
# example boost program (need to pass version) |
|
|
# example boost program (need to pass version) |
|
|
m4_define([_AX_BOOST_BASE_PROGRAM], |
|
|
m4_define([_AX_BOOST_BASE_PROGRAM], |
|
|
@ -114,7 +114,7 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ |
|
|
AS_CASE([${host_cpu}], |
|
|
AS_CASE([${host_cpu}], |
|
|
[x86_64],[libsubdirs="lib64 libx32 lib lib64"], |
|
|
[x86_64],[libsubdirs="lib64 libx32 lib lib64"], |
|
|
[mips*64*],[libsubdirs="lib64 lib32 lib lib64"], |
|
|
[mips*64*],[libsubdirs="lib64 lib32 lib lib64"], |
|
|
[ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64|e2k],[libsubdirs="lib64 lib lib64"], |
|
|
[ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64|e2k|loongarch64],[libsubdirs="lib64 lib lib64"], |
|
|
[libsubdirs="lib"] |
|
|
[libsubdirs="lib"] |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
@ -128,7 +128,7 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
dnl first we check the system location for boost libraries |
|
|
dnl first we check the system location for boost libraries |
|
|
dnl this location ist chosen if boost libraries are installed with the --layout=system option |
|
|
dnl this location is chosen if boost libraries are installed with the --layout=system option |
|
|
dnl or if you install boost with RPM |
|
|
dnl or if you install boost with RPM |
|
|
AS_IF([test "x$_AX_BOOST_BASE_boost_path" != "x"],[ |
|
|
AS_IF([test "x$_AX_BOOST_BASE_boost_path" != "x"],[ |
|
|
AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION) includes in "$_AX_BOOST_BASE_boost_path/include"]) |
|
|
AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION) includes in "$_AX_BOOST_BASE_boost_path/include"]) |
|
|
@ -151,7 +151,7 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ |
|
|
else |
|
|
else |
|
|
search_libsubdirs="$multiarch_libsubdir $libsubdirs" |
|
|
search_libsubdirs="$multiarch_libsubdir $libsubdirs" |
|
|
fi |
|
|
fi |
|
|
for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do |
|
|
for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local /opt/homebrew ; do |
|
|
if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then |
|
|
if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then |
|
|
for libsubdir in $search_libsubdirs ; do |
|
|
for libsubdir in $search_libsubdirs ; do |
|
|
if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi |
|
|
if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi |
|
|
@ -227,7 +227,7 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ |
|
|
fi |
|
|
fi |
|
|
else |
|
|
else |
|
|
if test "x$cross_compiling" != "xyes" ; then |
|
|
if test "x$cross_compiling" != "xyes" ; then |
|
|
for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do |
|
|
for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local /opt/homebrew ; do |
|
|
if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then |
|
|
if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then |
|
|
for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do |
|
|
for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do |
|
|
_version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` |
|
|
_version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` |
|
|
@ -289,6 +289,8 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ |
|
|
else |
|
|
else |
|
|
AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).]) |
|
|
AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).]) |
|
|
fi |
|
|
fi |
|
|
|
|
|
BOOST_LDFLAGS="" |
|
|
|
|
|
BOOST_CPPFLAGS="" |
|
|
# execute ACTION-IF-NOT-FOUND (if present): |
|
|
# execute ACTION-IF-NOT-FOUND (if present): |
|
|
ifelse([$3], , :, [$3]) |
|
|
ifelse([$3], , :, [$3]) |
|
|
else |
|
|
else |
|
|
|