-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfigure.ac
63 lines (48 loc) · 2.25 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
# Define package version here.
#
# CW_VERSION_MAJOR : Increment when the whole library was rewritten; or some VERY MAJOR change was made.
# CW_VERSION_MINOR : Increment when major changes have occured, like removing interfaces.
# CW_VERSION_REVISION : Increment every public release; or set to 0 when CW_VERSION_MINOR was incremented.
define(CW_VERSION_MAJOR, 0)
define(CW_VERSION_MINOR, 1)
define(CW_VERSION_REVISION, 2)
# Package name and bug reporting.
define(CW_PACKAGE_NAME, [libmemleak])
define(CW_BUGREPORT, [[email protected]])
# Version info, see http://www.gnu.org/software/libtool/manual.html#Updating-version-info
#
# CW_INTERFACE_VERSION : Current interface version, increment whenever the interface is changed.
# CW_INTERFACE_VERSION_REVISION : Revision, increment every public release; or set to 0 when the interface is changed.
# CW_INTERFACE_AGE : Increment if interfaces have been added; or set to 0 when interfaces have been removed.
define(CW_INTERFACE_VERSION, 0)
define(CW_INTERFACE_VERSION_REVISION, 3)
define(CW_INTERFACE_AGE, 0)
# CW_COMPILE_FLAGS may contain warning flags, but also default debug flags (-g*)
# and optimization flags (-O*) that which will be stripped when not required.
define(CW_COMPILE_FLAGS, [-W -Wall -Wundef -Wpointer-arith -Wwrite-strings -Winline])
# CW_THREADS can be [no] (single-threaded), [yes] (multi-threaded) or [both] (single and multi-threaded applications).
define(CW_THREADS, [yes])
# Include cwm4 header.
m4_include([cwm4/configure_ac_top.m4])
# We use doxygen for documentation.
CW_DOXYGEN([])
# These CFLAGS are used in the .pc file.
PCCFLAGS=
AC_SUBST(PCCFLAGS)
AC_CONFIG_FILES([libmemleak.pc])
# Detect libbfd and libreadline.
AC_CHECK_LIB(bfd, bfd_init, [LIBBFD=-lbfd])
AC_CHECK_LIB(readline, readline, [LIBREADLINE=-lreadline])
AC_CHECK_SIZEOF([time_t])
# Detect bfd_error_handler_type style.
CW_TYPE_BFD_ERROR_HANDLER_TYPE
AC_DEFINE_UNQUOTED([TARGET], ["$target_alias"], [The target architecture (must match BFD's target)])
AC_SUBST(LIBBFD)
AC_SUBST(LIBREADLINE)
# Output the other configuration files.
AC_CONFIG_FILES(
[src/Makefile]
[src/rb_tree/Makefile]
[src/include/Makefile])
# Include cwm4 footer.
m4_include([cwm4/configure_ac_bottom.m4])