Revision 9160,
600 bytes
checked in by ghudson, 28 years ago
(diff) |
An autoconf-based build system for talk.
|
Line | |
---|
1 | dnl Process this file with autoconf to produce a configure script. |
---|
2 | AC_INIT(talk/talk.c) |
---|
3 | AC_CONFIG_HEADER(config.h) |
---|
4 | |
---|
5 | AC_PROG_CC |
---|
6 | AC_PROG_INSTALL |
---|
7 | AC_CHECK_SIZEOF(short, 2) |
---|
8 | AC_CHECK_SIZEOF(int, 4) |
---|
9 | AC_CHECK_SIZEOF(long, 4) |
---|
10 | AC_FUNC_CHECK(connect, :, [AC_CHECK_LIB(socket, socket) |
---|
11 | AC_CHECK_LIB(nsl, gethostbyname)]) |
---|
12 | AC_CHECK_HEADERS(paths.h) |
---|
13 | if test -f /var/run/utmp; then |
---|
14 | AC_DEFINE(GUESSED_PATH_UTMP, "/var/run/utmp") |
---|
15 | elif test -f /var/adm/utmp; then |
---|
16 | AC_DEFINE(GUESSED_PATH_UTMP, "/var/adm/utmp") |
---|
17 | else |
---|
18 | AC_DEFINE(GUESSED_PATH_UTMP, "/etc/utmp") |
---|
19 | fi |
---|
20 | |
---|
21 | AC_OUTPUT(Makefile talk/Makefile talkd/Makefile) |
---|
Note: See
TracBrowser
for help on using the repository browser.