1283625Sdim# ssize_t.m4 serial 4 (gettext-0.15) 2283625Sdimdnl Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. 3353358Sdimdnl This file is free software; the Free Software Foundation 4353358Sdimdnl gives unlimited permission to copy and/or distribute it, 5353358Sdimdnl with or without modifications, as long as this notice is preserved. 6283625Sdim 7283625Sdimdnl From Bruno Haible. 8283625Sdimdnl Test whether ssize_t is defined. 9283625Sdim 10283625SdimAC_DEFUN([gt_TYPE_SSIZE_T], 11321369Sdim[ 12283625Sdim AC_CACHE_CHECK([for ssize_t], [gt_cv_ssize_t], 13283625Sdim [AC_TRY_COMPILE([#include <sys/types.h>], 14283625Sdim [int x = sizeof (ssize_t *) + sizeof (ssize_t); 15283625Sdim return !x;], 16283625Sdim [gt_cv_ssize_t=yes], [gt_cv_ssize_t=no])]) 17309124Sdim if test $gt_cv_ssize_t = no; then 18283625Sdim AC_DEFINE([ssize_t], [int], 19283625Sdim [Define as a signed type of the same size as size_t.]) 20283625Sdim fi 21283625Sdim]) 22