Support both versions of ImageMagick: 6 and 7

This commit is contained in:
Andreas Eversberg
2024-05-07 19:31:45 +02:00
committed by Andreas Eversberg
parent 7b0168c713
commit 5dc6844c90
4 changed files with 59 additions and 20 deletions

View File

@@ -1,5 +1,4 @@
AM_CPPFLAGS = -Wall -Wextra -Wmissing-prototypes -g $(all_includes) \
$(IMAGEMAGICK_CFLAGS)
AM_CPPFLAGS = -Wall -Wextra -Wmissing-prototypes -g $(all_includes)
bin_PROGRAMS = \
osmotv
@@ -28,7 +27,7 @@ osmotv_LDADD = \
$(top_builddir)/src/liblogging/liblogging.a \
$(LIBOSMOCORE_LIBS) \
$(ALSA_LIBS) \
$(IMAGEMAGICK_LIBS) \
$(IMAGEMAGICK6_LIBS) $(IMAGEMAGICK7_LIBS) \
-lm
if HAVE_SDR
@@ -51,7 +50,3 @@ if HAVE_SDR
AM_CPPFLAGS += -DHAVE_SDR
endif
if HAVE_MAGICK
AM_CPPFLAGS += -DHAVE_MAGICK
endif