summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2023-01-31 15:23:24 +0100
committerSlávek Banko <[email protected]>2023-02-09 02:11:37 +0100
commit7df41e857228b5a9b5ceca277b812bbe98db6a28 (patch)
tree392ece3e8bca56f8eef7b55ca2863629de6ce51c
parentd196e674e10dc2a2d353cfcc3cdabf03d029eea5 (diff)
downloadtdebase-7df41e857228b5a9b5ceca277b812bbe98db6a28.tar.gz
tdebase-7df41e857228b5a9b5ceca277b812bbe98db6a28.zip
kcheckpass: Add pw_encrypt detection.
This relates to Bug 2854. Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r--config.h.cmake1
-rw-r--r--kcheckpass/ConfigureChecks.cmake4
2 files changed, 5 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 4fab81d2f..044a48da5 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -146,6 +146,7 @@
// kcheckpass
#cmakedefine KCHECKPASS_PAM_SERVICE "@KCHECKPASS_PAM_SERVICE@"
+#cmakedefine HAVE_PW_ENCRYPT 1
// kdesktop
#cmakedefine TDESCREENSAVER_PAM_SERVICE "@TDESCREENSAVER_PAM_SERVICE@"
diff --git a/kcheckpass/ConfigureChecks.cmake b/kcheckpass/ConfigureChecks.cmake
index d6d62f55b..902e6628d 100644
--- a/kcheckpass/ConfigureChecks.cmake
+++ b/kcheckpass/ConfigureChecks.cmake
@@ -12,3 +12,7 @@
if( WITH_PAM AND (NOT DEFINED KCHECKPASS_PAM_SERVICE) )
set( KCHECKPASS_PAM_SERVICE "kde" CACHE INTERNAL "" )
endif( )
+
+if( NOT WITH_PAM AND WITH_SHADOW )
+ check_function_exists( pw_encrypt HAVE_PW_ENCRYPT )
+endif( )