Double negatives make my brain hurt, so don't use them.
#ifndef OUTPUT_CHART_H
#define OUTPUT_CHART_H 1
-#ifndef NO_CHARTS
+#ifdef HAVE_CHARTS
#include <stdio.h> /* Required by <plot.h>. */
#include <plot.h>
#endif
$(chart_sources)
EXTRA_DIST += src/output/charts/dummy-chart.c
+AM_CPPFLAGS += -DHAVE_CHARTS=1
else
src_output_charts_libcharts_la_SOURCES = \
src/output/charts/dummy-chart.c
EXTRA_DIST += $(chart_sources)
-
-AM_CPPFLAGS += -DNO_CHARTS
-
endif
EXTRA_DIST += src/output/charts/OChangeLog
#include <gsl/gsl_histogram.h>
#include <libpspp/compiler.h>
-#ifndef NO_CHARTS
+#ifdef HAVE_CHARTS
#error This file should be used only when compiling without charts.
#endif