While it further breaks RPM building, all AC_SUBST(HAVE_*) have been nuked. When AM_SUBST_NOTMAKE, tell automake to not generate var = @var@ in Makefile.in for qf specific vars (QF_SUBST is a wrapper for AC_SUBST that also calls AM_SUBST_NOTMAKE).