]> granicus.if.org Git - libexpat/commitdiff
configure.ac: Fix mis-detection of getrandom on Debian GNU/kFreeBSD (#50)
authorSebastian Pipping <sebastian@pipping.org>
Sun, 18 Jun 2017 16:55:10 +0000 (18:55 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 18 Jun 2017 16:56:03 +0000 (18:56 +0200)
There is no such thing but we need to link (not just compile) to realize.

expat/configure.ac

index 1357c9a217675fa3cdb248b1c0ad25dac686a61c..444c0026dfc033b14f8d5dfa5c7d62601535f380 100644 (file)
@@ -130,7 +130,7 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([
 
 
 AC_MSG_CHECKING([for getrandom (Linux 3.17+, glibc 2.25+)])
-AC_COMPILE_IFELSE([AC_LANG_SOURCE([
+AC_LINK_IFELSE([AC_LANG_SOURCE([
   #include <stdlib.h>  /* for NULL */
   #include <sys/random.h>
   int main() {