source: libcaca/trunk/configure.ac @ 51

Last change on this file since 51 was 51, checked in by Sam Hocevar, 19 years ago
  • added support for --disable-slang.
  • fixed an overflow in the tunnel update code.
  • fragbomb is now 'f', not 'd'.
  • added a missing call to init_bonus().
File size: 1.1 KB
RevLine 
[17]1dnl Autoconf settings for ttyvaders
2
[25]3AC_INIT(ttyvaders,0.0cvs-20021218)
[17]4
5AC_PREREQ(2.50)
6AC_CONFIG_SRCDIR(src/main.c)
[39]7AC_CONFIG_AUX_DIR(autotools)
[17]8AC_CANONICAL_SYSTEM
9
[25]10AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021218)
[17]11AM_CONFIG_HEADER(config.h)
12
13AM_PROG_CC_C_O
14AC_PROG_CPP
15
[51]16AC_ARG_ENABLE(slang,
17  [  --enable-slang          slang graphics support (default enabled)])
[17]18AC_ARG_ENABLE(ncurses,
[51]19  [  --enable-ncurses        ncurses graphics support (default disabled)])
[17]20
21if test "${enable_ncurses}" = "yes"
22then
23  AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
24  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
25else
[51]26  if test "${enable_slang}" != "no"
27  then
28    AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
29    AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
30  else
31    :
32  fi
[17]33fi
34
[51]35AM_CONDITIONAL(USE_SLANG, test "${enable_slang}" != "no")
[17]36AM_CONDITIONAL(USE_NCURSES, test "${enable_ncurses}" = "yes")
37
38AC_OUTPUT([
39  Makefile
40  src/Makefile
[39]41  autotools/Makefile
[17]42  debian/Makefile
43])
44
Note: See TracBrowser for help on using the repository browser.