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