some rototilling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11200 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -227,39 +227,17 @@ AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif],
|
#endif],
|
||||||
17)
|
17)
|
||||||
if test "$ac_cv_func_hstrerror" = yes; then
|
|
||||||
AC_NEED_PROTO([
|
AC_NEED_PROTO([
|
||||||
#ifdef HAVE_NETDB_H
|
#ifdef HAVE_NETDB_H
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif],
|
#endif],
|
||||||
hstrerror)
|
hstrerror)
|
||||||
fi
|
|
||||||
|
|
||||||
dnl sigh, wish this could be done in a loop
|
AC_FOREACH([rk_func], [asprintf vasprintf asnprintf vasnprintf],
|
||||||
if test "$ac_cv_func_asprintf" = yes; then
|
[AC_NEED_PROTO([
|
||||||
AC_NEED_PROTO([
|
#include <stdio.h>
|
||||||
#include <stdio.h>
|
#include <string.h>],
|
||||||
#include <string.h>],
|
rk_func)])
|
||||||
asprintf)dnl
|
|
||||||
fi
|
|
||||||
if test "$ac_cv_func_vasprintf" = yes; then
|
|
||||||
AC_NEED_PROTO([
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>],
|
|
||||||
vasprintf)dnl
|
|
||||||
fi
|
|
||||||
if test "$ac_cv_func_asnprintf" = yes; then
|
|
||||||
AC_NEED_PROTO([
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>],
|
|
||||||
asnprintf)dnl
|
|
||||||
fi
|
|
||||||
if test "$ac_cv_func_vasnprintf" = yes; then
|
|
||||||
AC_NEED_PROTO([
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>],
|
|
||||||
vasnprintf)dnl
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_FIND_FUNC_NO_LIBS(bswap16,,
|
AC_FIND_FUNC_NO_LIBS(bswap16,,
|
||||||
[#ifdef HAVE_SYS_BSWAP_H
|
[#ifdef HAVE_SYS_BSWAP_H
|
||||||
@@ -365,6 +343,9 @@ AC_BROKEN([ \
|
|||||||
writev \
|
writev \
|
||||||
])
|
])
|
||||||
|
|
||||||
|
AC_FOREACH([rk_func], [strndup strsep strtok_r],
|
||||||
|
[AC_NEED_PROTO([#include <string.h>], rk_func)])
|
||||||
|
|
||||||
AC_BROKEN2(inet_aton,
|
AC_BROKEN2(inet_aton,
|
||||||
[#ifdef HAVE_SYS_TYPES_H
|
[#ifdef HAVE_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -547,16 +528,6 @@ AC_NEED_PROTO([
|
|||||||
],
|
],
|
||||||
crypt)
|
crypt)
|
||||||
|
|
||||||
AC_NEED_PROTO([
|
|
||||||
#include <string.h>
|
|
||||||
],
|
|
||||||
strtok_r)
|
|
||||||
|
|
||||||
AC_NEED_PROTO([
|
|
||||||
#include <string.h>
|
|
||||||
],
|
|
||||||
strsep)
|
|
||||||
|
|
||||||
dnl variables
|
dnl variables
|
||||||
|
|
||||||
rk_CHECK_VAR(h_errno,
|
rk_CHECK_VAR(h_errno,
|
||||||
|
Reference in New Issue
Block a user