OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [classpath/] [m4/] [acattribute.m4] - Blame information for rev 773

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 773 jeremybenn
dnl modified AC_C_INLINE from autoconf/c.m4
2
 
3
AN_IDENTIFIER([attribute], [AC_C_ATTRIBUTE])
4
AC_DEFUN([AC_C_ATTRIBUTE],
5
[AC_CACHE_CHECK([for __attribute__], ac_cv_c_attribute,
6
[
7
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
8
[void foo(void) __attribute__ ((__noreturn__));]
9
)],
10
[ac_cv_c_attribute=yes],
11
[ac_cv_c_attribute=no]
12
)
13
])
14
AH_VERBATIM([attribute],
15
[/* Define to `__attribute__' to nothing if it's not supported.  */
16
#undef __attribute__])
17
case $ac_cv_c_attribute in
18
  yes) ;;
19
  no)
20
    cat >>confdefs.h <<_ACEOF
21
#define __attribute__(x)    /* nothing */
22
_ACEOF
23
    ;;
24
esac
25
])# AC_C_ATTRIBUTE

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.