Hash :
463890ea
Author :
Date :
2008-04-28T21:36:17
Test getndelim2. * modules/getndelim2-tests: New file. * tests/test-getndelim2.c: Likewise. * lib/getndelim2.c (getndelim2): Never return 0. Lock the stream. * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions. Signed-off-by: Eric Blake <ebb9@byu.net>
# getndelim2.m4 serial 6
dnl Copyright (C) 2003, 2006, 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_GETNDELIM2],
[
AC_LIBOBJ(getndelim2)
gl_PREREQ_GETNDELIM2
AC_CHECK_FUNCS_ONCE([flockfile])
AC_CHECK_FUNCS_ONCE([funlockfile])
])
# Prerequisites of lib/getndelim2.h and lib/getndelim2.c.
AC_DEFUN([gl_PREREQ_GETNDELIM2],
[
dnl Prerequisites of lib/getndelim2.h.
AC_REQUIRE([gt_TYPE_SSIZE_T])
dnl No prerequisites of lib/getndelim2.c.
])