missing project/build files
[client-tools.git] / src / external / 3rd / library / libxml / xml2-config
blobab1211db62f2f756f2d20f71f0364ee20a9fbfe0
1 #! /bin/sh
3 prefix=/usr/local
4 exec_prefix=${prefix}
5 includedir=${prefix}/include
6 libdir=${exec_prefix}/lib
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 2.4.28
51 exit 0
54 --help)
55 usage 0
58 --cflags)
59 echo -I${includedir}/libxml2
62 --libs)
63 echo -L${libdir} -lxml2 -lz -lm
67 usage
68 exit 1
70 esac
71 shift
72 done
74 exit 0