25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

configure.ac 1.1 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. dnl Autoconf settings for ttyvaders
  2. AC_INIT(ttyvaders,0.0cvs-20021218)
  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-20021218)
  8. AM_CONFIG_HEADER(config.h)
  9. AM_PROG_CC_C_O
  10. AC_PROG_CPP
  11. AC_ARG_ENABLE(slang,
  12. [ --enable-slang slang graphics support (default enabled)])
  13. AC_ARG_ENABLE(ncurses,
  14. [ --enable-ncurses ncurses graphics support (default disabled)])
  15. if test "${enable_ncurses}" = "yes"
  16. then
  17. AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
  18. AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
  19. else
  20. if test "${enable_slang}" != "no"
  21. then
  22. AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
  23. AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
  24. else
  25. :
  26. fi
  27. fi
  28. AM_CONDITIONAL(USE_SLANG, test "${enable_slang}" != "no")
  29. AM_CONDITIONAL(USE_NCURSES, test "${enable_ncurses}" = "yes")
  30. AC_OUTPUT([
  31. Makefile
  32. src/Makefile
  33. autotools/Makefile
  34. debian/Makefile
  35. ])