This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit 16496a3cb2f17595b5c71e71f24c7d4687dfb68c
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Tue May 23 09:18:22 2023 +0200

    autofoo: Don't check for freetype if we are building without text
    
    https://git.enlightenment.org/old/legacy-imlib2/issues/11
---
 configure.ac | 46 ++++++++++++++++++++++++----------------------
 1 file changed, 24 insertions(+), 22 deletions(-)

diff --git a/configure.ac b/configure.ac
index b153ecf..d666ba0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,6 +71,27 @@ AC_DEFUN([EC_LOADER_CHECK], [
 ])
 
 
+AC_ARG_ENABLE([filters],
+  [AS_HELP_STRING([--enable-filters], [Enable filters @<:@default=yes@:>@])],
+  enable_filters="$enableval",
+  enable_filters="yes"
+)
+if test "$enable_filters" = "yes"; then
+  AC_DEFINE(ENABLE_FILTERS, 1, [Enable filters])
+fi
+AM_CONDITIONAL(ENABLE_FILTERS, test "$enable_filters" = "yes")
+
+AC_ARG_ENABLE([text],
+  [AS_HELP_STRING([--enable-text], [Enable text (TrueType font functions) @<:@default=yes@:>@])],
+  enable_text="$enableval",
+  enable_text="yes"
+)
+if test "$enable_text" = "yes"; then
+  AC_DEFINE(ENABLE_TEXT, 1, [Enable text functions])
+fi
+AM_CONDITIONAL(ENABLE_TEXT, test "$enable_text" = "yes")
+
+
 mmx=no
 amd64=no
 case $host_cpu in
@@ -123,8 +144,9 @@ fi
 AC_MSG_RESULT($amd64)
 AM_CONDITIONAL(BUILD_AMD64, test x$amd64 = xyes)
 
-# check for freetype
-PKG_CHECK_MODULES(FREETYPE, freetype2)
+if test "$enable_text" = "yes"; then
+  PKG_CHECK_MODULES(FREETYPE, freetype2)
+fi
 
 AC_PATH_X
 AC_PATH_XTRA
@@ -226,26 +248,6 @@ EC_LOADER_CHECK(ID3,  auto, id3tag)
 
 AM_CONDITIONAL(BUILD_TEST, false)
 
-AC_ARG_ENABLE([filters],
-  [AS_HELP_STRING([--enable-filters], [Enable filters @<:@default=yes@:>@])],
-  enable_filters="$enableval",
-  enable_filters="yes"
-)
-if test "$enable_filters" = "yes"; then
-  AC_DEFINE(ENABLE_FILTERS, 1, [Enable filters])
-fi
-AM_CONDITIONAL(ENABLE_FILTERS, test "$enable_filters" = "yes")
-
-AC_ARG_ENABLE([text],
-  [AS_HELP_STRING([--enable-text], [Enable text (TrueType font functions) @<:@default=yes@:>@])],
-  enable_text="$enableval",
-  enable_text="yes"
-)
-if test "$enable_text" = "yes"; then
-  AC_DEFINE(ENABLE_TEXT, 1, [Enable text functions])
-fi
-AM_CONDITIONAL(ENABLE_TEXT, test "$enable_text" = "yes")
-
 AC_ARG_ENABLE([debug],
   [AS_HELP_STRING([--enable-debug], [Enable debug features @<:@default=no@:>@])],
   [

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to