source: libcaca/trunk/configure.ac @ 71

Last change on this file since 71 was 71, checked in by Sam Hocevar, 20 years ago
  • Fixed keywords, ignore, and lots of tiny SVN things.
  • Property svn:keywords set to Id
File size: 1.1 KB
RevLine 
[71]1# $Id: configure.ac 71 2003-10-02 01:08:13Z sam $
[17]2
[63]3AC_INIT(ttyvaders,0.0cvs-20021223)
[17]4
5AC_PREREQ(2.50)
6AC_CONFIG_SRCDIR(src/main.c)
[39]7AC_CONFIG_AUX_DIR(autotools)
[17]8AC_CANONICAL_SYSTEM
9
[63]10AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021223)
[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
[65]21USE_SLANG=false
22USE_NCURSES=false
[17]23if test "${enable_ncurses}" = "yes"
24then
25  AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
26  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
[65]27  USE_NCURSES=:
[17]28else
[51]29  if test "${enable_slang}" != "no"
30  then
31    AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
32    AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
[65]33    USE_SLANG=:
[51]34  else
35    :
36  fi
[17]37fi
38
[65]39AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})
40AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES})
[17]41
42AC_OUTPUT([
43  Makefile
44  src/Makefile
[39]45  autotools/Makefile
[17]46  debian/Makefile
47])
48
Note: See TracBrowser for help on using the repository browser.