Home | History | Annotate | Download | only in MagickCore
      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     http://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 #define MAGICKCORE_QUANTUM_DEPTH 16
     28 #define MAGICKCORE_HDRI_ENABLE 1
     29 #define MAGICKCORE_JPEG_DELEGATE
     30 #undef MAGICKCORE_HAVE__NSGETEXECUTABLEPATH
     31 #undef MAGICKCORE_HAVE_VSNPRINTF_L
     32 #undef MAGICKCORE_HAVE_VSNPRINTF
     33 #undef MAGICKCORE_HAVE_VFPRINTF_L
     34 #undef MAGICKCORE_HAVE_STRTOD_L
     35 #undef MAGICKCORE_HAVE_SYS_TIMEB_H
     36 #undef MAGICKCORE_HAVE_GETDTABLESIZE
     37 #undef MAGICKCORE_HAVE_MACH_O_DYLD_H
     38 #undef MAGICKCORE_X11_DELEGATE
     39 #undef MAGICKCORE_BUILD_MODULES
     40 
     41 /* Compatibility block */
     42 #if !defined(MAGICKCORE_QUANTUM_DEPTH) && defined(MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H)
     43 # warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
     44 # warning "this is an obsolete behavior please fix your makefile"
     45 # define MAGICKCORE_QUANTUM_DEPTH MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H
     46 #endif
     47 
     48 /* Number of bits in a pixel Quantum (8/16/32/64) */
     49 #ifndef MAGICKCORE_QUANTUM_DEPTH
     50 # error "you should set MAGICKCORE_QUANTUM_DEPTH"
     51 #endif
     52 
     53 /* check values */
     54 #if MAGICKCORE_QUANTUM_DEPTH != 8
     55 # if MAGICKCORE_QUANTUM_DEPTH != 16
     56 #  if MAGICKCORE_QUANTUM_DEPTH != 32
     57 #   if MAGICKCORE_QUANTUM_DEPTH != 64
     58 #    error "MAGICKCORE_QUANTUM_DEPTH is not 8/16/32/64 bits"
     59 #   endif
     60 #  endif
     61 # endif
     62 #endif
     63 
     64 
     65 #if !defined(MAGICKCORE_HDRI_ENABLE) && defined(MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H)
     66 # warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
     67 # warning "this is an obsolete behavior please fix yours makefile"
     68 # define MAGICKCORE_HDRI_ENABLE MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H
     69 #endif
     70 
     71 /* whether HDRI is enable */
     72 #if !defined(MAGICKCORE_HDRI_ENABLE)
     73 # error "you should set MAGICKCORE_HDRI_ENABLE"
     74 #endif
     75 
     76 #if MAGICKCORE_HDRI_ENABLE
     77 # define MAGICKCORE_HDRI_SUPPORT 1
     78 #endif
     79 
     80 /* Compatibility block */
     81 #if !defined(MAGICKCORE_QUANTUM_DEPTH) && defined(MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H)
     82 # warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
     83 # warning "this is an obsolete behavior please fix yours makefile"
     84 # define MAGICKCORE_QUANTUM_DEPTH MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H
     85 #endif
     86 
     87 /* Number of bits in a pixel Quantum (8/16/32/64) */
     88 #ifndef MAGICKCORE_QUANTUM_DEPTH
     89 # error "you should set MAGICKCORE_QUANTUM_DEPTH"
     90 #endif
     91 
     92 /* check values */
     93 #if MAGICKCORE_QUANTUM_DEPTH != 8
     94 # if MAGICKCORE_QUANTUM_DEPTH != 16
     95 #  if MAGICKCORE_QUANTUM_DEPTH != 32
     96 #   if MAGICKCORE_QUANTUM_DEPTH != 64
     97 #    error "MAGICKCORE_QUANTUM_DEPTH is not 8/16/32/64 bits"
     98 #   endif
     99 #  endif
    100 # endif
    101 #endif
    102 
    103 
    104 #if !defined(MAGICKCORE_HDRI_ENABLE) && defined(MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H)
    105 # warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
    106 # warning "this is an obsolete behavior please fix yours makefile"
    107 # define MAGICKCORE_HDRI_ENABLE MAGICKCORE_HDRI_ENABLE_OBSOLETE_IN_H
    108 #endif
    109 
    110 /* whether HDRI is enable */
    111 #if !defined(MAGICKCORE_HDRI_ENABLE)
    112 # error "you should set MAGICKCORE_HDRI_ENABLE"
    113 #endif
    114 
    115 #if MAGICKCORE_HDRI_ENABLE
    116 # define MAGICKCORE_HDRI_SUPPORT 1
    117 #endif
    118 
    119 #if defined __CYGWIN32__ && !defined __CYGWIN__
    120    /* For backwards compatibility with Cygwin b19 and
    121       earlier, we define __CYGWIN__ here, so that
    122       we can rely on checking just for that macro. */
    123 #  define __CYGWIN__  __CYGWIN32__
    124 #endif
    125 
    126 /*! stringify */
    127 #define MAGICKCORE_STRING_QUOTE(str) #str
    128 #define MAGICKCORE_STRING_XQUOTE(str) MAGICKCORE_STRING_QUOTE(str)
    129 
    130 /*  ABI SUFFIX */
    131 #ifndef MAGICKCORE_HDRI_SUPPORT
    132 #define MAGICKCORE_ABI_SUFFIX  "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH)
    133 #else
    134 #define MAGICKCORE_ABI_SUFFIX "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH) "HDRI"
    135 #endif
    136 
    137 /* some path game */
    138 #if !defined __CYGWIN__
    139 # if defined (_WIN32) || defined (_WIN64) || defined (__MSDOS__) || defined (__DJGPP__) || defined (__OS2__)
    140    /* Use Windows separators on all _WIN32 defining
    141       environments, except Cygwin. */
    142 #  define MAGICKCORE_DIR_SEPARATOR_CHAR		'\\'
    143 #  define MAGICKCORE_DIR_SEPARATOR		"\\"
    144 #  define MAGICKCORE_PATH_SEPARATOR_CHAR	';'
    145 #  define MAGICKCORE_PATH_SEPARATOR		";"
    146 # endif
    147 #endif
    148 
    149 /* posix */
    150 #ifndef MAGICKCORE_DIR_SEPARATOR_CHAR
    151    /* Assume that not having this is an indicator that all
    152       are missing. */
    153 #  define MAGICKCORE_DIR_SEPARATOR_CHAR		'/'
    154 #  define MAGICKCORE_DIR_SEPARATOR		"/"
    155 #  define MAGICKCORE_PATH_SEPARATOR_CHAR	':'
    156 #  define MAGICKCORE_PATH_SEPARATOR		":"
    157 #endif /* !DIR_SEPARATOR_CHAR */
    158 
    159 # if defined(MAGICKCORE_POSIX_SUPPORT)
    160 
    161 /* module dir */
    162 #ifndef MAGICKCORE_MODULES_DIRNAME
    163 # define MAGICKCORE_MODULES_DIRNAME MAGICKCORE_MODULES_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX
    164 #endif
    165 
    166 #ifndef MAGICKCORE_MODULES_PATH
    167 #  define MAGICKCORE_MODULES_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME
    168 #endif
    169 
    170 #ifndef MAGICKCORE_MODULES_RELATIVE_PATH
    171 #define MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME
    172 #endif
    173 
    174 /* Subdirectory under lib to place ImageMagick coder module files */
    175 #ifndef MAGICKCORE_CODER_PATH
    176 # if defined(vms)
    177 #  define MAGICKCORE_CODER_PATH "sys$login:"
    178 # else
    179 #  define MAGICKCORE_CODER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME
    180 # endif
    181 #endif
    182 
    183 #ifndef MAGICKCORE_CODER_RELATIVE_PATH
    184 # define MAGICKCORE_CODER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME
    185 #endif
    186 
    187 /* subdirectory under lib to place ImageMagick filter module files */
    188 #ifndef MAGICKCORE_FILTER_PATH
    189 # if defined(vms)
    190 #  define MAGICKCORE_FILTER_PATH  "sys$login:"
    191 # else
    192 #  define MAGICKCORE_FILTER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME
    193 # endif
    194 #endif
    195 
    196 #ifndef MAGICKCORE_FILTER_RELATIVE_PATH
    197 # define MAGICKCORE_FILTER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME
    198 #endif
    199 
    200 /* sharearch dir */
    201 #ifndef MAGICKCORE_SHAREARCH_DIRNAME
    202 # define MAGICKCORE_SHAREARCH_DIRNAME MAGICKCORE_SHAREARCH_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX
    203 #endif
    204 
    205 #ifndef MAGICKCORE_SHAREARCH_PATH
    206 #  define MAGICKCORE_SHAREARCH_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_SHAREARCH_DIRNAME MAGICKCORE_DIR_SEPARATOR
    207 #endif
    208 
    209 #ifndef MAGICKCORE_SHAREARCH_RELATIVE_PATH
    210 #define MAGICKCORE_SHAREARCH_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_SHAREARCH_DIRNAME
    211 #endif
    212 
    213 #endif
    214 
    215 #if defined(__cplusplus) || defined(c_plusplus)
    216 }
    217 #endif
    218 
    219 #endif
    220