Index: Makefile.am
===================================================================
RCS file: /cvs/gstreamer/gstreamer/gst/parse/Makefile.am,v
retrieving revision 1.31
diff -u -p -r1.31 Makefile.am
--- Makefile.am	15 Oct 2005 13:58:17 -0000	1.31
+++ Makefile.am	28 Apr 2006 16:51:43 -0000
@@ -21,4 +21,11 @@ grammar.tab.c grammar.tab.h: grammar.y 
 	$(BISON_PATH) -d -v -p_gst_parse__yy $(srcdir)/grammar.y -o grammar.tab.c
  
 lex._gst_parse_yy.c: parse.l grammar.tab.h
-	$(FLEX_PATH) -P_gst_parse_yy $^
+	$(FLEX_PATH) -P_gst_parse_yy_tmp $^
+	echo '#ifdef HAVE_CONFIG_H' > lex._gst_parse_yy_tmp2.c
+	echo '#include <config.h>' >> lex._gst_parse_yy_tmp2.c
+	echo '#endif' >> lex._gst_parse_yy_tmp2.c
+	cat lex._gst_parse_yy_tmp.c >> lex._gst_parse_yy_tmp2.c
+	rm lex._gst_parse_yy_tmp.c
+	mv lex._gst_parse_yy_tmp2.c lex._gst_parse_yy.c
+
