summaryrefslogtreecommitdiff
path: root/configh.cmake.in
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2015-12-30 21:13:07 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2015-12-30 21:13:07 +0000
commit3beb45165a4e3aac8ab6a6a4add93eb4cd48eceb (patch)
treefd3dbd8adbe84f20044a7ed24485e59e894c11a1 /configh.cmake.in
parent4f5e6e7732553a9689f773715074fc14420f16b0 (diff)
[CMake] config.h, part 2 - full compatibility with autoconf.
This commit makes the file config.h generated by CMake 100% compatible with the one generated by autoconf/configure. Fixes in this commit: - Set FLTK_DATADIR and FLTK_DOCDIR with the same default values. Note: needs some cleanup, option values are not clear, '/fltk' is currently appended in export.cmake (needs improvement). - Simulation of autoconf macro AC_HEADER_DIRENT for correct definition of only one 'dirent' header file. - Fix more function checks: - dlsym - png_get_valid - png_set_tRNS_to_alpha - Improve "Big Endian" check for __APPLE__ (mac_endianness.h). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'configh.cmake.in')
-rw-r--r--configh.cmake.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/configh.cmake.in b/configh.cmake.in
index 15a6f0df8..4dff81b49 100644
--- a/configh.cmake.in
+++ b/configh.cmake.in
@@ -1,8 +1,8 @@
+/* @CONFIG_H@. Generated from @CONFIG_H_IN@ by CMake. */
/*
* "$Id$"
*
* Configuration file for the Fast Light Tool Kit (FLTK).
- * @configure_input@
*
* Copyright 1998-2015 by Bill Spitzak and others.
*
@@ -21,8 +21,8 @@
* Where to find files...
*/
-#define FLTK_DATADIR "@PREFIX_DATA@"
-#define FLTK_DOCDIR "@PREFIX_DOC@"
+#define FLTK_DATADIR "@PREFIX_DATA@"
+#define FLTK_DOCDIR "@PREFIX_DOC@"
/*
* BORDER_WIDTH:
@@ -147,7 +147,7 @@
* no meaning on operating systems other than Mac OS X.
*/
-#cmakedefine __APPLE_QUARTZ__ @__APPLE_QUARTZ__@
+#cmakedefine __APPLE_QUARTZ__ 1
/*
@@ -185,7 +185,11 @@
* Byte order of your machine: 1 = big-endian, 0 = little-endian.
*/
-#define WORDS_BIGENDIAN @WORDS_BIGENDIAN@
+#ifdef __APPLE__
+#include <mac_endianness.h>
+#else
+#cmakedefine01 WORDS_BIGENDIAN
+#endif
/*
* U16, U32, U64: