From: Jim Meyering Date: Thu, 7 Aug 2003 09:30:09 +0000 (+0000) Subject: (jm_MACROS): Use gl_GETNDELIM2 rather than checking for getdelim. X-Git-Tag: CPPI-1_11~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e6122cb1e24aec411859e60be6eed8ee70be651;p=thirdparty%2Fcoreutils.git (jm_MACROS): Use gl_GETNDELIM2 rather than checking for getdelim. (jm_CHECK_ALL_TYPES): Use gt_TYPE_SSIZE_T for ssize_t rather than rolling our own. --- diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index d8a02a19e4..763a9dec85 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -186,9 +186,7 @@ AC_DEFUN([jm_MACROS], AC_CHECK_FUNCS(setreuid setregid) AM_FUNC_GETLINE - if test $am_cv_func_working_getline != yes; then - AC_CHECK_FUNCS(getdelim) - fi + gl_GETNDELIM2 AC_FUNC_OBSTACK AC_FUNC_STRTOD @@ -334,9 +332,10 @@ AC_DEFUN([jm_CHECK_ALL_TYPES], AC_REQUIRE([AC_TYPE_UID_T]) AC_CHECK_TYPE(ino_t, unsigned long) + gt_TYPE_SSIZE_T + dnl This relies on the fact that autoconf 2.14a's implementation of dnl AC_CHECK_TYPE checks includes unistd.h. - AC_CHECK_TYPE(ssize_t, int) AC_CHECK_TYPE(major_t, unsigned int) AC_CHECK_TYPE(minor_t, unsigned int)