From 59af6b2ae824a6368bbb7c8e1c8c3817c98c639a Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Mon, 28 May 2018 14:11:57 +0200 Subject: [PATCH] produce a conf-time warning if using getpass(3) --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dc0ca09..c3a4484 100644 --- a/configure.ac +++ b/configure.ac @@ -49,7 +49,8 @@ dnl check for readpassphrase. If none is found, we use getpass (with a warning) AC_CHECK_HEADER([readpassphrase.h], [READPASSPHRASE=native], AC_CHECK_HEADER([bsd/readpassphrase.h], - [READPASSPHRASE=bsd], [])) + [READPASSPHRASE=bsd], + [AC_MSG_WARN([falling back to obsoleted getpass(3)])])) AS_IF([test "x$READPASSPHRASE" = "xnative"],[ AC_DEFINE([HAVE_READPASSPHRASE], [1], [Enable readpassphrase])])