You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

49 lines
1.2 KiB

  1. # $Id$
  2. AC_INIT(ttyvaders,0.0cvs-20021223)
  3. AC_PREREQ(2.50)
  4. AC_CONFIG_SRCDIR(src/main.c)
  5. AC_CONFIG_AUX_DIR(autotools)
  6. AC_CANONICAL_SYSTEM
  7. AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021223)
  8. AM_CONFIG_HEADER(config.h)
  9. AM_PROG_CC_C_O
  10. AC_PROG_CPP
  11. AC_PROG_RANLIB
  12. AC_ARG_ENABLE(slang,
  13. [ --enable-slang slang graphics support (default enabled)])
  14. AC_ARG_ENABLE(ncurses,
  15. [ --enable-ncurses ncurses graphics support (default disabled)])
  16. USE_SLANG=false
  17. USE_NCURSES=false
  18. if test "${enable_ncurses}" = "yes"; then
  19. AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
  20. AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
  21. AC_DEFINE(USE_NCURSES, 1, Define if the backend driver is ncurses)
  22. USE_NCURSES=:
  23. elif test "${enable_slang}" != "no"; then
  24. AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
  25. AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
  26. AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
  27. USE_SLANG=:
  28. fi
  29. AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})
  30. AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES})
  31. AC_OUTPUT([
  32. Makefile
  33. libee/Makefile
  34. test/Makefile
  35. src/Makefile
  36. autotools/Makefile
  37. data/Makefile
  38. debian/Makefile
  39. ])