From 87bcec81a5897e7201f983fe9ae154d7b9ebb11c Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Mon, 14 Sep 2015 12:59:28 +0200
Subject: [PATCH] Installation script remove unwanted prefix

---
 configure.ac | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 4bb5493..35ad7c8 100755
--- a/configure.ac
+++ b/configure.ac
@@ -18,7 +18,11 @@ CXXFLAGS+=" --std=c++11 -march=native -mtune=native -Wno-unused-local-typedefs -
 NVCCFLAGS=" "
 INCLUDES_PATH=" -Iconfig "
 
-# Add openfpm_pdata to prefix forlder
+# Add openfpm_io to prefix forlder (if prefix end if openfpm_pdata remove that path)
+if [ echo "$prefix" | grep -qE "/openfpm_pdata$" ]; then
+  prefix=$(echo "$prefix" | sed 's/\(.*\)\/openfpm_pdata$/\1/g')
+fi
+
 prefix="$prefix/openfpm_devices"
 echo "Installation dir is: $prefix"
 
-- 
GitLab