missing project/build files
[client-tools.git] / src / external / 3rd / library / libxml / xml2-config.in
blobda31e7f18b7cab6dd9904aa89d8d4d9307c12df3
1 #! /bin/sh
3 prefix=@prefix@
4 exec_prefix=@exec_prefix@
5 includedir=@includedir@
6 libdir=@libdir@
8 usage()
10 cat <<EOF
11 Usage: xml2-config [OPTION]
13 Known values for OPTION are:
15 --prefix=DIR change libxml prefix [default $prefix]
16 --libs print library linking information
17 --cflags print pre-processor and compiler flags
18 --help display this help and exit
19 --version output version information
20 EOF
22 exit $1
25 if test $# -eq 0; then
26 usage 1
29 cflags=false
30 libs=false
32 while test $# -gt 0; do
33 case "$1" in
34 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
35 *) optarg= ;;
36 esac
38 case "$1" in
39 --prefix=*)
40 prefix=$optarg
41 includedir=$prefix/include
42 libdir=$prefix/lib
45 --prefix)
46 echo $prefix
49 --version)
50 echo @VERSION@
51 exit 0
54 --help)
55 usage 0
58 --cflags)
59 echo @XML_INCLUDEDIR@ @XML_CFLAGS@
62 --libs)
63 echo @XML_LIBDIR@ @XML_LIBS@
67 usage
68 exit 1
70 esac
71 shift
72 done
74 exit 0