Mercurial > nxg > jason
annotate configure.ac @ 15:81e6d0fe8198 default tip
Update README
author | Norman Gray <norman.gray@glasgow.ac.uk> |
---|---|
date | Sun, 31 May 2020 20:47:28 +0100 |
parents | 66c52351ea94 |
children |
rev | line source |
---|---|
0
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
1 dnl Make release version numbers match /^[0-9.]*$/ |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
2 dnl Experimental ones are ...x, and betas are ...bn |
9 | 3 AC_INIT(jason, 0.2x, norman@astro.gla.ac.uk) |
4 AC_DEFINE(RELEASE_DATE, "2013 XXX XX", [Release date of the current version]) | |
1
8834a6154573
Library version functions
Norman Gray <norman@astro.gla.ac.uk>
parents:
0
diff
changeset
|
5 |
8834a6154573
Library version functions
Norman Gray <norman@astro.gla.ac.uk>
parents:
0
diff
changeset
|
6 AC_SUBST(LIBRARY_HOMEPAGE, [http://bitbucket.org/nxg/jason]) |
0
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
7 |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
8 dnl Embed a snapshot identifier in the binary, if it's not a release version |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
9 if expr $PACKAGE_VERSION : ['[0-9.]*$'] >/dev/null; then |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
10 # release version: empty string identifies release version |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
11 SNAPSHOTID="" |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
12 else |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
13 SNAPSHOTID="`hg id`" |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
14 fi |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
15 AC_DEFINE_UNQUOTED([SNAPSHOTID], |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
16 ["$SNAPSHOTID"], |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
17 [Description of snapshot, or blank if release version]) |
1
8834a6154573
Library version functions
Norman Gray <norman@astro.gla.ac.uk>
parents:
0
diff
changeset
|
18 PACKAGE_VERSION_INTEGER=[`echo ${PACKAGE_VERSION}-0 | awk -F'[^0-9]*' '{printf "%d 1000000* %d 1000* %d++p", $1,$2,$3}' | dc`] |
8834a6154573
Library version functions
Norman Gray <norman@astro.gla.ac.uk>
parents:
0
diff
changeset
|
19 AC_SUBST(PACKAGE_VERSION_INTEGER) |
8834a6154573
Library version functions
Norman Gray <norman@astro.gla.ac.uk>
parents:
0
diff
changeset
|
20 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_INTEGER], |
8834a6154573
Library version functions
Norman Gray <norman@astro.gla.ac.uk>
parents:
0
diff
changeset
|
21 [$PACKAGE_VERSION_INTEGER], |
8834a6154573
Library version functions
Norman Gray <norman@astro.gla.ac.uk>
parents:
0
diff
changeset
|
22 [Version number as an integer: major*1e6+minor*1e3+release]) |
0
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
23 |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
24 AC_CONFIG_AUX_DIR([m4]) dnl tidy these away |
1
8834a6154573
Library version functions
Norman Gray <norman@astro.gla.ac.uk>
parents:
0
diff
changeset
|
25 AC_CONFIG_HEADERS([src/config.h]) |
0
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
26 |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
27 AM_INIT_AUTOMAKE |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
28 LT_INIT |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
29 AC_CONFIG_MACRO_DIR([m4]) |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
30 AM_SILENT_RULES([yes]) dnl add V=1 to make to get chatter back |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
31 |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
32 AC_CONFIG_SRCDIR(README.md) |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
33 |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
34 AC_C_BIGENDIAN |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
35 |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
36 AC_PROG_CC |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
37 |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
38 AC_PROG_LEX |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
39 AC_PATH_PROG(BISON, bison) |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
40 dnl AC_PROG_YACC |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
41 |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
42 dnl Output |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
43 AC_CONFIG_FILES([Makefile src/Makefile src/test/Makefile]) |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
44 |
1b3f35f9f37f
Initial version, copied from dtmfx tree
Norman Gray <norman@astro.gla.ac.uk>
parents:
diff
changeset
|
45 AC_OUTPUT |