produce a conf-time warning if using getpass(3)

This commit is contained in:
Mirek Kratochvil 2018-05-28 14:11:57 +02:00
parent f0ecdcd9c9
commit 59af6b2ae8

View File

@ -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])])