1AC_INIT(iec16022, 0.3.0, Reimar.Doeffinger@gmx.de)
2AM_INIT_AUTOMAKE([subdir-objects no-dist-gzip dist-xz])
3m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
4AM_MAINTAINER_MODE
5
6AM_CONFIG_HEADER(config.h)
7
8
9dnl
10dnl LIB API versioning
11dnl
12dnl From the libtool manual:
13dnl 1. Start with version information of `0:0:0' for each libtool library.
14dnl 2. Update the version information only immediately before a public release.
15dnl    More frequent updates are unnecessary, and only guarantee that the current
16dnl    interface number gets larger faster.
17dnl 3. If the library source code has changed at all since the last update, then increment
18dnl    revision (`c:r:a' becomes `c:r+1:a').
19dnl 4. If any interfaces have been added, removed, or changed since the last update,
20dnl    increment current, and set revision to 0.
21dnl 5. If any interfaces have been added since the last public release, then increment age.
22dnl 6. If any interfaces have been removed since the last public release, then set age
23dnl    to 0.
24LT_VERSION_C=0
25LT_VERSION_R=1
26LT_VERSION_A=0
27
28AC_SUBST(LT_VERSION_C)
29AC_SUBST(LT_VERSION_R)
30AC_SUBST(LT_VERSION_A)
31
32
33dnl
34dnl Require programs
35dnl
36AC_PROG_CC
37AM_PROG_CC_C_O
38AC_PROG_INSTALL
39AC_PROG_LIBTOOL
40
41dnl
42dnl Required headers
43dnl
44AC_HEADER_STDC
45
46dnl
47dnl Checks for typedefs, structures, and compiler characteristics.
48dnl
49AC_HEADER_TIME
50
51AC_CHECK_LIB([popt], [main], [ ],AC_MSG_ERROR([Missing library: popt not found.]))
52AC_CHECK_LIB([z], [main],,AC_MSG_ERROR([Missing library: zlib not found.]))
53
54dnl Output the files
55AC_OUTPUT([
56Makefile
57test/Makefile
58libiec16022.pc
59iec16022.1
60])
61