autoconf: Remove unused tests
This commit is contained in:

committed by
Jeffrey Altman

parent
c84384c544
commit
ed6f3f1786
@@ -31,8 +31,6 @@ LIB_gethostbyname = @LIB_gethostbyname@
|
||||
LIB_getpwent_r = @LIB_getpwent_r@
|
||||
LIB_getpwnam_r = @LIB_getpwnam_r@
|
||||
LIB_getsockopt = @LIB_getsockopt@
|
||||
LIB_logout = @LIB_logout@
|
||||
LIB_logwtmp = @LIB_logwtmp@
|
||||
LIB_odm_initialize = @LIB_odm_initialize@
|
||||
LIB_openpty = @LIB_openpty@
|
||||
LIB_pidfile = @LIB_pidfile@
|
||||
|
@@ -1,14 +0,0 @@
|
||||
dnl
|
||||
dnl $Id$
|
||||
dnl
|
||||
|
||||
dnl
|
||||
dnl Test SGI capabilities
|
||||
dnl
|
||||
|
||||
AC_DEFUN([KRB_CAPABILITIES],[
|
||||
|
||||
AC_CHECK_HEADERS(capability.h sys/capability.h)
|
||||
|
||||
AC_CHECK_FUNCS(sgi_getcapabilitybyname cap_set_proc)
|
||||
])
|
@@ -1,41 +0,0 @@
|
||||
dnl $Id$
|
||||
dnl
|
||||
dnl
|
||||
dnl test for broken getcwd in (SunOS braindamage)
|
||||
dnl
|
||||
|
||||
AC_DEFUN([AC_KRB_FUNC_GETCWD_BROKEN], [
|
||||
if test "$ac_cv_func_getcwd" = yes; then
|
||||
AC_MSG_CHECKING(if getcwd is broken)
|
||||
AC_CACHE_VAL(ac_cv_func_getcwd_broken, [
|
||||
ac_cv_func_getcwd_broken=no
|
||||
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
#include <errno.h>
|
||||
char *getcwd(char*, int);
|
||||
|
||||
void *popen(char *cmd, char *mode)
|
||||
{
|
||||
errno = ENOTTY;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
char *ret;
|
||||
ret = getcwd(0, 1024);
|
||||
if(ret == 0 && errno == ENOTTY)
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
]])], [ac_cv_func_getcwd_broken=yes],[:],[:])
|
||||
])
|
||||
if test "$ac_cv_func_getcwd_broken" = yes; then
|
||||
AC_DEFINE(BROKEN_GETCWD, 1, [Define if getcwd is broken (like in SunOS 4).])dnl
|
||||
AC_LIBOBJ(getcwd)
|
||||
AC_MSG_RESULT($ac_cv_func_getcwd_broken)
|
||||
else
|
||||
AC_MSG_RESULT([seems ok])
|
||||
fi
|
||||
fi
|
||||
])
|
@@ -170,10 +170,6 @@ AM_CONDITIONAL(have_vis_h, test "$ac_cv_header_vis_h" = yes)
|
||||
|
||||
dnl Check for functions and libraries
|
||||
|
||||
AC_FIND_FUNC(socket, socket)
|
||||
AC_FIND_FUNC(gethostbyname, nsl)
|
||||
AC_FIND_FUNC(syslog, syslog)
|
||||
|
||||
AC_KRB_IPV6
|
||||
|
||||
AC_FIND_FUNC(gethostbyname2, inet6 ip6)
|
||||
@@ -192,7 +188,6 @@ AC_CHECK_FUNCS([ \
|
||||
getconfattr \
|
||||
getprogname \
|
||||
getrlimit \
|
||||
getspnam \
|
||||
issetugid \
|
||||
memmem \
|
||||
mkdtemp \
|
||||
@@ -537,8 +532,6 @@ AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
|
||||
|
||||
AC_REQUIRE([rk_BROKEN_REALLOC])dnl
|
||||
|
||||
dnl AC_KRB_FUNC_GETCWD_BROKEN
|
||||
|
||||
dnl strerror_r is great fun, on linux it exists before sus catched up,
|
||||
dnl so the return type is diffrent, lets check for both
|
||||
|
||||
|
Reference in New Issue
Block a user