From ad9f03da69f42d8d1902ad5aee0aa6851d6c6ba8 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Wed, 25 May 2011 18:19:39 +0400 Subject: [PATCH] Get rid of obsolete form of AC_CHECK_TYPE macro. Signed-off-by: Andrew Borodin --- m4.include/mc-vfs.m4 | 4 +++- m4.include/vfs/mc-vfs-undelfs.m4 | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/m4.include/mc-vfs.m4 b/m4.include/mc-vfs.m4 index 1e1a0777c..7d7325958 100644 --- a/m4.include/mc-vfs.m4 +++ b/m4.include/mc-vfs.m4 @@ -32,7 +32,9 @@ AC_DEFUN([MC_ENABLE_VFS_NET], dnl FIXME: network checks should probably be in their own macro. AC_REQUIRE_SOCKET if test x"$have_socket" = xyes; then - AC_CHECK_TYPE(nlink_t, unsigned int) + AC_CHECK_TYPE([nlink_t], , + [AC_DEFINE_UNQUOTED([nlink_t], [unsigned int], + [Define to `unsigned int' if does not define.])]) AC_CHECK_TYPES([socklen_t],,, [ #include diff --git a/m4.include/vfs/mc-vfs-undelfs.m4 b/m4.include/vfs/mc-vfs-undelfs.m4 index a65d20d05..43f12ee90 100644 --- a/m4.include/vfs/mc-vfs-undelfs.m4 +++ b/m4.include/vfs/mc-vfs-undelfs.m4 @@ -22,8 +22,8 @@ AC_DEFUN([MC_UNDELFS_CHECKS], [ if test x"$ext2fs_ext2fs_h" = xyes; then ext2fs_undel=yes EXT2FS_UNDEL_LIBS="-lext2fs -lcom_err" - AC_CHECK_TYPE(ext2_ino_t, , - [AC_DEFINE(ext2_ino_t, ino_t, + AC_CHECK_TYPE([ext2_ino_t], , + [AC_DEFINE_UNQUOTED([ext2_ino_t], [ino_t], [Define to ino_t if undefined.])], [ #include