Fix a build issue again when no regex functions available

Reported by Jon TURNEY
This commit is contained in:
Akira TAGOH 2012-04-20 20:04:17 +09:00
parent 9fa7b7c8f2
commit 22dc546090
2 changed files with 2 additions and 4 deletions

View File

@ -138,11 +138,9 @@ AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr strtol
#
# regex
#
use_regex=0
if test "x$ac_cv_func_regcomp" = "xyes" -a "x$ac_cv_func_regerror" = "xyes" -a "x$ac_cv_func_regexec" = "xyes" -a "x$ac_cv_func_regfree"; then
use_regex=1
AC_DEFINE(USE_REGEX,,[Use regex])
fi
AC_DEFINE_UNQUOTED(USE_REGEX,$use_regex,[Use regex.])
#
# Checks for iconv

View File

@ -306,7 +306,7 @@ _FcStrRegexCmp (const FcChar8 *s, const FcChar8 *regex, int cflags, int eflags)
return ret == 0 ? FcTrue : FcFalse;
}
#else
# define _FcStrRegexCmp(_s_, _regex_) (FcFalse)
# define _FcStrRegexCmp(_s_, _regex_, _cflags_, _eflags_) (FcFalse)
#endif
FcBool