1#! /bin/sh
2
3prefix=@prefix@
4exec_prefix=@exec_prefix@
5includedir=@includedir@
6
7usage()
8{
9    cat <<EOF
10Usage: libbpm-config [OPTION]
11
12Known values for OPTION are:
13
14  --prefix		show libbpm installation prefix 
15  --libs		print library linking information
16  --cflags		print pre-processor and compiler flags
17  --help		display this help and exit
18  --version		output version information
19
20EOF
21
22    exit $1
23}
24
25if test $# -eq 0; then
26    usage 1
27fi
28
29cflags=false
30libs=false
31
32while test $# -gt 0; do
33    case "$1" in
34    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
35    *) optarg= ;;
36    esac
37
38    case "$1" in
39    --prefix=*)
40	prefix=$optarg
41	;;
42
43    --prefix)
44	echo $prefix
45	;;
46
47    --version)
48	echo @VERSION@
49	exit 0
50	;;
51
52    --help)
53	usage 0
54	;;
55
56    --cflags)
57       	echo @BPM_CFLAGS@
58       	;;
59
60    --libs)
61       	echo @BPM_LIBS@ -lm
62       	;;
63
64    *)
65	usage
66	exit 1
67	;;
68    esac
69    shift
70done
71
72exit 0
73