gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 04/05: configure: check for 'rand' and 'ran


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 04/05: configure: check for 'rand' and 'random' by MHD_CHECK_FUNC
Date: Sun, 02 Jun 2019 18:20:49 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit a58870f63a661211d45b393779ef3ed1dab2e3b8
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sat Jun 1 23:45:57 2019 +0300

    configure: check for 'rand' and 'random' by MHD_CHECK_FUNC
---
 configure.ac | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index bcb4e45d..928a21b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -772,7 +772,23 @@ AC_CHECK_HEADERS([zlib.h],[have_zlib=yes],[have_zlib=no], 
[AC_INCLUDES_DEFAULT])
 AM_CONDITIONAL([HAVE_ZLIB], [[test "x$have_zlib" = xyes]])
 
 # Check for generic functions
-AC_CHECK_FUNCS([rand random])
+MHD_CHECK_FUNC([random],
+  [
+AC_INCLUDES_DEFAULT
+[#include <stdlib.h>
+  ]],
+  [[long int r = random(); (void)r;]],
+  [],
+  [
+    MHD_CHECK_FUNC([rand],
+      [
+AC_INCLUDES_DEFAULT
+[#include <stdlib.h>
+      ]],
+      [[int r = rand(); (void)r;]],
+       )
+  ]
+)
 
 AC_CHECK_MEMBERS([struct sockaddr_in.sin_len, struct sockaddr_in6.sin6_len, 
                   struct sockaddr_storage.ss_len],

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]