File: tomsfastmath.m4

package info (click to toggle)
clamav 0.100.0%2Bdfsg-0%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 30,072 kB
  • sloc: ansic: 161,634; sh: 15,138; cpp: 4,208; makefile: 1,891; yacc: 1,351; lex: 714; perl: 17; python: 11
file content (12 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
dnl Check for system tomsfastmath
PKG_CHECK_MODULES([TOMSFASTMATH], [tomsfastmath], [have_system_tomsfastmath=yes], [have_system_tomsfastmath=no])

AM_CONDITIONAL([SYSTEM_TOMSFASTMATH], [test "x$have_system_tomsfastmath" = "xyes"])

if test "x$have_system_tomsfastmath" = "xyes"; then
    AC_DEFINE([HAVE_SYSTEM_TOMSFASTMATH], [1], [link against system-wide tomsfastmath library])
    tomsfastmath_msg="External, $TOMSFASTMATH_CFLAGS $TOMSFASTMATH_LIBS"
else
    AC_DEFINE([HAVE_SYSTEM_TOMSFASTMATH], [0], [don't link against system-wide tomsfastmath library])
    tomsfastmath_msg="Internal"
fi