It works fine for me...
configure.in (configure):
if test ".${ac_disable_rrd}" != ".yes"; then
dnl> We use LIBS for the _CHECK_LIB, then back it out below, setting
RRDLIB for
dnl> the plugin, if we find it.
oLIBS="${LIBS}"
NTOP_APPEND_LIBS([${RRD_ROOT}/lib])
AC_CHECK_LIB([rrd], [rrd_update], [
RRDLIB="${RRDLIB} -L${RRD_ROOT}/lib -lrrd"
AC_DEFINE_UNQUOTED([HAVE_RRD], 1, [Enable RRD])
], [
echo
echo
"*******************************************************************"
echo "*"
echo "* ERROR: 1. We were unable to compile a test program for"
echo "* rrd_create() against -lrrd in the standard"
echo "* location nor in the alternate location you"
echo "* specified by --with-rrd-root"
echo "*"
echo "*>>> ./configure continues, rrd will not be available."
echo "*"
echo "*??? 1. Rerun ./configure with a
corrected --with-rrd-root"
echo "*??? or 2. Install rrd and rerun ./configure"
echo "*"
echo
"*******************************************************************"
echo
ac_disable_rrd="yes"
])
LIBS="${oLIBS}"
fi
Look in config.log and see what the error message is...
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Nicola Larosa
Sent: Monday, March 03, 2003 7:40 AM
To: [EMAIL PROTECTED]
Subject: [Ntop-dev] Configure cannot find rrd
Trying to configure the 2003-03-03 snapshot, using
--with-rrd-root=/opt/rrdtool
I get this output:
checking for rrd... not found in standard location, testing further...
checking for rrd header... ok, rrd.h found in /opt/rrdtool/include
checking for rrd_update in -lrrd... no
*******************************************************************
*
* ERROR: 1. We were unable to compile a test program for
* rrd_create() against -lrrd in the standard
* location nor in the alternate location you
* specified by --with-rrd-root
*
*>>> ./configure continues, rrd will not be available.
*
*??? 1. Rerun ./configure with a corrected --with-rrd-root
*??? or 2. Install rrd and rerun ./configure
*
*******************************************************************
It looks like configure does *not* really look in the alternate location,
that is /opt/rrdtool/lib: it would output a fourth "checking..." line up
there, saying so.
--
Nicola Larosa
CTO
[EMAIL PROTECTED]
**********
Araknos Srl - http://www.araknos.it/
V. Boezio 6 00192 Roma Italy tel. +39-06-32803432 fax +39-06-32803400
V. Signorini 17 40133 Bologna Italy tel. +39-051-6182406 fax +39-051-6182407
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev