Improving and cleaning configure script
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user