1
1

* configure.in: Remove old-style Linux-only support for shadow

passwords.
Этот коммит содержится в:
Pavel Roskin 2002-08-22 18:45:27 +00:00
родитель 5873f73e63
Коммит 6a30513830
2 изменённых файлов: 9 добавлений и 16 удалений

Просмотреть файл

@ -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> 2002-08-21 Pavel Roskin <proski@gnu.org>
* configure.in: Restore AM_INIT_AUTOMAKE with two arguments for * configure.in: Restore AM_INIT_AUTOMAKE with two arguments for

Просмотреть файл

@ -126,22 +126,10 @@ dnl getpt is a GNU Extension (glibc 2.1.x)
dnl dnl
AC_CHECK_FUNCS(getpt) AC_CHECK_FUNCS(getpt)
SHADOWLIB= dnl
case $host_os in dnl Password encryption support for mcserv
linux*) dnl Check if function crypt needs a prototype
AC_CHECK_LIB(shadow,pw_encrypt, dnl
[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)
NEED_CRYPT_PROTOTYPE=yes NEED_CRYPT_PROTOTYPE=yes
if test x$ac_cv_header_crypt_h = xyes; then if test x$ac_cv_header_crypt_h = xyes; then
AC_TRY_WARNINGS([#include <crypt.h>], [char *p = crypt("xxx", "yyy"); AC_TRY_WARNINGS([#include <crypt.h>], [char *p = crypt("xxx", "yyy");