From 1469eeae0ed28d83c99a14765ca6314e57ceb3b1 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 17 Feb 2011 15:09:23 +0000 Subject: [PATCH] Improve the way VTK in PARAVIEW is detected --- salome_adm/unix/config_files/check_vtk.m4 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/salome_adm/unix/config_files/check_vtk.m4 b/salome_adm/unix/config_files/check_vtk.m4 index 48cf22f0c..5aac05ddb 100644 --- a/salome_adm/unix/config_files/check_vtk.m4 +++ b/salome_adm/unix/config_files/check_vtk.m4 @@ -172,6 +172,16 @@ if test "x$PVHOME" != "x" ; then fi done fi + if test "x$PVVERSION" = "x" ; then + ls -1d $PVHOME/include/paraview-* > /dev/null 2>&1 + if test $? = 0 ; then + nb=$(ls -1d $PVHOME/include/paraview-* | wc -l) + if test $nb = 1 ; then + d=$(ls -1d $PVHOME/include/paraview-*) + PVVERSION=$(echo $d | awk -F "-" '{print $(NF)}') + fi + fi + fi if test "x$PVVERSION" = "x" ; then PVVERSION=`basename $PVHOME | sed -e "s,[[^-]]*,,"` else -- 2.39.2