1f59d82ffSelricdnl 2*fcfd9267Selricdnl Id 3f59d82ffSelricdnl 4f59d82ffSelric 5f59d82ffSelricdnl 6f59d82ffSelricdnl Test for __attribute__ 7f59d82ffSelricdnl 8f59d82ffSelric 9f59d82ffSelricAC_DEFUN([AC_C___ATTRIBUTE__], [ 10f59d82ffSelricAC_MSG_CHECKING(for __attribute__) 11f59d82ffSelricAC_CACHE_VAL(ac_cv___attribute__, [ 12f59d82ffSelricAC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h> 13f59d82ffSelricstatic void foo(void) __attribute__ ((noreturn)); 14f59d82ffSelric 15f59d82ffSelricstatic void 16f59d82ffSelricfoo(void) 17f59d82ffSelric{ 18f59d82ffSelric exit(1); 19f59d82ffSelric} 20f59d82ffSelric]])], 21f59d82ffSelric[ac_cv___attribute__=yes], 22f59d82ffSelric[ac_cv___attribute__=no])]) 23f59d82ffSelricif test "$ac_cv___attribute__" = "yes"; then 24f59d82ffSelric AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__]) 25f59d82ffSelricfi 26f59d82ffSelricAC_MSG_RESULT($ac_cv___attribute__) 27f59d82ffSelric]) 28f59d82ffSelric 29