Improving and cleaning configure script

This commit is contained in:
Andreas Eversberg
2018-02-16 15:53:48 +01:00
parent 56f07a473d
commit a57a5c0122
4 changed files with 14 additions and 42 deletions

View File

@@ -1,11 +1,11 @@
AM_CPPFLAGS = -Wall -Wextra -g $(all_includes) $(GRAPHICSMAGICK_CFLAGS) $(IMAGEMAGICK_CFLAGS)
AM_CPPFLAGS = -Wall -Wextra -g $(all_includes) $(IMAGEMAGICK_CFLAGS)
noinst_LIBRARIES = libimage.a
libimage_a_SOURCES = \
img.c
if ENABLE_MAGICK
AM_CPPFLAGS += -DWITH_MAGICK
if HAVE_MAGICK
AM_CPPFLAGS += -DHAVE_MAGICK
endif

View File

@@ -5,7 +5,7 @@
int save_depth = 16;
#ifdef WITH_MAGICK
#ifdef HAVE_MAGICK
#include <magick/api.h>
/* load given image to memory. return short RGB values */
@@ -256,7 +256,7 @@ int save_img_array(double *array, int width, int height, int alpha, const char *
unsigned short *img = NULL;
int components;
#ifndef WITH_MAGICK
#ifndef HAVE_MAGICK
if (alpha) {
printf("%s:warning, cannot save alpha component with PPM support only\n", __func__);
alpha = 0;