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