Commits

Anonymous committed 72b22f4

Made more progress - more files compile.

  • Participants
  • Parent commits 2105d2c
  • Branches conversion-to-cmake

Comments (0)

Files changed (2)

File src/wml_backend/p2_mp4h/CMakeLists.txt

+SET (PACKAGE_RAW "mp4h")
+SET (VERSION_RAW "1.3.0")
+
+SET (PACKAGE "\"${PACKAGE_RAW}\"")
+SET (PACKAGE_VERSION "\"${VERSION_RAW}\"")
+
+SET (PACKAGE_DATE "\"19-Jan-2008\"")
+
 include(CheckIncludeFile)
+include(CheckIncludeFiles)
+include(CheckFunctionExists)
+
 SUBDIRS (
     src
 )
-SET (PACKAGE_VERSION "\"1.3.0\"")
+
 CHECK_INCLUDE_FILE("stdarg.h" HAVE_STDARG_H)
-CHECK_INCLUDE_FILE("stdlibs.h" STDC_HEADERS)
+
+SET (REQUIRED_STDC_HEADERS float.h string.h stdlib.h stdarg.h)
+CHECK_INCLUDE_FILES("${REQUIRED_STDC_HEADERS}" STDC_HEADERS)
+
+CHECK_FUNCTION_EXISTS(tmpfile HAVE_TMPFILE)
+CHECK_FUNCTION_EXISTS(mkstemp HAVE_MKSTEMP)
+
+SET (VERSION ${PACKAGE_VERSION})
+SET (PACKAGE_NAME ${PACKAGE})
+
+SET (PACKAGE_STRING "\"${PACKAGE_RAW} ${VERSION_RAW}\"")
+
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_SOURCE_DIR}/config.h)

File src/wml_backend/p2_mp4h/config.h.cmake

 /* config.h.in.  Generated from configure.ac by autoheader.  */
 
-/* Name of the package */
-#undef PACKAGE
-
 /* Version number */
-#undef VERSION
+#cmakedefine VERSION @VERSION@
 
 /* Define to 1 for better use of the debugging malloc library.  */
 #undef WITH_DMALLOC
 #undef HAVE_MEMPCPY
 
 /* Define to 1 if you have the `mkstemp' function. */
-#undef HAVE_MKSTEMP
+#cmakedefine HAVE_MKSTEMP 1
 
 /* Define to 1 if you have a working `mmap' system call. */
 #undef HAVE_MMAP
 #undef HAVE_TIME_H
 
 /* Define to 1 if you have the `tmpfile' function. */
-#undef HAVE_TMPFILE
+#cmakedefine HAVE_TMPFILE 1
 
 /* Define to 1 if you have the `tsearch' function. */
 #undef HAVE_TSEARCH
 /* Define if dlsym() requires a leading underscore in symbol names. */
 #undef NEED_USCORE
 
-/* Name of package */
-#undef PACKAGE
+/* Name of the package */
+#cmakedefine PACKAGE @PACKAGE@
 
 /* Define to the address where bug reports for this package should be sent. */
 #undef PACKAGE_BUGREPORT
 
 /* Release date */
-#undef PACKAGE_DATE
+#cmakedefine PACKAGE_DATE @PACKAGE_DATE@
 
 /* Define to the full name of this package. */
-#undef PACKAGE_NAME
+#cmakedefine PACKAGE_NAME @PACKAGE_NAME@
 
 /* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
+#cmakedefine PACKAGE_STRING @PACKAGE_STRING@
 
 /* Define to the one symbol short name of this package. */
 #undef PACKAGE_TARNAME
 
 /* Define to the version of this package. */
-#cmakedefine PACKAGE_VERSION "yes"
+#cmakedefine PACKAGE_VERSION @PACKAGE_VERSION@
 
 /* Define if <inttypes.h> exists and defines unusable PRI* macros. */
 #undef PRI_MACROS_BROKEN
 #undef STACK_DIRECTION
 
 /* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* Version number of package */
-#undef VERSION
+#cmakedefine STDC_HEADERS 1
 
 /* Define if using the dmalloc debugging malloc package */
 #undef WITH_DMALLOC