configure.ac 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ## Process this file with autoconf to produce a configure script.
  2. # Copyright © 2016, 2017 Mathieu Lirzin <mthl@gnu.org>
  3. # Copyright © 2017, 2018, 2020 Ludovic Courtès <ludo@gnu.org>
  4. # Copyright © 2017 Mathieu Othacehe <othacehe@gnu.org>
  5. #
  6. # This file is part of Cuirass.
  7. #
  8. # Cuirass is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 3, or (at your option)
  11. # any later version.
  12. #
  13. # Cuirass is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with Cuirass. If not, see <http://www.gnu.org/licenses/>.
  20. AC_PREREQ([2.61])
  21. AC_INIT([Cuirass],
  22. m4_esyscmd([build-aux/git-version-gen .tarball-version]),
  23. [bug-guix@gnu.org], [cuirass],
  24. [https://guix.gnu.org/en/cuirass/])
  25. AC_CONFIG_SRCDIR([bin/cuirass.in])
  26. AC_CONFIG_AUX_DIR([build-aux])
  27. AC_REQUIRE_AUX_FILE([git-version-gen])
  28. AC_REQUIRE_AUX_FILE([test-driver.scm])
  29. AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
  30. AM_SILENT_RULES([yes]) # enables silent rules by default
  31. AC_CANONICAL_HOST
  32. AC_PROG_MKDIR_P
  33. AC_PROG_SED
  34. # We need Fibers, which requires 2.2+.
  35. GUILE_PKG([3.0 2.2])
  36. AC_PATH_PROG([GUILE], [guile])
  37. AC_PATH_PROG([GUILD], [guild])
  38. AS_IF([test -z "$ac_cv_path_GUILD"],
  39. [AC_MSG_ERROR(['guild' program cannot be found.])])
  40. GUILE_MODULE_REQUIRED([avahi])
  41. GUILE_MODULE_REQUIRED([fibers])
  42. GUILE_MODULE_REQUIRED([guix])
  43. GUILE_MODULE_REQUIRED([guix git])
  44. GUILE_MODULE_REQUIRED([git])
  45. GUILE_MODULE_REQUIRED([json])
  46. GUILE_MODULE_REQUIRED([mailutils mailutils])
  47. GUILE_MODULE_REQUIRED([mastodon])
  48. GUILE_MODULE_REQUIRED([simple-zmq])
  49. GUILE_MODULE_REQUIRED([squee])
  50. GUILE_MODULE_REQUIRED([zlib])
  51. # We depend on new Guile-Git errors.
  52. GUILE_MODULE_REQUIRED_EXPORT([(git)], git-error-message)
  53. AC_CONFIG_FILES([Makefile])
  54. AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
  55. [chmod +x pre-inst-env])
  56. AC_OUTPUT