<br><br><div><span class="gmail_quote">On 6/1/07, <b class="gmail_sendername">Michael Ströder</b> &lt;<a href="mailto:michael@stroeder.com">michael@stroeder.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Alain Spineux wrote:<br>&gt;<br>&gt; May I suggest to change (in file LDAPObject.c )<br>&gt;<br>&gt;&gt; #include &lt;sasl.h&gt;<br>&gt;<br>&gt; into<br>&gt;<br>&gt;&gt; #include &lt;sasl/sasl.h&gt;<br>&gt;<br>&gt; That way you can change (in file 
setup.cfg)<br>&gt;<br>&gt;&gt;&nbsp;&nbsp;library_dirs = /usr/local/openldap- 2.3/lib<br>&gt;&gt;&nbsp;&nbsp;include_dirs = /usr/local/openldap-2.3/include /usr/include/sasl<br>&gt;<br>&gt; into<br>&gt;<br>&gt;&gt;&nbsp;&nbsp;library_dirs = /usr/local/openldap-
2.3/lib<br>&gt;&gt;&nbsp;&nbsp;include_dirs = /usr/local/openldap-2.3/include<br>&gt;<br>&gt; That way gcc will use its own header location and not use the<br>&gt; one installed in /usr/include/sasl by any linux distribution<br>&gt; This is useful when having multiple version of gcc ...
<br>&gt;<br>&gt; That way on my own system I don&#39;t need tu update setup.cfg.<br><br>Alain, this seems to make sense. But are you sure that it&#39;s valid for<br>all versions of Cyrus-SASL? I</blockquote><div>&nbsp;<br>No :-(
<br>I looked postfix sources and found about SASL&nbsp; 1.5.5<br><br>On some systems this generates the necessary Makefile definitions:<br><br>(for SASL version 1.5.5):<br><br>&nbsp;&nbsp;&nbsp; % make tidy # if you have left-over files from a previous build
<br>&nbsp;&nbsp;&nbsp; % make makefiles CCARGS=&quot;-DUSE_SASL_AUTH -I/usr/local/include&quot; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUXLIBS=&quot;-L/usr/local/lib -lsasl&quot;<br><br>(for SASL version 2.1.1):<br><br>&nbsp;&nbsp;&nbsp; % make tidy # if you have left-over files from a previous build
<br>&nbsp;&nbsp;&nbsp; % make makefiles CCARGS=&quot;-DUSE_SASL_AUTH -I/usr/local/include/sasl&quot; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUXLIBS=&quot;-L/usr/local/lib -lsasl2&quot;<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&#39;d love to accept this change but I wonder<br>whether it will break older installations. </blockquote><div><br>This is what I worry about.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Note that you can correct the<br>current include-statement by tweaking setup.cfg. But not the other way.<br><br>In OpenLDAP sources the following construct is used:<br><br>#ifdef HAVE_SASL_SASL_H<br>#include &lt;sasl/sasl.h&gt;
<br>#else<br>#include &lt;sasl.h&gt;<br>#endif<br><br>I guess HAVE_SASL_SASL_H is set by autoconf though.</blockquote><div><br>Yes I saw that.<br><br>Keep the idea in your mind, and a day, if you use like me a &quot;tree rooted&quot; system like openpkg,
<br>don&#39;t replace the current /usr/include/sasl with /openpkg/include/sasl/sasl.h,<br>just apply my patch :-)<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ciao, Michael.<br></blockquote></div><br>Regards.<br><br>Alain<br>&nbsp;<br>--<br>Alain Spineux<br>aspineux gmail com<br>May the sources be with you<br>