From 38e386a7e27a19e81b484e2eabde3d24cfd6c4cf Mon Sep 17 00:00:00 2001
From: gregory guy <g-gregory@gmx.fr>
Date: Tue, 13 Nov 2018 15:48:46 +0100
Subject: fix issue #3 utempter detection

Signed-off-by: gregory guy <g-gregory@gmx.fr>
(cherry picked from commit 82afa07a430c43bc122c7325dc67fb9f3ad6216a)
---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3a9b3069a..b74e4b86b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -600,12 +600,12 @@ if( WITH_UTEMPTER )
     find_program( UTEMPTER_HELPER utempter
       PATHS
         /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}/utempter
-        /usr/lib/utempter
+        /usr/lib${LIB_SUFFIX}/utempter
         /usr/libexec/utempter
         /usr/libexec
         /usr/sbin
         /usr/local/lib/${CMAKE_LIBRARY_ARCHITECTURE}/utempter
-        /usr/local/lib/utempter
+        /usr/local/lib${LIB_SUFFIX}/utempter
         /usr/local/libexec/utempter
         /usr/local/libexec
         /usr/local/sbin
-- 
cgit v1.2.3

