From 0ef4ca6d362d2a6d8a3821e2f47a7d141fbcd3a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 3 Jan 2019 03:54:42 +0100 Subject: Migration to standard TDE CMake build system. Add common cmake module. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- config.h.cmake | 51 +++++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 26 deletions(-) (limited to 'config.h.cmake') diff --git a/config.h.cmake b/config.h.cmake index 7d1be45..e7666d0 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,24 +1,26 @@ -#cmakedefine HAVE_STDINT_H -#cmakedefine HAVE_ALLOCA_H -#cmakedefine HAVE_SYS_TIME_H -#cmakedefine HAVE_SYS_STAT_H -#cmakedefine HAVE_CFSETSPEED -#cmakedefine HAVE_STRDUP -#cmakedefine HAVE_SETENV -#cmakedefine HAVE_UNSETENV -#cmakedefine HAVE_USLEEP -#cmakedefine HAVE_RANDOM -#cmakedefine HAVE_PUTENV -#cmakedefine HAVE_SETEUID -#cmakedefine HAVE_MKSTEMPS -#cmakedefine HAVE_MKSTEMP -#cmakedefine HAVE_MKDTEMP -#cmakedefine HAVE_REVOKE -#cmakedefine HAVE_STRLCPY -#cmakedefine HAVE_STRLCAT -#cmakedefine HAVE_INET_ATON - -#if !defined(HAVE_STRLCAT) +#define VERSION "@VERSION@" + +// Defined if you have fvisibility and fvisibility-inlines-hidden support. +#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1 + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@ + +/* Define if you have strlcat */ +#cmakedefine HAVE_STRLCAT 1 + +/* Define if you have the strlcat prototype */ +#cmakedefine HAVE_STRLCAT_PROTO 1 + +/* Define if you have strlcpy */ +#cmakedefine HAVE_STRLCPY 1 + +/* Define if you have the strlcpy prototype */ +#cmakedefine HAVE_STRLCPY_PROTO 1 + +/* Provide strlcat prototype if missing */ +#if !defined(HAVE_STRLCAT_PROTO) #ifdef __cplusplus extern "C" { #endif @@ -28,9 +30,8 @@ unsigned long strlcat(char*, const char*, unsigned long); #endif #endif - - -#if !defined(HAVE_STRLCPY) +/* Provide strlcpy prototype if missing */ +#if !defined(HAVE_STRLCPY_PROTO) #ifdef __cplusplus extern "C" { #endif @@ -39,5 +40,3 @@ unsigned long strlcpy(char*, const char*, unsigned long); } #endif #endif - - -- cgit v1.2.1