2014-05-14 10:50:28 +02:00
|
|
|
From 303d096f920801f7b06a7ad406ea83b4cd0219da Mon Sep 17 00:00:00 2001
|
|
|
|
From: David Disseldorp <ddiss@samba.org>
|
|
|
|
Date: Tue, 6 May 2014 15:56:42 +0200
|
|
|
|
Subject: [PATCH] build: detect endianness at configure time
|
|
|
|
|
|
|
|
WORDS_BIGENDIAN, HAVE_BIG_ENDIAN and HAVE_LITTLE_ENDIAN are needed by
|
|
|
|
Samba. See Samba's byteorder.h header for an example.
|
|
|
|
|
|
|
|
Signed-off-by: David Disseldorp <ddiss@samba.org>
|
|
|
|
---
|
2016-01-04 09:19:44 +01:00
|
|
|
configure.ac | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
2014-05-14 10:50:28 +02:00
|
|
|
|
2016-01-04 09:19:44 +01:00
|
|
|
Index: sssd-1.13.3/configure.ac
|
|
|
|
===================================================================
|
|
|
|
--- sssd-1.13.3.orig/configure.ac
|
|
|
|
+++ sssd-1.13.3/configure.ac
|
|
|
|
@@ -428,6 +428,9 @@ AM_CONDITIONAL([HAVE_DEVSHM], [test -d /
|
|
|
|
ENABLE_POLKIT_RULES_PATH
|
|
|
|
AM_CONDITIONAL([HAVE_POLKIT_RULES_D], [test x$HAVE_POLKIT_RULES_D != x])
|
2014-05-14 10:50:28 +02:00
|
|
|
|
2014-11-04 17:27:34 +01:00
|
|
|
+AC_C_BIGENDIAN([AC_DEFINE(HAVE_BIG_ENDIAN, [1], [whether platform is big endian])],
|
|
|
|
+ [AC_DEFINE(HAVE_LITTLE_ENDIAN, [1], [whether platform is little endian])])
|
2014-05-14 10:50:28 +02:00
|
|
|
+
|
|
|
|
abs_build_dir=`pwd`
|
|
|
|
AC_DEFINE_UNQUOTED([ABS_BUILD_DIR], ["$abs_build_dir"], [Absolute path to the build directory])
|
|
|
|
AC_SUBST([abs_builddir], $abs_build_dir)
|