1 dnl @synopsis MC_VERSION
3 dnl Check search type in mc. Currently used glib-regexp or pcre
5 dnl @author Slava Zanko <slavazanko@gmail.com>
6 dnl @version 2009-06-19
8 dnl @copyright Free Software Foundation, Inc.
10 AC_DEFUN([MC_CHECK_SEARCH_TYPE],[
12 $PKG_CONFIG --max-version 2.14 glib-2.0
13 if test $? -eq 0; then
15 if test x"${PCRE_LIBS}" = x; then
16 AC_MSG_ERROR([Your system have glib < 2.14 and don't have pcre library (or pcre devel stuff)])
20 SEARCH_TYPE="glib-regexp"