]> granicus.if.org Git - imagemagick/blob - MagickCore/magick-config.h
...
[imagemagick] / MagickCore / magick-config.h
1 /*
2   Copyright 2012 ImageMagick Studio LLC, a non-profit organization
3   dedicated to making software imaging solutions freely available.
4
5   You may not use this file except in compliance with the License.
6   obtain a copy of the License at
7
8     https://www.imagemagick.org/script/license.php
9
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15
16   MagickConfig not autogenerated (fixed stuff)
17 */
18 #ifndef MAGICKCORE_MAGICK_CONFIG_H
19 #define MAGICKCORE_MAGICK_CONFIG_H
20
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24
25 #include "MagickCore/magick-baseconfig.h"
26
27 /* Compatibility block */
28 #if !defined(MAGICKCORE_QUANTUM_DEPTH) && defined(MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H)
29 # warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
30 # warning "this is an obsolete behavior please fix your makefile"
31 # define MAGICKCORE_QUANTUM_DEPTH MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H
32 #endif
33
34 /* Number of bits in a pixel Quantum (8/16/32/64) */
35 #ifndef MAGICKCORE_QUANTUM_DEPTH
36 # error "you should set MAGICKCORE_QUANTUM_DEPTH"
37 #endif
38
39 /* check values */
40 #if MAGICKCORE_QUANTUM_DEPTH != 8
41 # if MAGICKCORE_QUANTUM_DEPTH != 16
42 #  if MAGICKCORE_QUANTUM_DEPTH != 32
43 #   if MAGICKCORE_QUANTUM_DEPTH != 64
44 #    error "MAGICKCORE_QUANTUM_DEPTH is not 8/16/32/64 bits"
45 #   endif
46 #  endif
47 # endif
48 #endif
49
50
51 #if !defined(MAGICKCORE_HDRI_ENABLE) && defined(MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H)
52 # warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
53 # warning "this is an obsolete behavior please fix yours makefile"
54 # define MAGICKCORE_HDRI_ENABLE MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H
55 #endif
56
57 /* whether HDRI is enable */
58 #if !defined(MAGICKCORE_HDRI_ENABLE)
59 # error "you should set MAGICKCORE_HDRI_ENABLE"
60 #endif
61
62 #if MAGICKCORE_HDRI_ENABLE
63 # define MAGICKCORE_HDRI_SUPPORT 1
64 #endif
65
66 /* Compatibility block */
67 #if !defined(MAGICKCORE_QUANTUM_DEPTH) && defined(MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H)
68 # warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
69 # warning "this is an obsolete behavior please fix yours makefile"
70 # define MAGICKCORE_QUANTUM_DEPTH MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H
71 #endif
72
73 /* Number of bits in a pixel Quantum (8/16/32/64) */
74 #ifndef MAGICKCORE_QUANTUM_DEPTH
75 # error "you should set MAGICKCORE_QUANTUM_DEPTH"
76 #endif
77
78 /* check values */
79 #if MAGICKCORE_QUANTUM_DEPTH != 8
80 # if MAGICKCORE_QUANTUM_DEPTH != 16
81 #  if MAGICKCORE_QUANTUM_DEPTH != 32
82 #   if MAGICKCORE_QUANTUM_DEPTH != 64
83 #    error "MAGICKCORE_QUANTUM_DEPTH is not 8/16/32/64 bits"
84 #   endif
85 #  endif
86 # endif
87 #endif
88
89
90 #if !defined(MAGICKCORE_HDRI_ENABLE) && defined(MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H)
91 # warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
92 # warning "this is an obsolete behavior please fix yours makefile"
93 # define MAGICKCORE_HDRI_ENABLE MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H
94 #endif
95
96 /* whether HDRI is enable */
97 #if !defined(MAGICKCORE_HDRI_ENABLE)
98 # error "you should set MAGICKCORE_HDRI_ENABLE"
99 #endif
100
101 #if MAGICKCORE_HDRI_ENABLE
102 # define MAGICKCORE_HDRI_SUPPORT 1
103 #endif
104
105 #if defined __CYGWIN32__ && !defined __CYGWIN__
106    /* For backwards compatibility with Cygwin b19 and
107       earlier, we define __CYGWIN__ here, so that
108       we can rely on checking just for that macro. */
109 #  define __CYGWIN__  __CYGWIN32__
110 #endif
111
112 /*! stringify */
113 #define MAGICKCORE_STRING_QUOTE(str) #str
114 #define MAGICKCORE_STRING_XQUOTE(str) MAGICKCORE_STRING_QUOTE(str)
115
116 /*  ABI SUFFIX */
117 #ifndef MAGICKCORE_HDRI_SUPPORT
118 #define MAGICKCORE_ABI_SUFFIX  "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH)
119 #else 
120 #define MAGICKCORE_ABI_SUFFIX "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH) "HDRI"
121 #endif 
122
123 /* some path game */
124 #if !defined __CYGWIN__
125 # if defined (_WIN32) || defined (_WIN64) || defined (__MSDOS__) || defined (__DJGPP__) || defined (__OS2__)
126    /* Use Windows separators on all _WIN32 defining
127       environments, except Cygwin. */
128 #  define MAGICKCORE_DIR_SEPARATOR_CHAR         '\\'
129 #  define MAGICKCORE_DIR_SEPARATOR              "\\"
130 #  define MAGICKCORE_PATH_SEPARATOR_CHAR        ';'
131 #  define MAGICKCORE_PATH_SEPARATOR             ";"
132 # endif
133 #endif
134  
135 /* posix */
136 #ifndef MAGICKCORE_DIR_SEPARATOR_CHAR
137    /* Assume that not having this is an indicator that all
138       are missing. */
139 #  define MAGICKCORE_DIR_SEPARATOR_CHAR         '/'
140 #  define MAGICKCORE_DIR_SEPARATOR              "/"
141 #  define MAGICKCORE_PATH_SEPARATOR_CHAR        ':'
142 #  define MAGICKCORE_PATH_SEPARATOR             ":"
143 #endif /* !DIR_SEPARATOR_CHAR */
144
145 # if defined(MAGICKCORE_POSIX_SUPPORT) || defined(__MINGW32__) || defined(__MINGW64__)
146  
147 /* module dir */
148 #ifndef MAGICKCORE_MODULES_DIRNAME
149 # define MAGICKCORE_MODULES_DIRNAME MAGICKCORE_MODULES_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX
150 #endif
151  
152 #ifndef MAGICKCORE_MODULES_PATH
153 #  define MAGICKCORE_MODULES_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME
154 #endif
155  
156 #ifndef MAGICKCORE_MODULES_RELATIVE_PATH
157 #define MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME
158 #endif
159  
160 /* Subdirectory under lib to place ImageMagick coder module files */
161 #ifndef MAGICKCORE_CODER_PATH
162 # if defined(vms)
163 #  define MAGICKCORE_CODER_PATH "sys$login:"
164 # else
165 #  define MAGICKCORE_CODER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME
166 # endif
167 #endif
168  
169 #ifndef MAGICKCORE_CODER_RELATIVE_PATH
170 # define MAGICKCORE_CODER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME
171 #endif
172  
173 /* subdirectory under lib to place ImageMagick filter module files */
174 #ifndef MAGICKCORE_FILTER_PATH
175 # if defined(vms)
176 #  define MAGICKCORE_FILTER_PATH  "sys$login:"
177 # else
178 #  define MAGICKCORE_FILTER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME
179 # endif
180 #endif
181  
182 #ifndef MAGICKCORE_FILTER_RELATIVE_PATH
183 # define MAGICKCORE_FILTER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME
184 #endif
185
186 /* sharearch dir */
187 #ifndef MAGICKCORE_SHAREARCH_DIRNAME
188 # define MAGICKCORE_SHAREARCH_DIRNAME MAGICKCORE_SHAREARCH_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX
189 #endif
190  
191 #ifndef MAGICKCORE_SHAREARCH_PATH
192 #  define MAGICKCORE_SHAREARCH_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_SHAREARCH_DIRNAME MAGICKCORE_DIR_SEPARATOR
193 #endif
194  
195 #ifndef MAGICKCORE_SHAREARCH_RELATIVE_PATH
196 #define MAGICKCORE_SHAREARCH_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_SHAREARCH_DIRNAME
197 #endif
198
199 #endif
200  
201 #if defined(__cplusplus) || defined(c_plusplus)
202 }
203 #endif
204  
205 #endif