[Click] ?Bug?/Annoyance in makefile with ./configure --enable-local

Eddie Kohler kohler at CS.UCLA.EDU
Sat Feb 19 23:04:24 EST 2005


A ha!  Try this patch.

E




Nicholas Weaver wrote:
> Release version click-1.4.3, FreeBSD
> 
> I have two elements in a (symlinked) elements/local directory:
> ArpPrint and EtherPrint (these are currently just placeholder
> elements, copies of Print with the names changed).
> 
> ./configure --enable-local
> gmake elemlist
> 
> both work fine.  Now (cd userlevel; gmake)
> gives an eventual error in the building:
> gmake: *** No rule to make target `arpprint.o', needed by `click'. Stop.
> 
> I manually edit the Makefile in userlevel to add
> 
> $(top_srcdir)/elements/local 
> 
> in the VPATH and it works and compiles, and the modules are recognised
> within click configurations.
> 
> Am I forgetting to do something, or is there a minor bug in the
> configuration script?
> 
> Thank you.
> 
-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /home/am0/click/cvsroot/release/one/configure.in,v
retrieving revision 1.253
diff -u -r1.253 configure.in
--- configure.in	4 Jan 2005 04:04:57 -0000	1.253
+++ configure.in	20 Feb 2005 04:01:20 -0000
@@ -154,7 +154,7 @@
 ELEMENTS_ARG_ENABLE(test, [include regression test elements], NO)
 ELEMENTS_ARG_ENABLE(wifi, [include wifi support], NO)
 
-elements_vpath=`(cd $srcdir/elements; for i in $element_groups; do find $i -type d -print; done) | grep -v CVS | sed 's/^/$(top_srcdir)\/elements\//' | tr '\012' :`
+elements_vpath=`(cd $srcdir/elements; for i in $element_groups; do find $i -follow -type d -print; done) | grep -v CVS | sed 's/^/$(top_srcdir)\/elements\//' | tr '\012' :`
 AC_SUBST(elements_vpath)
 
 


More information about the click mailing list