summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorpixel <pixel>2002-12-23 15:28:15 +0000
committerpixel <pixel>2002-12-23 15:28:15 +0000
commit3dbdb39eb0abdd9a1aeb3744e5fe8a43e0afadc1 (patch)
treedd1c5b632ba05b3388d3e0ab1731e14021386af9 /m4
parentc1271b904b730dbf427366d9aa6388037931ba84 (diff)
pre-commit patch
Diffstat (limited to 'm4')
-rw-r--r--m4/Makefile.am2
-rw-r--r--m4/ssize_t.m412
2 files changed, 13 insertions, 1 deletions
diff --git a/m4/Makefile.am b/m4/Makefile.am
index 7deaf67..d6c271d 100644
--- a/m4/Makefile.am
+++ b/m4/Makefile.am
@@ -1 +1 @@
-EXTRA_DIST = intdiv0.m4 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4
+EXTRA_DIST = intdiv0.m4 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4 ssize_t.m4
diff --git a/m4/ssize_t.m4 b/m4/ssize_t.m4
new file mode 100644
index 0000000..a92f61a
--- /dev/null
+++ b/m4/ssize_t.m4
@@ -0,0 +1,12 @@
+dnl Checks for type ssize_t
+dnl Defines HAVE_SSIZE_T on success.
+AC_DEFUN(AC_TYPE_SSIZE_T,
+[AC_CACHE_CHECK([for type ssize_t], ac_cv_type_ssize_t,
+ [AC_TRY_COMPILE([#include <sys/types.h>], [ssize_t s;],
+ [ac_cv_type_ssize_t=yes],
+ [ac_cv_type_ssize_t=no])])
+if test $ac_cv_type_ssize_t = yes; then
+ AC_DEFINE(HAVE_SSIZE_T, 1, [Define if you have ssize_t])
+else
+ AC_DEFINE(NO_SSIZE_T, 1, [Define if you don't have ssize_t])
+fi])