From 2296778f3c9a1e3a8699973b09dd3610b8baa402 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 3 Nov 2015 20:29:33 +0200 Subject: xz: Make xz buildable even when encoders or decoders are disabled. The patch is quite long but it's mostly about adding new #ifdefs to omit code when encoders or decoders have been disabled. This adds two new #defines to config.h: HAVE_ENCODERS and HAVE_DECODERS. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 58428820..26b6f703 100644 --- a/configure.ac +++ b/configure.ac @@ -114,6 +114,8 @@ else ;; esac done + AC_DEFINE([HAVE_ENCODERS], [1], + [Define to 1 if any of HAVE_ENCODER_foo have been defined.]) AC_MSG_RESULT([$enable_encoders]) fi @@ -141,6 +143,8 @@ else ;; esac done + AC_DEFINE([HAVE_DECODERS], [1], + [Define to 1 if any of HAVE_DECODER_foo have been defined.]) AC_MSG_RESULT([$enable_decoders]) fi -- cgit v1.2.3