diff options
author | Nathan Kinder <nkinder@redhat.com> | 2010-02-09 12:21:34 -0800 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2010-02-09 12:21:34 -0800 |
commit | f81e7eac08e2af16fa6b8d245525c4a5ac5eb6f7 (patch) | |
tree | 27690a5ee242ed4b28e3696b74b916f6d841084b /configure | |
parent | 571f580206b38cc92b87c7458a42f2b1a4789830 (diff) | |
download | ds-f81e7eac08e2af16fa6b8d245525c4a5ac5eb6f7.tar.gz ds-f81e7eac08e2af16fa6b8d245525c4a5ac5eb6f7.tar.xz ds-f81e7eac08e2af16fa6b8d245525c4a5ac5eb6f7.zip |
Improve search for pcre header file
Some platforms (RHEL4 for instance) put the pcre header file in
a pcre subdirectory under /usr/include. This patch makes configure
first search in /usr/include/pcre, then falls back to /usr/include.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -27061,7 +27061,12 @@ if test "${with_pcre+set}" = set; then if test "$withval" = "yes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 - if test -f "/usr/include/pcre.h"; then + if test -f "/usr/include/pcre/pcre.h"; then + pcre_incdir="/usr/include/pcre" + pcre_inc="-I/usr/include/pcre" + pcre_lib='-L$(libdir)' + pcre_libdir='$(libdir)' + elif test -f "/usr/include/pcre.h"; then pcre_incdir="/usr/include" pcre_inc="-I/usr/include" pcre_lib='-L$(libdir)' |