Ticket #1094: auto-link-pkg-config.patch
File auto-link-pkg-config.patch, 3.4 KB (added by , 12 years ago) |
---|
-
auto_link.hpp
87 87 # define BOOST_DO_STRINGIZE(X) #X 88 88 #endif 89 89 // 90 // Only include what follows for known and supported compilers:90 // Unsupported compilers use pkg-config. 91 91 // 92 92 #if defined(BOOST_MSVC) \ 93 93 || defined(__BORLANDC__) \ 94 94 || (defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) \ 95 95 || (defined(__ICL) && defined(_MSC_EXTENSIONS) && (_MSC_VER >= 1200)) 96 #undef BOOST_PKG_CONFIG 97 #else 98 #define BOOST_PKG_CONFIG 1 99 #endif 96 100 97 101 #ifndef BOOST_VERSION_HPP 98 102 # include <boost/version.hpp> … … 361 365 && defined(BOOST_LIB_RT_OPT) \ 362 366 && defined(BOOST_LIB_VERSION) 363 367 364 #ifdef BOOST_AUTO_LINK_TAGGED 365 # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib") 366 # ifdef BOOST_LIB_DIAGNOSTIC 367 # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib") 368 #ifdef BOOST_PKG_CONFIG 369 # ifdef BOOST_PKG_CONFIG_DUMP 370 # ifndef BOOST_PKG_CONFIG_SETUP 371 # define BOOST_PKG_CONFIG_SETUP 372 # include <vector> 373 # include <string> 374 namespace boost 375 { 376 namespace pkg_config 377 { 378 struct library_list 379 { 380 public: 381 static std::vector<std::string> list; 382 library_list(const char *lib) { list.push_back(lib); } 383 }; 384 std::vector<std::string> library_list::list; 385 } 386 } 387 # endif 388 389 boost::pkg_config::library_list BOOST_LIB_NAME (BOOST_STRINGIZE(BOOST_LIB_NAME)); 368 390 # endif 391 #else 392 # ifdef BOOST_AUTO_LINK_TAGGED 393 # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib") 394 # ifdef BOOST_LIB_DIAGNOSTIC 395 # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib") 396 # endif 369 397 #elif defined(BOOST_AUTO_LINK_NOMANGLE) 370 # pragma comment(lib, BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") 371 # ifdef BOOST_LIB_DIAGNOSTIC 372 # pragma message ("Linking to lib file: " BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") 398 # pragma comment(lib, BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") 399 # ifdef BOOST_LIB_DIAGNOSTIC 400 # pragma message ("Linking to lib file: " BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") 401 # endif 402 # else 403 # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib") 404 # ifdef BOOST_LIB_DIAGNOSTIC 405 # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib") 406 # endif 373 407 # endif 374 #else375 # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib")376 # ifdef BOOST_LIB_DIAGNOSTIC377 # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib")378 # endif379 408 #endif 380 409 381 410 #else … … 383 412 #endif 384 413 385 414 386 #endif // _MSC_VER || __BORLANDC__387 415 388 416 // 389 417 // finally undef any macros we may have set: