File: configure.in

package info (click to toggle)
leakbug 0.1.5-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,120 kB
  • ctags: 80
  • sloc: sh: 6,935; ansic: 380; makefile: 137
file content (112 lines) | stat: -rw-r--r-- 3,053 bytes parent folder | download | duplicates (2)
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
dnl Process this file with autoconf to create configure.

AC_INIT(config.h.in)

dnl ################################################################
dnl # Version information
dnl ################################################################
LEAKBUG_MAJOR_VERSION=0
LEAKBUG_MINOR_VERSION=1
LEAKBUG_MICRO_VERSION=5

LEAKBUG_VERSION=$LEAKBUG_MAJOR_VERSION.$LEAKBUG_MINOR_VERSION.$LEAKBUG_MICRO_VERSION
AC_DEFINE_UNQUOTED(LEAKBUG_MAJOR_VERSION, $LEAKBUG_MAJOR_VERSION,
	[libleakbug major version.])
AC_DEFINE_UNQUOTED(LEAKBUG_MINOR_VERSION, $LEAKBUG_MINOR_VERSION,
	[libleakbug minor version.])
AC_DEFINE_UNQUOTED(LEAKBUG_MICRO_VERSION, $LEAKBUG_MICRO_VERSION,
	[libleakbug micro version.])
AC_DEFINE_UNQUOTED(LEAKBUG_VERSION, "$LEAKBUG_VERSION",
	[libleakbug version.])

dnl ################################################################
dnl # libtool versioning
dnl ################################################################
dnl #
dnl # +1 :  0 : +1   == new interface that does not break old one.
dnl # +1 :  0 :  0   == removed an interface. Breaks old apps.
dnl #  ? : +1 :  ?   == internal changes that doesn't break anything.
dnl #
dnl # CURRENT : REVISION : AGE
dnl #
LT_CURRENT=1
LT_REVISION=3
LT_AGE=0

LT_RELEASE=$LEAKBUG_MAJOR_VERSION.$LEAKBUG_MINOR_VERSION.$LEAKBUG_MICRO_VERSION

AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)

dnl ################################################################
dnl # Initialize automake
dnl ################################################################
VERSION=$LEAKBUG_VERSION
PACKAGE=leakbug

AM_INIT_AUTOMAKE($PACKAGE, $VERSION)

dnl ################################################################
dnl # Specify a header configuration file
dnl ################################################################
AM_CONFIG_HEADER(config.h)

dnl ################################################################
dnl # Check for some standard stuff.
dnl ################################################################
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL
AC_PROG_CC
AC_ARG_PROGRAM
AC_PROG_CPP
AC_PROG_MAKE_SET
AC_PROG_LN_S
AC_PROG_INSTALL

AC_C_CONST
AC_TYPE_SIZE_T
AC_EXEEXT
AC_HEADER_STDC

AC_CHECK_FUNCS(atexit on_exit)

dnl # Use wall if we have GCC
if test "x$GCC" = "xyes"; then
	CFLAGS="$CFLAGS -Wall"
fi

dnl ################################################################
dnl # Some substs and stuff
dnl ################################################################
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

dnl ################################################################
dnl # Output the Makefiles
dnl ################################################################
AC_OUTPUT([
leakbug.spec
leakbug-config
leakbug.m4
Doxyfile
Makefile
debian/Makefile
debian/rules
docs/Makefile
docs/api/Makefile
docs/api/html/Makefile
docs/api/man/Makefile
libleakbug/Makefile
tests/Makefile
])

AC_OUTPUT_COMMANDS([chmod +x leakbug-config debian/rules])

echo
echo "Now type make to compile."
echo "Then su to root and type: make install."
echo