configure.ac 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Joy -- implementation of the Joy programming language
  2. # Copyright © 2016, 2020 Eric Bavier <bavier@member.fsf.org>
  3. #
  4. # Joy is free software; you can redistribute it and/or modify it under
  5. # the terms of the GNU General Public License as published by the Free
  6. # Software Foundation; either version 3 of the License, or (at your
  7. # option) any later version.
  8. #
  9. # Joy is distributed in the hope that it will be useful, but WITHOUT
  10. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  12. # License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with Joy. If not, see <http://www.gnu.org/licenses/>.
  16. AC_PREREQ(2.68)
  17. AC_INIT([Joy], [1.0.1], [bavier@member.fsf.org], [joy],
  18. [http://notabug.org/bavier/joy-in-the-morning])
  19. AC_CONFIG_AUX_DIR([build-aux])
  20. dnl Use -Wno-portability for custom silent rules
  21. AM_INIT_AUTOMAKE([1.12 gnu silent-rules subdir-objects \
  22. color-tests parallel-tests -Woverride -Wno-portability])
  23. # Enable silent rules by default.
  24. AM_SILENT_RULES([yes])
  25. AC_CONFIG_TESTDIR([tests],[scripts])
  26. AC_CANONICAL_HOST
  27. dnl Search for 'guile' and 'guild'. This macro defines
  28. dnl 'GUILE_EFFECTIVE_VERSION'.
  29. GUILE_PKG([3.0 2.2 2.0])
  30. GUILE_PROGS
  31. if test "x$GUILD" = "x"; then
  32. AC_MSG_ERROR(['guild' binary not found; please check your guile installation.])
  33. fi
  34. dnl Installation directories for .scm and .go files.
  35. guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION"
  36. guileobjectdir="${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache"
  37. AC_SUBST([guilemoduledir])
  38. AC_SUBST([guileobjectdir])
  39. AC_CHECK_PROGS([GREP], [grep egrep])
  40. AM_MISSING_PROG([HELP2MAN], help2man])
  41. AC_CONFIG_FILES([Makefile
  42. joy/config.scm
  43. tests/atlocal])
  44. AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
  45. AM_PATH_LISPDIR
  46. dnl for byte-compiling joy-mode.el?
  47. AM_CONDITIONAL([HAVE_EMACS], [test "x$EMACS" != "xno"])
  48. AC_OUTPUT