Revision 12293,
1.3 KB
checked in by rbasch, 26 years ago
(diff) |
Install into lsbindir.
|
Line | |
---|
1 | dnl Process this file with autoconf to produce a configure script. |
---|
2 | AC_INIT(inetd.c) |
---|
3 | |
---|
4 | test -z "$lsbindir" && lsbindir='${sbindir}' |
---|
5 | AC_SUBST(lsbindir) |
---|
6 | |
---|
7 | AC_PROG_CC |
---|
8 | AC_PROG_INSTALL |
---|
9 | |
---|
10 | AC_CHECK_HEADERS(rpc/rpcent.h) |
---|
11 | |
---|
12 | dnl This is based on AC_CHECK_TYPE, but checks <sys/resource.h> in addition |
---|
13 | dnl to the usual places. |
---|
14 | |
---|
15 | AC_HEADER_STDC |
---|
16 | AC_MSG_CHECKING(for rlim_t) |
---|
17 | AC_CACHE_VAL(ac_cv_type_rlim_t, |
---|
18 | [AC_EGREP_CPP(dnl |
---|
19 | changequote(<<,>>)dnl |
---|
20 | <<rlim_t[^a-zA-Z_0-9]>>dnl |
---|
21 | changequote([,]), [#include <sys/types.h> |
---|
22 | #include <sys/resource.h> |
---|
23 | #if STDC_HEADERS |
---|
24 | #include <stdlib.h> |
---|
25 | #include <stddef.h> |
---|
26 | #endif], ac_cv_type_rlim_t=yes, ac_cv_type_rlim_t=no)])dnl |
---|
27 | AC_MSG_RESULT($ac_cv_type_rlim_t) |
---|
28 | if test $ac_cv_type_rlim_t = no; then |
---|
29 | AC_DEFINE(rlim_t, long) |
---|
30 | fi |
---|
31 | |
---|
32 | AC_CHECK_FUNC(gethostbyname, :, AC_CHECK_LIB(nsl, gethostbyname)) |
---|
33 | AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket)) |
---|
34 | AC_MSG_CHECKING(for libwrap) |
---|
35 | save_LIBS="$LIBS" |
---|
36 | LIBS="-L$ATHTOOLROOT/usr/athena/lib -lwrap $LIBS" |
---|
37 | AC_TRY_LINK( |
---|
38 | [int allow_severity, deny_severity;], |
---|
39 | [hosts_access();], |
---|
40 | [AC_MSG_RESULT(yes) |
---|
41 | AC_DEFINE(LIBWRAP) |
---|
42 | WRAP_LIB="-L$ATHTOOLROOT/usr/athena/lib -lwrap" |
---|
43 | WRAP_INCLUDES=-I$ATHTOOLROOT/usr/athena/include], |
---|
44 | AC_MSG_RESULT(no)) |
---|
45 | LIBS="$save_LIBS" |
---|
46 | AC_SUBST(WRAP_LIB) |
---|
47 | AC_SUBST(WRAP_INCLUDES) |
---|
48 | |
---|
49 | AC_OUTPUT(Makefile) |
---|
Note: See
TracBrowser
for help on using the repository browser.