]> git.meshlink.io Git - meshlink/commitdiff
Various fixes for autoconf and OpenSSL 0.9.7 and a missing header.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 17 Jan 2003 00:43:58 +0000 (00:43 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 17 Jan 2003 00:43:58 +0000 (00:43 +0000)
configure.in
lib/fake-getnameinfo.c
m4/openssl.m4
src/tincd.c

index 77db35a4ae6b8df05e2281dee396cc7118607a3e..0477c213c43018296e014acd771fa6d2df9e75a9 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-dnl $Id: configure.in,v 1.13.2.59 2002/09/15 14:55:53 guus 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*)
@@ -169,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
 )
index 05416487ead0f12e687108cf10b0ae2ca5061134..50d0722f7d350f73144cbc2d0ffd454f67f61c3d 100644 (file)
@@ -22,6 +22,7 @@
 #include <system.h>
 
 #include "fake-getnameinfo.h"
+#include "fake-getaddrinfo.h"
 
 #ifndef HAVE_GETNAMEINFO
 
index 40ad4fd0d220936837e204fc11bf6cdd15308037..79dd3c118c84e85469c3c3164bd2049e6be1044e 100644 (file)
@@ -29,15 +29,7 @@ AC_DEFUN(tinc_OPENSSL,
     [AC_MSG_ERROR([OpenSSL libraries not found.])]
   )
 
-  AC_CHECK_FUNCS(RAND_pseudo_bytes)
-
-  AC_CHECK_FUNC(OpenSSL_add_all_algorithms,
-    [],
-    [AC_CHECK_FUNC(SSLeay_add_all_algorithms,
-      [AC_DEFINE(HAVE_SSLEAY_ADD_ALL_ALGORITHMS, 1, [Defined if this function should be used instead of OpenSLL_add_all_algorithms])],
-      [AC_MSG_ERROR([Missing required OpenSSL functionality!])]
-    )]
-  )
+  AC_CHECK_FUNCS([RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms])
 
   AC_CHECK_FUNC(dlopen,
     [],
index 2aa16dd40cb1bd3d90cb444277ca86cb312e642e..4335d7b613040c2b488624f5f396c3431300de16 100644 (file)
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: tincd.c,v 1.10.4.65 2002/09/15 14:55:54 guus Exp $
+    $Id: tincd.c,v 1.10.4.66 2003/01/17 00:43:58 guus Exp $
 */
 
 #include "config.h"
@@ -390,10 +390,18 @@ int main(int argc, char **argv, char **envp)
 
        RAND_load_file("/dev/urandom", 1024);
 
+#ifdef HAVE_OPENSSL_ADD_ALL_ALGORITHMS_NOCONF
+       OPENSSL_add_all_algorithms_noconf();
+#else
+#ifdef HAVE_OPENSSL_ADD_ALL_ALGORITHMS
+       OpenSSL_add_all_algorithms();
+#else
 #ifdef HAVE_SSLEAY_ADD_ALL_ALGORITHMS
        SSLeay_add_all_algorithms();
 #else
-       OpenSSL_add_all_algorithms();
+#error No add_all_algorithms function available!
+#endif
+#endif
 #endif
 
        if(generate_keys) {