mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
build: Fix enable-libmount=auto
This commit is contained in:
@@ -1492,7 +1492,7 @@ libmount_opt = get_option('enable-libmount')
|
|||||||
if host_system == 'linux' and libmount_opt != 'no'
|
if host_system == 'linux' and libmount_opt != 'no'
|
||||||
libmount_dep = [dependency('mount', version : '>=2.28', required : false)]
|
libmount_dep = [dependency('mount', version : '>=2.28', required : false)]
|
||||||
if not libmount_dep[0].found()
|
if not libmount_dep[0].found()
|
||||||
libmount_dep = [cc.find_library('mount')]
|
libmount_dep = [cc.find_library('mount', required : false)]
|
||||||
libmount_h = cc.has_header('libmount/libmount.h')
|
libmount_h = cc.has_header('libmount/libmount.h')
|
||||||
libmount_needed = libmount_opt == 'yes' and host_system == 'linux'
|
libmount_needed = libmount_opt == 'yes' and host_system == 'linux'
|
||||||
if libmount_needed and (not libmount_dep[0].found() or not libmount_h)
|
if libmount_needed and (not libmount_dep[0].found() or not libmount_h)
|
||||||
|
Reference in New Issue
Block a user