[vlc-devel] commit: Export WORDS_BIGENDIAN to pkg-config unless someone knows better ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon May 26 20:55:29 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon May 26 21:46:45 2008 +0300| [83f88155046151da849352a78149ab2fc90dd794]

Export WORDS_BIGENDIAN to pkg-config unless someone knows better

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=83f88155046151da849352a78149ab2fc90dd794
---

 configure.ac         |    6 ++++++
 src/check_headers    |    1 +
 src/vlc-plugin.pc.in |    1 +
 3 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 2e451f1..51d7f38 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5598,6 +5598,12 @@ dnl
 dnl  Endianness check
 dnl
 AC_C_BIGENDIAN
+AS_IF([test "${ac_cv_c_bigendian}" = "yes"], [
+  DEFS_BIGENDIAN="-DWORDS_BIGENDIAN=1"
+], [
+  DEFS_BIGENDIAN=""
+])
+AC_SUBST(DEFS_BIGENDIAN)
 
 dnl
 dnl  DLL loader copied from MPlayer copied from somewhere else (WINE ?)
diff --git a/src/check_headers b/src/check_headers
index d0937b4..a60a931 100755
--- a/src/check_headers
+++ b/src/check_headers
@@ -7,6 +7,7 @@ cd "$(dirname "$0")" || exit $?
 # There are incorrect, as external users don't have our <config.h>.
 regexp="$(cat ../config.h.in | \
 	sed -n -e 's/^#undef \([A-Z0-9_]*\)$/\1/p' | \
+	grep -v 'WORDS_BIGENDIAN' | \
 	xargs | \
 	sed -e 's/ /\\\|/g')"
 
diff --git a/src/vlc-plugin.pc.in b/src/vlc-plugin.pc.in
index 9adeb73..f5ccf62 100644
--- a/src/vlc-plugin.pc.in
+++ b/src/vlc-plugin.pc.in
@@ -10,6 +10,7 @@ Cflags: -I${includedir} -I${includedir}/vlc/plugins \
 	-D_FILE_OFFSET_BITS=64 \
 	-D__USE_UNIX98 \
 	-D_LARGEFILE64_SOURCE \
+	@DEFS_BIGENDIAN@ \
 	-D_REENTRANT \
 	-D_THREAD_SAFE
 Libs: -L${libdir} -lvlccore




More information about the vlc-devel mailing list