*** empty log message ***
[coreutils.git] / m4 / ssize_t.m4
blob7f2e6d9380d7102d5c5f487cb93e2757cd07308b
1 #serial 1
3 dnl From Jim Meyering
5 # If ssize_t is not defined in sys/types.h, define it to `int'.
7 AC_DEFUN(jm_TYPE_SSIZE_T,
8   [AC_CACHE_CHECK(for ssize_t in sys/types.h, jm_ac_cv_type_ssize_t,
9     [
10       AC_EGREP_HEADER(ssize_t, sys/types.h,
11                       jm_ac_cv_type_ssize_t=yes,
12                       jm_ac_cv_type_ssize_t=no)
13       if test $jm_ac_cv_type_ssize_t = no; then
14         AC_DEFINE(ssize_t, int)
15       fi
16     ]
17    )
18   ]