3 dnl (SHELL-CODE_HANDLER)
5 AC_DEFUN([GCC_CET_FLAGS],[dnl
6 GCC_ENABLE(cet, default, ,[enable Intel CET in target libraries],
8 AC_MSG_CHECKING([for CET support])
11 i[[34567]]86-*-linux* | x86_64-*-linux*)
14 # Check if target supports multi-byte NOPs
15 # and if assembler supports CET insn.
20 #if !defined(__SSE2__)
21 #error target does not support multi-byte NOPs
30 # Check if assembler supports CET.
34 [asm ("setssbsy");])],
36 [AC_MSG_ERROR([assembler with CET support is required for --enable-cet])])
44 if test x$enable_cet = xyes; then
45 $1="-fcf-protection -mcet"