diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 74cd4da..387a66b 100644 --- a/configure.ac +++ b/configure.ac @@ -33,10 +33,11 @@ XORG_CHECK_SGML_DOCTOOLS(1.8) PKG_CHECK_MODULES(ICE, xproto xtrans) # Checks for library functions. -AC_CHECK_LIB([bsd], [arc4random_buf]) +AC_SEARCH_LIBS([arc4random_buf], [bsd]) AC_CHECK_FUNCS([asprintf arc4random_buf getentropy]) -if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then +if test "x$ac_cv_search_arc4random_buf" = x-lbsd; then + AC_DEFINE([HAVE_LIBBSD], [1], [Define to use libbsd]) BSDLIB=-lbsd fi AC_SUBST(BSDLIB) |