Wrap the code argument to AC_*_IFELSE with AC_LANG_SOURCE

Originally committed to SVN as r5834.
This commit is contained in:
Thomas Goyne 2011-11-08 04:06:31 +00:00
parent 1073b3f7f0
commit 06932668ee
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ AC_DEFUN([AC_AGI_COMPILE],[
LDFLAGS="$4" LDFLAGS="$4"
AC_CACHE_CHECK( AC_CACHE_CHECK(
[whether $1 works], [agi_cv_with_$2], [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="yes"],
[eval agi_cv_with_$2="no"], [eval agi_cv_with_$2="no"],
[if test $? -ne 0; then [if test $? -ne 0; then
@ -30,7 +30,7 @@ AC_DEFUN([AC_AGI_LINK],[
LDFLAGS="$5" LDFLAGS="$5"
AC_CACHE_CHECK( AC_CACHE_CHECK(
[whether $1 works], [agi_cv_with_$2], [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="yes"],
[eval agi_cv_with_$2="no"]) [eval agi_cv_with_$2="no"])
]) ])