To me, the first and third mean the same thing, namely "He thought he would have to marry 'upon it' -- nothing else would do", where "upon it" presumably means "upon some eventuality" (the nature of which is apparent from the context). The first is an old-fashioned form of wording. The second doesn't seem grammatical to me.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.