Ug...
Off the cuff, I don't think there's an externally accessible end point cleanup. There
IS a case statement in ./configure, but that will cause problems as all of the
validation up to that point would have been done WITH -lgd.
The best answer probably is to require the ln you proposed originally and live with
that. It's a one time 'fix'.
-----Burton
---------- Original Message ----------------------------------
From: Stanley Hopcroft <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Wed, 28 Jan 2004 14:40:47 +1100
>Dear Sir,
>
>I am writing to thank you for your letter and say that I am having
>trouble following your sound advice.
>
>On Sun, Jan 25, 2004 at 09:20:01AM -0600, Burton M. Strauss III wrote:
>> The right (clean) answer inside ntop is to experiment with the LDFLAGS,
>> CPPFLAGS and other options and then put any OS specific stuff in
>> configureextra...
>>
>> In configureextra, you get access to the flags at the very beginning,
>> meaning that what is already set is pretty minimal. The idea is to set
>> things before ntop goes looking, not to fix up what it finds. But still,
>> you can get pretty creative in these files, for example:
>>
>> LDFLAGS="-lgd2 ${LDFLAGS}"
>>
>
>I have tried various perms of
>
>tshob> cat FREEBSD
>#!/bin/sh
>
>echo " Setting FreeBSD specific flag values"
>CPPFLAGS="-DHAVE_FILEDESCRIPTORBUG ${CPPFLAGS}"
>
>if test ".${LOCALEDIR}" = "."; then
> LOCALEDIR="/usr/share/locale"
>fi
>
>if test -e /usr/local/lib/libgd1.so; then
> # LIBS=`echo $LIBS | sed -e 's/-lgd/-lgd1/g'`
> LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
> LIBS="${LIBS} -lgd1"
>fi
>
>tshob>
>
>
>The problem is that -lgd1 goes into the libs, but an -lgd is appended
>subsequently.
>
>Here is what config.log shows
>
>configure:9277: checking for gdImageDestroy in -lgd
>configure:9308: gcc -o conftest -g -O2 -I/usr/local/include -Wshadow
>-Wpointer-arith -Wmissing-prototypes -Wmissing-declarations
>-Wnested-externs -fPIC -D
>HAVE_FILEDESCRIPTORBUG -DFREEBSD -I/usr/local/include
>-I/usr/local/include/gd -L/usr/local/lib -L/usr/local/lib conftest.c
>-lgd -lgdbm -lpcap -lgd1 -lp
>cap -lgdbm -lgd >&5
>/usr/libexec/elf/ld: cannot find -lgd
>
>How can I get rid of '-lgd' in LIBS, if this is the right question ?
>
>Yours sincerely,
>
>--
>------------------------------------------------------------------------
>Stanley Hopcroft
>------------------------------------------------------------------------
>
>'...No man is an island, entire of itself; every man is a piece of the
>continent, a part of the main. If a clod be washed away by the sea,
>Europe is the less, as well as if a promontory were, as well as if a
>manor of thy friend's or of thine own were. Any man's death diminishes
>me, because I am involved in mankind; and therefore never send to know
>for whom the bell tolls; it tolls for thee...'
>
>from Meditation 17, J Donne.
>_______________________________________________
>Ntop mailing list
>[EMAIL PROTECTED]
>http://listgateway.unipi.it/mailman/listinfo/ntop
>
____________________________________________________________
Free 20 MB Bannerless Domain Hosting, 1000 MB Data Transfer
10 Personalized POP and Web E-mail Accounts, and more.
Get It Now At www.doteasy.com
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop