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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 492 - (hide annotations) (download)
Tue Mar 2 11:26:55 2010 UTC (3 years, 2 months ago) by ph10
File size: 1568 byte(s)
Added --libs-cpp to pcre-config, but only when C++ support is configured.

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