aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/qwo/qwo-0.4/check_lib.patch
blob: c22ec203122d15a6c3226e8544fa65b7114d50df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/configure.ac b/configure.ac
index 8a66f96..61063a9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,15 +19,7 @@ AC_CHECK_LIB(config, config_read)
 
 dnl Check for imlib2 library
 
-AC_PATH_PROG(IMLIB2_CONFIG, imlib2-config, no)
-
-if test "$IMLIB2_CONFIG" = "no" ; then
-    AC_MSG_ERROR([
-*** Unable to find Imlib2 library.])
-else
-    CFLAGS="$CFLAGS `$IMLIB2_CONFIG --cflags`"
-    LIBS="$LIBS `$IMLIB2_CONFIG --libs`"
-fi
+AC_CHECK_LIB(Imlib2, imlib_create_image)
 
 dnl Check for help2man