magick-config.h

Go to the documentation of this file.
00001 /*
00002   Copyright 2012 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004 
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007 
00008     https://imagemagick.org/script/license.php
00009 
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickConfig not autogenerated (fixed stuff)
00017 */
00018 #ifndef MAGICKCORE_MAGICK_CONFIG_H
00019 #define MAGICKCORE_MAGICK_CONFIG_H
00020 
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024 
00025 #include "MagickCore/magick-baseconfig.h"
00026 
00027 /* Compatibility block */
00028 #if !defined(MAGICKCORE_QUANTUM_DEPTH) && defined(MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H)
00029 # warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
00030 # warning "this is an obsolete behavior please fix your makefile"
00031 # define MAGICKCORE_QUANTUM_DEPTH MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H
00032 #endif
00033 
00034 /* Number of bits in a pixel Quantum (8/16/32/64) */
00035 #ifndef MAGICKCORE_QUANTUM_DEPTH
00036 # error "you should set MAGICKCORE_QUANTUM_DEPTH"
00037 #endif
00038 
00039 /* check values */
00040 #if MAGICKCORE_QUANTUM_DEPTH != 8
00041 # if MAGICKCORE_QUANTUM_DEPTH != 16
00042 #  if MAGICKCORE_QUANTUM_DEPTH != 32
00043 #   if MAGICKCORE_QUANTUM_DEPTH != 64
00044 #    error "MAGICKCORE_QUANTUM_DEPTH is not 8/16/32/64 bits"
00045 #   endif
00046 #  endif
00047 # endif
00048 #endif
00049 
00050 
00051 #if !defined(MAGICKCORE_HDRI_ENABLE) && defined(MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H)
00052 # warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
00053 # warning "this is an obsolete behavior please fix yours makefile"
00054 # define MAGICKCORE_HDRI_ENABLE MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H
00055 #endif
00056 
00057 /* whether HDRI is enable */
00058 #if !defined(MAGICKCORE_HDRI_ENABLE)
00059 # error "you should set MAGICKCORE_HDRI_ENABLE"
00060 #endif
00061 
00062 #if MAGICKCORE_HDRI_ENABLE
00063 # define MAGICKCORE_HDRI_SUPPORT 1
00064 #endif
00065 
00066 /* Compatibility block */
00067 #if !defined(MAGICKCORE_QUANTUM_DEPTH) && defined(MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H)
00068 # warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
00069 # warning "this is an obsolete behavior please fix yours makefile"
00070 # define MAGICKCORE_QUANTUM_DEPTH MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H
00071 #endif
00072 
00073 /* Number of bits in a pixel Quantum (8/16/32/64) */
00074 #ifndef MAGICKCORE_QUANTUM_DEPTH
00075 # error "you should set MAGICKCORE_QUANTUM_DEPTH"
00076 #endif
00077 
00078 /* check values */
00079 #if MAGICKCORE_QUANTUM_DEPTH != 8
00080 # if MAGICKCORE_QUANTUM_DEPTH != 16
00081 #  if MAGICKCORE_QUANTUM_DEPTH != 32
00082 #   if MAGICKCORE_QUANTUM_DEPTH != 64
00083 #    error "MAGICKCORE_QUANTUM_DEPTH is not 8/16/32/64 bits"
00084 #   endif
00085 #  endif
00086 # endif
00087 #endif
00088 
00089 
00090 #if !defined(MAGICKCORE_HDRI_ENABLE) && defined(MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H)
00091 # warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
00092 # warning "this is an obsolete behavior please fix yours makefile"
00093 # define MAGICKCORE_HDRI_ENABLE MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H
00094 #endif
00095 
00096 /* whether HDRI is enable */
00097 #if !defined(MAGICKCORE_HDRI_ENABLE)
00098 # error "you should set MAGICKCORE_HDRI_ENABLE"
00099 #endif
00100 
00101 #if MAGICKCORE_HDRI_ENABLE
00102 # define MAGICKCORE_HDRI_SUPPORT 1
00103 #endif
00104 
00105 #if defined __CYGWIN32__ && !defined __CYGWIN__
00106    /* For backwards compatibility with Cygwin b19 and
00107       earlier, we define __CYGWIN__ here, so that
00108       we can rely on checking just for that macro. */
00109 #  define __CYGWIN__  __CYGWIN32__
00110 #endif
00111 
00113 #define MAGICKCORE_STRING_QUOTE(str) #str
00114 #define MAGICKCORE_STRING_XQUOTE(str) MAGICKCORE_STRING_QUOTE(str)
00115 
00116 /*  ABI SUFFIX */
00117 #ifndef MAGICKCORE_HDRI_SUPPORT
00118 #define MAGICKCORE_ABI_SUFFIX  "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH)
00119 #else 
00120 #define MAGICKCORE_ABI_SUFFIX "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH) "HDRI"
00121 #endif 
00122 
00123 /* some path game */
00124 #if !defined __CYGWIN__
00125 # if defined (_WIN32) || defined (_WIN64) || defined (__MSDOS__) || defined (__DJGPP__) || defined (__OS2__)
00126    /* Use Windows separators on all _WIN32 defining
00127       environments, except Cygwin. */
00128 #  define MAGICKCORE_DIR_SEPARATOR_CHAR         '\\'
00129 #  define MAGICKCORE_DIR_SEPARATOR              "\\"
00130 #  define MAGICKCORE_PATH_SEPARATOR_CHAR        ';'
00131 #  define MAGICKCORE_PATH_SEPARATOR             ";"
00132 # endif
00133 #endif
00134  
00135 /* posix */
00136 #ifndef MAGICKCORE_DIR_SEPARATOR_CHAR
00137    /* Assume that not having this is an indicator that all
00138       are missing. */
00139 #  define MAGICKCORE_DIR_SEPARATOR_CHAR         '/'
00140 #  define MAGICKCORE_DIR_SEPARATOR              "/"
00141 #  define MAGICKCORE_PATH_SEPARATOR_CHAR        ':'
00142 #  define MAGICKCORE_PATH_SEPARATOR             ":"
00143 #endif /* !DIR_SEPARATOR_CHAR */
00144 
00145 # if defined(MAGICKCORE_POSIX_SUPPORT) || defined(__MINGW32__)
00146  
00147 /* module dir */
00148 #ifndef MAGICKCORE_MODULES_DIRNAME
00149 # define MAGICKCORE_MODULES_DIRNAME MAGICKCORE_MODULES_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX
00150 #endif
00151  
00152 #ifndef MAGICKCORE_MODULES_PATH
00153 #  define MAGICKCORE_MODULES_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME
00154 #endif
00155  
00156 #ifndef MAGICKCORE_MODULES_RELATIVE_PATH
00157 #define MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME
00158 #endif
00159  
00160 /* Subdirectory under lib to place ImageMagick coder module files */
00161 #ifndef MAGICKCORE_CODER_PATH
00162 # if defined(vms)
00163 #  define MAGICKCORE_CODER_PATH "sys$login:"
00164 # else
00165 #  define MAGICKCORE_CODER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME
00166 # endif
00167 #endif
00168  
00169 #ifndef MAGICKCORE_CODER_RELATIVE_PATH
00170 # define MAGICKCORE_CODER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME
00171 #endif
00172  
00173 /* subdirectory under lib to place ImageMagick filter module files */
00174 #ifndef MAGICKCORE_FILTER_PATH
00175 # if defined(vms)
00176 #  define MAGICKCORE_FILTER_PATH  "sys$login:"
00177 # else
00178 #  define MAGICKCORE_FILTER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME
00179 # endif
00180 #endif
00181  
00182 #ifndef MAGICKCORE_FILTER_RELATIVE_PATH
00183 # define MAGICKCORE_FILTER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME
00184 #endif
00185 
00186 /* sharearch dir */
00187 #ifndef MAGICKCORE_SHAREARCH_DIRNAME
00188 # define MAGICKCORE_SHAREARCH_DIRNAME MAGICKCORE_SHAREARCH_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX
00189 #endif
00190  
00191 #ifndef MAGICKCORE_SHAREARCH_PATH
00192 #  define MAGICKCORE_SHAREARCH_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_SHAREARCH_DIRNAME MAGICKCORE_DIR_SEPARATOR
00193 #endif
00194  
00195 #ifndef MAGICKCORE_SHAREARCH_RELATIVE_PATH
00196 #define MAGICKCORE_SHAREARCH_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_SHAREARCH_DIRNAME
00197 #endif
00198 
00199 #endif
00200  
00201 #if defined(__cplusplus) || defined(c_plusplus)
00202 }
00203 #endif
00204  
00205 #endif

Generated on 26 Aug 2019 for MagickCore by  doxygen 1.6.1