]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // Copyright (c) 2004 Hartmut Kaiser |
2 | // | |
3 | // Use, modification and distribution is subject to the Boost Software | |
4 | // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
5 | // http://www.boost.org/LICENSE_1_0.txt) | |
6 | ||
7 | #ifndef BOOST_PROGRAM_OPTIONS_CONFIG_HK_2004_01_11 | |
8 | #define BOOST_PROGRAM_OPTIONS_CONFIG_HK_2004_01_11 | |
9 | ||
10 | #include <boost/config.hpp> | |
11 | #include <boost/version.hpp> | |
12 | ||
13 | // Support for autolinking. | |
14 | #if BOOST_VERSION >= 103100 // works beginning from Boost V1.31.0 | |
15 | ||
16 | /////////////////////////////////////////////////////////////////////////////// | |
17 | // enable automatic library variant selection | |
18 | #if !defined(BOOST_PROGRAM_OPTIONS_SOURCE) && !defined(BOOST_ALL_NO_LIB) && \ | |
19 | !defined(BOOST_PROGRAM_OPTIONS_NO_LIB) | |
20 | ||
21 | // Set the name of our library, this will get undef'ed by auto_link.hpp | |
22 | // once it's done with it: | |
23 | #define BOOST_LIB_NAME boost_program_options | |
24 | // tell the auto-link code to select a dll when required: | |
25 | #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_PROGRAM_OPTIONS_DYN_LINK) | |
26 | # define BOOST_DYN_LINK | |
27 | #endif | |
28 | ||
29 | // And include the header that does the work: | |
30 | #include <boost/config/auto_link.hpp> | |
31 | ||
32 | #endif // auto-linking disabled | |
33 | ||
34 | #endif // BOOST_VERSION | |
35 | ||
36 | /////////////////////////////////////////////////////////////////////////////// | |
37 | #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_PROGRAM_OPTIONS_DYN_LINK) | |
38 | // export if this is our own source, otherwise import: | |
39 | #ifdef BOOST_PROGRAM_OPTIONS_SOURCE | |
40 | # define BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_EXPORT | |
41 | #else | |
42 | # define BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_IMPORT | |
43 | #endif // BOOST_PROGRAM_OPTIONS_SOURCE | |
44 | #endif // DYN_LINK | |
45 | ||
46 | #ifndef BOOST_PROGRAM_OPTIONS_DECL | |
47 | #define BOOST_PROGRAM_OPTIONS_DECL | |
48 | #endif | |
49 | ||
50 | ||
51 | #endif // PROGRAM_OPTIONS_CONFIG_HK_2004_01_11 | |
52 |