blob: 2326cbf864d15cc540d7ec6a4a0ea251c6ba3a37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
AC_SUBST(PCRE_LIBS)
AC_SUBST(PCRE_CFLAGS)
PKG_CHECK_MODULES([PCRE], [libpcre], [found_libpcre=yes], [found_libpcre=no])
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])])
SSS_AC_EXPAND_LIB_DIR()
AS_IF([test x"$found_libpcre" != xyes],
[AC_CHECK_HEADERS([pcre.h],
[AC_CHECK_LIB([pcre],
[pcre_compile],
[PCRE_LIBS="-L$sss_extra_libdir -lpcre"],
[AC_MSG_ERROR([No usable PCRE library found])],
[-L$sss_extra_libdir])],
[AC_MSG_ERROR([pcre header files are not installed])])]
)
|