summaryrefslogtreecommitdiffstats
path: root/config.h.cmake
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2022-01-17 17:05:30 +0900
committerSlávek Banko <slavek.banko@axis.cz>2022-01-17 12:44:35 +0100
commitb2f89687a77d70a4bc88aa20372fc7fab8b645c9 (patch)
treeb1f5526da92151cedbf02338e874908f2e22df10 /config.h.cmake
parent1893a88e9b7988730a50000c92634929efe96a41 (diff)
downloadtdelibs-b2f89687a77d70a4bc88aa20372fc7fab8b645c9.tar.gz
tdelibs-b2f89687a77d70a4bc88aa20372fc7fab8b645c9.zip
Fix feature detections with CMake
* implement missing checks with CMake * fixes and improve some detections * remove missing but unused checks Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit ad41084b8dd4e029e04073e22e52164505719b57)
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake44
1 files changed, 12 insertions, 32 deletions
diff --git a/config.h.cmake b/config.h.cmake
index d29fac364..426bac193 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -13,20 +13,9 @@
#cmakedefine HAVE_DNSSD 1
#cmakedefine AVAHI_API_0_6 1
-/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
- systems. This function is required for `alloca.c' support on those systems.
- */
-#undef CRAY_STACKSEG_END
-
-/* Define to 1 if using `alloca.c'. */
-#undef C_ALLOCA
-
/* Use su or sudo */
#define DEFAULT_SUPER_USER_COMMAND "@DEFAULT_SUPER_USER_COMMAND@"
-/* Define if getaddrinfo returns AF_UNIX sockets */
-#undef GETADDRINFO_RETURNS_UNIX
-
/* getmntinfo() uses struct statvfs */
#cmakedefine GETMNTINFO_USES_STATVFS
@@ -119,9 +108,6 @@
/* Define to 1 if libbfd provides demangle.h header */
#cmakedefine HAVE_DEMANGLE_H 1
-/* You _must_ have bool */
-#undef HAVE_BOOL
-
/* Define if getaddrinfo is broken and should be replaced */
#cmakedefine HAVE_BROKEN_GETADDRINFO 1
@@ -165,7 +151,7 @@
#cmakedefine HAVE_DIRENT_H 1
/* Define if you have the GNU dld library. */
-#undef HAVE_DLD
+#cmakedefine HAVE_DLD
/* Define to 1 if you have the <dld.h> header file. */
#cmakedefine HAVE_DLD_H 1
@@ -192,7 +178,7 @@
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
/* Define is posix_fadvise is supported */
-#undef HAVE_FADVISE
+#cmakedefine HAVE_FADVISE
/* Define if your system has libfam */
#cmakedefine HAVE_FAM 1
@@ -305,9 +291,6 @@
/* Define if you have jasper */
#cmakedefine HAVE_JASPER 1
-/* Define if your locale.h file contains LC_MESSAGES */
-#undef HAVE_LC_MESSAGES
-
/* Defines if your system has the libart library */
#cmakedefine HAVE_LIBART 1
@@ -332,12 +315,6 @@
/* Define if you have libpng */
#cmakedefine HAVE_LIBPNG 1
-/* Define if you have a working libpthread (will enable threaded code) */
-#undef HAVE_LIBPTHREAD
-
-/* Define to 1 if you have the `qt-mt' library (-lqt-mt). */
-#undef HAVE_LIBQT_MT
-
/* Defined if you have libthai and want to have it compiled in */
#undef HAVE_LIBTHAI
@@ -413,9 +390,6 @@
/* Define to 1 if you have the <net/if.h> header file. */
#cmakedefine HAVE_NET_IF_H 1
-/* Define to 1 if you have the <nl_types.h> header file. */
-#undef HAVE_NL_TYPES_H
-
/* Define if system has non-POSIX extensions to the ACL support. */
#cmakedefine HAVE_NON_POSIX_ACL_EXTENSIONS 1
@@ -471,7 +445,7 @@
#cmakedefine HAVE_RES_INIT 1
/* Define if you have the res_init prototype */
-#undef HAVE_RES_INIT_PROTO
+#cmakedefine HAVE_RES_INIT_PROTO
/* Define if revoke(tty) is present in unistd.h */
#cmakedefine HAVE_REVOKE 1
@@ -594,13 +568,19 @@
#cmakedefine HAVE_STRUCT_SOCKADDR_IN6 1
/* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */
-#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
+#cmakedefine HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
/* Define to 1 if `sa_len' is member of `struct sockaddr'. */
-#undef HAVE_STRUCT_SOCKADDR_SA_LEN
+#cmakedefine HAVE_STRUCT_SOCKADDR_SA_LEN 1
+
+/* Define to 1 if `sin_len' is member of `struct sockaddr_in'. */
+#cmakedefine HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
+
+/* Define to 1 if `sun_len' is member of `struct sockaddr_un'. */
+#cmakedefine HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
/* Define if struct ucred is present from sys/socket.h */
-#undef HAVE_STRUCT_UCRED
+#cmakedefine HAVE_STRUCT_UCRED 1
/* Define to 1 if you have the <sysent.h> header file. */
#cmakedefine HAVE_SYSENT_H 1