diff options
author | Ludovic Courtès <ludo@chbouib.org> | 2007-05-30 00:39:23 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@chbouib.org> | 2007-05-30 00:39:23 +0200 |
commit | d374e7df710477ae0212234d688064876cb7d05f (patch) | |
tree | 9130cc704019c6b89da9eb2b5dd7da59d41b8b31 /configure.in | |
parent | 331a51173f748bca0850a275dd9454486948a9da (diff) | |
download | gnutls-d374e7df710477ae0212234d688064876cb7d05f.tar.gz |
Started Guile integration.
Documentation is still missing. A bit rough on the edges, but `make'
and `make check' do work.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/configure.in b/configure.in index bddb0f19b7..b0aba2bf02 100644 --- a/configure.in +++ b/configure.in @@ -87,6 +87,17 @@ AC_ARG_ENABLE(profile-mode, opt_profiler_mode=$enableval) AC_MSG_RESULT($opt_profiler_mode) +opt_guile_bindings=yes +AC_MSG_CHECKING([whether building Guile bindings]) +AC_ARG_ENABLE(guile, + AS_HELP_STRING([--enable-guile], [build GNU Guile bindings]), +opt_guile_bindings=$enableval) +AC_MSG_RESULT($opt_guile_bindings) + +AC_ARG_WITH([--with-guile-site-dir], + [AS_HELP_STRING([--with-guile-site-dir], + [use the given directory as the Guile site (use with care)])]) + AC_MSG_RESULT([*** *** Checking for compilation programs... ]) @@ -107,6 +118,37 @@ if test "x$GAA" = "x"; then ***]]) fi +AM_CONDITIONAL(HAVE_GUILE, test "x$opt_guile_bindings" = "xyes") + +if test "x$opt_guile_bindings" = "xyes"; then + GUILE_PROGS + GUILE_FLAGS + AC_PATH_PROG([guile_snarf], [guile-snarf], [not-found]) + if test "x$guile_snarf" = "xnot-found"; then + AC_MSG_ERROR([`guile-snarf' not found. Please install Guile 1.8.x or later.]) + fi + + case "x$with_guile_site_dir" in + x|xno) + # Use the default $(GUILE_SITE). + GUILE_SITE_DIR + ;; + xyes) + # Automatically derive $(GUILE_SITE) from $(pkgdatadir). This + # hack is used to allow `distcheck' to work (see + # `DISTCHECK_CONFIGURE_FLAGS' in the top-level `Makefile.am'). + GUILE_SITE="${datadir}/guile/site" + AC_SUBST(GUILE_SITE) + ;; + *) + # Use the user-specified directory as $(GUILE_SITE). + GUILE_SITE="$with_guile_site_dir" + AC_SUBST(GUILE_SITE) + ;; + esac +fi + + AC_MSG_RESULT([*** *** Detecting compiler options... ]) @@ -645,6 +687,11 @@ AC_CONFIG_FILES([Makefile po/Makefile.in \ src/Makefile src/x509/Makefile src/srp/Makefile src/openpgp/Makefile \ src/cfg/Makefile src/cfg/platon/Makefile src/cfg/platon/str/Makefile \ lib/libgnutls-config libextra/libgnutls-extra-config \ - lib/gnutls.pc libextra/gnutls-extra.pc]) + lib/gnutls.pc libextra/gnutls-extra.pc + guile/Makefile guile/modules/Makefile + guile/src/Makefile guile/tests/Makefile]) + +AC_CONFIG_FILES([guile/pre-inst-guile], [chmod +x guile/pre-inst-guile]) + AC_OUTPUT |