summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-26 23:39:06 +0000
committerStef Walter <stef@memberwebs.com>2006-01-26 23:39:06 +0000
commit9f63d4886d3a55cbe45c0ba57cb3b1e911654557 (patch)
tree4863cba23de895f0519ed1d5737dc24efd01b455 /configure.in
parent9c8a8ccc7d56b905a48aefc1c6c936d336514d74 (diff)
Detect rrdlib properly in configure
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index afb7378..b99d015 100644
--- a/configure.in
+++ b/configure.in
@@ -1,11 +1,11 @@
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(rrdui, 0.1, nielsen@memberwebs.com)
-AM_INIT_AUTOMAKE(rrdui, 0.1)
+AC_INIT(rrdui, 0.2, nielsen@memberwebs.com)
+AM_INIT_AUTOMAKE(rrdui, 0.2)
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CFLAGS="$CFLAGS -I/usr/local/include"
-AC_CONFIG_SRCDIR([src/rrdcollectd.c])
+AC_CONFIG_SRCDIR([src/rrdbotd.c])
AM_CONFIG_HEADER([config.h])
# Debug mode
@@ -24,14 +24,18 @@ AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
+dnl Checks for libraries
+AC_CHECK_LIB(rrd, rrd_update, ,
+ [echo "ERROR: librrd not found."; exit 1])
+
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
dnl Check for header files.
AC_HEADER_STDC
+AC_CHECK_HEADERS([rrd.h], , [echo "ERROR: rrd headers not found"])
dnl TODO: AC_CHECK_HEADERS
-dnl TODO: Check for libbsnmpclient
AC_MSG_RESULT()