source: trunk/third/inetd/configure.in @ 12293

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