abinfo "Detecting clang headers location ..."
# NOTE: The location will change with each LLVM release, so we need to search for it
LLVMDIR="$(llvm-config --prefix)"
LLVMMAJOR="$(llvm-config --version)"
LLVMMAJOR="${LLVMMAJOR%%.*}"
# You may have to export this.
export INC_LOCATION="$LLVMDIR"/lib/clang/"$LLVMMAJOR"/include

abinfo "Making symlinks to system clang headers ..."
install -d "$PKGDIR/usr/share/castxml/clang"
ln -sv "${INC_LOCATION}" "$PKGDIR/usr/share/castxml/clang/include"
