[389-commits] Branch 'Directory_Server_8_2_Branch' - configure m4/pcre.m4
Nathan Kinder
nkinder at fedoraproject.org
Tue Feb 9 20:55:54 UTC 2010
configure | 7 ++++++-
m4/pcre.m4 | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
New commits:
commit cddf04473664989af14c9e40404a5f4f5914ef80
Author: Nathan Kinder <nkinder at redhat.com>
Date: Tue Feb 9 12:21:34 2010 -0800
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.
diff --git a/configure b/configure
index cf7ff90..821b774 100755
--- a/configure
+++ b/configure
@@ -27060,7 +27060,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)'
diff --git a/m4/pcre.m4 b/m4/pcre.m4
index 6096108..0c7569d 100644
--- a/m4/pcre.m4
+++ b/m4/pcre.m4
@@ -27,7 +27,12 @@ AC_ARG_WITH(pcre, [ --with-pcre=PATH Perl Compatible Regular Expression direc
if test "$withval" = "yes"; then
AC_MSG_RESULT(yes)
dnl - check in system locations
- 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)'
More information about the 389-commits
mailing list