configure: Add missing $val != "yes" test to override compile_prog() result