1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

Try linking _xgetbv() for obsolete mingw versions

This commit is contained in:
Frank Denis 2017-04-14 19:01:04 +02:00
parent 4809639ae1
commit dfc226fed6

View File

@ -460,7 +460,7 @@ AC_SUBST(CFLAGS_PCLMUL)
AC_CHECK_HEADERS([sys/mman.h intrin.h])
AC_MSG_CHECKING([if _xgetbv() is available])
AC_COMPILE_IFELSE(
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[ #include <intrin.h> ]], [[ (void) _xgetbv(0) ]])],
[AC_MSG_RESULT(yes)
AC_DEFINE([HAVE__XGETBV], [1], [_xgetbv() is available])],