Changeset aed262 for ThirdParty/JobMarket
- Timestamp:
- May 5, 2017, 2:17:22 PM (8 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph_documentation, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, Fix_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes
- Children:
- dabe63
- Parents:
- ac9dc8
- git-author:
- Frederik Heber <heber@…> (03/03/17 14:30:09)
- git-committer:
- Frederik Heber <frederik.heber@…> (05/05/17 14:17:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/JobMarket/m4/boost.m4
rac9dc8 raed262 23 23 24 24 m4_define([_BOOST_SERIAL], [m4_translit([ 25 # serial 2 225 # serial 26 26 26 ], [# 27 27 ], [])]) … … 73 73 dnl everything else. 74 74 dnl Cannot use 'dnl' after [$4] because a trailing dnl may break AC_CACHE_CHECK 75 dnl 76 dnl Beware that GCC 5, when expanding macros, may embed # line directives 77 dnl a within single line: 78 dnl 79 dnl # 1 "conftest.cc" 80 dnl # 1 "<built-in>" 81 dnl # 1 "<command-line>" 82 dnl # 1 "conftest.cc" 83 dnl # 1 "/opt/local/include/boost/version.hpp" 1 3 84 dnl # 2 "conftest.cc" 2 85 dnl boost-lib-version = 86 dnl # 2 "conftest.cc" 3 87 dnl "1_56" 88 dnl 89 dnl So get rid of the # and empty lines, and glue the remaining ones together. 75 90 (eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | 91 grep -v '#' | 92 grep -v '^[[[:space:]]]*$' | 76 93 tr -d '\r' | 94 tr -s '\n' ' ' | 77 95 $SED -n -e "$1" >conftest.i 2>&1], 78 96 [$3], … … 94 112 # ACTION-IF-NOT-FOUND action if one was supplied. 95 113 # Otherwise aborts with an error message. 96 AC_DEFUN ([BOOST_REQUIRE],114 AC_DEFUN_ONCE([BOOST_REQUIRE], 97 115 [AC_REQUIRE([AC_PROG_CXX])dnl 98 116 AC_REQUIRE([AC_PROG_GREP])dnl … … 209 227 [boost_cv_lib_version], 210 228 [m4_pattern_allow([^BOOST_LIB_VERSION$])dnl 211 _BOOST_SED_CPP([ /^boost-lib-version = /{s///;s/\"//g;p;q;}],229 _BOOST_SED_CPP([[/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}]], 212 230 [#include <boost/version.hpp> 213 231 boost-lib-version = BOOST_LIB_VERSION], … … 217 235 case $boost_major_version in #( 218 236 '' | *[[!0-9]]*) 219 AC_MSG_ERROR([invalid value: boost_major_version= $boost_major_version])237 AC_MSG_ERROR([invalid value: boost_major_version='$boost_major_version']) 220 238 ;; 221 239 esac … … 539 557 BOOST_FIND_HEADER([boost/asio.hpp])]) 540 558 559 # BOOST_BIMAP() 560 # ------------ 561 # Look for Boost.Bimap 562 BOOST_DEFUN([Bimap], 563 [BOOST_FIND_HEADER([boost/bimap.hpp])]) 564 565 566 # BOOST_ASSIGN() 567 # ------------- 568 # Look for Boost.Assign 569 BOOST_DEFUN([Assign], 570 [BOOST_FIND_HEADER([boost/assign.hpp])]) 571 541 572 542 573 # BOOST_BIND() … … 545 576 BOOST_DEFUN([Bind], 546 577 [BOOST_FIND_HEADER([boost/bind.hpp])]) 578 579 580 # BOOST_CAST() 581 # ------------ 582 # Look for Boost.Cast 583 BOOST_DEFUN([Cast], 584 [BOOST_FIND_HEADER([boost/cast.hpp])]) 547 585 548 586 … … 566 604 [boost::chrono::thread_clock d;]) 567 605 if test $enable_static_boost = yes && test $boost_major_version -ge 135; then 568 BOOST_ FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS"606 BOOST_CHRONO_LIBS="$BOOST_CHRONO_LIBS $BOOST_SYSTEM_LIBS" 569 607 fi 570 608 LIBS=$boost_filesystem_save_LIBS 571 609 LDFLAGS=$boost_filesystem_save_LDFLAGS 572 610 ])# BOOST_CHRONO 611 612 613 # BOOST_CONTEXT([PREFERRED-RT-OPT]) 614 # ----------------------------------- 615 # Look for Boost.Context. For the documentation of PREFERRED-RT-OPT, see the 616 # documentation of BOOST_FIND_LIB above. 617 # 618 # * This library was introduced in Boost 1.51.0 619 # * The signatures of make_fcontext() and jump_fcontext were changed in 1.56.0 620 # * A dependency on boost_thread appears in 1.57.0 621 BOOST_DEFUN([Context], 622 [boost_context_save_LIBS=$LIBS 623 boost_context_save_LDFLAGS=$LDFLAGS 624 if test $boost_major_version -ge 157; then 625 BOOST_THREAD([$1]) 626 m4_pattern_allow([^BOOST_THREAD_(LIBS|LDFLAGS)$])dnl 627 LIBS="$LIBS $BOOST_THREAD_LIBS" 628 LDFLAGS="$LDFLAGS $BOOST_THREAD_LDFLAGS" 629 fi 630 BOOST_FIND_LIB([context], [$1], 631 [boost/context/all.hpp],[[ 632 633 // creates a stack 634 void * stack_pointer = new void*[4096]; 635 std::size_t const size = sizeof(void*[4096]); 636 637 #if BOOST_VERSION <= 105100 638 ctx::make_fcontext(&fc, f); 639 return ctx::jump_fcontext(&fcm, &fc, 3) == 6; 640 641 #else 642 643 fc = ctx::make_fcontext(stack_pointer, size, f); 644 return ctx::jump_fcontext(&fcm, fc, 3) == 6; 645 646 #endif 647 648 649 ]],[dnl 650 651 #include <boost/version.hpp> 652 #if BOOST_VERSION <= 105100 653 654 namespace ctx = boost::ctx; 655 656 static ctx::fcontext_t fcm, fc; 657 658 static void f(intptr_t i) { 659 ctx::jump_fcontext(&fc, &fcm, i * 2); 660 } 661 662 #elif BOOST_VERSION <= 105500 663 664 namespace ctx = boost::context; 665 666 // context 667 static ctx::fcontext_t fcm, *fc; 668 669 // context-function 670 static void f(intptr_t i) { 671 ctx::jump_fcontext(fc, &fcm, i * 2); 672 } 673 674 #else 675 676 namespace ctx = boost::context; 677 678 // context 679 static ctx::fcontext_t fcm, fc; 680 681 // context-function 682 static void f(intptr_t i) { 683 ctx::jump_fcontext(&fc, fcm, i * 2); 684 } 685 #endif 686 ]) 687 LIBS=$boost_context_save_LIBS 688 LDFLAGS=$boost_context_save_LDFLAGS 689 ])# BOOST_CONTEXT 573 690 574 691 … … 580 697 BOOST_FIND_HEADER([boost/lexical_cast.hpp]) 581 698 ])# BOOST_CONVERSION 699 700 701 # BOOST_COROUTINE([PREFERRED-RT-OPT]) 702 # ----------------------------------- 703 # Look for Boost.Coroutine. For the documentation of PREFERRED-RT-OPT, see the 704 # documentation of BOOST_FIND_LIB above. This library was introduced in Boost 705 # 1.53.0 706 BOOST_DEFUN([Coroutine], 707 [ 708 boost_coroutine_save_LIBS=$LIBS 709 boost_coroutine_save_LDFLAGS=$LDFLAGS 710 # Link-time dependency from coroutine to context 711 BOOST_CONTEXT([$1]) 712 # Starting from Boost 1.55 a dependency on Boost.System is added 713 if test $boost_major_version -ge 155; then 714 BOOST_SYSTEM([$1]) 715 fi 716 m4_pattern_allow([^BOOST_(CONTEXT|SYSTEM)_(LIBS|LDFLAGS)]) 717 LIBS="$LIBS $BOOST_CONTEXT_LIBS $BOOST_SYSTEM_LIBS" 718 LDFLAGS="$LDFLAGS $BOOST_CONTEXT_LDFLAGS" 719 720 # in 1.53 coroutine was a header only library 721 if test $boost_major_version -eq 153; then 722 BOOST_FIND_HEADER([boost/coroutine/coroutine.hpp]) 723 else 724 BOOST_FIND_LIB([coroutine], [$1], 725 [boost/coroutine/coroutine.hpp], 726 [ 727 #include <boost/version.hpp> 728 #if BOOST_VERSION <= 105500 729 boost::coroutines::coroutine<int(int)> coro; coro.get(); 730 #else 731 boost::coroutines::asymmetric_coroutine<int>::pull_type coro; coro.get(); 732 #endif 733 ]) 734 fi 735 # Link-time dependency from coroutine to context, existed only in 1.53, in 1.54 736 # coroutine doesn't use context from its headers but from its library. 737 if test $boost_major_version -eq 153 || test $enable_static_boost = yes && test $boost_major_version -ge 154; then 738 BOOST_COROUTINE_LIBS="$BOOST_COROUTINE_LIBS $BOOST_CONTEXT_LIBS" 739 BOOST_COROUTINE_LDFLAGS="$BOOST_COROUTINE_LDFLAGS $BOOST_CONTEXT_LDFLAGS" 740 fi 741 if test $enable_static_boost = yes && test $boost_major_version -ge 155; then 742 BOOST_COROUTINE_LIBS="$BOOST_COROUTINE_LIBS $BOOST_SYSTEM_LIBS" 743 BOOST_COROUTINE_LDFLAGS="$BOOST_COROUTINE_LDFLAGS $BOOST_SYSTEM_LDFLAGS" 744 fi 745 LIBS=$boost_coroutine_save_LIBS 746 LDFLAGS=$boost_coroutine_save_LDFLAGS 747 ])# BOOST_COROUTINE 582 748 583 749 … … 672 838 673 839 840 # BOOST_FUSION() 841 # ----------------- 842 # Look for Boost.Fusion 843 BOOST_DEFUN([Fusion], 844 [BOOST_FIND_HEADER([boost/fusion/sequence.hpp])]) 845 846 674 847 # BOOST_GEOMETRY() 675 848 # ---------------- … … 685 858 # documentation of BOOST_FIND_LIB above. 686 859 BOOST_DEFUN([Graph], 687 [BOOST_FIND_LIB([graph], [$1], 860 [boost_graph_save_LIBS=$LIBS 861 boost_graph_save_LDFLAGS=$LDFLAGS 862 # Link-time dependency from graph to regex was added as of 1.40.0. 863 if test $boost_major_version -ge 140; then 864 BOOST_REGEX([$1]) 865 m4_pattern_allow([^BOOST_REGEX_(LIBS|LDFLAGS)$])dnl 866 LIBS="$LIBS $BOOST_REGEX_LIBS" 867 LDFLAGS="$LDFLAGS $BOOST_REGEX_LDFLAGS" 868 fi 869 BOOST_FIND_LIB([graph], [$1], 688 870 [boost/graph/adjacency_list.hpp], [boost::adjacency_list<> g;]) 871 LIBS=$boost_graph_save_LIBS 872 LDFLAGS=$boost_graph_save_LDFLAGS 689 873 ])# BOOST_GRAPH 874 875 876 # BOOST_HASH() 877 # ------------ 878 # Look for Boost.Functional/Hash 879 BOOST_DEFUN([Hash], 880 [BOOST_FIND_HEADER([boost/functional/hash.hpp])]) 690 881 691 882 … … 701 892 702 893 703 # BOOST_HASH()704 # ------------705 # Look for Boost.Functional/Hash706 BOOST_DEFUN([Hash],707 [BOOST_FIND_HEADER([boost/functional/hash.hpp])])708 709 710 894 # BOOST_ITERATOR() 711 895 # ------------ … … 722 906 723 907 908 # BOOST_LOCALE() 909 # -------------- 910 # Look for Boost.Locale 911 BOOST_DEFUN([Locale], 912 [ 913 boost_locale_save_LIBS=$LIBS 914 boost_locale_save_LDFLAGS=$LDFLAGS 915 # require SYSTEM for boost-1.50.0 and up 916 if test $boost_major_version -ge 150; then 917 BOOST_SYSTEM([$1]) 918 m4_pattern_allow([^BOOST_SYSTEM_(LIBS|LDFLAGS)$])dnl 919 LIBS="$LIBS $BOOST_SYSTEM_LIBS" 920 LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS" 921 fi # end of the Boost.System check. 922 BOOST_FIND_LIB([locale], [$1], 923 [boost/locale.hpp], 924 [[boost::locale::generator gen; std::locale::global(gen(""));]]) 925 LIBS=$boost_locale_save_LIBS 926 LDFLAGS=$boost_locale_save_LDFLAGS 927 ])# BOOST_LOCALE 928 724 929 # BOOST_LOG([PREFERRED-RT-OPT]) 725 930 # ----------------------------- … … 727 932 # documentation of BOOST_FIND_LIB above. 728 933 BOOST_DEFUN([Log], 729 [BOOST_FIND_LIB([log], [$1], 934 [boost_log_save_LIBS=$LIBS 935 boost_log_save_LDFLAGS=$LDFLAGS 936 BOOST_SYSTEM([$1]) 937 BOOST_FILESYSTEM([$1]) 938 BOOST_DATE_TIME([$1]) 939 m4_pattern_allow([^BOOST_(SYSTEM|FILESYSTEM|DATE_TIME)_(LIBS|LDFLAGS)$])dnl 940 LIBS="$LIBS $BOOST_DATE_TIME_LIBS $BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS" 941 LDFLAGS="$LDFLAGS $BOOST_DATE_TIME_LDFLAGS $BOOST_FILESYSTEM_LDFLAGS $BOOST_SYSTEM_LDFLAGS" 942 BOOST_FIND_LIB([log], [$1], 730 943 [boost/log/core/core.hpp], 731 944 [boost::log::attribute a; a.get_value();]) 945 LIBS=$boost_log_save_LIBS 946 LDFLAGS=$boost_log_save_LDFLAGS 732 947 ])# BOOST_LOG 733 948 … … 738 953 # documentation of BOOST_FIND_LIB above. 739 954 BOOST_DEFUN([Log_Setup], 740 [AC_REQUIRE([BOOST_LOG])dnl 955 [boost_log_setup_save_LIBS=$LIBS 956 boost_log_setup_save_LDFLAGS=$LDFLAGS 957 BOOST_LOG([$1]) 958 m4_pattern_allow([^BOOST_LOG_(LIBS|LDFLAGS)$])dnl 959 LIBS="$LIBS $BOOST_LOG_LIBS" 960 LDFLAGS="$LDFLAGS $BOOST_LOG_LDFLAGS" 741 961 BOOST_FIND_LIB([log_setup], [$1], 742 962 [boost/log/utility/setup/from_settings.hpp], 743 963 [boost::log::basic_settings<char> bs; bs.empty();]) 964 LIBS=$boost_log_setup_save_LIBS 965 LDFLAGS=$boost_log_setup_save_LDFLAGS 744 966 ])# BOOST_LOG_SETUP 745 967 … … 780 1002 781 1003 1004 # BOOST_MPL() 1005 # ------------------ 1006 # Look for Boost.MPL 1007 BOOST_DEFUN([MPL], 1008 [BOOST_FIND_HEADER([boost/mpl/for_each.hpp])]) 1009 1010 782 1011 # BOOST_MULTIARRAY() 783 1012 # ------------------ … … 785 1014 BOOST_DEFUN([MultiArray], 786 1015 [BOOST_FIND_HEADER([boost/multi_array.hpp])]) 1016 1017 1018 # BOOST_MULTIINDEXCCONTAINER() 1019 # ------------------ 1020 # Look for Boost.MultiIndexContainer 1021 BOOST_DEFUN([MultiIndexContainer], 1022 [BOOST_FIND_HEADER([boost/multi_index_container.hpp])]) 787 1023 788 1024 … … 834 1070 [BOOST_FIND_HEADER([boost/random/random_number_generator.hpp])]) 835 1071 1072 1073 # BOOST_RANGE() 1074 # -------------------- 1075 # Look for Boost.Range 1076 BOOST_DEFUN([Range], 1077 [BOOST_FIND_HEADER([boost/range/adaptors.hpp])]) 836 1078 837 1079 # BOOST_UNORDERED() … … 1011 1253 1012 1254 # When compiling for the Windows platform, the threads library is named 1013 # differently. 1014 case $host_os in 1015 (*mingw*) boost_thread_lib_ext=_win32;; 1016 esac 1255 # differently. This suffix doesn't exist in new versions of Boost, or 1256 # possibly new versions of GCC on mingw I am assuming it's Boost's change for 1257 # now and I am setting version to 1.48, for lack of knowledge as to when this 1258 # change occurred. 1259 if test $boost_major_version -lt 148; then 1260 case $host_os in 1261 (*mingw*) boost_thread_lib_ext=_win32;; 1262 esac 1263 fi 1017 1264 BOOST_FIND_LIBS([thread], [thread$boost_thread_lib_ext], 1018 1265 [$1], 1019 1266 [boost/thread.hpp], [boost::thread t; boost::mutex m;]) 1020 1267 1021 BOOST_THREAD_LIBS="$BOOST_THREAD_LIBS $BOOST_SYSTEM_LIBS $boost_cv_pthread_flag" 1268 case $host_os in 1269 (*mingw*) boost_thread_w32_socket_link=-lws2_32;; 1270 esac 1271 1272 BOOST_THREAD_LIBS="$BOOST_THREAD_LIBS $BOOST_SYSTEM_LIBS $boost_cv_pthread_flag $boost_thread_w32_socket_link" 1022 1273 BOOST_THREAD_LDFLAGS="$BOOST_SYSTEM_LDFLAGS" 1023 1274 BOOST_CPPFLAGS="$BOOST_CPPFLAGS $boost_cv_pthread_flag" … … 1221 1472 [AC_REQUIRE([AC_PROG_CXX])dnl 1222 1473 AC_REQUIRE([AC_CANONICAL_HOST])dnl 1223 AC_CACHE_CHECK([for the toolset name used by Boost for $CXX], [boost_cv_lib_tag], 1474 AC_CACHE_CHECK([for the toolset name used by Boost for $CXX], 1475 [boost_cv_lib_tag], 1224 1476 [boost_cv_lib_tag=unknown 1225 1477 if test x$boost_cv_inc_path != xno; then … … 1239 1491 # the same defines as GCC's). 1240 1492 for i in \ 1241 _BOOST_mingw_test(4,8) \ 1493 _BOOST_mingw_test(6, 2) \ 1494 _BOOST_gcc_test(6, 2) \ 1495 _BOOST_mingw_test(6, 1) \ 1496 _BOOST_gcc_test(6, 1) \ 1497 _BOOST_mingw_test(6, 0) \ 1498 _BOOST_gcc_test(6, 0) \ 1499 _BOOST_mingw_test(5, 3) \ 1500 _BOOST_gcc_test(5, 3) \ 1501 _BOOST_mingw_test(5, 2) \ 1502 _BOOST_gcc_test(5, 2) \ 1503 _BOOST_mingw_test(5, 1) \ 1504 _BOOST_gcc_test(5, 1) \ 1505 _BOOST_mingw_test(5, 0) \ 1506 _BOOST_gcc_test(5, 0) \ 1507 _BOOST_mingw_test(4, 10) \ 1508 _BOOST_gcc_test(4, 10) \ 1509 _BOOST_mingw_test(4, 9) \ 1510 _BOOST_gcc_test(4, 9) \ 1511 _BOOST_mingw_test(4, 8) \ 1242 1512 _BOOST_gcc_test(4, 8) \ 1243 _BOOST_mingw_test(4, 7) \1513 _BOOST_mingw_test(4, 7) \ 1244 1514 _BOOST_gcc_test(4, 7) \ 1245 _BOOST_mingw_test(4, 6) \1515 _BOOST_mingw_test(4, 6) \ 1246 1516 _BOOST_gcc_test(4, 6) \ 1247 _BOOST_mingw_test(4, 5) \1517 _BOOST_mingw_test(4, 5) \ 1248 1518 _BOOST_gcc_test(4, 5) \ 1249 _BOOST_mingw_test(4, 4) \1519 _BOOST_mingw_test(4, 4) \ 1250 1520 _BOOST_gcc_test(4, 4) \ 1251 _BOOST_mingw_test(4, 3) \1521 _BOOST_mingw_test(4, 3) \ 1252 1522 _BOOST_gcc_test(4, 3) \ 1253 _BOOST_mingw_test(4, 2) \1523 _BOOST_mingw_test(4, 2) \ 1254 1524 _BOOST_gcc_test(4, 2) \ 1255 _BOOST_mingw_test(4, 1) \1525 _BOOST_mingw_test(4, 1) \ 1256 1526 _BOOST_gcc_test(4, 1) \ 1257 _BOOST_mingw_test(4, 0) \1527 _BOOST_mingw_test(4, 0) \ 1258 1528 _BOOST_gcc_test(4, 0) \ 1259 1529 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
Note:
See TracChangeset
for help on using the changeset viewer.