X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fpread.m4;h=f1425a6b1de25b30e9c2f598f0a041da416714a8;hb=b7b6d3d99a751f99638ed8e14b62c1cf697f0664;hp=c281362df985c272552cf6224ae4047d48494004;hpb=f84e1a91fb3c43ba06567cbaeaf641135170d35a;p=gnulib.git diff --git a/m4/pread.m4 b/m4/pread.m4 index c281362df..f1425a6b1 100644 --- a/m4/pread.m4 +++ b/m4/pread.m4 @@ -1,5 +1,5 @@ -# pread.m4 serial 1 -dnl Copyright (C) 2009 Free Software Foundation, Inc. +# pread.m4 serial 2 +dnl Copyright (C) 2009-2010 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. @@ -7,6 +7,9 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_PREAD], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + dnl Persuade glibc to declare pread(). + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_CHECK_FUNCS_ONCE([pread]) if test $ac_cv_func_pread = no; then HAVE_PREAD=0