forked from mirrors/tftp-hpa-google
Further fixes to configuration system; don't put configure in CVS.
This commit is contained in:
parent
772b990b91
commit
6c5cce691c
6 changed files with 33 additions and 2232 deletions
27
aclocal.m4
vendored
27
aclocal.m4
vendored
|
@ -55,6 +55,33 @@ AC_DEFUN(PA_MSGHDR_MSG_CONTROL,
|
|||
AC_MSG_RESULT([no])
|
||||
])])
|
||||
|
||||
dnl ------------------------------------------------------------------------
|
||||
dnl PA_STRUCT_IN_PKTINFO
|
||||
dnl
|
||||
dnl Look for definition of struct in_pktinfo. Some versions of glibc
|
||||
dnl lack struct in_pktinfo; if so we need to include the definition
|
||||
dnl ourselves -- but we only want to do that if absolutely necessary!
|
||||
dnl ------------------------------------------------------------------------
|
||||
AC_DEFUN(PA_STRUCT_IN_PKTINFO,
|
||||
[AC_MSG_CHECKING([for definition of struct in_pktinfo])
|
||||
AC_TRY_COMPILE(
|
||||
[
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
],
|
||||
[
|
||||
struct in_pktinfo pktinfo;
|
||||
int foo = sizeof(struct in_pktinfo);
|
||||
void *quux = (void *)(&pktinfo.ipi_addr);
|
||||
],
|
||||
[
|
||||
AC_DEFINE(HAVE_STRUCT_IN_PKTINFO)
|
||||
AC_MSG_RESULT([yes])
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
])])
|
||||
|
||||
dnl --------------------------------------------------------------------------
|
||||
dnl PA_HAVE_TCPWRAPPERS
|
||||
dnl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue