]> xenbits.xensource.com Git - libvirt.git/commit
m4: readline: Extract code setting -D_FUNCTION_DEF
authorAndrea Bolognani <abologna@redhat.com>
Mon, 8 Apr 2019 14:39:57 +0000 (16:39 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 12 Apr 2019 14:22:23 +0000 (16:22 +0200)
commit9a063767f452ce413e2176a2a1ee4c980f436b4a
treed17a379b34a8e004df88cdd200eb873f71502a4d
parenta9443bc9a9ef451b46306e66ed3b706756fc1414
m4: readline: Extract code setting -D_FUNCTION_DEF

The current code is a bit awkward, and we're going to need
to share it later anyway. We can drop the call to AC_SUBST()
while we're at it, since LIBVIRT_CHECK_LIB() already marks
READLINE_CFLAGS for substitution.

The new code goes to some extra length to avoid setting
-D_FUNCTION_DEF twice: this is mostly for cosmetic reasons,
and it's necessary because LIBVIRT_CHECK_READLINE() is called
twice: once on its own, and then once more as part of
LIBVIRT_CHECK_BASH_COMPLETION().

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
m4/virt-readline.m4