Small fixes so tinc compiles out of the box on SunOS 5.8

This commit is contained in:
Guus Sliepen 2002-09-15 14:55:54 +00:00
parent 8d472a415e
commit 5eca9520d9
10 changed files with 68 additions and 77 deletions

View file

@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script.
dnl $Id: configure.in,v 1.13.2.58 2002/09/09 19:39:53 guus Exp $
dnl $Id: configure.in,v 1.13.2.59 2002/09/15 14:55:53 guus Exp $
AC_PREREQ(2.53)
AC_INIT(src/tincd.c)
@ -86,8 +86,13 @@ dnl Checks for libraries.
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
net/ethernet.h net/if.h netinet/in_systm.h netinet/ip.h netinet/tcp.h \
sys/file.h sys/ioctl.h sys/param.h sys/time.h])
sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h])
AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h], [], [],
[#include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_NETINET_IN_SYSTM_H
#include <netinet/in_systm.h>
#endif])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
@ -128,8 +133,7 @@ AC_FUNC_MEMCMP
AC_FUNC_ALLOCA
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([asprintf daemon fcloseall flock ftime get_current_dir_name \
putenv select strdup strerror strsignal strtol unsetenv \
freeaddrinfo gai_strerror getaddrinfo getnameinfo mlockall])
putenv select strdup strerror strsignal strtol unsetenv mlockall])
jm_FUNC_MALLOC
jm_FUNC_REALLOC
@ -142,6 +146,8 @@ AC_CHECK_FUNC(gethostbyname, [], [
AC_CHECK_LIB(nsl, gethostbyname)
])
AC_CHECK_FUNCS([freeaddrinfo gai_strerror getaddrinfo getnameinfo])
AC_CACHE_SAVE
dnl These are defined in files in m4/