<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C59C28.3FCAD710">
<title>osm: management headers installed into /usr/local/include </title>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:Zoom>120</w:Zoom>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:ApplyBreakingRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
@font-face
{font-family:"Palatino Linotype";
panose-1:2 4 5 2 5 5 5 3 3 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-536870009 1073741843 0 0 415 0;}
@font-face
{font-family:"Monotype Corsiva";
panose-1:3 1 1 1 1 2 1 1 1 1;
mso-font-charset:0;
mso-generic-font-family:script;
mso-font-pitch:variable;
mso-font-signature:647 0 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal-reply;
mso-style-noshow:yes;
mso-ansi-font-size:12.0pt;
mso-bidi-font-size:12.0pt;
font-family:"Palatino Linotype";
mso-ascii-font-family:"Palatino Linotype";
mso-hansi-font-family:"Palatino Linotype";
color:navy;
font-weight:bold;
font-style:normal;
text-decoration:none;
text-underline:none;
text-decoration:none;
text-line-through:none;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>
<div class=Section1>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>Hi Hal,<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>I looked further into the <span class=SpellE>userspace</span>/management <span
class=SpellE>autoconf/automake</span> system and found out that the tweak of
the prefix directory (from /<span class=SpellE>usr</span>/local to /<span
class=SpellE>usr/local/<span class=GramE>ib</span></span>) was done in a hack,
rather then the "auto tools" way:<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><span class=SpellE><b><font size=3 color=navy
face="Palatino Linotype"><span style='font-size:12.0pt;font-family:"Palatino Linotype";
color:navy;font-weight:bold'>Autoconf</span></font></b></span><b><font
color=navy face="Palatino Linotype"><span style='font-family:"Palatino Linotype";
color:navy;font-weight:bold'> provides the macro: </span></font>AC_PREFIX_DEFAULT
</b><b><font color=navy face="Palatino Linotype"><span style='font-family:"Palatino Linotype";
color:navy;font-weight:bold'>to do change default prefix.<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>Using this macro the <span class=SpellE>bindir</span>, <span
class=SpellE>libdir</span> and <span class=SpellE>includedir</span>, <span
class=SpellE>datadir</span>, etc, will be set correctly.<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>To use it in our case every <span class=SpellE>configure.in</span> should
have this directive:<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-weight:bold'>AC_PREFIX_<span class=GramE>DEFAULT(</span>[/<span
class=SpellE>usr/local/ib</span>])</span></font></b><b><font color=navy
face="Palatino Linotype"><span style='font-family:"Palatino Linotype";
color:navy;font-weight:bold'><o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>The current method of overriding the <span class=SpellE>bindir/libdir</span>
in the <span class=SpellE>Makefile.am</span> works but breaks other standard <span
class=SpellE>autoconf</span> features like the -prefix for directing the installation
dir to the non default directory.<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>Actually some other prefix dependant variables should be re-assigned and
are missing.<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>I think that we should fix this and do it the "Auto tools"
way.<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>Please approve and I will provide a patch for using the macro.<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>Actually the entire management tree should have been built as a standard "auto
tools" project utilizing the AC_CONFIG_SUBDIRS. This is somewhat a larger
change so I do not think it worth it this time. It will require ALL the sub
directories to be "<span class=SpellE>autogen</span>" then ALL of
them configured then ALL make ...<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>This normally requires a special compilation mode ("pre-install")
where the <span class=SpellE>libs</span> and includes are taken from relative
paths rather then from the final "install" path. The advantage is
that the entire project can be "configured" and if something is
broken in the required C lib or <span class=SpellE>stdlib</span> you do not
wait for the specific sub dir to fail but get the notice in advance. There
might be other benefits like adhering to the standard build procedure.<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>Please approve the direction for this patch (using AC_DEFAULT_PREFIX) is
acceptable.</span></font></b><font color=navy face="Palatino Linotype"><span
style='font-family:"Palatino Linotype";color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>EZ<o:p></o:p></span></font></b></p>
<div>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><b><i><font
size=5 color=blue face="Monotype Corsiva"><span lang=EN-GB style='font-size:
20.0pt;font-family:"Monotype Corsiva";mso-bidi-font-family:"Monotype Corsiva";
color:blue;mso-ansi-language:EN-GB;font-weight:bold;font-style:italic;
mso-no-proof:yes'>Eitan Zahavi</span></font></i></b><font size=1 color=navy
face=Tahoma><span lang=EN-GB style='font-size:8.5pt;font-family:Tahoma;
color:navy;mso-ansi-language:EN-GB;mso-no-proof:yes'><o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=navy face=Tahoma><span lang=EN-GB style='font-size:8.5pt;
font-family:Tahoma;color:navy;mso-ansi-language:EN-GB;mso-no-proof:yes'>Design
Technology Director<o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=navy face=Tahoma><span lang=EN-GB style='font-size:8.5pt;
font-family:Tahoma;color:navy;mso-ansi-language:EN-GB;mso-no-proof:yes'>Mellanox
Technologies LTD<o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=navy face=Tahoma><span lang=EN-GB style='font-size:8.5pt;
font-family:Tahoma;color:navy;mso-ansi-language:EN-GB;mso-no-proof:yes'>Tel:+972-4-9097208<br>
Fax:+972-4-9593245<o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=navy face=Tahoma><span lang=EN-GB style='font-size:8.5pt;
font-family:Tahoma;color:navy;mso-ansi-language:EN-GB;mso-no-proof:yes'>P.O.
Box 586 Yokneam 20692 ISRAEL<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Eitan Zahavi
[mailto:eitan@mellanox.co.il] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, August 08, 2005
12:05 PM<br>
<b><span style='font-weight:bold'>To:</span></b> openib-general@openib.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [openib-general] osm:
management headers installed into /usr/local/include </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p><font size=3 color=blue face="Palatino Linotype"><span style='font-size:
12.0pt;font-family:"Palatino Linotype";color:blue'>Hi</span></font> <font
color=blue face="Palatino Linotype"><span style='font-family:"Palatino Linotype";
color:blue'>Hal,</span></font><o:p></o:p></p>
<p><font size=3 color=blue face="Palatino Linotype"><span style='font-size:
12.0pt;font-family:"Palatino Linotype";color:blue'>According to the README from
the management directory the executables are installed by default to:</span></font><o:p></o:p></p>
<p><font size=3 color=blue face="Palatino Linotype"><span style='font-size:
12.0pt;font-family:"Palatino Linotype";color:blue'>/usr/local/ib/bin and the
libs into</span></font> <font color=blue face="Palatino Linotype"><span
style='font-family:"Palatino Linotype";color:blue'>/usr/local/ib/lib.</span></font><o:p></o:p></p>
<p><font size=3 color=blue face="Palatino Linotype"><span style='font-size:
12.0pt;font-family:"Palatino Linotype";color:blue'>The header files are not
described but are installed into</span></font> <font color=blue
face="Palatino Linotype"><span style='font-family:"Palatino Linotype";
color:blue'>/usr/local/include/infiniband</span></font><o:p></o:p></p>
<p><font size=3 color=blue face="Palatino Linotype"><span style='font-size:
12.0pt;font-family:"Palatino Linotype";color:blue'>Was this done in purpose?</span></font><o:p></o:p></p>
<p><font size=3 color=blue face="Palatino Linotype"><span style='font-size:
12.0pt;font-family:"Palatino Linotype";color:blue'>I would expect the headers
to follow the same prefix of the executables and libs.</span></font><o:p></o:p></p>
<p><font size=3 color=blue face="Palatino Linotype"><span style='font-size:
12.0pt;font-family:"Palatino Linotype";color:blue'>I can work on a patch to
move them to</span></font> <font color=blue face="Palatino Linotype"><span
style='font-family:"Palatino Linotype";color:blue'>/usr/local/ib/include</span></font><o:p></o:p></p>
<p><font size=3 color=blue face="Palatino Linotype"><span style='font-size:
12.0pt;font-family:"Palatino Linotype";color:blue'>EZ</span></font><o:p></o:p></p>
</div>
</div>
</body>
</html>