Its a social contract. This is probably ultimately how it should be decided. Not in courts.
Polls about gay marriage are probably not reflective of the population as a whole if conducted in San Francisco or if you restrict the pollees to liberal (and probably gay) college students...You know how they run these polls