I wrote one patch to fix building with autotools on Linux.
It is in a weird state right now and most probably it would require more improvements.
These are the minimum changes to bring it to a state where it can be used to compile PCem.
Changes are:
allegro.m4 file is added and configure.ac is modified to find it.