mirror of https://github.com/MidnightCommander/mc
* configure.in: Remove old-style Linux-only support for shadow
passwords.
This commit is contained in:
parent
5873f73e63
commit
6a30513830
|
@ -1,3 +1,8 @@
|
|||
2002-08-22 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* configure.in: Remove old-style Linux-only support for shadow
|
||||
passwords.
|
||||
|
||||
2002-08-21 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* configure.in: Restore AM_INIT_AUTOMAKE with two arguments for
|
||||
|
|
20
configure.in
20
configure.in
|
@ -126,22 +126,10 @@ dnl getpt is a GNU Extension (glibc 2.1.x)
|
|||
dnl
|
||||
AC_CHECK_FUNCS(getpt)
|
||||
|
||||
SHADOWLIB=
|
||||
case $host_os in
|
||||
linux*)
|
||||
AC_CHECK_LIB(shadow,pw_encrypt,
|
||||
[shadow_header=
|
||||
AC_CHECK_HEADERS([shadow.h shadow/shadow.h],
|
||||
[shadow_header=yes; break])
|
||||
if test -n "$shadow_header"; then
|
||||
AC_DEFINE(LINUX_SHADOW, 1,
|
||||
[Define to use shadow passwords on Linux])
|
||||
SHADOWLIB=-lshadow
|
||||
fi])
|
||||
;;
|
||||
esac
|
||||
AC_SUBST(SHADOWLIB)
|
||||
|
||||
dnl
|
||||
dnl Password encryption support for mcserv
|
||||
dnl Check if function crypt needs a prototype
|
||||
dnl
|
||||
NEED_CRYPT_PROTOTYPE=yes
|
||||
if test x$ac_cv_header_crypt_h = xyes; then
|
||||
AC_TRY_WARNINGS([#include <crypt.h>], [char *p = crypt("xxx", "yyy");
|
||||
|
|
Loading…
Reference in New Issue