2 * Copyright (c) 2002-2007, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium
3 * Copyright (c) 2002-2007, Professor Benoit Macq
4 * Copyright (c) 2001-2003, David Janssens
5 * Copyright (c) 2002-2003, Yannick Verschueren
6 * Copyright (c) 2003-2007, Francois-Olivier Devaux and Antonin Descampe
7 * Copyright (c) 2005, Herve Drolon, FreeImage Team
8 * Copyright (c) 2006-2007, Parvatha Elangovan
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
33 #ifndef OPENJPEGCONFIGURE_H
34 #define OPENJPEGCONFIGURE_H
36 /* Whether OPENJPEG is using its own utility libraries. */
37 #cmakedefine OPENJPEG_USE_SYSTEM_PNG
38 #cmakedefine OPENJPEG_USE_SYSTEM_TIFF
39 #cmakedefine OPENJPEG_USE_SYSTEM_ZLIB
41 #cmakedefine BUILD_SHARED_LIBS
42 #if !defined(BUILD_SHARED_LIBS) && !defined(OPJ_STATIC)
47 * The @HAVE_INCLUDE_H@ gets replaced with "1" or "", this define is
48 * to remap these values to 0 and 1
50 #define OPENJPEG_CMAKEDEFINE_VAR_1 1
51 #define OPENJPEG_CMAKEDEFINE_VAR_ 0
54 * Check Include files defines. We use the CMake standard names in the
55 * cmake files to reduce extra calls for checking header, but then
56 * conditionally defined them here with an OPENJPEG_ prefix to prevent
57 * collisions and re defined warnings.
59 #if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_FENV_H@
60 # define OPENJPEG_HAVE_FENV_H
61 #endif /* HAVE_FENV_H */
63 #if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_SYS_TYPES_H@
64 # define OPENJPEG_HAVE_SYS_TYPES_H
65 #endif /* HAVE_SYS_TYPES_H */
67 #if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_STDINT_H@
68 # define OPENJPEG_HAVE_STDINT_H
69 #endif /* HAVE_STDINT_H */
71 #if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_STDDEF_H@
72 # define OPENJPEG_HAVE_STDDEF_H
73 #endif /* HAVE_STDDEF_H */
75 #if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_UNISTD_H@
76 # define OPENJPEG_HAVE_UNISTD_H
77 #endif /* HAVE_UNISTD_H */
79 #if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_LIBLCMS1@
80 # define OPENJPEG_HAVE_LIBLCMS1
81 #endif /* HAVE_LIBLCMS1 */
83 #if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_LIBLCMS2@
84 # define OPENJPEG_HAVE_LIBLCMS2
85 #endif /* HAVE_LIBLCMS2 */
87 #if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_LIBPNG@
88 # define OPENJPEG_HAVE_LIBPNG
89 #endif /* HAVE_LIBPNG */
91 #undef OPENJPEG_CMAKEDEFINE_VAR_1
92 #undef OPENJPEG_CMAKEDEFINE_VAR_