Sha256: 3f9cf127e0e97a2b854185fb11d936acf63640a682a83a58c3d67b5df14fafb7

Contents?: true

Size: 858 Bytes

Versions: 2

Compression:

Stored size: 858 Bytes

Contents

dnl  Copyright (C) 2009 Sun Microsystems, Inc.
dnl This file is free software; Sun Microsystems, Inc.
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

#--------------------------------------------------------------------
# Check for a working fdatasync call
#--------------------------------------------------------------------


AC_DEFUN([PANDORA_WORKING_FDATASYNC],[
  AC_CACHE_CHECK([working fdatasync],[ac_cv_func_fdatasync],[
    AC_LANG_PUSH(C++)
    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <unistd.h>
      ]],[[
fdatasync(4);
      ]])],
    [ac_cv_func_fdatasync=yes],
    [ac_cv_func_fdatasync=no])
    AC_LANG_POP()
  ])
  AS_IF([test "x${ac_cv_func_fdatasync}" = "xyes"],
    [AC_DEFINE([HAVE_FDATASYNC],[1],[If the system has a working fdatasync])])
])

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
couchbase-memcached-1.2.9 ext/libmemcached-0.50/m4/pandora_fdatasync.m4
couchbase-memcached-1.2.8 ext/libmemcached-0.50/m4/pandora_fdatasync.m4