OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / lib / Libnet / libnet-config.in
1 #!/bin/sh
2 #
3 #   $Id: libnet-config.in,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
4 #
5 #   Libnet 1.0 libnet-config compilation script
6 #   (c) 1998 - 2001  Mike D. Schiffman <mike@infonexus.com>
7 #
8 #   @configure_input@
9
10 libnet_defines="@LIBNET_CONFIG_DEFINES@"
11 libnet_cflags="@LIBNET_CONFIG_CFLAGS@"
12 libnet_libs="@LIBNET_CONFIG_LIBS@ -lnet"
13
14 usage()
15 {
16         cat <<EOF
17 Usage: libnet-config [OPTIONS]
18 Options:
19         [--libs]
20         [--cflags]
21         [--defines]
22 EOF
23         exit
24 }
25
26 while test $# -gt 0; do
27     case "$1" in
28     -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
29     *) optarg= ;;
30     esac 
31
32     case $1 in
33         --libs)
34             echo_libs=yes
35             ;;
36
37         --cflags)
38             echo_cflags=yes
39             ;;
40
41         --defines)
42             echo_defines=yes
43             ;;
44         *)
45             usage 1
46         esac
47     shift
48 done
49
50 if test "$echo_libs" = "yes"; then
51     echo $libnet_libs
52 fi
53
54 if test "$echo_cflags" = "yes"; then
55     echo $libnet_cflags
56 fi
57
58 if test "$echo_defines" = "yes"; then
59     echo $libnet_defines
60 fi
61
62 # EOF