Le bug is in automake which fails to guard correctly the check-TESTS definition (the recipe) according to conditionals.
Note I recommend to close the ticket with won't fix as despite of warnings make performs the right action...