1 // (C) Copyright John Maddock 2003.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // See http://www.boost.org/libs/config for the most recent version.
7
8
9 #define BOOST_CONFIG_SOURCE
10
11 #include "link_test.hpp"
12 #include <iostream>
13 #include <iomanip>
14
check_options(bool m_dyn_link,bool m_dyn_rtl,bool m_has_threads,bool m_debug,bool m_stlp_debug)15 bool BOOST_CONFIG_DECL check_options(
16 bool m_dyn_link,
17 bool m_dyn_rtl,
18 bool m_has_threads,
19 bool m_debug,
20 bool m_stlp_debug)
21 {
22 if(m_dyn_link != dyn_link)
23 {
24 std::cout << "Dynamic link options do not match" << std::endl;
25 std::cout << "Application setting = " << m_dyn_link << " Library setting = " << dyn_link << std::endl;
26 return false;
27 }
28 if(m_dyn_rtl != dyn_rtl)
29 {
30 std::cout << "Runtime library options do not match" << std::endl;
31 std::cout << "Application setting = " << m_dyn_rtl << " Library setting = " << dyn_rtl << std::endl;
32 return false;
33 }
34 if(m_has_threads != has_threads)
35 {
36 std::cout << "Threading options do not match" << std::endl;
37 std::cout << "Application setting = " << m_has_threads << " Library setting = " << has_threads << std::endl;
38 return false;
39 }
40 if(m_debug != debug)
41 {
42 std::cout << "Debug options do not match" << std::endl;
43 std::cout << "Application setting = " << m_debug << " Library setting = " << debug << std::endl;
44 return false;
45 }
46 if(m_stlp_debug != stl_debug)
47 {
48 std::cout << "STLPort debug options do not match" << std::endl;
49 std::cout << "Application setting = " << m_stlp_debug << " Library setting = " << stl_debug << std::endl;
50 return false;
51 }
52 return true;
53 }
54
55