configure.ac 801 B

12345678910111213141516171819202122232425262728293031
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([dice], [0.9], [https://notabug.org/cryptarch/dice.git])
  5. AM_INIT_AUTOMAKE([-Wall -Werror])
  6. AC_CONFIG_SRCDIR([io.c])
  7. AC_CONFIG_HEADERS([config.h])
  8. # Checks for programs.
  9. AC_PROG_CC
  10. # Checks for libraries.
  11. AC_CHECK_LIB([m], [ceil])
  12. AC_CHECK_LIB([ncurses], [tgetent])
  13. AC_CHECK_LIB([readline], [readline])
  14. # Checks for header files.
  15. AC_CHECK_HEADERS([limits.h stddef.h stdlib.h string.h unistd.h])
  16. # Checks for typedefs, structures, and compiler characteristics.
  17. AC_CHECK_HEADER_STDBOOL
  18. AC_TYPE_SIZE_T
  19. # Checks for library functions.
  20. AC_FUNC_MALLOC
  21. AC_CHECK_FUNCS([clock_gettime memset strerror strtol])
  22. AC_CONFIG_FILES([Makefile])
  23. AC_OUTPUT