diff options
author | Christian Feld <c.feld@fz-juelich.de> | 2019-01-17 14:41:33 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2019-01-23 13:02:07 +0100 |
commit | 33139a04bb228c5ca851a25fb747e40ae1a2b80a (patch) | |
tree | 84c467ee6dd44f21a341c20ea88612cf2a9f4c8d /m4/ax_compiler_vendor.m4 | |
parent | 1999013d84b42db111fce9182296cc6452af1497 (diff) | |
download | autoconf-archive-33139a04bb228c5ca851a25fb747e40ae1a2b80a.tar.gz |
Identify xlc from version 16 on as `ibm` and not as `clang`.
xlc from version 16 on does neither define __xlc__, __xlC__, __IBMC__, nor
__IBMCPP__ by default. Thus, it does not identify as vendor ibm but as clang.
It does define __ibmxl__, though. Adding this macro to the list of ibm macros
identifies xlc as ibm again.
Closes https://github.com/autoconf-archive/autoconf-archive/pull/179.
Diffstat (limited to 'm4/ax_compiler_vendor.m4')
-rw-r--r-- | m4/ax_compiler_vendor.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_compiler_vendor.m4 b/m4/ax_compiler_vendor.m4 index 73efdb0..84a89c9 100644 --- a/m4/ax_compiler_vendor.m4 +++ b/m4/ax_compiler_vendor.m4 @@ -44,14 +44,14 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 17 +#serial 18 AC_DEFUN([AX_COMPILER_VENDOR], [AC_CACHE_CHECK([for _AC_LANG compiler vendor], ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor, dnl Please add if possible support to ax_compiler_version.m4 [# note: don't check for gcc first since some other compilers define __GNUC__ vendors="intel: __ICC,__ECC,__INTEL_COMPILER - ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ + ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__ pathscale: __PATHCC__,__PATHSCALE__ clang: __clang__ cray: _CRAYC |