From: Tim Hunter Date: 2004-05-18T06:33:48+09:00 Subject: Re: Using mkmf.rb / extconf.rb and autoconf/automake together On Mon, 17 May 2004 19:25:06 +0000, Rudi Cilibrasi wrote: > > Any pointers to good examples of a combination autoconf / automake / > extconf.rb that supports the features above would be greatly appreciated. > I would also appreciate any doc pointers. Cheers, > The RMagick (http://rmagick.rubyforge.org) installation procedure uses a combination of autoconf/configure and Minero Aoki's setup.rb script (http://i.loveruby.net/en/setup.html). RMagick's configure script constructs a custom Makefile and a custom extconf.rb. The targets in the top-level Makefile run the appropriate setup.rb steps. The setup.rb script runs the custom extconf.rb and then calls make on the Makefile that extconf.rb generated. Convoluted, but it's reliable and flexible. The actual code is probably easier to understand than my poor description. Check out the RMagick CVS: http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/RMagick/?cvsroot=rmagick Of course feel free to ask questions.