diff options
author | Simon Josefsson <simon@josefsson.org> | 2005-08-02 09:33:30 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2005-08-02 09:33:30 +0000 |
commit | f5e93ef0613280d12d81460251dc3084d12beb28 (patch) | |
tree | ceaaa008ba517984d06b8b05a8da13c776825392 /m4/getdelim.m4 | |
parent | d9ef827a069d52ca3e26e600b8f7ac35db1324d1 (diff) | |
download | gnulib-f5e93ef0613280d12d81460251dc3084d12beb28.tar.gz |
2005-08-02 Simon Josefsson <jas@extundo.com>
* getline.h, getline.c: Rewrite.
* getdelim.h, getdelim.c: New files, ported from glibc.
2005-08-02 Simon Josefsson <jas@extundo.com>
* getline.m4: Separate out getdelim stuff into separate module.
* getdelim.m4: New file.
2005-08-02 Simon Josefsson <jas@extundo.com>
* modules/getdelim: New file.
* modules/getline: Rewrite, don't use getndelim2.
Diffstat (limited to 'm4/getdelim.m4')
-rw-r--r-- | m4/getdelim.m4 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/m4/getdelim.m4 b/m4/getdelim.m4 new file mode 100644 index 0000000000..340bb7126d --- /dev/null +++ b/m4/getdelim.m4 @@ -0,0 +1,30 @@ +# getdelim.m4 serial 1 + +dnl Copyright (C) 2005 Free Software dnl Foundation, Inc. +dnl +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_PREREQ(2.52) + +AC_DEFUN([gl_FUNC_GETDELIM], +[ + AC_LIBSOURCES([getdelim.c, getdelim.h]) + + dnl Persuade glibc <stdio.h> to declare getdelim(). + AC_REQUIRE([AC_GNU_SOURCE]) + + AC_REPLACE_FUNCS(getdelim) + AC_CHECK_DECLS_ONCE(getdelim) + + if test $ac_cv_func_getdelim = no; then + gl_PREREQ_GETDELIM + fi +]) + +# Prerequisites of lib/getdelim.c. +AC_DEFUN([gl_PREREQ_GETDELIM], +[ + AC_CHECK_FUNCS([flockfile funlockfile]) +]) |