1 // Copyright (c) 2004 Hartmut Kaiser
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)
7 #ifndef BOOST_PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
8 #define BOOST_PROGRAM_OPTIONS_CONFIG_HK_2004_01_11
10 #include <boost/config.hpp>
11 #include <boost/version.hpp>
13 // Support for autolinking.
14 #if BOOST_VERSION >= 103100 // works beginning from Boost V1.31.0
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)
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
29 // And include the header that does the work:
30 #include <boost/config/auto_link.hpp>
32 #endif // auto-linking disabled
34 #endif // BOOST_VERSION
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
42 # define BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_IMPORT
43 #endif // BOOST_PROGRAM_OPTIONS_SOURCE
46 #ifndef BOOST_PROGRAM_OPTIONS_DECL
47 #define BOOST_PROGRAM_OPTIONS_DECL
51 #endif // PROGRAM_OPTIONS_CONFIG_HK_2004_01_11