From 06932668ee7a0d0a005c3fbc5de2cb61c5791eae Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 8 Nov 2011 04:06:31 +0000 Subject: [PATCH] Wrap the code argument to AC_*_IFELSE with AC_LANG_SOURCE Originally committed to SVN as r5834. --- aegisub/m4macros/ac_agi.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/m4macros/ac_agi.m4 b/aegisub/m4macros/ac_agi.m4 index 7061095fb..c46843b7b 100644 --- a/aegisub/m4macros/ac_agi.m4 +++ b/aegisub/m4macros/ac_agi.m4 @@ -5,7 +5,7 @@ AC_DEFUN([AC_AGI_COMPILE],[ LDFLAGS="$4" AC_CACHE_CHECK( [whether $1 works], [agi_cv_with_$2], - [AC_RUN_IFELSE([$5], + [AC_RUN_IFELSE([AC_LANG_SOURCE([$5])], [eval agi_cv_with_$2="yes"], [eval agi_cv_with_$2="no"], [if test $? -ne 0; then @@ -30,7 +30,7 @@ AC_DEFUN([AC_AGI_LINK],[ LDFLAGS="$5" AC_CACHE_CHECK( [whether $1 works], [agi_cv_with_$2], - [AC_LINK_IFELSE([$6], + [AC_LINK_IFELSE([AC_LANG_SOURCE([$6])], [eval agi_cv_with_$2="yes"], [eval agi_cv_with_$2="no"]) ])