On 2016-07-31 at 23:13:18 +0200, Vadim Kochan <vadi...@gmail.com> wrote: > Add command line parsing function which allows to compile tools (trafgen, > netsniff-ng) > without libnl-xxx libraries. > > Option --no-libnl sets CONFIG_NO_LIBNL=1. > > Signed-off-by: Vadim Kochan <vadi...@gmail.com> > --- > configure | 52 +++++++++++++++++++++++++++++++++++++++++++++++++--- > 1 file changed, 49 insertions(+), 3 deletions(-) > > diff --git a/configure b/configure > index 105b1ec..85f2178 100755 > --- a/configure > +++ b/configure > @@ -18,8 +18,36 @@ HAVE_LIBGEOIP=0 > HAVE_LIBZ=0 > HAVE_TPACKET3=0 > > +CONFIG_NO_LIBNL=0 > + > # use "CROSS_COMPILE=<prefix> SYSROOT=<path> ./configure && make" for cross > compilation > > +usage() > +{ > + echo "Usage: ./configure [OPTIONS]" > + echo -e "\t-h, --help - print usage" > + echo -ne "\t--no-libnl - compile without libnl"
Indenting is inconsistent. > + echo "Some features (rfraw, nlmsg dissect) will not work in trafgen, > netsniff-ng." > + > + exit 0 > +} > + > +while [ $# -gt 0 ] > +do > + case "$1" in > + -h|--help) > + usage > + ;; > + --no-libnl) > + CONFIG_NO_LIBNL=1 > + ;; Most autoconf configure scripts use --disable-xxx. I suggest we stick to that scheme (even though we don't use autotools). -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to netsniff-ng+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.