From: vsr Date: Fri, 25 Jun 2010 12:54:19 +0000 (+0000) Subject: Improve check vtk procedure (if Paraview version is not clearly specified in the... X-Git-Tag: V6_1_0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=587250dfa3454d103a84e28edb9ac27319a0f38e;p=modules%2Fgui.git Improve check vtk procedure (if Paraview version is not clearly specified in the environment). --- diff --git a/adm_local/unix/config_files/check_vtk.m4 b/adm_local/unix/config_files/check_vtk.m4 index 49485ba3b..5a07570e4 100644 --- a/adm_local/unix/config_files/check_vtk.m4 +++ b/adm_local/unix/config_files/check_vtk.m4 @@ -164,6 +164,14 @@ dnl Check VTK from ParaView. if test "x$PVHOME" != "x" ; then + if test "x$PVVERSION" = "x" ; then + for suffix in 3.7 3.8 ; do + if test -f $PVHOME/include/paraview-$suffix/vtkPVConfig.h ; then + PVVERSION=$suffix + break; + fi + done + fi if test "x$PVVERSION" = "x" ; then PVVERSION=`basename $PVHOME | sed -e "s,[[^-]]*,,"` else