mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 17:20:29 +02:00
Try to detect when people are using one version of libguile and a
different version of ice-9. People have been skewing things and sending in bug reports. * Makefile.am (versiondat.h): New file to generate. * version.c: #include "versiondat.h", to get version info. (scm_libguile_config_stamp): New function. * script.c: #include "version.h". (scm_compile_switches): Call scm_version to get version number. * scmconfig.h.in, Makefile.in: Regenerated. * Makefile.in: Regenerated. * Makefile.am (ETAGS_ARGS): Catch SCM_PROC, etc. so we can find primitive definitions under their Scheme names. * Makefile.am (libguile_la_LDFLAGS): Update library version to 1:2. Helps avoid confusion between installed and uninstalled libs.
This commit is contained in:
parent
7c86ae051a
commit
fef07353a8
5 changed files with 48 additions and 12 deletions
|
@ -41,6 +41,7 @@
|
|||
|
||||
|
||||
#include "_scm.h"
|
||||
#include "versiondat.h"
|
||||
|
||||
#include "version.h"
|
||||
|
||||
|
@ -75,6 +76,16 @@ scm_version ()
|
|||
return scm_makfrom0str (GUILE_VERSION);
|
||||
}
|
||||
|
||||
/* Return a Scheme string containing Guile's configuration stamp. */
|
||||
|
||||
SCM_PROC(s_libguile_config_stamp, "libguile-config-stamp", 0, 0, 0, scm_libguile_config_stamp);
|
||||
|
||||
SCM
|
||||
scm_libguile_config_stamp ()
|
||||
{
|
||||
return scm_makfrom0str (GUILE_STAMP);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue