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>
This commit is contained in:
H. Peter Anvin (Intel) 2020-07-09 19:28:12 -07:00
parent 5c90a7c237
commit 1b9c8ec434

View file

@ -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