source: ttyvaders/trunk/configure.ac @ 365

Last change on this file since 365 was 365, checked in by Sam Hocevar, 16 years ago
  • configure.ac: + No longer check for ncurses etc., we use caca-config.
  • src/*: + Updated to new libcaca API, mainly caca_get_event() and caca_set_color()

calls.

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: configure.ac 365 2004-02-17 13:53:14Z sam $
2
3AC_INIT(ttyvaders,0.0cvs-20031110)
4
5AC_PREREQ(2.50)
6AC_CONFIG_SRCDIR(src/main.c)
7AC_CONFIG_AUX_DIR(autotools)
8AC_CANONICAL_SYSTEM
9
10AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20031110)
11AM_CONFIG_HEADER(config.h)
12
13AM_PROG_CC_C_O
14AC_PROG_CPP
15
16dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
17dnl now otherwise it might be set in an obscure if statement.
18AC_EGREP_CPP(foo,foo)
19
20AC_MSG_CHECKING(for libcaca support)
21video_caca=no
22AC_TRY_COMPILE([
23  #include <caca.h>
24],[ ],[video_caca=yes])
25AC_MSG_RESULT($video_caca)
26if test "$video_caca" = "yes"; then
27  CACA_CFLAGS="${CFLAGS} `caca-config --cflags`"
28  CACA_LIBS="${LIBS} `caca-config --libs`"
29  AC_SUBST(CACA_CFLAGS)
30  AC_SUBST(CACA_LIBS)
31else
32  AC_MSG_ERROR([cannot find libcaca])
33fi
34
35# Optimizations
36CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
37# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
38CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
39
40AC_OUTPUT([
41  Makefile
42  src/Makefile
43  autotools/Makefile
44  data/Makefile
45  debian/Makefile
46])
47
Note: See TracBrowser for help on using the repository browser.