forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
, bitcoin#25873, bitcoin#26557, bitcoin#25465, bitcoin#26952, bitcoin#25898:, bitcoin#30217, bitcoin#24266, partial bitcoin#28622 (replace boost::filesystem with std::filesystem: part 2) f4b896e merge bitcoin#24266: Avoid buggy std::filesystem:::create_directories() call (Kittywhiskers Van Gogh) b02d5e3 merge bitcoin#30217: Update Boost download link (Kittywhiskers Van Gogh) 9e80893 partial bitcoin#28622: use macOS 14 SDK (Xcode 15.0) (Kittywhiskers Van Gogh) 05fb206 merge bitcoin#25898: remove WSL 1 workaround in fs (Kittywhiskers Van Gogh) da5b433 merge bitcoin#26952: Avoid `BOOST_NO_CXX98_FUNCTION_BASE` macro redefinition (Kittywhiskers Van Gogh) 7a1f48e merge bitcoin#25465: remove boost library detection (Kittywhiskers Van Gogh) 1d8b890 merge bitcoin#26557: Update Boost to 1.81.0 in depends (Kittywhiskers Van Gogh) 1ad64da merge bitcoin#25873: Boost 1.80.0 (Kittywhiskers Van Gogh) d2c968b merge bitcoin#25808: work around u8path deprecated-declaration warnings with libc++ (Kittywhiskers Van Gogh) aa361b2 merge bitcoin#24301: header-only Boost (Kittywhiskers Van Gogh) 357d1b6 merge bitcoin#24252: Represent paths with fs::path instead of std::string (Kittywhiskers Van Gogh) Pull request description: ## Additional Information * Depends on #6138 ## Breaking Changes None observed. ## Checklist: - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas **(note: N/A)** - [x] I have added or updated relevant unit/integration/functional/e2e tests - [x] I have made corresponding changes to the documentation **(note: N/A)** - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: UdjinM6: utACK f4b896e Tree-SHA512: a23b97a4e2ff5749b8b964a76fab40aa670d1b2c43debdd125d9a747f7e411523b080dc222ef5e2c6dcd9b190afd757392c33eb9e003dc1408d33f52b2e0ecb6
- Loading branch information
Showing
28 changed files
with
97 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
# | ||
# DESCRIPTION | ||
# | ||
# Test for the Boost C++ libraries of a particular version (or newer) | ||
# Test for the Boost C++ headers of a particular version (or newer) | ||
# | ||
# If no path to the installed boost library is given the macro searchs | ||
# under /usr, /usr/local, /opt, /opt/local and /opt/homebrew and evaluates | ||
|
@@ -17,12 +17,14 @@ | |
# | ||
# This macro calls: | ||
# | ||
# AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS) | ||
# AC_SUBST(BOOST_CPPFLAGS) | ||
# | ||
# And sets: | ||
# | ||
# HAVE_BOOST | ||
# | ||
# Note that this macro has been modified compared to upstream. | ||
# | ||
# LICENSE | ||
# | ||
# Copyright (c) 2008 Thomas Porschberg <[email protected]> | ||
|
@@ -59,26 +61,10 @@ AC_ARG_WITH([boost], | |
], | ||
[want_boost="yes"]) | ||
AC_ARG_WITH([boost-libdir], | ||
[AS_HELP_STRING([--with-boost-libdir=LIB_DIR], | ||
[Force given directory for boost libraries. | ||
Note that this will override library path detection, | ||
so use this parameter only if default library detection fails | ||
and you know exactly where your boost libraries are located.])], | ||
[ | ||
AS_IF([test -d "$withval"], | ||
[_AX_BOOST_BASE_boost_lib_path="$withval"], | ||
[AC_MSG_ERROR([--with-boost-libdir expected directory name])]) | ||
], | ||
[_AX_BOOST_BASE_boost_lib_path=""]) | ||
BOOST_LDFLAGS="" | ||
BOOST_CPPFLAGS="" | ||
AS_IF([test "x$want_boost" = "xyes"], | ||
[_AX_BOOST_BASE_RUNDETECT([$1],[$2],[$3])]) | ||
AC_SUBST(BOOST_CPPFLAGS) | ||
AC_SUBST(BOOST_LDFLAGS) | ||
]) | ||
|
||
|
||
|
@@ -139,7 +125,6 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ | |
AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION) lib path in "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"]) | ||
AS_IF([test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ],[ | ||
AC_MSG_RESULT([yes]) | ||
BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"; | ||
break; | ||
], | ||
[AC_MSG_RESULT([no])]) | ||
|
@@ -156,27 +141,17 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ | |
for libsubdir in $search_libsubdirs ; do | ||
if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi | ||
done | ||
BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir" | ||
BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include" | ||
break; | ||
fi | ||
done | ||
]) | ||
dnl overwrite ld flags if we have required special directory with | ||
dnl --with-boost-libdir parameter | ||
AS_IF([test "x$_AX_BOOST_BASE_boost_lib_path" != "x"], | ||
[BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"]) | ||
AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION)]) | ||
AC_MSG_CHECKING([for Boost headers >= $1 ($WANT_BOOST_VERSION)]) | ||
CPPFLAGS_SAVED="$CPPFLAGS" | ||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" | ||
export CPPFLAGS | ||
LDFLAGS_SAVED="$LDFLAGS" | ||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" | ||
export LDFLAGS | ||
AC_REQUIRE([AC_PROG_CXX]) | ||
AC_LANG_PUSH(C++) | ||
AC_COMPILE_IFELSE([_AX_BOOST_BASE_PROGRAM($WANT_BOOST_VERSION)],[ | ||
|
@@ -193,11 +168,8 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ | |
dnl built and installed without the --layout=system option or for a staged(not installed) version | ||
if test "x$succeeded" != "xyes" ; then | ||
CPPFLAGS="$CPPFLAGS_SAVED" | ||
LDFLAGS="$LDFLAGS_SAVED" | ||
BOOST_CPPFLAGS= | ||
if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then | ||
BOOST_LDFLAGS= | ||
fi | ||
_version=0 | ||
if test -n "$_AX_BOOST_BASE_boost_path" ; then | ||
if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then | ||
|
@@ -216,14 +188,6 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ | |
BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path" | ||
fi | ||
fi | ||
dnl if we found something and BOOST_LDFLAGS was unset before | ||
dnl (because "$_AX_BOOST_BASE_boost_lib_path" = ""), set it here. | ||
if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then | ||
for libsubdir in $libsubdirs ; do | ||
if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi | ||
done | ||
BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir" | ||
fi | ||
fi | ||
else | ||
if test "x$cross_compiling" != "xyes" ; then | ||
|
@@ -242,12 +206,6 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ | |
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` | ||
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" | ||
if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then | ||
for libsubdir in $libsubdirs ; do | ||
if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi | ||
done | ||
BOOST_LDFLAGS="-L$best_path/$libsubdir" | ||
fi | ||
fi | ||
if test -n "$BOOST_ROOT" ; then | ||
|
@@ -259,19 +217,16 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ | |
stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` | ||
stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'` | ||
V_CHECK=`expr $stage_version_shorten \>\= $_version` | ||
if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then | ||
if test "x$V_CHECK" = "x1" ; then | ||
AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT) | ||
BOOST_CPPFLAGS="-I$BOOST_ROOT" | ||
BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir" | ||
fi | ||
fi | ||
fi | ||
fi | ||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" | ||
export CPPFLAGS | ||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" | ||
export LDFLAGS | ||
AC_LANG_PUSH(C++) | ||
AC_COMPILE_IFELSE([_AX_BOOST_BASE_PROGRAM($WANT_BOOST_VERSION)],[ | ||
|
@@ -298,6 +253,4 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[ | |
fi | ||
CPPFLAGS="$CPPFLAGS_SAVED" | ||
LDFLAGS="$LDFLAGS_SAVED" | ||
]) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.