I want to embed the Ruby interpreter in a project and am currently fiddeling
with getting Ruby's compile-time configuration, e.g. include and libraries
paths. I cannot use 'mkmf' for various reasons.
thanks for your answers. I should have been a bit clearer with my request;
sorry.
Thing is, I'm using Autotools (autoconf et al), so I cannot hardcore paths
for obvious reasons, and parsing JSON or YAML is from the table, too. So,
"more elegant" basically meant: Something that's easy to use from a shell
script (i.e., configure.ac).
A workaround will be create ruby as static library (--enable-static --
disable-shared) during Ruby configure phase.
Then, create a program entry point (your program) and link against
libruby library.
You can check how that is done for projects like exerb, is Windows and
MinGW, but you can get the idea form it:
HTH,
···
On Sep 11, 1:01 pm, Eric MSP Veith <eve...@wwweb-library.net> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Roger,
Ara,
thanks for your answers. I should have been a bit clearer with my request;
sorry.
Thing is, I'm using Autotools (autoconf et al), so I cannot hardcore paths
for obvious reasons, and parsing JSON or YAML is from the table, too. So,
"more elegant" basically meant: Something that's easy to use from a shell
script (i.e., configure.ac).