summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorhpa <hpa>2001-08-09 06:19:00 +0000
committerhpa <hpa>2001-08-09 06:19:00 +0000
commita0db7c057bb54383694c4c145b7fa6d8f10c2ba3 (patch)
tree5adc89541570f339b0f2fa1f30714bedb71d15be /aclocal.m4
parent68c0102aa6a7defde48910226b863b8e581b8897 (diff)
downloadtftp-hpa-a0db7c057bb54383694c4c145b7fa6d8f10c2ba3.tar.gz
Detect if IPPORT_TFTP is defined anywhere (may not be a macro, may be
an enum.)
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 99e6a04..66b8eac 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -134,3 +134,28 @@ if test [$2] -ne 0; then
else
[$5]
fi)])
+
+dnl --------------------------------------------------------------------------
+dnl PA_HEADER_DEFINES
+dnl
+dnl PA_HEADER_DEFINES(headers, type, value)
+dnl --------------------------------------------------------------------------
+AC_DEFUN(PA_HEADER_DEFINES,
+[AC_MSG_CHECKING([for definition of $3])
+ AC_TRY_COMPILE([$1],
+[
+int main()
+{
+ $2 dummy = $3;
+ return 0;
+}
+],
+[
+ pa_header_define=`echo HAVE_$3_DEFINITION | tr '[a-z]' '[A-Z]'`
+ AC_DEFINE_UNQUOTED($pa_header_define)
+ AC_MSG_RESULT(yes)
+],
+[
+ AC_MSG_RESULT(no)
+])])
+