summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Ibanez <luis.ibanez@gmail.com>2010-09-05 21:34:07 +0000
committerLuis Ibanez <luis.ibanez@gmail.com>2010-09-05 21:34:07 +0000
commite80d147957e1ec441dd7157ee0e149ab45218841 (patch)
treedb781c7b9e3b37d5e45fc21e9287a9cc8a87775b
parent2cea89dc7de103571697179e5261bc120a8db97c (diff)
ENH: Adding symbols from traditional checks.
NOTE: the LCMS may still require CMake code for detecting the prescence of the library, of the use of CMake options for letting the user choose based on her preference.
-rw-r--r--openjpegConfigure.h.in49
1 files changed, 49 insertions, 0 deletions
diff --git a/openjpegConfigure.h.in b/openjpegConfigure.h.in
index b2912da0..93e326a5 100644
--- a/openjpegConfigure.h.in
+++ b/openjpegConfigure.h.in
@@ -43,4 +43,53 @@
#define OPJ_STATIC
#endif
+/*
+ * The @HAVE_INCLUDE_H@ gets replaced with "1" or "", this define is
+ * to remap these values to 0 and 1
+ */
+#define OPENJPEG_CMAKEDEFINE_VAR_1 1
+#define OPENJPEG_CMAKEDEFINE_VAR_ 0
+
+/*
+ * Check Include files defines. We use the CMake standard names in the
+ * cmake files to reduce extra calls for checking header, but then
+ * conditionally defined them here with an OPENJPEG_ prefix to prevent
+ * collisions and re defined warnings.
+ */
+#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_FENV_H@
+# define OPENJPEG_HAVE_FENV_H
+#endif /* HAVE_FENV_H */
+
+#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_SYS_TYPES_H@
+# define OPENJPEG_HAVE_SYS_TYPES_H
+#endif /* HAVE_SYS_TYPES_H */
+
+#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_STDINT_H@
+# define OPENJPEG_HAVE_STDINT_H
+#endif /* HAVE_STDINT_H */
+
+#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_STDDEF_H@
+# define OPENJPEG_HAVE_STDDEF_H
+#endif /* HAVE_STDDEF_H */
+
+#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_UNISTD_H@
+# define OPENJPEG_HAVE_UNISTD_H
+#endif /* HAVE_UNISTD_H */
+
+#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_LIBLCMS1@
+# define OPENJPEG_HAVE_LIBLCMS1
+#endif /* HAVE_LIBLCMS1 */
+
+#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_LIBLCMS2@
+# define OPENJPEG_HAVE_LIBLCMS2
+#endif /* HAVE_LIBLCMS2 */
+
+#if OPENJPEG_CMAKEDEFINE_VAR_@HAVE_LIBPNG@
+# define OPENJPEG_HAVE_LIBPNG
+#endif /* HAVE_LIBPNG */
+
+#undef OPENJPEG_CMAKEDEFINE_VAR_1
+#undef OPENJPEG_CMAKEDEFINE_VAR_
+
+
#endif