=?utf-8?q?opkg:=20Fix=20md5=20sum=20on=20big=20endian=20systems.
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:02:31 +0000 (05:02 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:02:31 +0000 (05:02 +0000)
=20=20=20=20=20=20=20Patch=20from=20Jeremy=20Lain=C3=A9=20<jeremy=20laine=20bolloretelecom=20eu>?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

git-svn-id: http://opkg.googlecode.com/svn/trunk@58 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

configure.ac
libopkg/Makefile.am

index 117253b1b618ec1d44b3e5853810efd3ab6708e8..d6818b500b67aba35b045b1b44a826fb05b9dbc2 100644 (file)
@@ -93,6 +93,10 @@ AC_TYPE_PID_T
 AC_TYPE_SIZE_T
 AC_CHECK_MEMBERS([struct stat.st_rdev])
 
+# Checks endianness
+AC_C_BIGENDIAN(ENDIAN_CFLAGS="-DWORDS_BIGENDIAN=1",)
+AC_SUBST(BIGENDIAN_CFLAGS)
+
 # Don't do annoying tests that don't work when cross-compiling, just trust them.
 # The AC_FUNC_MEMCMP test doesn't work during a cross-compile, disable.
 # AC_FUNC_MEMCMP
index f21ecb246953815c3930cf7799d33e4a7723e25b..12fe340157a0cc4cc070ac60a886e4155db994bf 100644 (file)
@@ -59,7 +59,7 @@ libopkg_la_SOURCES = \
        $(opkg_cmd_sources) $(opkg_db_sources) \
        $(opkg_util_sources) $(opkg_list_sources)
 
-libopkg_la_CFLAGS = $(ALL_CFLAGS)  $(CURL_CFLAGS) $(GPGME_CFLAGS)
+libopkg_la_CFLAGS = $(ALL_CFLAGS) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS)
 lib_LTLIBRARIES = libopkg.la