Add AC_LANG_PROGRAM to AC_COMPILE_IFELSE.

The recently added MIPS ABI tests need AC_LANG_PROGRAM to prevent
warnings from autoconf.  Pointed out by klausz at haus-gisela.de.
This commit is contained in:
Darren Tucker 2018-03-12 19:17:26 +11:00
parent c7c458e826
commit fbd733ab7a

View File

@ -822,19 +822,19 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
# Obtain MIPS ABI
case "$host" in
mips*)
AC_COMPILE_IFELSE([
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#if _MIPS_SIM != _ABIO32
#error
#endif
],[mips_abi="o32"],[AC_COMPILE_IFELSE([
]])],[mips_abi="o32"],[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#if _MIPS_SIM != _ABIN32
#error
#endif
],[mips_abi="n32"],[AC_COMPILE_IFELSE([
]])],[mips_abi="n32"],[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#if _MIPS_SIM != _ABI64
#error
#endif
],[mips_abi="n64"],[AC_MSG_ERROR([unknown MIPS ABI])
]])],[mips_abi="n64"],[AC_MSG_ERROR([unknown MIPS ABI])
])
])
])