[Libclc-dev] [PATCH 1/1] Allow $PREFIX relative paths in pkgconfigdir
Jan Vesely
jan.vesely at rutgers.edu
Thu Dec 12 15:54:05 PST 2013
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
configure.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure.py b/configure.py
index 1c6929f..598bd51 100755
--- a/configure.py
+++ b/configure.py
@@ -51,7 +51,10 @@ if not includedir:
pkgconfigdir = options.pkgconfigdir
if not pkgconfigdir:
- pkgconfigdir = os.path.join(prefix, 'share/pkgconfig')
+ pkconfigdir = 'share/pkgconfig'
+
+if not pkgconfigdir[0] == '/':
+ pkgconfigdir = os.path.join(prefix, pkgconfigdir)
def llvm_config(args):
try:
--
1.8.3.1
More information about the Libclc-dev
mailing list