fix-saslpath
authorDebian FreeIPA Team <pkg-freeipa-devel@alioth-lists.debian.net>
Tue, 21 Apr 2020 17:19:06 +0000 (18:19 +0100)
committerTimo Aaltonen <tjaalton@debian.org>
Tue, 21 Apr 2020 17:19:06 +0000 (18:19 +0100)
Gbp-Pq: Name fix-saslpath.diff

configure.ac
ldap/servers/slapd/ldaputil.c

index 2fa1b2c9f0cb523c72c418a84251a0619baaf469..eedfea794f8b6ac50a7e304c63ce10a9b2165eec 100644 (file)
@@ -662,7 +662,8 @@ case $host in
       arm-*-linux*)
         AC_DEFINE([CPU_arm], [], [cpu type arm])
         ;;
-      ppc64le-*-linux*)
+      powerpc64le-*-linux*)
+        AC_DEFINE([CPU_powerpc64le], [], [cpu type powerpc64le])
         ;;
       ppc64-*-linux*)
         ;;
@@ -671,6 +672,7 @@ case $host in
       s390-*-linux*)
         ;;
       s390x-*-linux*)
+        AC_DEFINE([CPU_s390x], [], [cpu type s390x])
         ;;
     esac
     # some programs use the native thread library directly
index 336ca3912e9eba15fb4961833b7b3266d8909070..8d97250c10dfea3b879ed88f80136df07d5c4bdf 100644 (file)
@@ -837,10 +837,14 @@ ldaputil_get_saslpath()
         if (PR_SUCCESS != PR_Access(saslpath, PR_ACCESS_EXISTS)) {
 #ifdef CPU_arm
             /* the 64-bit ARMv8 architecture. */
-            saslpath = "/usr/lib/aarch64-linux-gnu";
+            saslpath = "/usr/lib/aarch64-linux-gnu/sasl2";
+#elif defined(CPU_powerpc64le)
+            saslpath = "/usr/lib/powerpc64le-linux-gnu/sasl2";
+#elif defined(CPU_s390x)
+            saslpath = "/usr/lib/s390x-linux-gnu/sasl2";
 #else
             /* Try x86_64 gnu triplet */
-            saslpath = "/usr/lib/x86_64-linux-gnu";
+            saslpath = "/usr/lib/x86_64-linux-gnu/sasl2";
 #endif
         }
 #else
@@ -848,14 +852,14 @@ ldaputil_get_saslpath()
         if (PR_SUCCESS != PR_Access(saslpath, PR_ACCESS_EXISTS)) {
 #ifdef CPU_arm
             /* the latest 32 bit ARM architecture using the hard-float version of EABI. */
-            saslpath = "/usr/lib/arm-linux-gnueabihf";
+            saslpath = "/usr/lib/arm-linux-gnueabihf/sasl2";
             if (PR_SUCCESS != PR_Access(saslpath, PR_ACCESS_EXISTS)) {
                 /* the 32 bit ARM architecture of EABI. */
-                saslpath = "/usr/lib/arm-linux-gnueabi";
+                saslpath = "/usr/lib/arm-linux-gnueabi/sasl2";
             }
 #else
             /* Try i386 gnu triplet */
-            saslpath = "/usr/lib/i386-linux-gnu";
+            saslpath = "/usr/lib/i386-linux-gnu/sasl2";
 #endif
         }
 #endif