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
}