]> gitweb @ CieloNegro.org - autobuild.git/blobdiff - lib/setPath.bash
distcheck should set DISTCHECK_CONFIGURE_FLAGS properly.
[autobuild.git] / lib / setPath.bash
index 5158dd64e1e785c4e69e28a475e847c038170c71..057a0f40541b75fd7a193159e4f2edcbe4adea9f 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:$PKG_CONFIG_PATH";;
+        *)
+            ;;
+    esac
 }