English and Scottish. Originally a shortened form of Alexander, Alec can also be used as a given name in its own right, particularly in Scotland.
The Clan MacLean Website gives Ailig as a Gaelic form of Alec and Alex.