1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

build: Fix config.h macros

We have to emulate AC_CHECK_DECLS. Instead of leaving the macro
undefined if a symbol wasn't found, it has to be set to 0.
This commit is contained in:
Nick Wellnhofer 2024-07-22 17:25:15 +02:00
parent 095b3c7faf
commit 7c10393fc0
2 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,14 @@
/* Define to 1 if you have the <arpa/inet.h> header file. */
#cmakedefine HAVE_ARPA_INET_H 1
/* Define to 1 if you have the declaration of 'getentropy', and to 0 if you
don't. */
#cmakedefine01 HAVE_DECL_GETENTROPY
/* Define to 1 if you have the declaration of 'mmap', and to 0 if you don't.
*/
#cmakedefine01 HAVE_DECL_MMAP
/* Define if __attribute__((destructor)) is accepted */
#cmakedefine HAVE_FUNC_ATTRIBUTE_DESTRUCTOR 1
@ -13,18 +21,12 @@
/* Define to 1 if you have the <dl.h> header file. */
#cmakedefine HAVE_DL_H 1
/* Define to 1 if you have the `getentropy' function. */
#cmakedefine HAVE_DECL_GETENTROPY 1
/* Define if history library is there (-lhistory) */
#cmakedefine HAVE_LIBHISTORY 1
/* Define if readline library is there (-lreadline) */
#cmakedefine HAVE_LIBREADLINE 1
/* Define to 1 if you have the `mmap' function. */
#cmakedefine HAVE_DECL_MMAP 1
/* Define to 1 if you have the <netdb.h> header file. */
#cmakedefine HAVE_NETDB_H 1

View File

@ -261,9 +261,7 @@ xml_check_functions = [
]
foreach function : xml_check_functions
if cc.has_header_symbol(function[1], function[0])
config_h.set10(function[2], true)
endif
config_h.set10(function[2], cc.has_header_symbol(function[1], function[0]))
endforeach
# library