dnl> test to find the hard-to-find libXpm
dnl> mostly copied from AC_PATH_X & AC_PATH_DIRECT, but explictly set
-AC_DEFUN(VT_FIND_LIBXPM,
+AC_DEFUN([VT_FIND_LIBXPM],
[
AC_REQUIRE_CPP()
dnl Internal subroutine of VT_FIND_LIBXPM
dnl Set vt_xpm_include and vt_xpm_libr
# -------------- find xpm.h and Xpm.a/Xpm.so/Xpm.sl
-AC_DEFUN(VT_XPM_DIRECT,
+AC_DEFUN([VT_XPM_DIRECT],
[if test "$vt_xpm_includes" = NO; then
# Guess where to find xpm.h
AC_CHECK_SIZEOF(int *, 4)
dnl# see usage below
-AC_DEFUN(RXVT_CHECK_SIZE,
+AC_DEFUN([RXVT_CHECK_SIZE],
[AC_CACHE_CHECK([for $2], $1,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl
if test "$ac_cv_sizeof_char" -ge $3; then
dnl# test for "sun" or "__sun__" before include sys_ioctl
dnl# revert HAVE_BLAH_H into a "#include <blah.h>"
-AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl
+AC_DEFUN([RXVT_DEFINE_TO_INCLUDE], dnl
[if test "$$3" = "$4" -o "$$5" = "$6"; then
$1="#include <$2>"
else