Integration in linear spaces