summaryrefslogtreecommitdiff
path: root/boost/timer/config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/timer/config.hpp')
-rw-r--r--boost/timer/config.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/boost/timer/config.hpp b/boost/timer/config.hpp
index adf223d3e4..0c2174c306 100644
--- a/boost/timer/config.hpp
+++ b/boost/timer/config.hpp
@@ -47,6 +47,37 @@
// And include the header that does the work:
//
#include <boost/config/auto_link.hpp>
+
+// We also need to autolink to the Chrono library; even though
+// it's not used in the interface, and no Chrono header is included,
+// it's used in the implementation and is necessary in order to link
+
+#if !defined(BOOST_CHRONO_NO_LIB)
+
+#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CHRONO_DYN_LINK)
+# define BOOST_DYN_LINK
+#endif
+
+#define BOOST_LIB_NAME boost_chrono
+
+#include <boost/config/auto_link.hpp>
+
+#endif // !defined(BOOST_CHRONO_NO_LIB)
+
+// Plus, Chrono uses System, so we need to link that too
+
+#if !defined(BOOST_SYSTEM_NO_LIB)
+
+#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK)
+# define BOOST_DYN_LINK
+#endif
+
+#define BOOST_LIB_NAME boost_system
+
+#include <boost/config/auto_link.hpp>
+
+#endif // !defined(BOOST_SYSTEM_NO_LIB)
+
#endif // auto-linking disabled
#endif // BOOST_TIMER_CONFIG_HPP