Fix cross-compiling bug in configure.in
authorDan Winship <danw@gnome.org>
Thu, 12 Jan 2012 18:22:10 +0000 (13:22 -0500)
committerDan Winship <danw@gnome.org>
Thu, 12 Jan 2012 18:26:35 +0000 (13:26 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=667799

configure.in

index f029941..a3a9124 100644 (file)
@@ -124,7 +124,7 @@ dnl
 dnl Check for a working C++ compiler, but do not bail out, if none is found.
 dnl We use this for an automated test for C++ header correctness.
 dnl
-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=)