Packageconfig is used to differentiate between dependencies and compilation options of a software package under different conditions.
For example:
Packageconfig ?? = "$ {@ Base_contains ('distro _ features ', 'x11', 'x11','', d )}\
$ {@ Base_contains ('distro _ features ', 'directfb', 'directfb ', '', d )}"
Packageconfig [X11] = "-- with-X, -- without-X, $ {x11depends }"
Packageconfig [directfb] = ", directfb"
Usage instructions:
Packageconfig [Foo] = "-- enable-Foo, -- disable-Foo, foo_depends, foo_runtime_depends"
There are four parameters,
-- Enable-FOO: indicates that if Foo exists, enable it.
-- Disable-FOO: indicates that it cannot be used without Foo.
Foo_depends: indicates the compile-time dependency if Foo exists.
Foo_runtime_depends: indicates the runtime dependency if Foo exists.
The above example shows pango's Situation Based on X11 or direcrfb.
If it is based on X11 ($ {@ base_contains ('distro _ features ', 'x11', 'x11', '', d)}), then in configure, -- With-X, compile dependency $ {x11depends}
If it is based on direcrfb ($ {@ base_contains ('distro _ features ', 'directfb', 'directfb ', '', d)}), when you run confiure, -- without-X: Compilation dependency direcrfb