From: Mark Wooding Date: Wed, 21 Aug 2019 13:36:01 +0000 (+0100) Subject: sod.m4: The ACTION-IF-LIBRARY-FOUND should replace the default. X-Git-Url: https://git.distorted.org.uk/~mdw/sod/commitdiff_plain/d504247bf7aedf80858a04b7c86be194390f4fd9?ds=sidebyside sod.m4: The ACTION-IF-LIBRARY-FOUND should replace the default. This is the behaviour I documented, but I failed to update the code to match. --- diff --git a/sod.m4 b/sod.m4 index 372c14b..c90b7a3 100644 --- a/sod.m4 +++ b/sod.m4 @@ -49,8 +49,7 @@ AC_DEFUN([SOD_CHECK], SOD="echo >&2 \"Sod translator not found! Can't rebuild \\\`\$[]@'.\" && exit 2; \\#" fi PKG_CHECK_MODULES([SOD], [sod], - [AM_CFLAGS="$AM_CFLAGS $SOD_CFLAGS" - $1], + [m4_default([$1], [AM_CFLAGS="$AM_CFLAGS $SOD_CFLAGS"])], [$2])]) dnl ----- That's all, folks -------------------------------------------------