bring headers and functions more in-line with what's actually being used

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8631 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-07-09 18:09:22 +00:00
parent 44151fe1f8
commit bc3b4c0796

View File

@@ -59,22 +59,23 @@ if test "$berkeley_db"; then
fi fi
AC_CHECK_HEADERS([\ AC_CHECK_HEADERS([\
arpa/nameser.h \
arpa/inet.h \ arpa/inet.h \
arpa/nameser.h \
config.h \ config.h \
crypt.h \ crypt.h \
dbm.h \ dbm.h \
db.h \ db.h \
dirent.h \
errno.h \ errno.h \
err.h \ err.h \
dirent.h \
fcntl.h \ fcntl.h \
fnmatch.h \
grp.h \ grp.h \
ndbm.h \ ndbm.h \
netdb.h \ netdb.h \
netinet/in.h \ netinet/in.h \
netinet/in6.h \
netinet/in_systm.h \ netinet/in_systm.h \
netinet6/in6.h \
paths.h \ paths.h \
pwd.h \ pwd.h \
resolv.h \ resolv.h \
@@ -184,6 +185,12 @@ AC_CHECK_FUNCS([ \
asnprintf \ asnprintf \
asprintf \ asprintf \
cgetent \ cgetent \
getconfattr \
getrlimit \
getspnam \
sysconf \
sysctl \
uname \
vasnprintf \ vasnprintf \
vasprintf \ vasprintf \
]) ])
@@ -194,6 +201,23 @@ fi
AC_FUNC_GETLOGIN AC_FUNC_GETLOGIN
AC_FIND_FUNC_NO_LIBS(getsockopt,,
[#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif],
[0,0,0,0,0])
AC_FIND_FUNC_NO_LIBS(setsockopt,,
[#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif],
[0,0,0,0,0])
AC_FIND_IF_NOT_BROKEN(hstrerror, resolv, AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
[#ifdef HAVE_NETDB_H [#ifdef HAVE_NETDB_H
#include <netdb.h> #include <netdb.h>