Added <vector> and <string>
[pwlib.git] / make / ptlib-config.in
blob1571e51f6578dcdb7165472b519b6655cbc922cd
1 #!/bin/sh
3 # Shamelessly ripped from imlib-config that was
4 # apparently shamelessly ripped from gtk's gtk-config.in
7 VERSION="@PWLIB_VERSION@"
8 CCFLAGS="@STDCCFLAGS@"
9 LDFLAGS="@LDFLAGS@"
10 LIBS="@ENDLDLIBS@"
11 LIBDIR="@INSTALLPREFIX@/lib"
12 PWINSTDIR="@INSTALLPREFIX@/share/pwlib"
13 MACHTYPE="@MACHTYPE@"
14 OSTYPE="@OSTYPE@"
15 OSRELEASE="@OSRELEASE@"
16 SHAREDLIBEXT="@SHAREDLIBEXT@"
17 INSTALLPREFIX="@INSTALLPREFIX@"
19 # usage="Usage: ptlib-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
20 usage="Usage: ptlib-config [--version] [--pwlibdir] [--ccflags] [--ldflags] [--libs] [--machtype] [--ostype] [--osrelease] [--sharedlibext] [--prefix] [--libdir]"
22 if test $# -eq 0; then
23 echo "${usage}" 1>&2
24 exit 1
27 while test $# -gt 0; do
28 case "$1" in
29 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
30 *) optarg= ;;
31 esac
33 case $1 in
34 --version)
35 echo $VERSION
37 --pwlibdir)
38 echo $PWINSTDIR
40 --ldflags)
41 echo $LDFLAGS
43 --ccflags)
44 echo $CCFLAGS
46 --libs)
47 echo $LIBS
49 --machtype)
50 echo $MACHTYPE
52 --ostype)
53 echo $OSTYPE
55 --osrelease)
56 echo $OSRELEASE
58 --sharedlibext)
59 echo $SHAREDLIBEXT
61 --prefix)
62 echo $INSTALLPREFIX
64 --libdir)
65 echo $LIBDIR
67 --all)
68 echo VERSION = $VERSION
69 echo PWLIBDIR = $PWINSTDIR
70 echo LDFLAGS = $LDFLAGS
71 echo CCFLAGS = $CCFLAGS
72 echo LIBS = $LIBS
73 echo MACHTYPE = $MACHTYPE
74 echo OSTYPE = $OSTYPE
75 echo OSRELEASE = $OSRELEASE
76 echo SHAREDLIBEXT = $SHAREDLIBEXT
77 echo PREFIX = $INSTALLPREFIX
78 echo LIBDIR = $LIBDIR
82 echo "${usage}" 1>&2
83 exit 1
85 esac
86 shift
87 done
89 exit 0