From 587250dfa3454d103a84e28edb9ac27319a0f38e Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 25 Jun 2010 12:54:19 +0000 Subject: [PATCH] Improve check vtk procedure (if Paraview version is not clearly specified in the environment). --- adm_local/unix/config_files/check_vtk.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.2