configure.ac 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. define(GUILE_DAEMON_CONFIGURE_COPYRIGHT, [[
  2. Copyright (C) 2016-2020 Alex Kost <alezost@gmail.com>
  3. This file is part of Guile-Daemon.
  4. Guile-Daemon is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. Guile-Daemon is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with Guile-Daemon. If not, see <http://www.gnu.org/licenses/>.
  14. ]])
  15. AC_INIT([Guile-Daemon], [0.1.3], [alezost@gmail.com], [guile-daemon],
  16. [https://github.com/alezost/guile-daemon])
  17. AC_COPYRIGHT(GUILE_DAEMON_CONFIGURE_COPYRIGHT)
  18. AC_CONFIG_AUX_DIR([build-aux])
  19. AM_INIT_AUTOMAKE([foreign subdir-objects])
  20. AM_SILENT_RULES([yes])
  21. dnl ----------------------------------------------------------------
  22. dnl Checking for Guile
  23. GUILE_PKG([3.0 2.2 2.0])
  24. GUILE_PROGS([2.0.2])
  25. AC_ARG_WITH([guile-site-dir],
  26. [AS_HELP_STRING([--with-guile-site-dir],
  27. [installation directory for Guile (*.scm) files])],
  28. [guilemoduledir="$withval"],
  29. [guilemoduledir="$datarootdir/guile/site/$GUILE_EFFECTIVE_VERSION"])
  30. AC_SUBST([guilemoduledir])
  31. AC_MSG_CHECKING([for the Guile module directory])
  32. AC_MSG_RESULT([$guilemoduledir])
  33. AC_ARG_WITH([guile-site-ccache-dir],
  34. [AS_HELP_STRING([--with-guile-site-ccache-dir],
  35. [installation directory for Guile compiled (*.go) files])],
  36. [guileccachedir="$withval"],
  37. [guileccachedir="$libdir/guile/$GUILE_EFFECTIVE_VERSION/site-ccache"])
  38. AC_SUBST([guileccachedir])
  39. AC_MSG_CHECKING([for the Guile ccache directory])
  40. AC_MSG_RESULT([$guileccachedir])
  41. dnl ----------------------------------------------------------------
  42. COPYRIGHT_YEAR="`date +%Y`"
  43. AC_SUBST([COPYRIGHT_YEAR])
  44. AC_CONFIG_FILES([Makefile
  45. modules/Makefile
  46. modules/daemon/config.scm
  47. pre-inst-env.el])
  48. AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
  49. AC_CONFIG_FILES([scripts/guile-daemon], [chmod +x scripts/guile-daemon])
  50. AC_OUTPUT