summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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( )