diff options
author | hpa <hpa> | 2001-08-09 06:19:00 +0000 |
---|---|---|
committer | hpa <hpa> | 2001-08-09 06:19:00 +0000 |
commit | a0db7c057bb54383694c4c145b7fa6d8f10c2ba3 (patch) | |
tree | 5adc89541570f339b0f2fa1f30714bedb71d15be /aclocal.m4 | |
parent | 68c0102aa6a7defde48910226b863b8e581b8897 (diff) | |
download | tftp-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.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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) +])]) + |