configure.ac 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ## Process this file with autoconf to produce a configure script.
  2. # Copyright © 2016, 2017 Mathieu Lirzin <mthl@gnu.org>
  3. #
  4. # This file is part of Cuirass.
  5. #
  6. # Cuirass is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 3, or (at your option)
  9. # any later version.
  10. #
  11. # Cuirass is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with Cuirass. If not, see <http://www.gnu.org/licenses/>.
  18. AC_PREREQ([2.61])
  19. AC_INIT([Cuirass],
  20. m4_esyscmd([build-aux/git-version-gen .tarball-version]),
  21. [bug-cuirass@framalistes.org], [cuirass],
  22. [https://notabug.org/mthl/cuirass/])
  23. AC_CONFIG_SRCDIR([bin/cuirass.in])
  24. AC_CONFIG_AUX_DIR([build-aux])
  25. AC_REQUIRE_AUX_FILE([git-version-gen])
  26. AC_REQUIRE_AUX_FILE([test-driver.scm])
  27. AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
  28. AM_SILENT_RULES([yes]) # enables silent rules by default
  29. AC_CANONICAL_HOST
  30. AC_PROG_MKDIR_P
  31. AC_PROG_SED
  32. PKG_CHECK_MODULES([GUILE], [guile-2.0 >= 2.0.7])
  33. AC_PATH_PROG([GUILE], [guile])
  34. AC_PATH_PROG([GUILD], [guild])
  35. AS_IF([test -z "$ac_cv_path_GUILD"],
  36. [AC_MSG_ERROR(['guild' program cannot be found.])])
  37. GUILE_MODULE_REQUIRED([guix])
  38. GUILE_MODULE_REQUIRED([json])
  39. GUILE_MODULE_REQUIRED([sqlite3])
  40. AC_CONFIG_FILES([Makefile])
  41. AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
  42. [chmod +x pre-inst-env])
  43. AC_OUTPUT