Commit 2d5fb361 authored by Ting-Wei Lan's avatar Ting-Wei Lan
Browse files

configure: Don't put includes in function body of AC_LANG_PROGRAM

The second argument of AC_LANG_PROGRAM is the content of main function.
We cannot put any includes there, or we end up testing whether the
compiler supports nested functions because headers may have definitions
for inline functions.

https://bugzilla.gnome.org/show_bug.cgi?id=792713
parent 331472cc
......@@ -173,8 +173,8 @@ if test "x$have_statvfs" = "xyes" ; then
fi
# Check for defines we expect
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
#include "stdio.h"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include "stdio.h"]], [[
printf ("%s", __FUNCTION__);
]])],
[have_function=yes],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment