Further fixes to configuration system; don't put configure in CVS.

This commit is contained in:
hpa 2001-04-23 19:59:22 +00:00
parent 772b990b91
commit 6c5cce691c
6 changed files with 33 additions and 2232 deletions

View file

@ -19,9 +19,9 @@ all: MCONFIG $(patsubst %, %.build, $(SUB))
install: MCONFIG $(patsubst %, %.install, $(SUB)) install: MCONFIG $(patsubst %, %.install, $(SUB))
clean: MCONFIG $(patsubst %, %.clean, $(SUB)) clean: $(patsubst %, %.clean, $(SUB))
spotless: MCONFIG $(patsubst %, %.spotless, $(SUB)) spotless: $(patsubst %, %.spotless, $(SUB))
rm -f MCONFIG config.cache config.log config.h *~ \#* rm -f MCONFIG config.cache config.log config.h *~ \#*
find . -type f \( -name \*.orig -o -name \*.rej \) | xargs -r rm -f find . -type f \( -name \*.orig -o -name \*.rej \) | xargs -r rm -f

27
aclocal.m4 vendored
View file

@ -55,6 +55,33 @@ AC_DEFUN(PA_MSGHDR_MSG_CONTROL,
AC_MSG_RESULT([no]) 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 --------------------------------------------------------------------------
dnl PA_HAVE_TCPWRAPPERS dnl PA_HAVE_TCPWRAPPERS
dnl dnl

View file

@ -19,3 +19,4 @@
#undef HAVE_MSGHDR_MSG_CONTROL #undef HAVE_MSGHDR_MSG_CONTROL
#undef HAVE_RECVMSG #undef HAVE_RECVMSG
#undef HAVE_TCPWRAPPERS #undef HAVE_TCPWRAPPERS
#undef HAVE_STRUCT_IN_PKTINFO

2228
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -10,6 +10,7 @@ AC_C_INLINE
AC_CHECK_FUNCS(recvmsg) AC_CHECK_FUNCS(recvmsg)
PA_MSGHDR_MSG_CONTROL PA_MSGHDR_MSG_CONTROL
PA_STRUCT_IN_PKTINFO
PA_WITH_BOOL(tcpwrappers, 1, PA_WITH_BOOL(tcpwrappers, 1,
[ --without-tcpwrappers Disable tcpwrapper permissions checking], [ --without-tcpwrappers Disable tcpwrapper permissions checking],

View file

@ -1,7 +1,7 @@
all: tftp all: tftp
include ../MCONFIG -include ../MCONFIG
include ../MRULES -include ../MRULES
OBJS = tftp.o main.o tftpsubs.o OBJS = tftp.o main.o tftpsubs.o