-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
74 lines (56 loc) · 1.66 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
dnl jwSMTP library configure.ac file
dnl --------------------------------
dnl --------------------------------
dnl Do mi checks 'ere
dnl --------------------------------
AC_INIT(jwsmtp/jwsmtp/jwsmtp.h)
AM_CONFIG_HEADER(config.h)
dnl -----------------------------------------------
dnl Package name and version number
dnl -----------------------------------------------
JWSMTP_LIBRARY_NAME=jwsmtp
#release versioning
JWSMTP_MAJOR_VERSION=1
JWSMTP_MINOR_VERSION=32
JWSMTP_MICRO_VERSION=15
# API version
JWSMTP_API_VERSION=1.32
AC_SUBST(JWSMTP_API_VERSION)
#shared library versioning
JWSMTP_LIBRARY_VERSION=2:8:2
dnl --------------------------------
dnl Package name and version number
dnl --------------------------------
AC_SUBST(JWSMTP_LIBRARY_VERSION)
PACKAGE=$JWSMTP_LIBRARY_NAME
AC_SUBST(JWSMTP_LIBRARY_NAME)
JWSMTP_VERSION=$JWSMTP_MAJOR_VERSION.$JWSMTP_MINOR_VERSION.$JWSMTP_MICRO_VERSION
JWSMTP_RELEASE=$JWSMTP_MAJOR_VERSION.$JWSMTP_MINOR_VERSION
AC_SUBST(JWSMTP_RELEASE)
AC_SUBST(JWSMTP_VERSION)
VERSION=$JWSMTP_VERSION
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
dnl -----------------------------------------------
dnl Checks for programs.
dnl -----------------------------------------------
AC_PROG_CC
AC_PROG_CXX
AM_PROG_LIBTOOL
AM_SANITY_CHECK
AC_LANG_CPLUSPLUS
dnl -----------------------------------------------
dnl The Makefiles
dnl
dnl update the pc filename to whatever version is now
dnl
dnl -----------------------------------------------
AC_OUTPUT(Makefile \
jwsmtp-1.32.pc \
jwsmtp/Makefile \
jwsmtp/jwsmtp/Makefile \
docs/Makefile \
)
AC_MSG_NOTICE([
to compile and install ${JWSMTP_LIBRARY_NAME}
make
make install])