configure.ac 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Joy -- implementation of the Joy programming language
  2. # Copyright © 2016 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.0], [bavier@member.fsf.org], [joy],
  18. [http://www.nahne.info/joy])
  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_MACRO_DIR([m4])
  26. AC_CONFIG_TESTDIR([tests],[scripts])
  27. AC_CANONICAL_HOST
  28. dnl Search for 'guile' and 'guild'. This macro defines
  29. dnl 'GUILE_EFFECTIVE_VERSION'.
  30. GUILE_PKG([2.2 2.0])
  31. GUILE_PROGS
  32. if test "x$GUILD" = "x"; then
  33. AC_MSG_ERROR(['guild' binary not found; please check your guile-2.x installation.])
  34. fi
  35. dnl Installation directories for .scm and .go files.
  36. guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION"
  37. guileobjectdir="${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache"
  38. AC_SUBST([guilemoduledir])
  39. AC_SUBST([guileobjectdir])
  40. AC_CHECK_PROGS([GREP], [grep egrep])
  41. AM_MISSING_PROG([HELP2MAN], help2man])
  42. AC_CONFIG_FILES([Makefile
  43. joy/config.scm
  44. tests/atlocal])
  45. AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
  46. AM_PATH_LISPDIR
  47. dnl for byte-compiling joy-mode.el?
  48. AM_CONDITIONAL([HAVE_EMACS], [test "x$EMACS" != "xno"])
  49. AC_OUTPUT