summaryrefslogtreecommitdiff
path: root/math/plplot/files/patch-include_plConfig.h.in
blob: 48a203f8be17ad439e7c56316c64a7ffcf9eef57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- include/plConfig.h.in.orig	2015-04-12 10:08:04 UTC
+++ include/plConfig.h.in
@@ -43,7 +43,8 @@
 #ifndef __PLCONFIG_H__
 #define __PLCONFIG_H__
 
-#ifdef PLPLOT_HAVE_CONFIG_H
+// plplot_config.h won't be installed: don't let it be used by consumers
+#if defined(PLPLOT_HAVE_CONFIG_H) && defined(_IS_BUILDING_PLPLOT_PORT_)
 #  include <plplot_config.h>
 #endif