From: gdd Date: Fri, 13 May 2011 12:48:51 +0000 (+0000) Subject: Check if GHS3D_VERSION is already defined X-Git-Tag: V6_3_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=154ebdfc444578fb4afafe39d2b3cb0e722310bf;p=plugins%2Fhybridplugin.git Check if GHS3D_VERSION is already defined --- diff --git a/configure.ac b/configure.ac index 78ddc3b..b648590 100644 --- a/configure.ac +++ b/configure.ac @@ -353,8 +353,11 @@ echo CHECK_GHS3D if test "${GHS3D_ok}" = "yes"; then - GHS3D_VERSION=`ghs3d -u |grep "TETMESH-GHS3D SOFTWARE"|awk '{print $3}'|awk -F- '{print $1}'|awk -F. '{print $1$2}'` - AC_DEFINE_UNQUOTED(GHS3D_VERSION,${GHS3D_VERSION}) + if test "x$GHS3D_VERSION" = "x" + then + GHS3D_VERSION=`ghs3d -u |grep "TETMESH-GHS3D SOFTWARE"|awk '{print $3}'|awk -F- '{print $1}'|awk -F. '{print $1$2}'` + fi + AC_DEFINE_UNQUOTED(GHS3D_VERSION,${GHS3D_VERSION}) fi echo