]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Declare preprocessor variables DEAL_2_MAJOR/DEAL_2_MINOR
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 18 Sep 2000 07:35:59 +0000 (07:35 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 18 Sep 2000 07:35:59 +0000 (07:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@3326 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure.in

index 2e6569f39aa37c815712fe935024987817292b3b..59ac495a450d68270e27bcea982db590b6d21810 100644 (file)
@@ -22,6 +22,13 @@ dnl    Set the path to the deal.II libraries to `pwd`
 DEAL2_DIR=`pwd`
 AC_SUBST(DEAL2_DIR)
 
+dnl    Set major and minor version numbers of the deal.II library
+DEAL_2_MAJOR=`cat Version | perl -pi -e 's/^(\d+)\..*/$1/;'`
+DEAL_2_MINOR=`cat Version | perl -pi -e 's/^\d+\.(\d+).*/$1/;'`
+AC_DEFINE_UNQUOTED(DEAL_2_MAJOR, $DEAL_2_MAJOR)
+AC_DEFINE_UNQUOTED(DEAL_2_MINOR, $DEAL_2_MINOR)
+AC_MSG_RESULT(Configuring deal.II version `cat Version`)
+
 
 dnl    Check for machine type operating system
 AC_CANONICAL_SYSTEM

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.