diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-11-14 23:14:54 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-11-14 23:14:54 +0000 |
commit | 772b64d9d388c6c4fe3930bffbcf4102b03840ef (patch) | |
tree | 3f0f7d2fa362742e32af1148b6208b6d3d35077c /ares/configure.ac | |
parent | 92c0de518eee482c8a9c516ec5c1e6b447b2a1a5 (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.ac | 6 |
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) |