fix broken check for mysql_config/mariadb_config
(can't have global variables in m4 macro files)