summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/log/build/log-platform-config.jam
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/boost/libs/log/build/log-platform-config.jam
parentInitial commit. (diff)
downloadceph-upstream.tar.xz
ceph-upstream.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/libs/log/build/log-platform-config.jam')
-rw-r--r--src/boost/libs/log/build/log-platform-config.jam59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/boost/libs/log/build/log-platform-config.jam b/src/boost/libs/log/build/log-platform-config.jam
new file mode 100644
index 00000000..cee01cc1
--- /dev/null
+++ b/src/boost/libs/log/build/log-platform-config.jam
@@ -0,0 +1,59 @@
+# log-platform-config.jam
+#
+# Copyright 2017 Andrey Semashev
+#
+# Distributed under the Boost Software License Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+import configure ;
+import project ;
+import path ;
+import property ;
+import feature ;
+
+local here = [ modules.binding $(__name__) ] ;
+
+project.push-current [ project.current ] ;
+project.load [ path.join [ path.make $(here:D) ] ../config/xopen-source-600 ] ;
+project.pop-current ;
+
+rule set-platform-defines ( properties * )
+{
+ local result = ;
+
+ if ( <target-os>windows in $(properties) ) || ( <target-os>cygwin in $(properties) )
+ {
+ result += <define>NOMINMAX ;
+ result += <define>WIN32_LEAN_AND_MEAN ;
+ result += <define>SECURITY_WIN32 ;
+ result += <define>BOOST_USE_WINDOWS_H ;
+
+ if <target-os>cygwin in $(properties)
+ {
+ result += <define>__USE_W32_SOCKETS ;
+ result += <define>_XOPEN_SOURCE=600 ;
+ }
+ }
+ else if <target-os>solaris in $(properties)
+ {
+ # Solaris headers are broken and cannot be included in C++03 when _XOPEN_SOURCE=600. At the same time, they cannot be included with _XOPEN_SOURCE=500 in C++11 and later.
+ # This is because the system headers check the C language version and error out if the version does not match. We have to test if we can request _XOPEN_SOURCE=600.
+ if [ configure.builds /boost/log/xopen-source-600//xopen_source_600 : $(properties) : xopen-source-600-supported ]
+ {
+ result += <define>_XOPEN_SOURCE=600 ;
+ }
+ else
+ {
+ result += <define>_XOPEN_SOURCE=500 ;
+ }
+
+ result += <define>__EXTENSIONS__ ;
+ }
+ else if ( <target-os>linux in $(properties) ) || ( <target-os>hpux in $(properties) )
+ {
+ result += <define>_XOPEN_SOURCE=600 ;
+ }
+
+ return $(result) ;
+}