Changeset 4042
- Timestamp:
- Feb 22, 2021, 12:40:02 AM (3 years ago)
- Location:
- trunk/m4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/m4/ax_boost_base.m4
r3782 r4042 34 34 # warranty. 35 35 36 #serial 4 536 #serial 49 37 37 38 38 # example boost program (need to pass version) … … 114 114 AS_CASE([${host_cpu}], 115 115 [x86_64],[libsubdirs="lib64 libx32 lib lib64"], 116 [ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64],[libsubdirs="lib64 lib lib64"], 116 [mips*64*],[libsubdirs="lib64 lib32 lib lib64"], 117 [ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64|e2k],[libsubdirs="lib64 lib lib64"], 117 118 [libsubdirs="lib"] 118 119 ) … … 123 124 AS_CASE([${host_cpu}], 124 125 [i?86],[multiarch_libsubdir="lib/i386-${host_os}"], 126 [armv7l],[multiarch_libsubdir="lib/arm-${host_os}"], 125 127 [multiarch_libsubdir="lib/${host_cpu}-${host_os}"] 126 128 ) -
trunk/m4/ax_boost_iostreams.m4
r3791 r4042 30 30 # warranty. 31 31 32 #serial 2 132 #serial 22 33 33 34 34 AC_DEFUN([AX_BOOST_IOSTREAMS], … … 104 104 fi 105 105 if test "x$ax_lib" = "x"; then 106 AC_MSG_ERROR(Could not find a version of the library!)106 AC_MSG_ERROR(Could not find a version of the Boost::IOStreams library!) 107 107 fi 108 108 if test "x$link_iostreams" != "xyes"; then -
trunk/m4/ax_compiler_vendor.m4
r3782 r4042 9 9 # DESCRIPTION 10 10 # 11 # Determine the vendor of the C/C++ compiler, e.g., gnu, intel, ibm, sun, 12 # hp, borland, comeau, dec, cray, kai, lcc, metrowerks, sgi, microsoft, 13 # watcom, etc. The vendor is returned in the cache variable 14 # $ax_cv_c_compiler_vendor for C and $ax_cv_cxx_compiler_vendor for C++. 11 # Determine the vendor of the C, C++ or Fortran compiler. The vendor is 12 # returned in the cache variable $ax_cv_c_compiler_vendor for C, 13 # $ax_cv_cxx_compiler_vendor for C++ or $ax_cv_fc_compiler_vendor for 14 # (modern) Fortran. The value is one of "intel", "ibm", "pathscale", 15 # "clang" (LLVM), "cray", "fujitsu", "sdcc", "sx", "portland" (PGI), "gnu" 16 # (GCC), "sun" (Oracle Developer Studio), "hp", "dec", "borland", 17 # "comeau", "kai", "lcc", "sgi", "microsoft", "metrowerks", "watcom", 18 # "tcc" (Tiny CC) or "unknown" (if the compiler cannot be determined). 19 # 20 # To check for a Fortran compiler, you must first call AC_FC_PP_SRCEXT 21 # with an appropriate preprocessor-enabled extension. For example: 22 # 23 # AC_LANG_PUSH([Fortran]) 24 # AC_PROG_FC 25 # AC_FC_PP_SRCEXT([F]) 26 # AX_COMPILER_VENDOR 27 # AC_LANG_POP([Fortran]) 15 28 # 16 29 # LICENSE … … 18 31 # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> 19 32 # Copyright (c) 2008 Matteo Frigo 33 # Copyright (c) 2018-19 John Zaitseff <J.Zaitseff@zap.org.au> 20 34 # 21 35 # This program is free software: you can redistribute it and/or modify it … … 45 59 # exception to the GPL to apply to your modified version as well. 46 60 47 #serial 1761 #serial 30 48 62 49 AC_DEFUN([AX_COMPILER_VENDOR], 50 [AC_CACHE_CHECK([for _AC_LANG compiler vendor], ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor, 51 dnl Please add if possible support to ax_compiler_version.m4 52 [# note: don't check for gcc first since some other compilers define __GNUC__ 53 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 54 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 55 pathscale: __PATHCC__,__PATHSCALE__ 56 clang: __clang__ 57 cray: _CRAYC 58 fujitsu: __FUJITSU 59 sdcc: SDCC, __SDCC 60 gnu: __GNUC__ 61 sun: __SUNPRO_C,__SUNPRO_CC 62 hp: __HP_cc,__HP_aCC 63 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 64 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 65 comeau: __COMO__ 66 kai: __KCC 67 lcc: __LCC__ 68 sgi: __sgi,sgi 69 microsoft: _MSC_VER 70 metrowerks: __MWERKS__ 71 watcom: __WATCOMC__ 72 portland: __PGI 73 tcc: __TINYC__ 74 unknown: UNKNOWN" 75 for ventest in $vendors; do 76 case $ventest in 77 *:) vendor=$ventest; continue ;; 78 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 79 esac 80 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[ 81 #if !($vencpp) 82 thisisanerror; 83 #endif 84 ])], [break]) 85 done 86 ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor=`echo $vendor | cut -d: -f1` 87 ]) 88 ]) 63 AC_DEFUN([AX_COMPILER_VENDOR], [dnl 64 AC_CACHE_CHECK([for _AC_LANG compiler vendor], ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor, [dnl 65 dnl If you modify this list of vendors, please add similar support 66 dnl to ax_compiler_version.m4 if at all possible. 67 dnl 68 dnl Note: Do NOT check for GCC first since some other compilers 69 dnl define __GNUC__ to remain compatible with it. Compilers that 70 dnl are very slow to start (such as Intel) are listed first. 71 72 vendors=" 73 intel: __ICC,__ECC,__INTEL_COMPILER 74 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__ 75 pathscale: __PATHCC__,__PATHSCALE__ 76 clang: __clang__ 77 cray: _CRAYC 78 fujitsu: __FUJITSU 79 sdcc: SDCC,__SDCC 80 sx: _SX 81 portland: __PGI 82 gnu: __GNUC__ 83 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95 84 hp: __HP_cc,__HP_aCC 85 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 86 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 87 comeau: __COMO__ 88 kai: __KCC 89 lcc: __LCC__ 90 sgi: __sgi,sgi 91 microsoft: _MSC_VER 92 metrowerks: __MWERKS__ 93 watcom: __WATCOMC__ 94 tcc: __TINYC__ 95 unknown: UNKNOWN 96 " 97 for ventest in $vendors; do 98 case $ventest in 99 *:) 100 vendor=$ventest 101 continue 102 ;; 103 *) 104 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" 105 ;; 106 esac 107 108 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ 109 #if !($vencpp) 110 thisisanerror; 111 #endif 112 ]])], [break]) 113 done 114 115 ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor=`echo $vendor | cut -d: -f1` 116 ]) 117 ])dnl -
trunk/m4/ax_cxx_compile_stdcxx.m4
r3937 r4042 17 17 # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. 18 18 # -std=c++11). If neither is specified, you get whatever works, with 19 # preference for an extended mode.19 # preference for no added switch, and then for an extended mode. 20 20 # 21 21 # The third argument, if specified 'mandatory' or if left unspecified, … … 35 35 # Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu> 36 36 # Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz@gmail.com> 37 # Copyright (c) 2019 Enji Cooper <yaneurabeya@gmail.com> 38 # Copyright (c) 2020 Jason Merrill <jason@redhat.com> 37 39 # 38 40 # Copying and distribution of this file, with or without modification, are … … 41 43 # warranty. 42 44 43 #serial 1 045 #serial 12 44 46 45 47 dnl This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro … … 61 63 AC_LANG_PUSH([C++])dnl 62 64 ac_success=no 65 66 m4_if([$2], [], [dnl 67 AC_CACHE_CHECK(whether $CXX supports C++$1 features by default, 68 ax_cv_cxx_compile_cxx$1, 69 [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_testbody_$1])], 70 [ax_cv_cxx_compile_cxx$1=yes], 71 [ax_cv_cxx_compile_cxx$1=no])]) 72 if test x$ax_cv_cxx_compile_cxx$1 = xyes; then 73 ac_success=yes 74 fi]) 63 75 64 76 m4_if([$2], [noext], [], [dnl … … 190 202 struct Base 191 203 { 204 virtual ~Base() {} 192 205 virtual void f() {} 193 206 }; … … 195 208 struct Derived : public Base 196 209 { 210 virtual ~Derived() override {} 197 211 virtual void f() override {} 198 212 };
Note: See TracChangeset
for help on using the changeset viewer.