2 Copyright 2012 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
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.
16 MagickConfig not autogenerated (fixed stuff)
18 #ifndef _MAGICKCORE_MAGICK_CONFIG_H
19 #define _MAGICKCORE_MAGICK_CONFIG_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #include "MagickCore/magick-baseconfig.h"
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
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"
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"
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
57 /* whether HDRI is enable */
58 #if !defined(MAGICKCORE_HDRI_ENABLE)
59 # error "you should set MAGICKCORE_HDRI_ENABLE"
62 #if MAGICKCORE_HDRI_ENABLE
63 # define MAGICKCORE_HDRI_SUPPORT 1
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
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"
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"
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
96 /* whether HDRI is enable */
97 #if !defined(MAGICKCORE_HDRI_ENABLE)
98 # error "you should set MAGICKCORE_HDRI_ENABLE"
101 #if MAGICKCORE_HDRI_ENABLE
102 # define MAGICKCORE_HDRI_SUPPORT 1
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__
113 #define MAGICKCORE_STRING_QUOTE(str) #str
114 #define MAGICKCORE_STRING_XQUOTE(str) MAGICKCORE_STRING_QUOTE(str)
117 #ifndef MAGICKCORE_HDRI_SUPPORT
118 #define MAGICKCORE_ABI_SUFFIX "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH)
120 #define MAGICKCORE_ABI_SUFFIX "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH) "HDRI"
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 ";"
136 #ifndef MAGICKCORE_DIR_SEPARATOR_CHAR
137 /* Assume that not having this is an indicator that all
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 */
145 # if defined(MAGICKCORE_POSIX_SUPPORT)
148 #ifndef MAGICKCORE_MODULES_DIRNAME
149 # define MAGICKCORE_MODULES_DIRNAME MAGICKCORE_MODULES_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX
152 #ifndef MAGICKCORE_MODULES_PATH
153 # define MAGICKCORE_MODULES_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME
156 #ifndef MAGICKCORE_MODULES_RELATIVE_PATH
157 #define MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME
160 /* Subdirectory under lib to place ImageMagick coder module files */
161 #ifndef MAGICKCORE_CODER_PATH
163 # define MAGICKCORE_CODER_PATH "sys$login:"
165 # define MAGICKCORE_CODER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME
169 #ifndef MAGICKCORE_CODER_RELATIVE_PATH
170 # define MAGICKCORE_CODER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME
173 /* subdirectory under lib to place ImageMagick filter module files */
174 #ifndef MAGICKCORE_FILTER_PATH
176 # define MAGICKCORE_FILTER_PATH "sys$login:"
178 # define MAGICKCORE_FILTER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME
182 #ifndef MAGICKCORE_FILTER_RELATIVE_PATH
183 # define MAGICKCORE_FILTER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME
187 #ifndef MAGICKCORE_SHAREARCH_DIRNAME
188 # define MAGICKCORE_SHAREARCH_DIRNAME MAGICKCORE_SHAREARCH_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX
191 #ifndef MAGICKCORE_SHAREARCH_PATH
192 # define MAGICKCORE_SHAREARCH_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_SHAREARCH_DIRNAME MAGICKCORE_DIR_SEPARATOR
195 #ifndef MAGICKCORE_SHAREARCH_RELATIVE_PATH
196 #define MAGICKCORE_SHAREARCH_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_SHAREARCH_DIRNAME
201 #if defined(__cplusplus) || defined(c_plusplus)