1 AC_DEFUN([DETECT_BYTEORDER],
3 AC_REQUIRE([AC_C_BIGENDIAN])
4 AC_CACHE_CHECK([for htonll],[av_cv_have_htonll],[
9 #include <netinet/in.h>
20 AS_IF([test "x$ac_cv_have_htonll" = "xyes"],[
21 AC_DEFINE([HAVE_HTONLL], [1], [Have ntohll])])
23 AM_CONDITIONAL([BUILD_BYTEORDER],[test "x$ac_cv_have_htonll" = "xno"])