| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 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 | */ |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 18 | #ifndef _MAGICKCORE_MAGICK_CONFIG_H |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 19 | #define _MAGICKCORE_MAGICK_CONFIG_H |
| 20 | |
| 21 | #if defined(__cplusplus) || defined(c_plusplus) |
| 22 | extern "C" { |
| 23 | #endif |
| 24 | |
| cristy | 671db97 | 2012-12-01 19:16:47 +0000 | [diff] [blame] | 25 | #include "MagickCore/magick-baseconfig.h" |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 26 | |
| 27 | #if defined __CYGWIN32__ && !defined __CYGWIN__ |
| 28 | /* For backwards compatibility with Cygwin b19 and |
| 29 | earlier, we define __CYGWIN__ here, so that |
| 30 | we can rely on checking just for that macro. */ |
| 31 | # define __CYGWIN__ __CYGWIN32__ |
| 32 | #endif |
| 33 | |
| 34 | /*! stringify */ |
| 35 | #define MAGICKCORE_STRING_QUOTE(str) #str |
| 36 | #define MAGICKCORE_STRING_XQUOTE(str) MAGICKCORE_STRING_QUOTE(str) |
| 37 | |
| 38 | /* ABI SUFFIX */ |
| 39 | #ifndef HDRI_SUPPORT |
| cristy | e386d19 | 2012-12-01 21:05:20 +0000 | [diff] [blame^] | 40 | #define MAGICKCORE_ABI_SUFFIX "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH) |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 41 | #else |
| cristy | e386d19 | 2012-12-01 21:05:20 +0000 | [diff] [blame^] | 42 | #define MAGICKCORE_ABI_SUFFIX "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH) "-HDRI" |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 43 | #endif |
| 44 | |
| 45 | /* some path game */ |
| 46 | #if !defined __CYGWIN__ |
| 47 | # if defined (_WIN32) || defined (_WIN64) || defined (__MSDOS__) || defined (__DJGPP__) || defined (__OS2__) |
| 48 | /* Use Windows separators on all _WIN32 defining |
| 49 | environments, except Cygwin. */ |
| 50 | # define MAGICKCORE_DIR_SEPARATOR_CHAR '\\' |
| 51 | # define MAGICKCORE_DIR_SEPARATOR "\\" |
| 52 | # define MAGICKCORE_PATH_SEPARATOR_CHAR ';' |
| 53 | # define MAGICKCORE_PATH_SEPARATOR ";" |
| 54 | # endif |
| 55 | #endif |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 56 | |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 57 | /* posix */ |
| 58 | #ifndef MAGICKCORE_DIR_SEPARATOR_CHAR |
| 59 | /* Assume that not having this is an indicator that all |
| 60 | are missing. */ |
| 61 | # define MAGICKCORE_DIR_SEPARATOR_CHAR '/' |
| 62 | # define MAGICKCORE_DIR_SEPARATOR "/" |
| 63 | # define MAGICKCORE_PATH_SEPARATOR_CHAR ':' |
| 64 | # define MAGICKCORE_PATH_SEPARATOR ":" |
| 65 | #endif /* !DIR_SEPARATOR_CHAR */ |
| 66 | |
| 67 | /* module dir */ |
| 68 | #ifndef MAGICKCORE_MODULES_DIRNAME |
| cristy | e386d19 | 2012-12-01 21:05:20 +0000 | [diff] [blame^] | 69 | # define MAGICKCORE_MODULES_DIRNAME MAGICKCORE_MODULES_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX |
| cristy | 3048a03 | 2012-11-15 19:20:06 +0000 | [diff] [blame] | 70 | #endif |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 71 | |
| 72 | #ifndef MAGICKCORE_MODULES_PATH |
| 73 | # define MAGICKCORE_MODULES_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 74 | #endif |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 75 | |
| 76 | #ifndef MAGICKCORE_MODULES_RELATIVE_PATH |
| 77 | #define MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME |
| 78 | #endif |
| 79 | |
| 80 | /* Subdirectory under lib to place ImageMagick coder module files */ |
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 81 | #ifndef MAGICKCORE_CODER_PATH |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 82 | # if defined(vms) |
| 83 | # define MAGICKCORE_CODER_PATH "sys$login:" |
| 84 | # else |
| 85 | # define MAGICKCORE_CODER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 86 | # endif |
| 87 | #endif |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 88 | |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 89 | #ifndef MAGICKCORE_CODER_RELATIVE_PATH |
| 90 | # define MAGICKCORE_CODER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME |
| 91 | #endif |
| 92 | |
| 93 | /* subdirectory under lib to place ImageMagick filter module files */ |
| 94 | #ifndef MAGICKCORE_FILTER_PATH |
| 95 | # if defined(vms) |
| 96 | # define MAGICKCORE_FILTER_PATH "sys$login:" |
| 97 | # else |
| 98 | # define MAGICKCORE_FILTER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME |
| 99 | # endif |
| 100 | #endif |
| 101 | |
| 102 | #ifndef MAGICKCORE_FILTER_RELATIVE_PATH |
| 103 | # define MAGICKCORE_FILTER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME |
| 104 | #endif |
| 105 | |
| 106 | #if defined(__cplusplus) || defined(c_plusplus) |
| 107 | } |
| 108 | #endif |
| 109 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 110 | #endif |