X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=configure.in;h=0477c213c43018296e014acd771fa6d2df9e75a9;hp=d8f621e8646d2843b0410d4484632d95369a934e;hb=7d21a8d1c7fd8909fe02385dbb4717c074db4648;hpb=fc7116a32b798589e7731db9f9db66345c8c3e01 diff --git a/configure.in b/configure.in index d8f621e8..0477c213 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -dnl $Id: configure.in,v 1.13.2.57 2002/09/06 11:08:21 zarq Exp $ +dnl $Id: configure.in,v 1.13.2.60 2003/01/17 00:43:56 guus Exp $ AC_PREREQ(2.53) AC_INIT(src/tincd.c) @@ -36,7 +36,7 @@ AC_ISC_POSIX dnl Check and set OS -AC_CANONICAL_HOST +#AC_CANONICAL_HOST case $host_os in *linux*) @@ -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 + #include + #ifdef HAVE_NETINET_IN_SYSTM_H + #include + #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]) +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/ @@ -163,11 +169,11 @@ AC_ARG_ENABLE(tracing, AC_SUBST(INCLUDES) -AC_OUTPUT(Makefile po/Makefile.in +AC_OUTPUT(Makefile src/Makefile doc/Makefile doc/es/Makefile lib/Makefile -m4/Makefile po/Makefile.in +m4/Makefile )