1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 04:25:08 -05:00

curl-compilers.m4: check for __ibmxl__ to detect xlclang

Follow-up to 2fa0d57e2e. The __xlc__ symbol is only defined there if a
particular flag is used for legacy macros.

Fixes #3474
Closes #3479
This commit is contained in:
Daniel Stenberg 2019-01-16 08:11:43 +01:00
parent 16a3307e81
commit 26d7f0094a
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -84,8 +84,8 @@ AC_DEFUN([CURL_CHECK_COMPILER_CLANG], [
if test "$curl_cv_have_def___clang__" = "yes"; then if test "$curl_cv_have_def___clang__" = "yes"; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
AC_MSG_CHECKING([if compiler is xlclang]) AC_MSG_CHECKING([if compiler is xlclang])
CURL_CHECK_DEF([__xlc__], [], [silent]) CURL_CHECK_DEF([__ibmxl__], [], [silent])
if test "$curl_cv_have_def___xlc__" = "yes" ; then if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
dnl IBM's almost-compatible clang version dnl IBM's almost-compatible clang version
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
compiler_id="XLCLANG" compiler_id="XLCLANG"