replace obsolete AC_ERROR calls by AC_MSG_ERROR