Last change
on this file was 1, checked in by Paul Smedley, 10 years ago |
Initial commit of Heimdal 1.5.3
|
File size:
531 bytes
|
Line | |
---|
1 | dnl
|
---|
2 | dnl $Id$
|
---|
3 | dnl
|
---|
4 |
|
---|
5 | dnl
|
---|
6 | dnl Test for __attribute__
|
---|
7 | dnl
|
---|
8 |
|
---|
9 | AC_DEFUN([AC_C___ATTRIBUTE__], [
|
---|
10 | AC_MSG_CHECKING(for __attribute__)
|
---|
11 | AC_CACHE_VAL(ac_cv___attribute__, [
|
---|
12 | AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>
|
---|
13 | static void foo(void) __attribute__ ((noreturn));
|
---|
14 |
|
---|
15 | static void
|
---|
16 | foo(void)
|
---|
17 | {
|
---|
18 | exit(1);
|
---|
19 | }
|
---|
20 | ]])],
|
---|
21 | [ac_cv___attribute__=yes],
|
---|
22 | [ac_cv___attribute__=no])])
|
---|
23 | if test "$ac_cv___attribute__" = "yes"; then
|
---|
24 | AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__])
|
---|
25 | fi
|
---|
26 | AC_MSG_RESULT($ac_cv___attribute__)
|
---|
27 | ])
|
---|
28 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.