If code requires an automatic sprinkler system in a building, what can be used as an alternative?

If code requires an automatic sprinkler system in a building, what can be used as an alternative?