Merge pull request #4001 from sraue/lirc-devinput
[vuplus_xbmc] / lib / libdvd / dvdread-config
1 #!/bin/sh
2
3 # this configfile is based on the original libdvdread config
4 # 'dvdread-config' but stripped down to not output the include
5 # and libdirs to not break crosscompiling with including
6 # system includes and libraries
7
8 prefix=/usr
9 dvdreadlib="-ldvdread"
10
11 usage()
12 {
13         cat <<EOF
14 Usage: dvdread-config [OPTIONS] [LIBRARIES]
15 Options:
16         [--prefix[=DIR]]
17         [--libs]
18         [--cflags]
19 EOF
20         exit $1
21 }
22
23 if test $# -eq 0; then
24         usage 1 1>&2
25 fi
26
27 while test $# -gt 0; do
28   case "$1" in
29   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
30   *) optarg= ;;
31   esac
32
33   case $1 in
34     --prefix)
35       echo_prefix=yes
36       ;;
37     --cflags)
38       echo_cflags=yes
39       ;;
40     --libs)
41       echo_libs=yes
42       ;;
43     *)
44       usage 1 1>&2
45       ;;
46   esac
47   shift
48 done
49
50 if test "$echo_prefix" = "yes"; then
51         echo $prefix
52 fi
53
54 if test "$echo_cflags" = "yes"; then
55       echo $extracflags
56 fi
57
58 if test "$echo_libs" = "yes"; then
59       echo $dvdreadlib
60 fi