File: hotspot.m4

package info (click to toggle)
rtfilter 1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 500 kB
  • sloc: ansic: 2,671; makefile: 248; sh: 83; python: 57
file content (21 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
AC_DEFUN([AC_DEF_HOTSPOT_ATTR],
[
  AC_REQUIRE([AC_PROG_CC])
  AC_MSG_CHECKING([for hot spot attribute])
  HOTATTR=""
  save_CFLAGS=$CFLAGS
  CFLAGS=-Werror
  AC_TRY_COMPILE(
        [int dummyfunc (void) __attribute__ ((hot));],
        [],
        gl_cv_cc_hotspot=yes,
        gl_cv_cc_hotspot=no)
  if test $gl_cv_cc_hotspot = yes; then
      HOTATTR="__attribute__ ((hot))"
  fi
  CFLAGS=$save_CFLAGS
  AC_MSG_RESULT([$gl_cv_cc_hotspot])
  AC_DEFINE_UNQUOTED([HOTSPOT], [$HOTATTR],
    [Define to the supported attribute to specify a hot spot])
])