diff options
author | Tom Tromey <tromey@redhat.com> | 2005-10-05 19:18:58 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2005-10-05 19:18:58 +0000 |
commit | cc033f0e2c5b2862dae7cb6475e3f639c1bd42e4 (patch) | |
tree | 1522471835fd6942d9c9a6b749cfdf3e1741b91d /m4 | |
parent | d7e31bcf0bfa43b99899a687b3b677b08b72447b (diff) | |
download | classpath-cc033f0e2c5b2862dae7cb6475e3f639c1bd42e4.tar.gz |
2005-10-05 Christian Thalinger <twisti@complang.tuwien.ac.at>
* m4/acattribute.m4: Added.
* configure.ac: Added AC_C_ATTRIBUTE.
* native/fdlibm/java-assert.h: Added missing config.h include,
changed comments to C comments.
* native/jni/java-lang/java_lang_reflect_Array.c: Added missing
config.h include.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/acattribute.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/m4/acattribute.m4 b/m4/acattribute.m4 new file mode 100644 index 000000000..7b490d4b7 --- /dev/null +++ b/m4/acattribute.m4 @@ -0,0 +1,25 @@ +dnl modified AC_C_INLINE from autoconf/c.m4 + +AN_IDENTIFIER([attribute], [AC_C_ATTRIBUTE]) +AC_DEFUN([AC_C_ATTRIBUTE], +[AC_CACHE_CHECK([for __attribute__], ac_cv_c_attribute, +[ +AC_COMPILE_IFELSE([AC_LANG_SOURCE( +[void foo(void) __attribute__ ((__noreturn__));] +)], +[ac_cv_c_attribute=yes], +[ac_cv_c_attribute=no] +) +]) +AH_VERBATIM([attribute], +[/* Define to `__attribute__' to nothing if it's not supported. */ +#undef __attribute__]) +case $ac_cv_c_attribute in + yes) ;; + no) + cat >>confdefs.h <<_ACEOF +#define __attribute__(x) /* nothing */ +_ACEOF + ;; +esac +])# AC_C_ATTRIBUTE |