aboutsummaryrefslogtreecommitdiff
path: root/ares/configure.ac
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-11-14 23:14:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-11-14 23:14:54 +0000
commit772b64d9d388c6c4fe3930bffbcf4102b03840ef (patch)
tree3f0f7d2fa362742e32af1148b6208b6d3d35077c /ares/configure.ac
parent92c0de518eee482c8a9c516ec5c1e6b447b2a1a5 (diff)
Detect big/little endian in the configure script and adjust the ares_dns.h
macros accordingly.
Diffstat (limited to 'ares/configure.ac')
-rw-r--r--ares/configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/ares/configure.ac b/ares/configure.ac
index f4cc52372..c20685bc8 100644
--- a/ares/configure.ac
+++ b/ares/configure.ac
@@ -356,4 +356,10 @@ CARES_CHECK_GETSERVBYPORT_R
CURL_CHECK_NONBLOCKING_SOCKET
+AC_C_BIGENDIAN(
+ [AC_DEFINE(ARES_BIG_ENDIAN, 1, [define this if ares is built for a big endian system])],
+ ,
+ [AC_MSG_WARN([couldn't figure out endianess, assuming little endian!])]
+)
+
AC_OUTPUT(Makefile)