I had a problem with the makefiles, because I have most of the libraries
already installed in "normal" locations (the system is a Linux-from-Scratch
box, so it's not 100% standards conforming).  Anyway, I patched the
makefiles so that the 1st test was for <prefix>/ or <prefix>/lib or
<prefix>/include:

--- ntop/configure.orig Tue Dec 11 14:00:08 2001
+++ ntop/configure      Tue Dec 11 14:01:02 2001
@@ -5138,12 +5138,12 @@
   if test ".${GDCHART_ROOT}" != .; then
     if test -d $GDCHART_ROOT &&
-       test -r $GDCHART_ROOT/libgdchart.a &&
-       test -r $GDCHART_ROOT/gdc.h &&
-       test -r $GDCHART_ROOT/gd-1.8.3/libgd.a &&
-       test -r $GDCHART_ROOT/gd-1.8.3/gd.h &&
-       test -r $GDCHART_ROOT/zlib-1.1.3/libz.a; then
+       test -r $GDCHART_ROOT/lib/libgdchart.a &&
+       test -r $GDCHART_ROOT/include/gdc.h &&
+       test -r $GDCHART_ROOT/lib/libgd.a &&
+       test -r $GDCHART_ROOT/include/gd.h &&
+       test -r $GDCHART_ROOT/lib/libz.so; then
          GDCHART_ROOT=`cd ${GDCHART_ROOT} && pwd`
-








MORELIBS="${MORELIBS} -L$GDCHART_ROOT -lgdchart -L$GDCHART_ROOT/gd-1.8.3 -lg
d -L$GDCHART_ROOT/gd-1.8.3/libpng-1.0.8 -lpng -L$GDCHART_ROOT/zlib-1.1.3 -lz
"
-         INCS="${INCS} -I$GDCHART_ROOT"
+
        MORELIBS="${MORELIBS} -L$GDCHART_ROOT/lib -lgdchart -lgd -lpng -lz"
+         INCS="${INCS} -I$GDCHART_ROOT/include"
          cat >> confdefs.h <<\EOF
 #define HAVE_GDCHART 1
--- ntop/configure.in.orig      Tue Dec 11 14:00:14 2001
+++ ntop/configure.in   Tue Dec 11 14:01:17 2001
@@ -896,12 +896,12 @@
   if test ".${GDCHART_ROOT}" != .; then
     if test -d $GDCHART_ROOT &&
-       test -r $GDCHART_ROOT/libgdchart.a &&
-       test -r $GDCHART_ROOT/gdc.h &&
-       test -r $GDCHART_ROOT/gd-1.8.3/libgd.a &&
-       test -r $GDCHART_ROOT/gd-1.8.3/gd.h &&
-       test -r $GDCHART_ROOT/zlib-1.1.3/libz.a; then
+       test -r $GDCHART_ROOT/lib/libgdchart.a &&
+       test -r $GDCHART_ROOT/include/gdc.h &&
+       test -r $GDCHART_ROOT/lib/libgd.a &&
+       test -r $GDCHART_ROOT/include/gd.h &&
+       test -r $GDCHART_ROOT/lib/libz.so; then
          GDCHART_ROOT=`cd ${GDCHART_ROOT} && pwd`
-








MORELIBS="${MORELIBS} -L$GDCHART_ROOT -lgdchart -L$GDCHART_ROOT/gd-1.8.3 -lg
d -L$GDCHART_ROOT/gd-1.8.3/libpng-1.0.8 -lpng -L$GDCHART_ROOT/zlib-1.1.3 -lz
"
-         INCS="${INCS} -I$GDCHART_ROOT"
+
        MORELIBS="${MORELIBS} -L$GDCHART_ROOT/lib -lgdchart -lgd -lpng -lz"
+         INCS="${INCS} -I$GDCHART_ROOT/include"
          AC_DEFINE(HAVE_GDCHART)
          AC_MSG_RESULT([found in $GDCHART_ROOT])

Also, there are problems with Makefile.am in my Linux environment having to
do with Autoconf(?).  Here's the patch -  which is certainly Linux
specific...

--- ntop/Makefile.am.orig       Tue Dec 11 11:48:58 2001
+++ ntop/Makefile.am    Tue Dec 11 11:49:57 2001
@@ -57,5 +57,6 @@
 SUBDIRS = . @PLUGINS@ @INTOP@

-DIST_COMMON = AUTHORS CONTENTS COPYING ChangeLog \
+DIST_COMMON =
+DIST_COMMON += AUTHORS CONTENTS COPYING ChangeLog \
               MANIFESTO NEWS PORTING  \
               SUPPORT_NTOP.txt \
@@ -126,9 +127,9 @@
                      ssl.c           term.c        traffic.c          \
                      util.c          vendor.c      version.c          \
-                     vendortable.h @MORESOURCES@
+                     vendortable.h

 libntop_la_DEPENDENCIES = config.h
 libntop_la_LIBADD       = $(CORELIBS)
-libntop_la_LDFLAGS      = -version-info @NTOP_VERSION_INFO@ -release
@NTOP_RELEASE@ -export-dynamic @DYN_FLAGS@
+libntop_la_LDFLAGS      = -version-info 2 -release 0 -export-dynamic
@DYN_FLAGS@

 # Archive for http representation, or the 'viewer'
@@ -144,5 +145,5 @@
 libntopreport_la_DEPENDENCIES = config.h
 libntopreport_la_LIBADD       = $(MORELIBS)
-libntopreport_la_LDFLAGS      = -version-info @NTOP_VERSION_INFO@ -release
@NTOP_RELEASE@ -export-dynamic @DYN_FLAGS@
+libntopreport_la_LDFLAGS      = -version-info 0 -release 2 -export-dynamic
@DYN_FLAGS@

 man_MANS = ntop.8
@@ -150,5 +151,5 @@
 .PHONY: snapshot

-ntopd: ntop
+ntopd$(EXEEXT): ntop
        @ln -sf ntop ntopd
        @-(cd .libs && ln -sf ntop ntopd)
@@ -257,8 +258,6 @@
 make-suse: ntop # ntop.html # man2html not exists? FIXME
        echo "Only root can do this. Wait please...."
-       # Builddir /var/tmp/ntop
        rm -Rf /var/tmp/ntop
        $(mkinstalldirs) /var/tmp/ntop
-       # Copy
        $(mkinstalldirs) /var/tmp/ntop/usr/sbin
        cp ntop /var/tmp/ntop/usr/sbin
@@ -273,6 +272,4 @@
        $(mkinstalldirs) /var/tmp/ntop/sbin/init.d/rc2.d
        $(mkinstalldirs) /var/tmp/ntop/sbin/init.d/rc3.d
-       # 06.02.00 I have changed S20ntopd/K20ntopd to S22ntopd/K08ntopd
-       # to get the right start order with mySQL (S20)
        ln -s ../ntopd /var/tmp/ntop/sbin/init.d/rc2.d/S22ntopd
        ln -s ../ntopd /var/tmp/ntop/sbin/init.d/rc2.d/K08ntopd

-----Burton

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop-dev

Reply via email to