Skip to content

Commit

Permalink
Extend and fix the HAVE_IMSG conditional. Check for msgbuf_init as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjeker committed Nov 14, 2024
1 parent 12c58dc commit 9ceb960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ fi

# check functions that are expected to be in libutil
AC_SEARCH_LIBS([ibuf_open], [util])
AC_CHECK_FUNCS([ibuf_open ibuf_add ibuf_get])
AC_CHECK_FUNCS([ibuf_open ibuf_add ibuf_get msgbuf_init])

# check functions that are expected to be in libresolv
AC_SEARCH_LIBS([inet_net_pton],[resolv])
Expand Down Expand Up @@ -441,7 +441,7 @@ AM_CONDITIONAL([BROKEN_INET_NET_PTON], [test "x$ac_cv_broken_inet_net_pton" = xy

AM_CONDITIONAL([HAVE_STRNVIS], [test "x$ac_cv_func_strnvis" = xyes])
AM_CONDITIONAL([BROKEN_STRNVIS], [test "x$ac_cv_broken_strnvis" = xyes])
AM_CONDITIONAL([HAVE_IMSG], [test "x$ac_cv_func_ibuf_open" = xyes -a x$ac_cv_func_ibuf_add" = xyes -a x$ac_cv_func_ibuf_get" = xyes])
AM_CONDITIONAL([HAVE_IMSG], [test "x$ac_cv_func_ibuf_open" = xyes -a "x$ac_cv_func_ibuf_add" = xyes -a "x$ac_cv_func_ibuf_get" = xyes -a "x$ac_cv_func_msgbuf_init" = xyes])

# overrides for arc4random implementations with known issues
AM_CONDITIONAL([HAVE_ARC4RANDOM],
Expand Down

0 comments on commit 9ceb960

Please sign in to comment.