*** ./configure.ORIG Mon Mar 18 15:57:43 2013 --- ./configure Mon Mar 18 16:07:12 2013 *************** *** 6233,6245 **** echo "$as_me:$LINENO: checking for a curses library containing mvchgat" >&5 echo $ECHO_N "checking for a curses library containing mvchgat... $ECHO_C" >&6 oldLIBS=$LIBS ! for curseslib in curses ncurses ; do LIBS="$oldLIBS -l$curseslib" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" ! #include int main () --- 6233,6245 ---- echo "$as_me:$LINENO: checking for a curses library containing mvchgat" >&5 echo $ECHO_N "checking for a curses library containing mvchgat... $ECHO_C" >&6 oldLIBS=$LIBS ! for curseslib in ncurses curses ; do LIBS="$oldLIBS -l$curseslib" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" ! #include int main () *** ./addrs_dlpi.c.ORIG Mon Mar 18 15:20:54 2013 --- ./addrs_dlpi.c Mon Mar 18 15:21:05 2013 *************** *** 21,27 **** --- 21,29 ---- #include #include + #ifndef _AIX #include + #endif #include #include #include *** ./edline.c.ORIG Mon Mar 18 16:05:00 2013 --- ./edline.c Mon Mar 18 16:05:39 2013 *************** *** 7,13 **** static const char rcsid[] = "$Id: edline.c,v 1.2 2002/11/04 12:27:35 chris Exp $"; #include ! #include #include #include "iftop.h" --- 7,13 ---- static const char rcsid[] = "$Id: edline.c,v 1.2 2002/11/04 12:27:35 chris Exp $"; #include ! #include #include #include "iftop.h" *** ./Makefile.OLD.ORIG Mon Mar 18 15:39:12 2013 --- ./Makefile.OLD Mon Mar 18 15:56:22 2013 *************** *** 5,23 **** # $Id: Makefile.OLD,v 1.1 2002/11/04 12:29:06 chris Exp $ # ! VERSION = 0.11pre1 # C compiler to use. ! #CC = gcc # Give the location of pcap.h here: ! CFLAGS += -I/usr/include/pcap -g # CFLAGS += -I/usr/pkg/include # CFLAGS += -pg -a # Give the location of libpcap here if it's not in one of the standard # directories: ! # LDFLAGS += -L/usr/local/lib # LDFLAGS += -pg -a # Do you want to use curses or ncurses? Probably ncurses, unless curses --- 5,23 ---- # $Id: Makefile.OLD,v 1.1 2002/11/04 12:29:06 chris Exp $ # ! VERSION = 0.17 # C compiler to use. ! CC = xlc_r # Give the location of pcap.h here: ! CFLAGS += -I/opt/freeware/include/pcap -O # CFLAGS += -I/usr/pkg/include # CFLAGS += -pg -a # Give the location of libpcap here if it's not in one of the standard # directories: ! LDFLAGS += -L/opt/freeware/lib # LDFLAGS += -pg -a # Do you want to use curses or ncurses? Probably ncurses, unless curses *************** *** 66,76 **** # # Solaris needs a library to make sockets go and lacks inet_aton. # ! LDLIBS += -lsocket -lnsl ! CFLAGS += -DFAKE_INET_ATON # PREFIX specifies the base directory for the installation. ! PREFIX = /usr/local #PREFIX = /software # BINDIR is where the binary lives relative to PREFIX (no leading /). --- 66,76 ---- # # Solaris needs a library to make sockets go and lacks inet_aton. # ! #LDLIBS += -lsocket -lnsl ! #CFLAGS += -DFAKE_INET_ATON # PREFIX specifies the base directory for the installation. ! PREFIX = /opt/freeware #PREFIX = /software # BINDIR is where the binary lives relative to PREFIX (no leading /). *************** *** 81,88 **** #MANDIR = share/man # FHS-ish # You shouldn't need to change anything below this point. ! CFLAGS += -g -Wall "-DIFTOP_VERSION=\"$(VERSION)\"" ! LDFLAGS += -g #-pthread LDLIBS += -lpcap -l$(CURSES) -lm -lpthread SRCS = iftop.c addr_hash.c hash.c ns_hash.c resolver.c ui.c util.c sorted_list.c\ --- 81,88 ---- #MANDIR = share/man # FHS-ish # You shouldn't need to change anything below this point. ! CFLAGS += -O "-DIFTOP_VERSION=\"$(VERSION)\"" ! LDFLAGS += -s #-pthread LDLIBS += -lpcap -l$(CURSES) -lm -lpthread SRCS = iftop.c addr_hash.c hash.c ns_hash.c resolver.c ui.c util.c sorted_list.c\ *************** *** 114,120 **** clean: rm -f *~ *.o core iftop iftop.spec ! tarball: depend $(SRCS) $(HDRS) $(TXTS) $(SPECFILE) mkdir iftop-$(VERSION) set -e ; for i in Makefile depend $(SRCS) $(HDRS) $(TXTS) $(SPECFILE) ; do cp $$i iftop-$(VERSION)/$$i ; done tar cvf - iftop-$(VERSION) | gzip --best > iftop-$(VERSION).tar.gz --- 114,120 ---- clean: rm -f *~ *.o core iftop iftop.spec ! tarball: $(SRCS) $(HDRS) $(TXTS) $(SPECFILE) mkdir iftop-$(VERSION) set -e ; for i in Makefile depend $(SRCS) $(HDRS) $(TXTS) $(SPECFILE) ; do cp $$i iftop-$(VERSION)/$$i ; done tar cvf - iftop-$(VERSION) | gzip --best > iftop-$(VERSION).tar.gz *************** *** 133,136 **** sed 's/__VERSION__/$(VERSION)/' < iftop.spec.in > iftop.spec ! include depend --- 133,136 ---- sed 's/__VERSION__/$(VERSION)/' < iftop.spec.in > iftop.spec ! #include depend *** ./iftop.c.ORIG Mon Mar 18 16:05:13 2013 --- ./iftop.c Mon Mar 18 16:05:36 2013 *************** *** 21,27 **** #include #include ! #include #include #include #include --- 21,27 ---- #include #include ! #include #include #include #include *** ./ui.c.ORIG Mon Mar 18 16:05:18 2013 --- ./ui.c Mon Mar 18 16:05:33 2013 *************** *** 6,12 **** #include #include ! #include #include #include #include --- 6,12 ---- #include #include ! #include #include #include #include