source: trunk/third/libiconv/m4/ssize_t.m4 @ 20454

Revision 20454, 870 bytes checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20453, which included commits to RCS files with non-trunk default branches.
Line 
1# ssize_t.m4 serial 3 (gettext-0.12.2)
2dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
3dnl This file is free software, distributed under the terms of the GNU
4dnl General Public License.  As a special exception to the GNU General
5dnl Public License, this file may be distributed as part of a program
6dnl that contains a configuration script generated by Autoconf, under
7dnl the same distribution terms as the rest of that program.
8
9dnl From Bruno Haible.
10dnl Test whether ssize_t is defined.
11
12AC_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])
Note: See TracBrowser for help on using the repository browser.