#!/bin/sh
#
#   $Id: libnet-config.in,v 1.3 1999/09/07 19:20:20 route Exp $
#
#   Libnet 1.0 libnet-config compilation script
#   (c) 1998, 1999, 2000  Mike D. Schiffman <mike@infonexus.com>
#
#   Generated automatically from libnet-config.in by configure.

libnet_defines="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP         -DHAVE_SOCKADDR_SA_LEN -DLIBNET_BIG_ENDIAN"
libnet_cflags=""
libnet_libs=" -lnet"

usage()
{
        cat <<EOF
Usage: libnet-config [OPTIONS]
Options:
        [--libs]
        [--cflags]
        [--defines]
EOF
        exit
}

while test $# -gt 0; do
    case "$1" in
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    *) optarg= ;;
    esac 

    case $1 in
        --libs)
            echo_libs=yes
            ;;

        --cflags)
            echo_cflags=yes
            ;;

        --defines)
            echo_defines=yes
            ;;
        *)
            usage 1
        esac
    shift
done

if test "$echo_libs" = "yes"; then
    echo $libnet_libs
fi

if test "$echo_cflags" = "yes"; then
    echo $libnet_cflags
fi

if test "$echo_defines" = "yes"; then
    echo $libnet_defines
fi

# EOF
