The line define(ec_c_compile_cpp, ifelse([$1], [cpp], [yes], [no])) potentially caused weird problems later in configure.ac. Using m4_define instead cured that. So let's do define() -> m4_define() elsewhere too.