diff options
author | hpa <hpa> | 2001-08-09 06:42:18 +0000 |
---|---|---|
committer | hpa <hpa> | 2001-08-09 06:42:18 +0000 |
commit | 1e6fa366d1a59024a2361e08b3fc2f1cfc273e38 (patch) | |
tree | 6fe7c056da93796f12ce917f9da946369b622b73 | |
parent | a0db7c057bb54383694c4c145b7fa6d8f10c2ba3 (diff) | |
download | tftp-hpa-1e6fa366d1a59024a2361e08b3fc2f1cfc273e38.tar.gz |
Cleanup the PA_HEADER_DEFINES() interface somewhat.
-rw-r--r-- | aclocal.m4 | 8 | ||||
-rw-r--r-- | configure.in | 2 |
2 files changed, 6 insertions, 4 deletions
@@ -138,11 +138,13 @@ fi)]) dnl -------------------------------------------------------------------------- dnl PA_HEADER_DEFINES dnl -dnl PA_HEADER_DEFINES(headers, type, value) +dnl PA_HEADER_DEFINES(header, type, value) dnl -------------------------------------------------------------------------- AC_DEFUN(PA_HEADER_DEFINES, -[AC_MSG_CHECKING([for definition of $3]) - AC_TRY_COMPILE([$1], +[AC_MSG_CHECKING([if $1 defines $3]) + AC_TRY_COMPILE([ +#include <$1> +], [ int main() { diff --git a/configure.in b/configure.in index cb20df5..213dade 100644 --- a/configure.in +++ b/configure.in @@ -39,7 +39,7 @@ AC_CHECK_FUNCS(setregid) PA_MSGHDR_MSG_CONTROL PA_STRUCT_IN_PKTINFO -PA_HEADER_DEFINES([#include <netinet/in.h>], int, IPPORT_TFTP) +PA_HEADER_DEFINES(netinet/in.h, int, IPPORT_TFTP) PA_WITH_BOOL(tcpwrappers, 1, [ --without-tcpwrappers Disable tcpwrapper permissions checking], |