File: configure.ac

package info (click to toggle)
rrdcollect 0.2.3-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 896 kB
  • ctags: 571
  • sloc: sh: 3,925; ansic: 2,217; lex: 170; yacc: 134; makefile: 131
file content (69 lines) | stat: -rw-r--r-- 1,741 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
# Process this file with autoconf to produce a configure script.
# Checks for sanity.
AC_PREREQ(2.52)
AC_INIT(RRDcollect, 0.2.3, rrdcollect-bugs@atlantis.knm.org.pl, rrdcollect)
AC_REVISION($Revision: 1.27 $)
AC_CONFIG_SRCDIR([src/rrdcollect.c])

# Automake.
dnl AM_INIT_AUTOMAKE([$PACKAGE_TARNAME], [$PACKAGE_VERSION])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER([include/config.h])

# It's a GNU code.
AC_GNU_SOURCE 

# Yes, I'm forcing config.cache, tell me if it breaks anything...
if test "$cache_file" = /dev/null; then
	cache_file="config.cache"
fi
AC_CACHE_LOAD

# Well... if prefix is not set let's default them to /usr/local
# it is required for dependent variables (like ${prefix}/path)
AC_PREFIX_DEFAULT(/usr/local)
test x"$prefix" = xNONE && prefix="$ac_default_prefix"

# Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_YACC
AM_PROG_LEX

QX_ARG_WITH_PROG(RRDTOOL, rrdtool)

# Checks for optional features.
QX_ARG_WITH(rrd, rrdtool library, rrd_update)
QX_ARG_WITH(pcre, perl compatible regular expressions, pcre_exec)
QX_ARG_WITH(pcap, packet capture library, pcap_open_live)

QX_ARG_ENABLE(exec, ENABLE_EXEC, exec:/// support)

# Checks for header files.
AC_HEADER_STDC
AC_HEADER_TIME
AC_CHECK_HEADERS([inttypes.h libintl.h memory.h stddef.h stdint.h stdlib.h string.h strings.h sys/time.h unistd.h wchar.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_C_STRINGIZE
AC_TYPE_SIZE_T
QX_ANONYMOUS_UNION

# Checks for library functions.
AC_CHECK_FUNCS([memset strdup strerror strndup])
QX_FUNC_GETOPT_LONG
AC_FUNC_MALLOC
AC_FUNC_FORK
QX_FUNC_SPOON

# Useful substituted values.
AC_SUBST(VERSION)

# And that's all folks
AC_CONFIG_FILES([Makefile
		src/Makefile
		doc/Makefile
])
AC_OUTPUT