diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-07-09 19:28:12 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-07-09 19:28:12 -0700 |
commit | 1b9c8ec434a54b38952070c0a161a2164a9c67a3 (patch) | |
tree | 3f14a1b799a8915d263c9a4aff7e63308d954748 | |
parent | 5c90a7c237b63393314f2e5e5b7975925bee7943 (diff) | |
download | nasm-1b9c8ec434a54b38952070c0a161a2164a9c67a3.tar.gz |
pa_c_typedef.m4: also test for __typeof and __decltype
Some vendors prefer to put underscores just at the beginning.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r-- | autoconf/m4/pa_c_typeof.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/autoconf/m4/pa_c_typeof.m4 b/autoconf/m4/pa_c_typeof.m4 index 036d02f2..d182ea2c 100644 --- a/autoconf/m4/pa_c_typeof.m4 +++ b/autoconf/m4/pa_c_typeof.m4 @@ -7,7 +7,8 @@ dnl -------------------------------------------------------------------------- AC_DEFUN([PA_C_TYPEOF], [AC_CACHE_CHECK([if $CC supports typeof], [pa_cv_typeof], [pa_cv_typeof=no - for pa_typeof_try in typeof __typeof__ decltype __decltype__; do + for pa_typeof_try in typeof __typeof __typeof__ decltype __decltype __decltype__ + do AS_IF([test $pa_cv_typeof = no], [AC_COMPILE_IFELSE([AC_LANG_SOURCE([ AC_INCLUDES_DEFAULT |