/[GiNaC]/configure.ac
ViewVC logotype

Diff of /configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21.2.1 by cbauer, Mon Feb 21 16:37:56 2005 UTC revision 1.21.2.2 by vollinga, Fri Jul 1 17:15:44 2005 UTC
# Line 1  Line 1 
1  dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
2    
 AC_INIT  
 AC_CONFIG_SRCDIR(ginac/basic.cpp)  
 AC_PREREQ(2.50)  
   
3  dnl GiNaC library version information.  dnl GiNaC library version information.
4  dnl  dnl
5  dnl Making releases:  dnl Making releases:
6  dnl   GINACLIB_MICRO_VERSION += 1;  dnl   ginac_micro_version += 1;
7  dnl   GINACLIB_INTERFACE_AGE += 1;  dnl   ginac_interface_age += 1;
8  dnl   GINACLIB_BINARY_AGE += 1;  dnl   ginac_binary_age += 1;
9  dnl if any functions have been added, set GINACLIB_INTERFACE_AGE to 0.  dnl if any functions have been added, set ginac_interface_age to 0.
10  dnl if backwards compatibility has been broken,  dnl if backwards compatibility has been broken,
11  dnl set GINACLIB_BINARY_AGE and GINACLIB_INTERFACE_AGE to 0.  dnl set ginac_binary_age and ginac_interface_age to 0.
12  dnl  
13  dnl NOTE: these can't be renamed to GINAC_MAJOR_VERSION etc. because  m4_define([ginac_major_version], [1])
14  dnl autoconf sees "AC_MAJOR_VERSION" and complains about an undefined macro  m4_define([ginac_minor_version], [3])
15  dnl (don't we all *love* M4?)...  m4_define([ginac_micro_version], [1])
16    m4_define([ginac_version], [ginac_major_version.ginac_minor_version.ginac_micro_version])
17  GINACLIB_MAJOR_VERSION=1  m4_define([ginac_release], [ginac_major_version.ginac_minor_version])
18  GINACLIB_MINOR_VERSION=3  m4_define([ginac_interface_age], [0])
19  GINACLIB_MICRO_VERSION=1  m4_define([ginac_binary_age], [1])
 GINACLIB_INTERFACE_AGE=0  
 GINACLIB_BINARY_AGE=1  
 GINACLIB_VERSION=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION.$GINACLIB_MICRO_VERSION  
20    
21    AC_INIT([GiNaC], ginac_version, [<ginac-bugs@ginac.de>])
22    AC_PREREQ(2.52)
23    AC_CONFIG_SRCDIR(ginac/basic.cpp)
24    AC_CONFIG_HEADERS(config.h)
25    dnl This defines PACKAGE and VERSION.
26    AM_INIT_AUTOMAKE([gnu 1.7 dist-bzip2])
27    
28    dnl Process GiNaC version information
29    GINACLIB_MAJOR_VERSION=ginac_major_version
30    GINACLIB_MINOR_VERSION=ginac_minor_version
31    GINACLIB_MICRO_VERSION=ginac_micro_version
32    GINACLIB_VERSION=ginac_version
33  AC_SUBST(GINACLIB_MAJOR_VERSION)  AC_SUBST(GINACLIB_MAJOR_VERSION)
34  AC_SUBST(GINACLIB_MINOR_VERSION)  AC_SUBST(GINACLIB_MINOR_VERSION)
35  AC_SUBST(GINACLIB_MICRO_VERSION)  AC_SUBST(GINACLIB_MICRO_VERSION)
 AC_SUBST(GINACLIB_INTERFACE_AGE)  
 AC_SUBST(GINACLIB_BINARY_AGE)  
36  AC_SUBST(GINACLIB_VERSION)  AC_SUBST(GINACLIB_VERSION)
37    
38  dnl GiNaC archive file version information.  dnl GiNaC archive file version information.
# Line 50  AC_DEFINE_UNQUOTED(ARCHIVE_VERSION, $ARC Line 53  AC_DEFINE_UNQUOTED(ARCHIVE_VERSION, $ARC
53  AC_DEFINE_UNQUOTED(ARCHIVE_AGE, $ARCHIVE_AGE, [GiNaC archive file version age])  AC_DEFINE_UNQUOTED(ARCHIVE_AGE, $ARCHIVE_AGE, [GiNaC archive file version age])
54    
55  dnl libtool versioning  dnl libtool versioning
56  LT_RELEASE=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION  m4_define([lt_revision], [ginac_interface_age])
57  LT_CURRENT=`expr $GINACLIB_MICRO_VERSION - $GINACLIB_INTERFACE_AGE`  m4_define([lt_current], [m4_eval(ginac_micro_version - ginac_interface_age)])
58  LT_REVISION=$GINACLIB_INTERFACE_AGE  m4_define([lt_age], [m4_eval(ginac_binary_age - ginac_interface_age)])
59  LT_AGE=`expr $GINACLIB_BINARY_AGE - $GINACLIB_INTERFACE_AGE`  LT_VERSION_INFO="lt_current:lt_revision:lt_age"
60    LT_RELEASE="ginac_release"
61    
62    AC_SUBST(LT_VERSION_INFO)
63  AC_SUBST(LT_RELEASE)  AC_SUBST(LT_RELEASE)
 AC_SUBST(LT_CURRENT)  
 AC_SUBST(LT_REVISION)  
 AC_SUBST(LT_AGE)  
64    
 dnl This defines PACKAGE and VERSION.  
 AM_CONFIG_HEADER(config.h)  
 AM_INIT_AUTOMAKE([GiNaC], $GINACLIB_VERSION)  
65    
66  dnl Check for the compiler and all the utilities needed for the build.  dnl Check for the compiler and all the utilities needed for the build.
67  AC_PROG_CXX  AC_PROG_CXX

Legend:
Removed from v.1.21.2.1  
changed lines
  Added in v.1.21.2.2

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.15