Ethereal-users: Re: [Ethereal-users] problem finding snmp libraries

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 24 Apr 2001 15:34:43 -0700 (PDT)
> Any idea to fix configure script ?

See my mail.  The workaround is to use the "--with-ssl" flag to
configure; it might be possible to make the configure script check
whether the SSL -lcrypto library is necessary.

(Perhaps what's needed, in the long term, for add-on libraries is the
stuff that GTK+ and GLib have, namely a configure script that reports
what flags are needed.

GTK+ and GLib 1.x have gtk-config and glib-config scripts; GTK+/GLib 2.0
will use pkg-config:

	http://pkgconfig.sourceforge.net/

	http://sourceforge.net/projects/pkgconfig/

This might allow the configure scripts to run the appropriate script,
which, for NET-SNMP, would specify whether, on the particular platform
on which you're compiling, you need one or more of -lkstat or -lcrypto.

Those scripts would also indicate what other compile flags are needed,
e.g. "-I" and "-L" flags if the header files or libraries aren't
installed in the system include or library directories.

But that only helps if libraries actually start using that, and, unless
there are no longer any copies of older versions of library packages
that *didn't* use it, you have to be able to handle configuration the
old-fashioned way, unless the program in question won't work at all with
those older versions, e.g. because it requires features from newer
versions.)