<div class="gmail_quote">On Tue, Apr 7, 2009 at 9:24 AM, Pavan Balaji <span dir="ltr"><<a href="mailto:balaji@mcs.anl.gov">balaji@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I was able to add my new parameter and when calling configure with it,<br>
I then have #define HAVE_PERUSE set to 1 in mpichconf.h<br>
</blockquote>
<br></div>
mpichconf.h is autogenerated by configure, so you shouldn't change that directly. If you add a AC_DEFINE() inside <a href="http://configure.in" target="_blank">configure.in</a>, it'll automatically get added to mpichconf.h</blockquote>
<div><br>I didn't change mpichconf.h directly, I meant that once I called configure --enable-peruse it automatically added the HAVE_PERUSE 1 to mpichconf.h. Well, at least that I got right :)<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">My question now is: how do I actually make src/peruse/*.c into MPICH2?<br>
<br></div>
Actually, it's not too complicated once you know how things work. First, you need your USE_PERUSE definition to go into mpichconf.h, so as I pointed out, it needs a <a href="http://configure.in" target="_blank">configure.in</a> change at the top-level. Then, you need simplemake to recognize your new directory --- all this means is that you add the src/peruse directory into the src/Makefile.sm file (this will generate src/Makefile.in). Finally, you want src/Makefile to be generated, so configure will need to know about src/Makefile.in; so you want to add src/Makefile into the AC_OUTPUT() section of the top-level configure. That's it.<br>
<br>
I've attached a patch based on the svn trunk for your reference. <br></blockquote><div><br>So, I have followed your instructions, and found out that I also had to create an src/peruse/Makefile.sm (when running maint/updatefiles it complained about that). So I looked at src/pmi/Makefile.sm and figured that since my src/peruse doesn't have any subdirs I could just have: SUBDIRS = .<br>
However, to test if it would compile src/peruse/*.c , I created a peruse.c with garbage, that should lead to an error, but it didn't (that is, it didn't consider the *.c files) :(<br><br>What am I missing? I'm eager to get started with the coding.<br>
<br>Thank you very much,<br><br></div></div>-- <br>Eduardo Bacchi Kienetz<br>