No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / cf / proto-compat.m4
blobb13fdfc45a04d9a51aa7c43ca7533e94a799b553
1 dnl $Heimdal: proto-compat.m4 14166 2004-08-26 12:35:42Z joda $
2 dnl $NetBSD$
3 dnl
4 dnl
5 dnl Check if the prototype of a function is compatible with another one
6 dnl
8 dnl AC_PROTO_COMPAT(includes, function, prototype)
10 AC_DEFUN([AC_PROTO_COMPAT], [
11 AC_CACHE_CHECK([if $2 is compatible with system prototype],
12 ac_cv_func_$2_proto_compat,
13 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$1]],[[$3]])],
14 [eval "ac_cv_func_$2_proto_compat=yes"],
15 [eval "ac_cv_func_$2_proto_compat=no"]))
16 define([foo], translit($2, [a-z], [A-Z])[_PROTO_COMPATIBLE])
17 if test "$ac_cv_func_$2_proto_compat" = yes; then
18         AC_DEFINE(foo, 1, [define if prototype of $2 is compatible with
19         $3])
21 undefine([foo])