[Fontconfig] fontconfig: Branch 'master'

Akira TAGOH tagoh at kemper.freedesktop.org
Fri Apr 20 04:13:56 PDT 2012


 configure.in |    4 +---
 src/fcstr.c  |    2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 22dc5460906f78b3dc1b12ab2440e62b930adf0b
Author: Akira TAGOH <akira at tagoh.org>
Date:   Fri Apr 20 20:04:17 2012 +0900

    Fix a build issue again when no regex functions available
    
    Reported by Jon TURNEY

diff --git a/configure.in b/configure.in
index 9bb0988..62bc25e 100644
--- a/configure.in
+++ b/configure.in
@@ -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
diff --git a/src/fcstr.c b/src/fcstr.c
index a6f0ba7..ae37ff0 100644
--- a/src/fcstr.c
+++ b/src/fcstr.c
@@ -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


More information about the Fontconfig mailing list