AS_IF([test "x$with_grid_type" != "xALBERTAGRID" -a
"x$with_grid_type" != "xALUGRID_CUBE" -a
"x$with_grid_type" != "xALUGRID_SIMPLEX" -a
"x$with_grid_type" != "xALUGRID_CONFORM" -a
"x$with_grid_type" != "xONEDGRID" -a
"x$with_grid_type" != "xSGRID" -a
"x$with_grid_type" != "xUGGRID" -a
"x$with_grid_type" != "xYASPGRID"],[
AS_IF([test "x$with_grid_type" != "xALBERTAGRID" -a "x$with_grid_type" != "xALUGRID_CUBE" -a "x$with_grid_type" != "xALUGRID_SIMPLEX" -a "x$with_grid_type" != "xALUGRID_CONFORM" -a "x$with_grid_type" != "xONEDGRID" -a "x$with_grid_type" != "xSGRID" -a "x$with_grid_type" != "xUGGRID" -a "x$with_grid_type" != "xYASPGRID"],[
AC_MSG_ERROR([Delivered grid-type = $with_grid_type is not valid. Run ./configure --help for valid values.])