SHA256
1
0
forked from pool/sssd
sssd/0001-build-detect-endianness-at-configure-time.patch
Jan Engelhardt 0f8c31ef53 Accepting request 233706 from home:varkoly:branches:network:ldap
- bnc#877457 - 78 Configuration file /usr/lib/systemd/system/sssd.service is marked executable.
  Please remove executable permission bits.

- Detect endianness at configure time, for use by Samba's byteorder.h header;
  (bnc#876544).
  + 0001-build-detect-endianness-at-configure-time.patch

OBS-URL: https://build.opensuse.org/request/show/233706
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=113
2014-05-13 11:38:19 +00:00

35 lines
1.0 KiB
Diff

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>
---
configure.ac | 7 +++++++
1 file changed, 7 insertions(+)
diff --git configure.ac configure.ac
index eb7e376..3ed8e69 100644
--- configure.ac
+++ configure.ac
@@ -309,6 +309,13 @@ AM_CHECK_CMOCKA
AM_CONDITIONAL([HAVE_DEVSHM], [test -d /dev/shm])
+AC_C_BIGENDIAN
+if test x$WORDS_BIGENDIAN != x; then
+ AC_DEFINE(HAVE_BIG_ENDIAN, 1, [whether platform is big endian])
+else
+ AC_DEFINE(HAVE_LITTLE_ENDIAN, 1, [whether platform is little endian])
+fi
+
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)
--
1.8.4.5