There has already been consideration of producing polymers on Mars from the atmosphere. Agricultural domes would not have to be reliable as living spaces, so these could be built cheaply as inflatable structures. So mars could build its own greenhouses.