mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 04:36:17 +01:00
Fix check for C++ compiler when cross-compiling
Use AC_CHECK_TOOLS instead of AC_CHECK_PROGS. Patch from bug #577711.
This commit is contained in:
parent
b64ee1f020
commit
9c292a831f
@ -267,7 +267,7 @@ AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
|
||||
dnl Check for a working C++ compiler, but do not bail out, if none is found.
|
||||
AC_CHECK_PROGS(CXX, [$CCC c++ g++ gcc CC cxx cc++ cl], [gcc])
|
||||
AC_CHECK_TOOLS(CXX, [$CCC c++ g++ gcc CC cxx cc++ cl], [gcc])
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_TRY_COMPILE(,[class a { int b; } c;], ,CXX=)
|
||||
|
Loading…
Reference in New Issue
Block a user