git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8389
AC_MSG_CHECKING([for Qt4 core library])
-if grep -q -w '^#define HAVE_LIBQTCORE 1$' config.h \
- && grep -q -w '^#define HAVE_QTCORE_QMUTEX 1$' config.h
+# The test below looks up some symbol definitions in the temporary file generated by the
+# configure script, namely confdefs.h.
+if grep -q -w '^#define HAVE_LIBQTCORE 1$' confdefs.h \
+ && grep -q -w '^#define HAVE_QTCORE_QMUTEX 1$' confdefs.h
then
ac_have_qtcore=yes
AC_MSG_RESULT([yes])