1 dnl $Id: aclocal.m4,v 1.1 2002/12/21 04:06:13 schmonz Exp $
3 dnl From heimdal sources
4 dnl Id: c-attribute.m4,v 1.5 2004/08/26 12:35:41 joda Exp
8 dnl Test for __attribute__
11 AC_DEFUN([AC_C___ATTRIBUTE__], [
12 AC_MSG_CHECKING(for __attribute__)
13 AC_CACHE_VAL(ac_cv___attribute__, [
14 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>
15 static void foo(void) __attribute__ ((noreturn));
23 [ac_cv___attribute__=yes],
24 [ac_cv___attribute__=no])])
25 if test "$ac_cv___attribute__" = "yes"; then
26 AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__])
28 AC_MSG_RESULT($ac_cv___attribute__)