[tracker] Don't make enca required without configure switches
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Don't make enca required without configure switches
- Date: Fri, 22 Jan 2010 17:33:23 +0000 (UTC)
commit a8a1fb90345f562f3d05861b0e802bfbdf9525db
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Jan 22 18:33:03 2010 +0100
Don't make enca required without configure switches
configure.ac | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a117996..9117f78 100644
--- a/configure.ac
+++ b/configure.ac
@@ -210,19 +210,20 @@ AC_SUBST(UUID_LIBS)
# Check for enca, detects defect Russian or Cyrillic language specifics in mp3s
AC_ARG_WITH([enca],
- AS_HELP_STRING([--with-enca], [build with enca]),,
+ AS_HELP_STRING([--with-enca], [build with enca]),[with_enca=no],
[with_enca=yes])
if test x$with_enca = xyes ; then
- PKG_CHECK_MODULES(ENCA, [enca >= 1.9])
+ PKG_CHECK_MODULES(ENCA, [enca >= 1.9], have_enca=yes, have_enca=no)
AC_SUBST(ENCA_CFLAGS)
AC_SUBST(ENCA_LIBS)
- AC_DEFINE(HAVE_ENCA, [], [Enca language detection aid])
+ if test x$have_enca == "xyes"; then
+ AC_DEFINE(HAVE_ENCA, [], [Enca language detection aid])
+ fi
fi
-have_enca=$with_enca
AM_CONDITIONAL(HAVE_ENCA, test "$have_enca" = "yes")
AC_PATH_PROG(VALAC, valac, valac)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]