mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Check for zlib header
It is not enough to check for the library, we also need zlib.h installed to be able to use it. Autotools were also checking for the header.
This commit is contained in:
parent
b660a67cb3
commit
c49ed610ed
@ -1765,10 +1765,9 @@ if not libz_dep.found()
|
|||||||
libz_dep = cc.find_library('zlib', required : false)
|
libz_dep = cc.find_library('zlib', required : false)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
if not libz_dep.found() or not cc.has_header('zlib.h')
|
||||||
|
libz_dep = subproject('zlib').get_variable('zlib_dep')
|
||||||
if not libz_dep.found()
|
endif
|
||||||
libz_dep = subproject('zlib').get_variable('zlib_dep')
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# First check in libc, fallback to libintl, and as last chance build
|
# First check in libc, fallback to libintl, and as last chance build
|
||||||
|
Loading…
Reference in New Issue
Block a user