fixes init script for non ipv6 enabled systems #472755
[packages/xinetd.git] / aclocal.m4
1 dnl Check for variable types.
2 dnl
3 AC_DEFUN(XINETD_CHECK_TYPE,
4 [AC_REQUIRE([AC_HEADER_STDC])dnl
5 AC_MSG_CHECKING(for $1)
6 AC_CACHE_VAL(xinetd_cv_type_$1,
7 [AC_EGREP_CPP($1, [#include <sys/types.h>
8 #if STDC_HEADERS
9 #include <stdlib.h>
10 #endif
11 #if HAVE_NETDB_H
12 #include <netdb.h>
13 #endif
14 #if HAVE_RLIM_T
15 #include <sys/resource.h>
16 #endif
17 #if HAVE_STDINT_H
18 #include <stdint.h>
19 #endif
20 #if HAVE_UNISTD_H
21 #include <unistd.h>
22 #endif], xinetd_cv_type_$1=yes, xinetd_cv_type_$1=no)])dnl
23 AC_MSG_RESULT($xinetd_cv_type_$1)
24 if test $xinetd_cv_type_$1 = no; then
25    AC_DEFINE($1, $2)
26 fi
27 ])