From 92b9a55e916277392c5e308a4193179637e04eae Mon Sep 17 00:00:00 2001 From: Long Nguyen Date: Thu, 29 Jul 2021 22:19:32 +0700 Subject: [PATCH 120/N] [1/2] AC_RUN_IFELSE replace --- configure.ac | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index d1b8acb..ae9b1d8 100644 --- a/configure.ac +++ b/configure.ac @@ -5146,11 +5146,12 @@ case $host in *-*-mingw*) # check if we are linking to ucrt AC_MSG_CHECKING(whether linking to ucrt) - AC_RUN_IFELSE([AC_LANG_SOURCE([[ + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #include - int main(){ - _UCRT; - } + #ifndef _UCRT + #error no ucrt + #endif + int main(){} ]])],[linking_to_ucrt=yes],[linking_to_ucrt=no]) AC_MSG_RESULT($linking_to_ucrt) ;; -- 2.32.0