* configure.in: Don't check if crypt() prototype is needed to

avoid warnings - the whole code is not worth avoiding one
legitimate warning.
* acinclude.m4: Remove AC_TRY_WARNINGS.
This commit is contained in:
Pavel Roskin 2002-09-12 22:27:52 +00:00
parent 30cc264176
commit 11861f090b
3 changed files with 5 additions and 49 deletions

View File

@ -1,5 +1,10 @@
2002-09-12 Pavel Roskin <proski@gnu.org>
* configure.in: Don't check if crypt() prototype is needed to
avoid warnings - the whole code is not worth avoiding one
legitimate warning.
* acinclude.m4: Remove AC_TRY_WARNINGS.
* configure.in: ALL_LINGUAS should be defined unconditionally.
* acinclude.m4: Clarify some help texts, add defaults in square

View File

@ -607,33 +607,6 @@ and uses `struct fs_data'])
dnl fi
])
dnl AC_TRY_WARNINGS(INCLUDES, FUNCTION-BODY,
dnl ACTION-IF-NO-WARNINGS [, ACTION-IF-WARNINGS-OR-ERROR])
AC_DEFUN([AC_TRY_WARNINGS],
[cat > conftest.$ac_ext <<EOF
dnl This sometimes fails to find confdefs.h, for some reason.
dnl [#]line __oline__ "[$]0"
[#]line __oline__ "configure"
#include "confdefs.h"
[$1]
int main() { return 0; }
int t() {
[$2]
; return 0; }
EOF
ac_compile_warn='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 2>&1'
if { if eval $ac_compile_warn; then :; else echo arning; fi; } |
grep arning 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then
ifelse([$4], , :, [rm -rf conftest*
$4])
ifelse([$3], , , [else
rm -rf conftest*
$3
])dnl
fi
rm -f conftest*]
)
AC_DEFUN([AC_USE_TERMCAP], [
AC_MSG_NOTICE([using S-Lang screen manager/termcap])
AC_DEFINE(USE_TERMCAP, 1, [Define to use termcap library])

View File

@ -136,28 +136,6 @@ dnl getpt is a GNU Extension (glibc 2.1.x)
dnl
AC_CHECK_FUNCS(getpt)
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");
if (p)
return 0;],[
NEED_CRYPT_PROTOTYPE=no])
else
if test x$ac_cv_header_unistd_h = xyes; then
AC_TRY_WARNINGS([#include <unistd.h>], [char *p = crypt("xxx", "yyy");
if (p)
return 0;],[
NEED_CRYPT_PROTOTYPE=no])
fi
fi
if test x$NEED_CRYPT_PROTOTYPE = xyes; then
AC_DEFINE(NEED_CRYPT_PROTOTYPE, 1,
[Define if function `crypt' needs a prototype])
fi
dnl
dnl On SCO and some SVR4, crypt is on libcrypt.a