<div dir="ltr">Ah, that does clarify things some! I'll try going from that, and if I have more questions, I'll try the autoconf list. Thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 23, 2016 at 9:11 PM, Diego Novillo <span dir="ltr"><<a href="mailto:dnovillo@google.com" target="_blank">dnovillo@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jack's correct about moving this to <a href="mailto:autoconf@gnu.org">autoconf@gnu.org</a>.  However, you<br>
can start by cutting and pasting the <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> bits from the same<br>
github repo I pointed you to earlier today.  The actual commit that<br>
brought those changes may be easier to use as a template.<br>
<br>
<a href="https://github.com/google/autofdo/pull/30/commits/0029f4be825f851b9d99bcd19dcb34fd59f1775e" rel="noreferrer" target="_blank">https://github.com/google/autofdo/pull/30/commits/0029f4be825f851b9d99bcd19dcb34fd59f1775e</a><br>
<span class="im HOEnZb"><br>
On Wed, Mar 23, 2016 at 4:35 PM, Russell Wallace via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
</span><div class="HOEnZb"><div class="h5">> I'm writing a C++ program that uses LLVM, and trying to build it with<br>
> autotools. Thanks to Diego Novillo, there is an M4 macro that detects<br>
> llvm-config: <a href="https://github.com/google/autofdo/blob/master/m4/ax_llvm.m4" rel="noreferrer" target="_blank">https://github.com/google/autofdo/blob/master/m4/ax_llvm.m4</a><br>
><br>
> How do I use it? Given that I've written a basic <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> that can<br>
> compile a basic C++ program, how do I modify it to make use of the macro?<br>
> And should the macro be copied into the project directory as a separate file<br>
> or pasted into <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a>? I tried a Google search for how to include a<br>
> macro from <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> but I'm not clear on what the results mean.<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
><br>
</div></div></blockquote></div><br></div>