1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

[meson] Check for _SC_PAGE_SIZE

This commit is contained in:
Witold Filipczyk 2024-04-19 17:54:14 +02:00
parent 6f54c89ab4
commit 5f68d5f9ff

View File

@ -1096,10 +1096,16 @@ if compiler.has_function('strtoul', prefix: '#include <stdlib.h>')
conf_data.set('HAVE_STRTOUL', 1)
endif
if compiler.compiles('int a; typeof(a) b;')
if compiler.compiles('int a; typeof(a) b;', name: 'typeof')
conf_data.set('HAVE_TYPEOF', 1)
endif
if compiler.compiles('''#include <unistd.h>
int func(void) { return sysconf(_SC_PAGE_SIZE); }
''', name: '_SC_PAGE_SIZE')
conf_data.set('HAVE_SC_PAGE_SIZE', 1)
endif
conf_data.set('ICONV_CONST', true)
sysconfdir = get_option('prefix') / get_option('sysconfdir')/'elinks'