On 01/26/2017 03:42 PM, Eric Blake wrote: > > I'm not directly aware of a way to do it, but you CAN use AC_TRY_COMPILE > and then in the 'action-if-true' branch you can copy conftest.o to a > safe location, then try and figure out how to make the subsequent > AC_TRY_LINK refer back to the .o file that you squirreled away. You'll > have to experiment if you can't find an actual example, and if you get > it working, be sure to post back to the list, but I hope that gives you > some hints of things to try. Correction - use the modern macros instead. In fact, AC_COMPILE_IFELSE already documents that you can access conftest.$OBJEXT in the action-if-true block, so it is a supported interface: https://www.gnu.org/software/autoconf/manual/autoconf.html#Running-the-Compiler -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf