If you are interested, checkout the Gibbon sources, and copy gcreate_class.pl.in and m4/gcreate_class.m4 into your own project. You also have to add a call to GCREATE_CLASS_INIT to your configure.ac (resp. configure.in) giving the project description and copyright string as arguments. See Gibbon's configure.ac for an example.