source: rtems/c/src/aclocal/gcc-weak.m4 @ d71ab7fd

4.104.114.84.95
Last change on this file since d71ab7fd was d71ab7fd, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/21/04 at 14:30:53

2004-09-21 Ralf Corsepius <ralf_corsepius@…>

  • aclocal/gcc-weak.m4: New (Extracted from cpukit/configure.ac).
  • configure.ac: Add RTEMS_CHECK_GCC_WEAK.
  • Property mode set to 100644
File size: 485 bytes
Line 
1AC_DEFUN([RTEMS_CHECK_GCC_WEAK],[
2AC_CACHE_CHECK([whether $CC supports function __attribute__((weak))],
3[rtems_cv_cc_attribute_weak],[
4  AS_IF([test x"$GCC" = xyes],[
5    save_CFLAGS=$CFLAGS
6    CFLAGS=-Werror])
7
8  AC_COMPILE_IFELSE([
9    AC_LANG_PROGRAM(
10    [void myfunc(char c) __attribute__ ((weak));
11     void myfunc(char c) {}],
12    [])],
13    [rtems_cv_cc_attribute_weak=yes],
14    [rtems_cv_cc_attribute_weak=no])
15
16  AS_IF([test x"$GCC" = xyes],[
17    CFLAGS=$save_CFLAGS])
18])
19])
Note: See TracBrowser for help on using the repository browser.