Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Fwd: Re: zsh compilation problem with autoconf git



Ismail =?utf-8?q?D=C3=B6nmez?= wrote:
> Why doesn't it parse config.h instead? I got
> 
> #define DYNAMIC 1
> 
> in config.h so this could be grepped easily.

That's a nice easy and effective fix.  If anyone wants to be more
sophisticated they can.

Index: Src/mkmakemod.sh
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/mkmakemod.sh,v
retrieving revision 1.16
diff -u -r1.16 mkmakemod.sh
--- Src/mkmakemod.sh	28 May 2007 22:57:41 -0000	1.16
+++ Src/mkmakemod.sh	30 Jan 2008 09:42:16 -0000
@@ -111,10 +111,7 @@
     sed -e '/^#/d' -e 's/ .*/ /' -e 's/^name=/ /'`"
     module_list="${bin_mods}${dyn_mods}"
 
-    # check 2.13, 2.50, and 2.60 syntaxes
-    if grep '%@D@%D%' config.status >/dev/null ||
-       grep ',@D@,D,' config.status >/dev/null ||
-       grep ',@D@,|#_!!_#|D,' config.status >/dev/null; then
+    if grep '^#define DYNAMIC ' config.h >/dev/null; then
 	is_dynamic=true
     else
 	is_dynamic=false


-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author