Use canned check for `ssize_t'.
authormdw <mdw>
Thu, 11 Nov 1999 00:58:19 +0000 (00:58 +0000)
committermdw <mdw>
Thu, 11 Nov 1999 00:58:19 +0000 (00:58 +0000)
configure.in

index ef2bf76..8f035c3 100644 (file)
@@ -1,6 +1,6 @@
 dnl -*-fundamental-*-
 dnl
 dnl -*-fundamental-*-
 dnl
-dnl $Id: configure.in,v 1.3 1999/10/24 10:20:36 mdw Exp $
+dnl $Id: configure.in,v 1.4 1999/11/11 00:58:19 mdw Exp $
 dnl
 dnl Autoconfiguration for Catacomb
 dnl
 dnl
 dnl Autoconfiguration for Catacomb
 dnl
@@ -29,10 +29,13 @@ dnl MA 02111-1307, USA.
 dnl ----- Revision history --------------------------------------------------
 dnl
 dnl $Log: configure.in,v $
 dnl ----- Revision history --------------------------------------------------
 dnl
 dnl $Log: configure.in,v $
-dnl Revision 1.3  1999/10/24 10:20:36  mdw
-dnl Modify for standalone distribution.  The library's getting far too large
-dnl to be sensibly embedded in other programs.
+dnl Revision 1.4  1999/11/11 00:58:19  mdw
+dnl Use canned check for `ssize_t'.
+dnl
+dnl Revision 1.4  1999/11/11 00:58:19  mdw
+dnl Use canned check for `ssize_t'.
 dnl
 dnl
+dnl Revision 1.3  1999/10/24 10:20:36  mdw
 dnl Modify for standalone distribution.  The library's getting far too large
 dnl to be sensibly embedded in other programs.
 dnl
 dnl Modify for standalone distribution.  The library's getting far too large
 dnl to be sensibly embedded in other programs.
 dnl
@@ -67,25 +70,7 @@ AC_HEADER_STDC
 dnl --- Check for various important system types ---
 
 AC_TYPE_PID_T
 dnl --- Check for various important system types ---
 
 AC_TYPE_PID_T
-
-dnl --- Tedious check for ssize_t ---
-dnl
-dnl glibc-2 puts ssize_t in a strange place.
-
-AC_CACHE_CHECK(for ssize_t, cat_cv_type_ssize_t,
-[AC_EGREP_CPP(ssize_t,
-[#include <sys/types.h>
-#if HAVE_UNISTD_H
-#inlcude <unistd.h>
-#endif
-#if STDC_HEADERS
-#include <stddef.h>
-#include <stdlib.h>
-#endif],
-cat_cv_type_ssize_t=yes, cat_cv_type_ssize_t=no)])
-if test $cat_cv_type_ssize_t = no; then
-  AC_DEFINE(ssize_t, int)
-fi
+AC_TYPE_SIZE_T
 AC_TYPE_UID_T
 AC_CHECK_TYPE(time_t, long)
 mdw_TYPE_SSIZE_T
 AC_TYPE_UID_T
 AC_CHECK_TYPE(time_t, long)
 mdw_TYPE_SSIZE_T