configure.ac 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. dnl Process this file with autoconf to produce a configure script.
  2. # Copyright © 2000-2012, 2016, 2019 Free Software Foundation, Inc.
  3. # Copyright © 2020-2022 GNUnet e.V.
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. #
  6. # Author (GnuTLS): Nikos Mavrogiannopoulos, Simon Josefsson
  7. # Author (scheme-GNUnet): Maxime Devos
  8. #
  9. # This file is part of scheme-gnunet
  10. #
  11. # scheme-GNUnet is free software; you can redistribute it and/or modify it
  12. # under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 3 of the License, or (at
  14. # your option) any later version.
  15. #
  16. # scheme-GNUnet is distributed in the hope that it will be useful, but
  17. # WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. # GNU General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU General Public License
  22. # along with scheme-GNUnet. If not, see <http://www.gnu.org/licenses/>.
  23. # This file is partially based upon the Autoconf script of GnuTLS.
  24. # Not all scheme-GNUnet code is licensed as GPL, most is licensed as AGPL.
  25. AC_PREREQ([2.61])
  26. AC_INIT([scheme-gnunet], [0.2], [bug-gnunet@gnu.org])
  27. AC_CONFIG_AUX_DIR([build-aux])
  28. AC_CONFIG_MACRO_DIRS([m4])
  29. AM_INIT_AUTOMAKE([foreign subdir-objects])
  30. AC_CANONICAL_HOST
  31. # Don't use $(GUILE_SITE) and $(GUILE_SITE_CCACHE), that doesn't work on Guix and Nix and the like.
  32. AC_ARG_WITH([guile-site-dir], AS_HELP_STRING([--with-guile-site-dir=DIR],
  33. [guile site directory for scheme-gnunet]),
  34. [guilesitedir="${withval}"], [guilesitedir='$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)'])
  35. AC_ARG_WITH([guile-site-ccache-dir], AS_HELP_STRING([--with-guile-site-ccache-dir=DIR],
  36. [guile ccache directory for scheme-gnunet]),
  37. [guilesiteccachedir="${withval}"], [guilesiteccachedir='$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache'])
  38. AC_SUBST([guilesitedir])
  39. AC_SUBST([guilesiteccachedir])
  40. dnl Check for 'guild', which can be used to compile Scheme code
  41. AC_PATH_PROG([GUILD], [guild])
  42. AC_SUBST([GUILD])
  43. GUILE_PKG([3.0])
  44. GUILE_PROGS
  45. AC_OUTPUT([Makefile])