Sha256: 3425bdae82dd4976a048c9142d9576a111ac80452772e6bbaf9d97fe36cfd9df

Contents?: true

Size: 582 Bytes

Versions: 2

Compression:

Stored size: 582 Bytes

Contents

AC_DEFUN([DETECT_BYTEORDER],
[
    AC_REQUIRE([AC_C_BIGENDIAN])
    AC_CACHE_CHECK([for htonll], [ac_cv_have_htonll],
        [AC_TRY_LINK([
#include <sys/types.h>
#include <netinet/in.h>
#include <inttypes.h>
                        ], [
return htonll(0);
                        ],
                        [ ac_cv_have_htonll=yes ],
                        [ ac_cv_have_htonll=no ])
        ])
    AS_IF([test "x$ac_cv_have_htonll" = "xyes"],[
          AC_DEFINE([HAVE_HTONLL], [1], [Have ntohll])])

    AM_CONDITIONAL([BUILD_BYTEORDER],[test "x$ac_cv_have_htonll" = "xno"])
])

Version data entries

2 entries across 2 versions & 1 rubygems

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