You might find Memcached::libmemcached interesting. http://search.cpan.org/dist/Memcached-libmemcached/
It ships with a bundled copy of the libmemcached source. Makefile.PL not only runs the libmemcached configure script, but also make and make install. (The "install" directory is actually a temp directory in which the rest of Makefile.PL expects to find the built libs.) Tim. On Mon, Mar 17, 2008 at 05:23:38PM +0000, Alberto Simões wrote: > Hi > > I have a C package that has a Perl Module associated. At the moment it > follows the following file system structure: > > [/] > | > |- configure.ac > |- Makefile.am > |- *.c > |- perl > |- file.pm > |- Makefile.PL > |- MANIFEST > | ... > > At the moment the approach is to run the configure script that is hacked to > produce a Makefile.AM from the output of Makefile.PL. Also, the dist rule > is hacked to follow the MANIFEST files. > > What I would like was to rewrite this configure system and base it in Perl. > I want to make all the package installable from CPAN as all users of the C > package uses the Perl module interface. > > My question is: what is the best and easier approach? > Any module I might give a peek to steal some ideas? > > TIA > ambs > -- > Alberto Simões - Departamento de Informática - Universidade do Minho > Campus de Gualtar - 4710-057 Braga - Portugal