From: oetiker Date: Fri, 20 Jul 2007 22:19:53 +0000 (+0000) Subject: check for fadvise all the time X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5da9b71e963fac9f7c8a95ebcbd39c5449a45809;p=rrdtool.git check for fadvise all the time git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1161 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/configure.ac b/configure.ac index 32daec3..ba08537 100644 --- a/configure.ac +++ b/configure.ac @@ -437,12 +437,11 @@ dnl enable_mmap="no" fi fi -dnl use FD based I/O ? -if test "x$enable_mmap" = "xno";then - AC_CHECK_DECLS(posix_fadvise, [], [], [#define _XOPEN_SOURCE 600 +dnl can we use posix_fadvise +AC_CHECK_DECLS(posix_fadvise, [], [], [#define _XOPEN_SOURCE 600 #include ]) - AC_CHECK_FUNCS(posix_fadvise) -fi +AC_CHECK_FUNCS(posix_fadvise) + CONFIGURE_PART(IEEE Math Checks)