In KRB5_NEED_PROTO, #undef the name before testing
authorKen Raeburn <raeburn@mit.edu>
Mon, 6 Oct 2008 20:02:11 +0000 (20:02 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 6 Oct 2008 20:02:11 +0000 (20:02 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20826 dc483132-0cff-0310-8789-dd5450dbe970

src/aclocal.m4

index d1e98522e3381e38f226d13f09a2a60602462220..cd4ac9c1aa953c75c0ea46cb61bb499ffdcbbcad 100644 (file)
@@ -1462,7 +1462,8 @@ AC_DEFUN([KRB5_NEED_PROTO], [
 ifelse([$3], ,[if test "x$ac_cv_func_$2" = xyes; then])
 AC_CACHE_CHECK([if $2 needs a prototype provided], krb5_cv_func_$2_noproto,
 AC_TRY_COMPILE([$1],
-[struct k5foo {int foo; } xx;
+[#undef $2
+struct k5foo {int foo; } xx;
 extern int $2 (struct k5foo*);
 $2(&xx);
 ],