X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=configure.in;h=7fc317f29443681ed5c0037c79f546ee45199d60;hp=f04d065262756eefdf4667c81e8a7f04105bb7cb;hb=cd3601c5df57c7544ece00bf79e82b36499a26ff;hpb=78e88521845ae3bdd963ae5a414cb9c251963fa2 diff --git a/configure.in b/configure.in index f04d0652..7fc317f2 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.47 2002/06/08 14:08:56 guus Exp $ +dnl $Id: configure.in,v 1.13.2.49 2002/06/09 15:58:05 zarq Exp $ AC_INIT(src/tincd.c) AM_INIT_AUTOMAKE(tinc, 1.0-cvs) @@ -65,6 +65,13 @@ esac AC_CACHE_SAVE +if test -d /sw/include ; then + CPPFLAGS="$CPPFLAGS -I/sw/include" +fi +if test -d /sw/lib ; then + LIBS="$LIBS -L/sw/lib" +fi + dnl Checks for libraries. dnl Checks for header files. @@ -83,7 +90,8 @@ AC_STRUCT_TM AC_CACHE_CHECK([for socklen_t], ac_cv_type_socklen_t, [ AC_TRY_COMPILE( - [#include ], + [#include + #include ], [socklen_t len = 42; return len;], ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=no) @@ -97,7 +105,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]) +putenv select strdup strerror strsignal strtol unsetenv getnameinfo]) jm_FUNC_MALLOC jm_FUNC_REALLOC