annotate src/opus-1.3/m4/opus-intrinsics.m4 @ 83:ae30d91d2ffe
Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author |
Chris Cannam |
date |
Fri, 07 Feb 2020 11:51:13 +0000 |
parents |
7aeed7906520 |
children |
|
rev |
line source |
Chris@69
|
1 dnl opus-intrinsics.m4
|
Chris@69
|
2 dnl macro for testing for support for compiler intrinsics, either by default or with a compiler flag
|
Chris@69
|
3
|
Chris@69
|
4 dnl OPUS_CHECK_INTRINSICS(NAME-OF-INTRINSICS, COMPILER-FLAG-FOR-INTRINSICS, VAR-IF-PRESENT, VAR-IF-DEFAULT, TEST-PROGRAM-HEADER, TEST-PROGRAM-BODY)
|
Chris@69
|
5 AC_DEFUN([OPUS_CHECK_INTRINSICS],
|
Chris@69
|
6 [
|
Chris@69
|
7 AC_MSG_CHECKING([if compiler supports $1 intrinsics])
|
Chris@69
|
8 AC_LINK_IFELSE(
|
Chris@69
|
9 [AC_LANG_PROGRAM($5, $6)],
|
Chris@69
|
10 [
|
Chris@69
|
11 $3=1
|
Chris@69
|
12 $4=1
|
Chris@69
|
13 AC_MSG_RESULT([yes])
|
Chris@69
|
14 ],[
|
Chris@69
|
15 $4=0
|
Chris@69
|
16 AC_MSG_RESULT([no])
|
Chris@69
|
17 AC_MSG_CHECKING([if compiler supports $1 intrinsics with $2])
|
Chris@69
|
18 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $2"
|
Chris@69
|
19 AC_LINK_IFELSE([AC_LANG_PROGRAM($5, $6)],
|
Chris@69
|
20 [
|
Chris@69
|
21 AC_MSG_RESULT([yes])
|
Chris@69
|
22 $3=1
|
Chris@69
|
23 ],[
|
Chris@69
|
24 AC_MSG_RESULT([no])
|
Chris@69
|
25 $3=0
|
Chris@69
|
26 ])
|
Chris@69
|
27 CFLAGS="$save_CFLAGS"
|
Chris@69
|
28 ])
|
Chris@69
|
29 ])
|