Re: Writing Autoconf tests

Thomas Jahns <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
Hello,

On 03/08/2017 08:51 PM, Yumiko wrote:
> How should I write my macro so that the test program is
> compiled and linked through the libtool program?

I've used a macro, originally from TeX-Live, that I extended for Fortran and 
which simply changes the compiler etc. to use libtool.

I found that for one compiler I needed to rewrite FCFLAGS at the same time 
because one of its options collides with those of libtool. But this shouldn't be 
an issue for C/C++.

If you simply add _KPSE_USE_LIBTOOL after all the necessary AC_PROG_* macros, 
you should be fine.

Some tests might need to be adapted if you e.g. try to deduce something from 
inspecting programs (which are wrapper scripts when using libtool).

Regards, Thomas

_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
kpse_libtool.m4 (application/x-m4, 1.2 KB) - not displayed
smime.p7s (application/pkcs7-signature, 4.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.