Govee,
Just in case you didn't know.. depending on your distro, somebody might have already compiled your xmame for you... it is usually in the plf repos, which depending on your distro, may be added (or downloaded)....
That is of course, if you just want xmame... if you want the experience and to compile, then continue.
I compiled xmame with sdl support without a hitch once... then decided it was just easier to use the repos version anyway (setting up links, etc.)
Its' true, xmame is dead... but I don't run modern games, and am happy with .106 on my box. Plus, I have all the roms for that version.