-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
53 lines (44 loc) · 1.38 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT(mod_rrd, 1.0.1, minfrin@sharp.fm)
AM_INIT_AUTOMAKE([dist-bzip2])
AC_CONFIG_FILES([Makefile mod_rrd.spec])
AC_CONFIG_SRCDIR([mod_rrd.c])
AC_CONFIG_HEADER(config.h)
# Checks for programs.
AC_PROG_CC
AC_ARG_WITH(apxs,
[ --with-apxs=PATH path to Apache apxs],
[
if test "$withval" = "yes"; then
AC_PATH_PROGS(APXS, apxs apxs2, reject, $PATH:/usr/sbin)
else
APXS=$withval
AC_SUBST(APXS)
fi
],
[
AC_PATH_PROGS(APXS, apxs apxs2, reject, $PATH:/usr/sbin)
])
if test "$APXS" = "reject"; then
AC_MSG_ERROR([Could not find apxs on the path.])
fi
# Make sure the Apache include files are found
CPPFLAGS="$CPPFLAGS -I`$APXS -q INCLUDEDIR`"
CFLAGS="$CFLAGS -I`$APXS -q INCLUDEDIR`"
# Checks for libraries.
PKG_CHECK_MODULES(apr, apr-1 >= 1.2)
PKG_CHECK_MODULES(apu, apr-util-1 >= 1.2)
PKG_CHECK_MODULES(librrd, librrd >= 1.4)
# Make sure we use rrdtool paths
CFLAGS="$CFLAGS $librrd_CFLAGS"
CPPFLAGS="$CPPFLAGS $librrd_CPPFLAGS"
LDFLAGS="$LDFLAGS $librrd_LIBS"
# Checks for header files.
AC_CHECK_HEADERS(sys/xattr.h)
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_SUBST(PACKAGE_VERSION)
AC_OUTPUT