From 3800e5bc3ccaab9217a1cdde552377bae161a12e Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 2 Jun 2005 13:44:53 +0000 Subject: [PATCH] If VTKHOME is not defined, search in /usr --- salome_adm/unix/config_files/check_vtk.m4 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/salome_adm/unix/config_files/check_vtk.m4 b/salome_adm/unix/config_files/check_vtk.m4 index 4b4b1454f..066aeb1ca 100644 --- a/salome_adm/unix/config_files/check_vtk.m4 +++ b/salome_adm/unix/config_files/check_vtk.m4 @@ -62,7 +62,14 @@ TRY_LINK_LIBS="-lvtkCommon $OGL_LIBS $LXLIB -lX11 -lXt" if test -z $VTKHOME then AC_MSG_WARN(undefined VTKHOME variable which specify where vtk was compiled) -else + if test -f /usr/include/vtk/vtkPlane.h ; then + AC_MSG_RESULT(trying /usr) + VTKHOME="/usr" + fi +fi + +if test ! -z $VTKHOME +then LOCAL_INCLUDES="-I$VTKHOME/include/vtk $LOCAL_INCLUDES" LOCAL_LIBS="-L$VTKHOME/lib/vtk $LOCAL_LIBS" TRY_LINK_LIBS="-L$VTKHOME/lib/vtk $TRY_LINK_LIBS" -- 2.39.2