10-25-04 10:52 PM
Erwan Loisant wrote:
> to produce the Makefile of these bindings I need to
> launch a given command (actually "ruby extconf.rb".
>
> How can I modify my configure.in to say "in this directory, please
> launch the given command /then/ make" ?
AFAIK you can just put your ruby command in configure.in. Something like:
AC_INIT([My Program], [0.2], [you@somewhere.com], [myprog])
AC_CONFIG_SRCDIR([main.c])
AC_PREREQ(2.57)
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AC_PROG_INSTALL
cd ruby/bindings/directory
ruby extconf.rb
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
There's probably a more elegant way to do this, but for just one
ruby-command I wouldn't bother if it works.
Heiko
P.S. Note this example is actually for a autoconf version > 2.5x, but
this shouldn't make for your question.
[ Post a follow-up to this message ]
|