From: Aki Tuomi Date: Mon, 25 Apr 2022 13:05:22 +0000 (+0300) Subject: m4: arc4random.m4 - Modernize m4 syntax X-Git-Tag: 2.4.0~3912 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b46ace7c95f1aecb2ebfab61366e5d29f11ec565;p=thirdparty%2Fdovecot%2Fcore.git m4: arc4random.m4 - Modernize m4 syntax --- diff --git a/m4/arc4random.m4 b/m4/arc4random.m4 index babbcbd8e6..82c0c1d50c 100644 --- a/m4/arc4random.m4 +++ b/m4/arc4random.m4 @@ -4,12 +4,12 @@ AC_DEFUN([DOVECOT_ARC4RANDOM], [ [Use libbsd (default is no)] ), [want_libbsd=$withval], [want_libbsd=no]) AC_CHECK_FUNC([arc4random_buf], AC_DEFINE([HAVE_ARC4RANDOM], [1], [Define this if you have arc4random_buf()]), [ - if test "$want_libbsd" = yes; then + AS_IF([test "$want_libbsd" = yes], [ AC_CHECK_LIB([bsd], [arc4random_buf], [ LIBS="$LIBS -lbsd" AC_DEFINE([HAVE_ARC4RANDOM], [1], [Define this if you have arc4random_buf()]) AC_DEFINE([HAVE_LIBBSD], [1], [Define this if you have libbsd]) ]) - fi + ]) ]) ])