From c8d15621c75f49cf13463e83d37df74c7b5969f4 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 16 Aug 2019 13:09:57 +0200 Subject: [PATCH] Use AC_LINK_IFELSE for everything using inline assembly --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 09f100fe..3b45c606 100644 --- a/configure.ac +++ b/configure.ac @@ -605,7 +605,7 @@ __asm__ __volatile__ ("" : : "r"(pnt) : "memory"); HAVE_AMD64_ASM_V=0 AS_IF([test "$enable_asm" != "no"],[ AC_MSG_CHECKING(whether we can use x86_64 asm code) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[ #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__) # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64) @@ -634,7 +634,7 @@ AC_SUBST(HAVE_AMD64_ASM_V) HAVE_AVX_ASM_V=0 AS_IF([test "$enable_asm" != "no"],[ AC_MSG_CHECKING(whether we can assemble AVX opcodes) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[ #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__) # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)