<div dir="ltr">Jason,<div><br></div><div>I'm no Makefile expert, but a solution à la CMake involves checking for the library/header existence in common library/header location (/usr/..., /usr/local/..., etc). If the library is found, we use it, otherwise, we prompt a relevant error message. CMake has its own Find* mechanism; isn't the autotools ./configure exactly for that purpose?</div>
<div><br></div><div>HTH,</div><div>-F</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 17, 2014 at 5:36 PM, Jason A. Donenfeld <span dir="ltr"><<a href="mailto:Jason@zx2c4.com" target="_blank">Jason@zx2c4.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Jan 17, 2014 at 8:08 PM, Félix C. Morency<br>
<<a href="mailto:felix.morency@gmail.com">felix.morency@gmail.com</a>> wrote:<br>
> You should add pkg-config to the list of dependencies in the README. It is<br>
> required if you want to build with Lua support. Also, it might be a good<br>
> idea to check for pkg-config presence in the Makefile.<br>
<br>
</div>Thanks for the report; this is a good idea.<br>
<br>
Do you have any ideas on a fallback, for when pkg-config isn't<br>
available? I know for LUA_IMPLEMENTATION=VANILLA, we can probably just<br>
add a -llua to LIBS, but it's not as straight forward for<br>
LUA_IMPLEMENTATION=JIT. Any feedback would be most appreciated.<br>
<span class="HOEnZb"><font color="#888888"><br>
Jason<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Félix C. Morency, M.Sc.<br>Plateforme d’analyse et de visualisation d’images<br>Centre Hospitalier Universitaire de Sherbrooke<br>
Centre de recherche clinique Étienne-Le Bel<br>Local Z5-3031 | 819.346.1110 ext 16634 </div>
</div>