]> matita.cs.unibo.it Git - helm.git/blob - helm/minidom/minidom-config.in
* update
[helm.git] / helm / minidom / minidom-config.in
1
2 usage()
3 {
4         cat <<EOF
5 Usage: minidom-config [OPTIONS]
6 Options:
7         [--version]
8         [--libs]
9         [--cflags]
10 EOF
11         exit $1
12 }
13
14 if test $# -eq 0; then
15         usage 1 1>&2
16 fi
17
18 while test $# -gt 0; do
19   case "$1" in
20   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
21   *) optarg= ;;
22   esac
23
24   case $1 in
25     --version)
26       echo $VERSION
27       ;;
28     --cflags)
29       echo_cflags=yes
30       ;;
31     --libs)
32       echo_libs=yes
33       ;;
34     *)
35       usage 1 1>&2
36       ;;
37   esac
38   shift
39 done
40
41 if test "$echo_cflags" = "yes"; then
42     echo `$XML_CONFIG --cflags` -I$pkgincludedir
43 fi
44
45 if test "$echo_libs" = "yes"; then
46     echo `$XML_CONFIG --libs` -L$libdir -lminidom
47 fi      
48