fail to compile web browser

Simon Hausmann konq-e@mail.kde.org
Tue, 21 Jan 2003 08:45:37 +0100


--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

(why did you post to -admin?)

On Tue, Jan 21, 2003 at 04:18:34PM +0800, micro wrote:
> I got error messages when making on project extracted from 
> konqueror-embedded-snapshoot-20021229.tar.gz, and the same thing 
> occurred on konqueror-embedded-snapshoot-20021216.tar.gz
> 
> the error messages listed below:
> 
> /bin/sh: -c: line 1: syntax error near unexpected token ';'
> /bin/sh: -c: line 1: 'for i in; do echo "KONQE-INIT($i);"; done >> init.inc
> 
> Do I have to define any things on this case before I run
> 
> ./configure --enable-qt-embedded --enable-mt
> make
> 
> I also checked the codes (mostly new codes) in file Makefile.in in 
> directory src
> echo '/* This file is generated automatically, do not edit*/' > $@
> for i in $(INIT_ADDONS); do echo "KONQE_INIT($$i);"; done >> $@
> 
> The line
> INIT_ADDONS =
> defined in Makefile is empty. Do I have to add any funny thing here.

Does the attached patch work for you?

Simon

--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="Makefile_patch.txt"

Index: Makefile.am
===================================================================
RCS file: /home/kde/kdenox/konq-embed/src/Makefile.am,v
retrieving revision 1.33.2.17
diff -u -p -r1.33.2.17 Makefile.am
--- Makefile.am	13 Dec 2002 16:36:40 -0000	1.33.2.17
+++ Makefile.am	21 Jan 2003 07:44:08 -0000
@@ -52,7 +52,9 @@ KDE_OPTIONS = qtonly
 
 init.inc: $(LIB_ADDONS)
 	echo '/* This file is generated automatically, do not edit */' > $@
-	for i in $(INIT_ADDONS); do echo "KONQE_INIT($$i);"; done >> $@
+	if test -n "$(INIT_ADDONS)"; then \
+		for i in $(INIT_ADDONS); do echo "KONQE_INIT($$i);"; done >> $@ ;\
+	fi
 
 uifiles:
 	$(UIC) -o $(srcdir)/preferences.h $(srcdir)/preferences.ui

--pWyiEgJYm5f9v55/--