diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-03 14:34:53 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-03 14:34:53 +0000 |
commit | 5578723a05d79de57c4918c09f5c9b47c764ace7 (patch) | |
tree | e093f4af6af5374353b39d6f3db17a86ce759d72 /configure.ac | |
parent | 08f5082e136af01d94e301e74a24b04e41193b6f (diff) | |
download | gdbm-5578723a05d79de57c4918c09f5c9b47c764ace7.tar.gz gdbm-5578723a05d79de57c4918c09f5c9b47c764ace7.tar.bz2 |
Define Major,Minor numbers and Patchlevel separately.
(GDBM_VERSION_MAJOR,GDBM_VERSION_MINOR)
(GDBM_VERSION_PATCH): New substitution variables.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3e7f09e..4dac1ce 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -11,20 +11,30 @@ | |||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | # GNU General Public License for more details. | 12 | # GNU General Public License for more details. |
13 | # | 13 | # |
14 | # You should have received a copy of the GNU General Public License | 14 | # You should have received a copy of the GNU General Public License |
15 | # along with GDBM. If not, see <http://www.gnu.org/licenses/>. */ | 15 | # along with GDBM. If not, see <http://www.gnu.org/licenses/>. */ |
16 | 16 | ||
17 | AC_INIT([gdbm], [1.9.0], [bug-gdbm@gnu.org]) | 17 | m4_define([_GDBM_VERSION_MAJOR], 1) |
18 | m4_define([_GDBM_VERSION_MINOR], 9) | ||
19 | m4_define([_GDBM_VERSION_PATCH], 0) | ||
20 | |||
21 | AC_INIT([gdbm], | ||
22 | [_GDBM_VERSION_MAJOR._GDBM_VERSION_MINOR[]m4_ifdef([_GDBM_VERSION_PATCH],._GDBM_VERSION_PATCH)], | ||
23 | [bug-gdbm@gnu.org]) | ||
18 | AC_PREREQ(2.59) | 24 | AC_PREREQ(2.59) |
19 | AC_CONFIG_SRCDIR([src/gdbmdefs.h]) | 25 | AC_CONFIG_SRCDIR([src/gdbmdefs.h]) |
20 | AC_CONFIG_AUX_DIR([build-aux]) | 26 | AC_CONFIG_AUX_DIR([build-aux]) |
21 | AC_CONFIG_HEADERS([autoconf.h]) | 27 | AC_CONFIG_HEADERS([autoconf.h]) |
22 | AC_CONFIG_MACRO_DIR([m4]) | 28 | AC_CONFIG_MACRO_DIR([m4]) |
23 | AM_INIT_AUTOMAKE([1.8.5 std-options]) | 29 | AM_INIT_AUTOMAKE([1.8.5 std-options]) |
24 | 30 | ||
31 | AC_SUBST([GDBM_VERSION_MAJOR], _GDBM_VERSION_MAJOR) | ||
32 | AC_SUBST([GDBM_VERSION_MINOR], _GDBM_VERSION_MINOR) | ||
33 | AC_SUBST([GDBM_VERSION_PATCH], m4_ifdef([_GDBM_VERSION_PATCH],_GDBM_VERSION_PATCH,0)) | ||
34 | |||
25 | AC_ARG_ENABLE([memory-mapped-io], | 35 | AC_ARG_ENABLE([memory-mapped-io], |
26 | AC_HELP_STRING( | 36 | AC_HELP_STRING( |
27 | [--enable-memory-mapped-io] | 37 | [--enable-memory-mapped-io] |
28 | [Use mmap(2) for disk I/O. (Default is YES.)]), | 38 | [Use mmap(2) for disk I/O. (Default is YES.)]), |
29 | [mapped_io=$enableval], | 39 | [mapped_io=$enableval], |
30 | [mapped_io=yes]) | 40 | [mapped_io=yes]) |
@@ -98,10 +108,11 @@ AM_CONDITIONAL([ENABLE_EXPORT], [test "$want_export" = yes]) | |||
98 | AC_CONFIG_TESTDIR(tests) | 108 | AC_CONFIG_TESTDIR(tests) |
99 | AC_CONFIG_FILES([tests/Makefile tests/atlocal]) | 109 | AC_CONFIG_FILES([tests/Makefile tests/atlocal]) |
100 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) | 110 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) |
101 | 111 | ||
102 | AC_CONFIG_FILES([Makefile | 112 | AC_CONFIG_FILES([Makefile |
103 | src/Makefile | 113 | src/Makefile |
114 | src/gdbm.h | ||
104 | doc/Makefile | 115 | doc/Makefile |
105 | compat/Makefile | 116 | compat/Makefile |
106 | export/Makefile]) | 117 | export/Makefile]) |
107 | AC_OUTPUT | 118 | AC_OUTPUT |