1diff --git a/meson.build b/meson.build
2index a8b02b4..dd31a76 100644
3--- a/meson.build
4+++ b/meson.build
5@@ -67,7 +67,7 @@ test = find_program('test')
6 with_docs = get_option('with_docs')
7 if with_docs
8 gtkdoc = dependency('gtk-doc')
9- glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
10+ glib_docpath = join_paths('@glib_devdoc@', 'share', 'gtk-doc', 'html')
11
12 ret = run_command ([test, '-e', join_paths(glib_docpath, 'glib/index.html')])
13 if ret.returncode() != 0