From 0d307f25a051544047563a40de4df344c17f0d9f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 12 Apr 2010 08:29:53 +0200 Subject: lib/replace/wscript: implement the same getpass detection logic as the autoconf version metze --- lib/replace/wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/replace/wscript b/lib/replace/wscript index 7dbf468d11..43e8e9ac40 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -281,8 +281,8 @@ def configure(conf): # if we have both, then we prefer getpassphrase conf.DEFINE('REPLACE_GETPASS_BY_GETPASSPHRASE', 1) conf.DEFINE('REPLACE_GETPASS', 1) - - conf.CHECK_CODE('''#include "getpass.c" + else: + conf.CHECK_CODE('''#include "getpass.c" int main(void) { return 0; }''', addmain=False, define='REPLACE_GETPASS', -- cgit