diff options
Diffstat (limited to 'guile.m4')
-rw-r--r-- | guile.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/guile.m4 b/guile.m4 new file mode 100644 index 000000000..58ee47661 --- /dev/null +++ b/guile.m4 @@ -0,0 +1,13 @@ +## An m4 macro to initialize a guile module. +## Enhance as required. + +dnl Usage: AM_INIT_GUILE_MODULE(module-name) +dnl This macro will automatically get the guile version from the +dnl top-level srcdir, and will initialize automake. It also +dnl defines the `module' variable. +AC_DEFUN([AM_INIT_GUILE_MODULE],[ +. $srcdir/../GUILE-VERSION +AM_INIT_AUTOMAKE($PACKAGE, $VERSION) +AC_CONFIG_AUX_DIR(..) +module=[$1] +AC_SUBST(module)]) |