diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index e131ba8..1c9bcf8 100644 --- a/configure.ac +++ b/configure.ac @@ -31,17 +31,14 @@ XORG_CHECK_SGML_DOCTOOLS(1.8) # Obtain compiler/linker options for dependencies PKG_CHECK_MODULES(ICE, [xproto >= 7.0.25 xtrans]) +PKG_CHECK_MODULES([LIBBSD], [libbsd-overlay], [ + CFLAGS="$CFLAGS $LIBBSD_CFLAGS" + LIBS="$LIBS $LIBBSD_LIBS" +], [:]) # Checks for library functions. -AC_SEARCH_LIBS([arc4random_buf], [bsd]) AC_CHECK_FUNCS([asprintf arc4random_buf getentropy]) -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) - # Transport selection macro from xtrans.m4 XTRANS_CONNECTION_FLAGS AC_DEFINE(ICE_t, 1, [Xtrans transport type]) |