| 4 |
exec_prefix=@exec_prefix@ |
exec_prefix=@exec_prefix@ |
| 5 |
exec_prefix_set=no |
exec_prefix_set=no |
| 6 |
|
|
| 7 |
|
cflags="[--cflags]" |
| 8 |
|
|
| 9 |
if test @enable_cpp@ = yes ; then |
if test @enable_cpp@ = yes ; then |
| 10 |
usage="Usage: pcre-config [--prefix] [--exec-prefix] [--version] [--libs] [--libs-posix] [--libs-cpp] [--cflags] [--cflags-posix]" |
libs="[--libs-cpp]" |
| 11 |
else |
else |
| 12 |
usage="Usage: pcre-config [--prefix] [--exec-prefix] [--version] [--libs] [--libs-posix] [--cflags] [--cflags-posix]" |
libs= |
| 13 |
|
fi |
| 14 |
|
|
| 15 |
|
if test @enable_pcre16@ = yes ; then |
| 16 |
|
libs="[--libs16] $libs" |
| 17 |
fi |
fi |
| 18 |
|
|
| 19 |
|
if test @enable_pcre8@ = yes ; then |
| 20 |
|
libs="[--libs] [--libs-posix] $libs" |
| 21 |
|
cflags="$cflags [--cflags-posix]" |
| 22 |
|
fi |
| 23 |
|
|
| 24 |
|
usage="Usage: pcre-config [--prefix] [--exec-prefix] [--version] $libs $cflags" |
| 25 |
|
|
| 26 |
if test $# -eq 0; then |
if test $# -eq 0; then |
| 27 |
echo "${usage}" 1>&2 |
echo "${usage}" 1>&2 |
| 28 |
exit 1 |
exit 1 |
| 69 |
--version) |
--version) |
| 70 |
echo @PACKAGE_VERSION@ |
echo @PACKAGE_VERSION@ |
| 71 |
;; |
;; |
| 72 |
--cflags | --cflags-posix) |
--cflags) |
| 73 |
if test @includedir@ != /usr/include ; then |
if test @includedir@ != /usr/include ; then |
| 74 |
includes=-I@includedir@ |
includes=-I@includedir@ |
| 75 |
fi |
fi |
| 76 |
echo $includes @PCRE_STATIC_CFLAG@ |
echo $includes @PCRE_STATIC_CFLAG@ |
| 77 |
;; |
;; |
| 78 |
|
--cflags-posix) |
| 79 |
|
if test @enable_pcre8@ = yes ; then |
| 80 |
|
if test @includedir@ != /usr/include ; then |
| 81 |
|
includes=-I@includedir@ |
| 82 |
|
fi |
| 83 |
|
echo $includes @PCRE_STATIC_CFLAG@ |
| 84 |
|
else |
| 85 |
|
echo "${usage}" 1>&2 |
| 86 |
|
fi |
| 87 |
|
;; |
| 88 |
--libs-posix) |
--libs-posix) |
| 89 |
echo $libS$libR -lpcreposix -lpcre |
if test @enable_pcre8@ = yes ; then |
| 90 |
|
echo $libS$libR -lpcreposix -lpcre |
| 91 |
|
else |
| 92 |
|
echo "${usage}" 1>&2 |
| 93 |
|
fi |
| 94 |
;; |
;; |
| 95 |
--libs) |
--libs) |
| 96 |
echo $libS$libR -lpcre |
if test @enable_pcre8@ = yes ; then |
| 97 |
|
echo $libS$libR -lpcre |
| 98 |
|
else |
| 99 |
|
echo "${usage}" 1>&2 |
| 100 |
|
fi |
| 101 |
|
;; |
| 102 |
|
--libs16) |
| 103 |
|
if test @enable_pcre16@ = yes ; then |
| 104 |
|
echo $libS$libR -lpcre16 |
| 105 |
|
else |
| 106 |
|
echo "${usage}" 1>&2 |
| 107 |
|
fi |
| 108 |
;; |
;; |
| 109 |
--libs-cpp) |
--libs-cpp) |
| 110 |
if test @enable_cpp@ = yes ; then |
if test @enable_cpp@ = yes ; then |