xref: /Universal-ctags/libreadtags/configure.ac (revision d5b81c4aa18f31534f9ed152bfb0988c340b28ff)
1# -*- Autoconf -*-
2AC_INIT(libreadtags, 0.1.0)
3AC_CONFIG_MACRO_DIR([m4])
4AC_CONFIG_SRCDIR([readtags.c])
5
6AM_INIT_AUTOMAKE
7AC_PROG_LIBTOOL
8
9# LT_VERSION => CURRENT[:REVISION[:AGE]]
10#
11# (the following instructions are taken from configure.ac in libskk)
12#
13# If library source has changed since last release, increment revision
14# If public symbols have been added, removed or changed since last release,
15#  increment current and set revision to 0
16# If public symbols have been added since last release, increment age
17# If public symbols have been removed since last release, set age to 0
18#
19# Revision history
20#
21# 0:0:0
22#    initial version; API is the same as readtags.h in Exuberant-ctags.
23#
24# 1:0:0
25#    introduced tagsGetErrno() and tagErrno.
26#    rename sortType to tagSortType.
27#
28# 2:0:1
29#    introduced TagErrnoFileMayTooBig.
30#
31AC_SUBST(LT_VERSION, [2:0:1])
32
33AC_ARG_ENABLE([gcov],
34	[AS_HELP_STRING([--enable-gcov],
35		[enable 'gcov' coverage testing tool [no]])])
36if test "${enable_gcov}" = "yes"; then
37	GCOV_CFLAGS="--coverage"
38fi
39AC_SUBST([GCOV_CFLAGS])
40
41AC_PROG_CC_C99
42
43AC_CONFIG_FILES([Makefile
44		libreadtags.pc
45		tests/Makefile])
46AC_OUTPUT
47