]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix restoring CFLAGS and LIBS in AX_LIB_LMDB()
authorMichał Kępień <michal@isc.org>
Mon, 29 Jun 2020 08:23:23 +0000 (10:23 +0200)
committerMichał Kępień <michal@isc.org>
Mon, 29 Jun 2020 08:23:23 +0000 (10:23 +0200)
commitbf0229caad23a4c33e84ce0c8092953dcbbbe7d8
tree0521950a7daa28365e6721335450400b3d8ae241
parent5cc856095b10fbde45e1cf32716526e59f8b7576
Fix restoring CFLAGS and LIBS in AX_LIB_LMDB()

The AX_LIB_LMDB() macro attempts to test the potential LMDB installation
path provided to it by temporarily updating CFLAGS and LIBS, calling
AC_SEARCH_LIBS(), and then restoring CFLAGS and LIBS to their original
values.  However, including certain statements (e.g. "break") in the
arguments provided to the AX_LIB_LMDB() macro may cause an early exit
from it, in which case CFLAGS and LIBS will be left polluted.  Fix by
resetting CFLAGS and LIBS to their original values before executing the
commands provided as AX_LIB_LMDB() arguments.
m4/ax_lib_lmdb.m4