Browse Source

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

pull/3/head
Mirek Kratochvil 1 year ago
parent
commit
59af6b2ae8
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      configure.ac

+ 2
- 1
configure.ac 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])])

Loading…
Cancel
Save