paraviewdir=`printenv PVHOME`/lib
# qt dir
qtdir=`printenv QTDIR`/lib
+# distene meshgems dir
+if test `uname -m` = "x86_64" ; then
+ mgemsdir=`printenv MESHGEMSHOME`/lib/Linux_64
+else
+ mgemsdir=`printenv MESHGEMSHOME`/lib/Linux
+fi
for l in X ${la_files}; do
sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*ParaView-[0-9]\.[0-9]\+\.[0-9]/lib% \1${paraviewdir}%g" $l
fi
+ # . process DISTENE MeshGems dependencies
+ if [ -n "${mgemsdir}" ] && [ -d "${mgemsdir}" ] ; then
+ sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*MeshGems-[0-9.]\+/Products/lib/Linux\(_64\)\?% \1${mgemsdir}%g" $l
+ fi
+
fi
done