[patch] liboil: jit example does only work when glib is active

Robert Schwebel <[email protected]>
Newsgroups gmane.comp.video.gstreamer.announce
Message-ID <20080223001521.GI25138__12604.6941652477$1203961451$gmane$org@pengutronix.de>
From: Robert Schwebel <[email protected]>

The makefile tries to build the jit example unconditionally, which fails
if we don't find glib:

jit.c:4:18: error: glib.h: No such file or directoryojprogram.c:4:18:

Signed-off-by: Robert Schwebel <[email protected]>

---
 examples/Makefile.am |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: liboil-0.3.13/examples/Makefile.am
===================================================================
--- liboil-0.3.13.orig/examples/Makefile.am	2008-02-22 20:59:17.000000000 +0100
+++ liboil-0.3.13/examples/Makefile.am	2008-02-23 01:01:02.000000000 +0100
@@ -1,5 +1,8 @@
+if HAVE_GLIB
+SUBDIRS_GLIB = jit
+endif
 
-SUBDIRS = jpeg md5 uberopt work huffman taylor videoscale audioresample jit
+SUBDIRS = jpeg md5 uberopt work huffman taylor videoscale audioresample $(SUBDIRS_GLIB)
 
 bin_PROGRAMS = oil-bugreport
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.