Upgrade to gettext 0.13. This is a nop.
[gnulib.git] / m4 / ssize_t.m4
1 # ssize_t.m4 serial 3 (gettext-0.13)
2 dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
3 dnl This file is free software, distributed under the terms of the GNU
4 dnl General Public License.  As a special exception to the GNU General
5 dnl Public License, this file may be distributed as part of a program
6 dnl that contains a configuration script generated by Autoconf, under
7 dnl the same distribution terms as the rest of that program.
8
9 dnl From Bruno Haible.
10 dnl Test whether ssize_t is defined.
11
12 AC_DEFUN([gt_TYPE_SSIZE_T],
13 [
14   AC_CACHE_CHECK([for ssize_t], gt_cv_ssize_t,
15     [AC_TRY_COMPILE([#include <sys/types.h>],
16        [int x = sizeof (ssize_t *) + sizeof (ssize_t);],
17        gt_cv_ssize_t=yes, gt_cv_ssize_t=no)])
18   if test $gt_cv_ssize_t = no; then
19     AC_DEFINE(ssize_t, int,
20               [Define as a signed type of the same size as size_t.])
21   fi
22 ])