Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(839)

Unified Diff: src/platform/pam_offline/SConstruct

Issue 591001: move enable_localaccount.sh, make pam_offline use it (Closed)
Patch Set: fix comment Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/platform/pam_offline/authenticator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/pam_offline/SConstruct
diff --git a/src/platform/pam_offline/SConstruct b/src/platform/pam_offline/SConstruct
index 9f8ca94824bd80234de049fb6ae9744c5a9db463..39aa5545bbec565edd7ca35f8e9cafd6f1d4c193 100644
--- a/src/platform/pam_offline/SConstruct
+++ b/src/platform/pam_offline/SConstruct
@@ -41,6 +41,14 @@ for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH'):
if os.environ.has_key(key):
env['ENV'][key] = os.environ[key]
+# Enable local account only if user has specified one
+if os.path.exists('pam_localaccount.h'):
+ print """
+WARNING: pam local account is enabled! If you don't want this, remove
+pam_localaccount.h.
+"""
+ env.Append(CPPDEFINES=['CHROMEOS_PAM_LOCALACCOUNT'])
+
env_lib = env.Clone()
env_lib.SharedLibrary('chromeos_pam_offline', pam_sources)
« no previous file with comments | « no previous file | src/platform/pam_offline/authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698