Index: third_party/xvfb/building/install-prereq |
=================================================================== |
--- third_party/xvfb/building/install-prereq (revision 0) |
+++ third_party/xvfb/building/install-prereq (working copy) |
@@ -11,7 +11,11 @@ |
export PKG_CONFIG_PATH="${PPATH}" |
function getxfromy() { |
- if [ \! -f "${PPATH}"/"$1".pc ] ; then |
+ case "$1" in |
+ */*) testpath="$1" ;; |
+ *) testpath="${PPATH}"/"$1".pc ;; |
+ esac |
+ if [ \! -f "${testpath}" ] ; then |
sudo apt-get install "$2" |
fi |
} |
@@ -38,3 +42,5 @@ |
getxfromy talloc libfontenc-dev |
getxfromy autoconf autoconf |
getxfromy libtool libtool |
+getxfromy ffi ffi-dev |
+getxfromy /usr/bin/llvm-config llvm-dev |