Hi,

Aaron VanDevender <[EMAIL PROTECTED]> writes:

> Is there a better way to do autoconf tests for guile versions that hacks
> like this:
>
> GUILE_VERSION = `$GUILE --version | head -1 | cut -d ' ' -f 2`

Yes, you'd rather use the M4 macros shipped in `guile.m4' and that were
documented in the 1.6 manual [0] (for some reason, this part of the
documentation vanished in 1.8).

For instance, you could use the following tests within your `configure.ac':

  GUILE_PROGS
  GUILE_CHECK_RETVAL([correct_version_p],
    [(exit (string>=? (version) "1.6.7"))])

Hope this helps,
Ludovic.

[0] 
http://www.gnu.org/software/guile/docs/docs-1.6/guile-ref/Autoconf-Macros.html#Autoconf%20Macros


_______________________________________________
Guile-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to