]> gitweb @ CieloNegro.org - autobuild.git/blobdiff - lib/setPath.bash
support for PKG_CONFIG_PATH
[autobuild.git] / lib / setPath.bash
index 5158dd64e1e785c4e69e28a475e847c038170c71..f41363fb9deba77bad72095311870c2ca031f437 100644 (file)
@@ -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
 }