Last change
on this file since 41 was
39,
checked in by Sam Hocevar, 20 years ago
|
- Moved generated autotools files to the autotools/ directory.
|
File size:
862 bytes
|
Line | |
---|
1 | dnl Autoconf settings for ttyvaders |
---|
2 | |
---|
3 | AC_INIT(ttyvaders,0.0cvs-20021218) |
---|
4 | |
---|
5 | AC_PREREQ(2.50) |
---|
6 | AC_CONFIG_SRCDIR(src/main.c) |
---|
7 | AC_CONFIG_AUX_DIR(autotools) |
---|
8 | AC_CANONICAL_SYSTEM |
---|
9 | |
---|
10 | AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021218) |
---|
11 | AM_CONFIG_HEADER(config.h) |
---|
12 | |
---|
13 | AM_PROG_CC_C_O |
---|
14 | AC_PROG_CPP |
---|
15 | |
---|
16 | AC_ARG_ENABLE(ncurses, |
---|
17 | [ --enable-ncurses ncurses interface support (default is slang)]) |
---|
18 | |
---|
19 | if test "${enable_ncurses}" = "yes" |
---|
20 | then |
---|
21 | AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers])) |
---|
22 | AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library])) |
---|
23 | else |
---|
24 | AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers])) |
---|
25 | AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library])) |
---|
26 | fi |
---|
27 | |
---|
28 | AM_CONDITIONAL(USE_NCURSES, test "${enable_ncurses}" = "yes") |
---|
29 | |
---|
30 | AC_OUTPUT([ |
---|
31 | Makefile |
---|
32 | src/Makefile |
---|
33 | autotools/Makefile |
---|
34 | debian/Makefile |
---|
35 | ]) |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.