/[pcre]/code/trunk/pcre-config.in
ViewVC logotype

Contents of /code/trunk/pcre-config.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 97 - (show annotations) (download)
Mon Mar 5 12:36:47 2007 UTC (7 years, 8 months ago) by ph10
File size: 1174 byte(s)
Applied Bob and Daniel's patches to convert the build system to automake. Added 
the maintain directory, containing files that are used for maintenance, but are 
not distributed. This is an intermediate step.

1 #!/bin/sh
2
3 prefix=@prefix@
4 exec_prefix=@exec_prefix@
5 exec_prefix_set=no
6
7 usage="\
8 Usage: pcre-config [--prefix] [--exec-prefix] [--version] [--libs] [--libs-posix] [--cflags] [--cflags-posix]"
9
10 if test $# -eq 0; then
11 echo "${usage}" 1>&2
12 exit 1
13 fi
14
15 libR=
16 case `uname -s` in
17 *SunOS*)
18 libR=" -R@libdir@"
19 ;;
20 esac
21
22 while test $# -gt 0; do
23 case "$1" in
24 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
25 *) optarg= ;;
26 esac
27
28 case $1 in
29 --prefix=*)
30 prefix=$optarg
31 if test $exec_prefix_set = no ; then
32 exec_prefix=$optarg
33 fi
34 ;;
35 --prefix)
36 echo $prefix
37 ;;
38 --exec-prefix=*)
39 exec_prefix=$optarg
40 exec_prefix_set=yes
41 ;;
42 --exec-prefix)
43 echo $exec_prefix
44 ;;
45 --version)
46 echo @PACKAGE_VERSION@
47 ;;
48 --cflags | --cflags-posix)
49 if test @includedir@ != /usr/include ; then
50 includes=-I@includedir@
51 fi
52 echo $includes
53 ;;
54 --libs-posix)
55 echo -L@libdir@$libR -lpcreposix -lpcre
56 ;;
57 --libs)
58 echo -L@libdir@$libR -lpcre
59 ;;
60 *)
61 echo "${usage}" 1>&2
62 exit 1
63 ;;
64 esac
65 shift
66 done

Properties

Name Value
svn:eol-style native
svn:keywords "Author Date Id Revision Url"

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12