fix immediate linkage, some other fixes to allow vm/ to compile
[bpt/guile.git] / configure.in
dissimilarity index 76%
index f06a52a..9ec7925 100644 (file)
@@ -1,15 +1,35 @@
-AC_INIT(src/guile-vm.c)
-AM_INIT_AUTOMAKE(guile-vm, 0.4)
-AM_CONFIG_HEADER(src/config.h)
-
-GUILE_FLAGS
-if test "`guile -c '(display (string>=? (version) "1.4.1"))'`" != "#t"; then
-  AC_MSG_ERROR([Your Guile is too old.  You need guile-1.4.1 or later.])
-fi
-
-AC_PROG_CC
-AC_PROG_LN_S
-AM_PROG_LIBTOOL
-AC_C_LABELS_AS_VALUES
-
-AC_OUTPUT(Makefile src/Makefile doc/Makefile module/Makefile)
+# Guile-VM.
+
+AC_PREREQ(2.59)
+AC_INIT(guile-vm, 0.6, ludovic.courtes@laas.fr)
+AM_INIT_AUTOMAKE(guile-vm, 0.6)
+
+AC_CONFIG_SRCDIR(src/guile-vm.c)
+AC_CONFIG_HEADER(src/config.h)
+
+# Guile.
+GUILE_FLAGS
+if test "`guile -c '(display (string>=? (version) "1.7"))'`" != "#t"; then
+  AC_MSG_ERROR([Your Guile is too old.  You need Guile 1.7.2 or later.])
+fi
+
+# C Compiler.
+AC_PROG_CC
+AC_PROG_LN_S
+AM_PROG_LIBTOOL
+AC_C_LABELS_AS_VALUES
+
+guiledir="\$(datadir)/guile"
+AC_SUBST(guiledir)
+
+GUILEC="GUILE_LOAD_PATH=\$(top_srcdir)/module \
+  LD_LIBRARY_PATH=\$(top_srcdir)/src/.libs \
+  guile -s \$(top_srcdir)/src/guilec"
+AC_SUBST(GUILEC)
+
+AC_OUTPUT(Makefile src/Makefile doc/Makefile module/Makefile
+         module/system/Makefile module/system/base/Makefile
+         module/system/vm/Makefile module/system/il/Makefile
+         module/system/repl/Makefile
+         module/language/Makefile module/language/scheme/Makefile
+         testsuite/Makefile)