These variables may be set to values that are required to build
executables. Make sure we honour them from vala.m4 when attempting to
check for packages.
https://bugzilla.gnome.org/show_bug.cgi?id=724176
void main(){}
_ACEOF
- AS_IF([vala_error=`$VALAC $1 -q -o conftest$ac_exeext conftest.vala 2>&1`],
+ AS_IF([vala_error=`$VALAC $1 -q --cc="${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}" -o conftest$ac_exeext conftest.vala 2>&1`],
[$2], [$3])
])