summaryrefslogtreecommitdiffstats
path: root/server/external
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-08-31 20:30:46 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-09-01 14:51:18 -0400
commitb641864b0250923e279dadd1866c7b8cea6c1372 (patch)
tree481e0278eaf8751425e0b2443052091baaeefedb /server/external
parentd5450bc3c771bcc4c70f07b7028c9dffd80a5281 (diff)
downloadsssd-b641864b0250923e279dadd1866c7b8cea6c1372.tar.gz
sssd-b641864b0250923e279dadd1866c7b8cea6c1372.tar.xz
sssd-b641864b0250923e279dadd1866c7b8cea6c1372.zip
check if libpcre version is above or below 7
PCRE_DUPNAMES is a new feature of libpcre 7. It is used in sssd to make the splitting of fully qualified user names more flexible.
Diffstat (limited to 'server/external')
-rw-r--r--server/external/libpcre.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/server/external/libpcre.m4 b/server/external/libpcre.m4
index bda7a6b6e..5917c8cfd 100644
--- a/server/external/libpcre.m4
+++ b/server/external/libpcre.m4
@@ -3,7 +3,13 @@ AC_SUBST(PCRE_OBJ)
AC_SUBST(PCRE_LIBS)
AC_SUBST(PCRE_CFLAGS)
-PKG_CHECK_MODULES(PCRE, libpcre >= 7)
+PKG_CHECK_MODULES(PCRE, libpcre)
+PKG_CHECK_EXISTS(libpcre >= 7,
+ [AC_MSG_NOTICE([PCRE version is 7 or higher])],
+ [AC_MSG_NOTICE([PCRE version is below 7])
+ AC_DEFINE([HAVE_LIBPCRE_LESSER_THAN_7],
+ 1,
+ [Define if libpcre version is less than 7])])
AC_CHECK_HEADERS(pcre.h)
AC_CHECK_LIB(pcre, pcre_compile, [ PCRE_LIBS="-lpcre" ], [AC_MSG_ERROR([PCRE is required])])