From 21711cba0c0aabc6df2ea26b83a23a5440793c2b Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 18 Apr 2005 11:09:44 +0000 Subject: [PATCH] E.A. : Add a SWIG_VERSION variable --- salome_adm/unix/config_files/check_swig.m4 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/salome_adm/unix/config_files/check_swig.m4 b/salome_adm/unix/config_files/check_swig.m4 index 10408c009..c7f60cfcb 100644 --- a/salome_adm/unix/config_files/check_swig.m4 +++ b/salome_adm/unix/config_files/check_swig.m4 @@ -39,6 +39,16 @@ then AC_MSG_RESULT(swig not in PATH variable) fi +if test "x$swig_ok" = "xyes" ; then + AC_MSG_CHECKING(for swig version) + $SWIG -version > .swig_version 2>&1 + SWIG_VERSION=`cat .swig_version | awk 'NR==2 {print $(3)}'` + # SWIG_VERSION=${SWIG_VERSION::6} # convert 1.3.17u-20040526-1709 into 1.3.17 for instance + rm .swig_version + AC_MSG_RESULT($SWIG_VERSION) + exit +fi + if test "x$swig_ok" = "xyes" then AC_MSG_CHECKING(python wrapper generation with swig) @@ -57,6 +67,7 @@ EOF AC_MSG_RESULT($swig_ok) fi +AC_SUBST(SWIG_VERSION) AC_SUBST(SWIG_FLAGS) AC_SUBST(SWIG) -- 2.39.2