Which Presidents would have supported same-sex marriage?

I just read this story about LBJ, and it made me wonder. Which presidents would have supported gay marriage if it was a relevant issue during their terms, and if it wasn't effectively a political death sentence? I suppose the question expands to issues concerning transgender rights, too. Do we have any statements from sitting presidents on these matters?