X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=autobuild.git;a=blobdiff_plain;f=lib%2FsetPath.bash;fp=lib%2FsetPath.bash;h=f41363fb9deba77bad72095311870c2ca031f437;hp=5158dd64e1e785c4e69e28a475e847c038170c71;hb=4dd854cdecf6e203ea3966969332a592a826ffe5;hpb=06b06f86e46f398819ce2f73245041c540c8b87a diff --git a/lib/setPath.bash b/lib/setPath.bash index 5158dd6..f41363f 100644 --- a/lib/setPath.bash +++ b/lib/setPath.bash @@ -21,8 +21,16 @@ function setPath () { done esac - # THINKME: Special case for PATH: we prepend "$prefix/bin" to it. - if [[ $var = "PATH" ]]; then - PATH="$prefix/bin:$PATH" - fi + case "$var" in + "PATH") + # THINKME: Special case for PATH: we prepend "$prefix/bin" + # to it. + PATH="$prefix/bin:$PATH";; + "PKG_CONFIG_PATH") + # THINKME: Special case for PKG_CONFIG_PATH: we prepend + # "$prefix/lib/pkgconfig" to it. + PKG_CONFIG_PATH="$prefix/lib/pkgconfig";; + *) + ;; + esac }