ENH: Adding symbols from traditional checks.
authorLuis Ibanez <luis.ibanez@gmail.com>
Sun, 5 Sep 2010 21:34:07 +0000 (21:34 +0000)
committerLuis Ibanez <luis.ibanez@gmail.com>
Sun, 5 Sep 2010 21:34:07 +0000 (21:34 +0000)
     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.

openjpegConfigure.h.in

index b2912da03f8a9716ac154b5a328031220ca2f57d..93e326a5d215062262312575e5be50d06950218a 100644 (file)
 #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