Use the boost endian library for storing/retrieving size

When serializing/deserializing the size, use the boost endian
library and its built-in conversion instead of defining custom
functions.

Signed-off-by: Kun Yi <kunyi@google.com>
Change-Id: I903a492d8d5fa5deb87a3a78e31a57317db39047
diff --git a/configure.ac b/configure.ac
index f41f662..2b09776 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,6 +23,7 @@
 PKG_CHECK_MODULES([PROTOBUF], [protobuf], [], [AC_MSG_ERROR(["protobuf required and not found"])])
 PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],, [AC_MSG_ERROR([Could not find phosphor-logging...openbmc/phosphor-logging package required])])
 AC_CHECK_HEADER([blobs-ipmid], [AC_MSG_ERROR(["phosphor-ipmi-blobs required and not found."])])
+AC_CHECK_HEADER(boost/endian/arithmetic.hpp, [])
 
 # Check/set gtest specific functions.
 PKG_CHECK_MODULES([GTEST], [gtest], [], [AC_MSG_NOTICE([gtest not found, tests will not build])])