]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: actually honor pkgconfig*dir options (#9841)
authorBenedikt Morbach <benedikt.morbach@googlemail.com>
Fri, 10 Aug 2018 02:59:54 +0000 (04:59 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 10 Aug 2018 02:59:54 +0000 (11:59 +0900)
both were silently ignored leading to some of the pkg-config files
ending up in the wrong place

meson.build
meson_options.txt

index 9bfe112d3034d80478141ed69ce9ba25c5f35c3c..f79ac4b12e78c32c72bacd68267843612f76100b 100644 (file)
@@ -90,8 +90,8 @@ if rootlibdir == ''
 endif
 
 # Dirs of external packages
-pkgconfigdatadir = join_paths(datadir, 'pkgconfig')
-pkgconfiglibdir = join_paths(libdir, 'pkgconfig')
+pkgconfigdatadir = get_option('pkgconfigdatadir') == '' ? join_paths(datadir, 'pkgconfig') : get_option('pkgconfigdatadir')
+pkgconfiglibdir = get_option('pkgconfiglibdir') == '' ? join_paths(libdir, 'pkgconfig') : get_option('pkgconfiglibdir')
 polkitpolicydir = join_paths(datadir, 'polkit-1/actions')
 polkitrulesdir = join_paths(datadir, 'polkit-1/rules.d')
 polkitpkladir = join_paths(localstatedir, 'lib/polkit-1/localauthority/10-vendor.d')
index a927473b9b235da049ff06fc119cd904c2f398d6..e3140c8c1106f305001b27ed39910e1b3bc9c663 100644 (file)
@@ -130,7 +130,7 @@ option('dbussessionservicedir', type : 'string',
        description : 'D-Bus session service directory')
 option('dbussystemservicedir', type : 'string',
        description : 'D-Bus system service directory')
-option('pkgconfigdatadir', type : 'string', value : 'share/pkgconfig',
+option('pkgconfigdatadir', type : 'string', value : '',
        description : 'directory for ')
 option('pkgconfiglibdir', type : 'string', value : '',
        description : 'directory for ')