[asterisk-dev] [Code Review] Honor --with-${library}=/path directory when using AST_EXT_TOOL_CHECK

Terry Wilson twilson at digium.com
Wed Jun 23 15:33:46 CDT 2010



> On 2010-06-23 15:13:25, Kevin Fleming wrote:
> > /trunk/autoconf/ast_ext_tool_check.m4, lines 10-14
> > <https://reviewboard.asterisk.org/r/739/diff/1/?file=11014#file11014line10>
> >
> >     It looks like AC_PATH_TOOL would be a better choice here; it does the same thing as AC_CHECK_TOOL, but it returns the entire path of the tool found, not just the filename. This would greatly improve the safety of this code in cases where there are multiple copies of the tool found.

Changed. Thanks. My knowledge of the various built-in AC_* macros is not that great (but, slowly getting better).


- Terry


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/739/#review2257
-----------------------------------------------------------


On 2010-06-23 15:32:43, Terry Wilson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/739/
> -----------------------------------------------------------
> 
> (Updated 2010-06-23 15:32:43)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Libraries that rely on pkgconfig scripts to handle cflags/ldflags arguments currently only look for the ${library}-config script in the path. If you want to compile against a different copy and pass --with-${library}=/path, you end up getting the wrong ${library}-config script. This change makes AST_EXT_TOOL_CHECK first look for the tool in /path/bin.
> 
> 
> This addresses bug 16991.
>     https://issues.asterisk.org/view.php?id=16991
> 
> 
> Diffs
> -----
> 
>   /trunk/autoconf/ast_ext_tool_check.m4 272124 
> 
> Diff: https://reviewboard.asterisk.org/r/739/diff
> 
> 
> Testing
> -------
> 
> Verified that existing AST_EXT_TOOL_CHECK libraries seem to be unaffected and that passing --with-netsnmp=/tmp/netsnmp resulted in it finding the /tmp/netsnmp/bin/netsnmp-config script.
> 
> 
> Thanks,
> 
> Terry
> 
>




More information about the asterisk-dev mailing list