60b67403d7fe4d6f44f62d8ec8bb890345245024codarrenvelvindrondnl Check for support for Retpoline
60b67403d7fe4d6f44f62d8ec8bb890345245024codarrenvelvindronAC_DEFUN([AC_CC_RETPOLINE],[
60b67403d7fe4d6f44f62d8ec8bb890345245024codarrenvelvindron AC_REQUIRE([gl_UNKNOWN_WARNINGS_ARE_ERRORS])
60b67403d7fe4d6f44f62d8ec8bb890345245024codarrenvelvindron if test $enable_hardening = yes; then
60b67403d7fe4d6f44f62d8ec8bb890345245024codarrenvelvindron case "$host" in
60b67403d7fe4d6f44f62d8ec8bb890345245024codarrenvelvindron gl_COMPILER_OPTION_IF([-mfunction-return=thunk -mindirect-branch=thunk], [
60b67403d7fe4d6f44f62d8ec8bb890345245024codarrenvelvindron CFLAGS="$CFLAGS -mfunction-return=thunk -mindirect-branch=thunk"
60b67403d7fe4d6f44f62d8ec8bb890345245024codarrenvelvindron [AC_LANG_PROGRAM()]