build: Add missing host system checks for Android

This commit is contained in:
Ole André Vadla Ravnås 2020-11-11 21:05:28 +01:00
parent 01b77666bc
commit 7b7f987a36
4 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
name : 'printf supports the \'F\' directive')
gl_cv_func_printf_directive_f = run_result.compiled() and run_result.returncode() == 0
else
if host_system == 'linux'
if host_system in ['linux', 'android']
gl_cv_func_printf_directive_f = true
elif (host_system.startswith ('freebsd1') or
host_system.startswith ('freebsd2') or

View File

@ -28,7 +28,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
name : 'printf supports the zero flag correctly')
gl_cv_func_printf_flag_zero = run_result.compiled() and run_result.returncode() == 0
else
if host_system == 'linux'
if host_system in ['linux', 'android']
gl_cv_func_printf_flag_zero = true
elif host_system.startswith ('beos')
gl_cv_func_printf_flag_zero = true

View File

@ -82,7 +82,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
name : 'printf supports infinite \'double\' arguments')
gl_cv_func_printf_infinite = run_result.compiled() and run_result.returncode() == 0
else
if host_system == 'linux'
if host_system in ['linux', 'android']
gl_cv_func_printf_infinite = true
elif (host_system.startswith ('freebsd1') or
host_system.startswith ('freebsd2') or

View File

@ -175,7 +175,7 @@ if gl_cv_func_printf_long_double
if host_machine.cpu_family() == 'x86_64'
gl_cv_func_printf_infinite_long_double = false
else
if host_system == 'linux'
if host_system in ['linux', 'android']
gl_cv_func_printf_infinite_long_double = true
elif (host_system.startswith ('freebsd1') or
host_system.startswith ('freebsd2') or