[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Writing Autoconf tests
From: |
Thomas Jahns |
Subject: |
Re: Writing Autoconf tests |
Date: |
Thu, 9 Mar 2017 09:55:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
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
kpse_libtool.m4
Description: application/m4
smime.p7s
Description: S/MIME Cryptographic Signature