summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2001-08-09 06:42:18 +0000
committerhpa <hpa>2001-08-09 06:42:18 +0000
commit1e6fa366d1a59024a2361e08b3fc2f1cfc273e38 (patch)
tree6fe7c056da93796f12ce917f9da946369b622b73
parenta0db7c057bb54383694c4c145b7fa6d8f10c2ba3 (diff)
downloadtftp-hpa-1e6fa366d1a59024a2361e08b3fc2f1cfc273e38.tar.gz
Cleanup the PA_HEADER_DEFINES() interface somewhat.
-rw-r--r--aclocal.m48
-rw-r--r--configure.in2
2 files changed, 6 insertions, 4 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 66b8eac..6824e99 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -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],