Changeset 4328


Ignore:
Timestamp:
Mar 12, 2023, 10:17:27 AM (3 months ago)
Author:
Peter
Message:

update autoconf-archive macros

Location:
trunk/m4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/ax_boost_base.m4

    r4216 r4328  
    3434#   warranty.
    3535
    36 #serial 51
     36#serial 52
    3737
    3838# example boost program (need to pass version)
     
    115115      [x86_64],[libsubdirs="lib64 libx32 lib lib64"],
    116116      [mips*64*],[libsubdirs="lib64 lib32 lib lib64"],
    117       [ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64|e2k],[libsubdirs="lib64 lib lib64"],
     117      [ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64|e2k|loongarch64],[libsubdirs="lib64 lib lib64"],
    118118      [libsubdirs="lib"]
    119119    )
  • trunk/m4/ax_cxx_compile_stdcxx.m4

    r4216 r4328  
    4444#   warranty.
    4545
    46 #serial 15
     46#serial 18
    4747
    4848dnl  This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro
     
    105105    dnl http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/PDF_Release_Notes/769149-001.pdf
    106106    dnl Cray's crayCC needs "-h std=c++11"
     107    dnl MSVC needs -std:c++NN for C++17 and later (default is C++14)
    107108    for alternative in ${ax_cxx_compile_alternatives}; do
    108       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
    109         cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_$switch])
     109      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
     110        if test x"$switch" = xMSVC; then
     111          dnl AS_TR_SH maps both `:` and `=` to `_` so -std:c++17 would collide
     112          dnl with -std=c++17.  We suffix the cache variable name with _MSVC to
     113          dnl avoid this.
     114          switch=-std:c++${alternative}
     115          cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_${switch}_MSVC])
     116        else
     117          cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_$switch])
     118        fi
    110119        AC_CACHE_CHECK(whether $CXX supports C++$1 features with $switch,
    111120                       $cachevar,
Note: See TracChangeset for help on using the changeset viewer.