source: ttyvaders/trunk/configure.ac @ 156

Last change on this file since 156 was 156, checked in by Sam Hocevar, 16 years ago
  • MS-DOS port of libee, using <conio.h>.
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: configure.ac 156 2003-11-12 16:23:18Z 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
15AC_PROG_RANLIB
16
17AC_ARG_ENABLE(slang,
18  [  --enable-slang          slang graphics support (default enabled)])
19AC_ARG_ENABLE(ncurses,
20  [  --enable-ncurses        ncurses graphics support (default disabled)])
21AC_ARG_ENABLE(conio,
22  [  --enable-conio          DOS conio.h graphics support (default disabled)])
23
24USE_SLANG=false
25USE_NCURSES=false
26USE_CONIO=false
27if test "${enable_conio}" = "yes"; then
28  AC_CHECK_HEADER(conio.h,:,AC_MSG_ERROR([cannot find conio.h header]))
29  AC_DEFINE(USE_CONIO, 1, Define if the backend driver is conio.h)
30  USE_CONIO=:
31elif test "${enable_ncurses}" = "yes"; then
32  AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
33  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
34  AC_DEFINE(USE_NCURSES, 1, Define if the backend driver is ncurses)
35  USE_NCURSES=:
36elif test "${enable_slang}" != "no"; then
37  AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
38  AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
39  AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
40  USE_SLANG=:
41fi
42
43AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})
44AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES})
45
46# Optimizations
47CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
48# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
49CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs"
50
51AC_OUTPUT([
52  Makefile
53  libee/Makefile
54  test/Makefile
55  src/Makefile
56  autotools/Makefile
57  data/Makefile
58  debian/Makefile
59])
60
Note: See TracBrowser for help on using the repository browser.