autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch #7320] AX_BLAS: AC_CHECK_FUNC autocaching makes problems


From: Steven G. Johnson
Subject: Re: [patch #7320] AX_BLAS: AC_CHECK_FUNC autocaching makes problems
Date: Mon, 20 Sep 2010 19:43:14 -0400

In AX_BLAS, AC_CHECK_FUNC is used to check for SGEMM. The problem is that AC_CHECK_FUNC autocaches its result, but the LIBS are being manipulated, so the cache is not valid after the test and can fool subsequent tests. For a
real occurrence of the problem, see
https://savannah.gnu.org/bugs/index.php?31046

The attached patch replaces AC_CHECK_FUNC calls by AC_TRY_LINK_FUNC, which
does not autocache.

Thanks for the patch, in principle this looks good.

As a cosmetic issue, however, it looks like you need to call AC_MSG_RESULT to print out a message from the tests: call AC_MSG_RESULT(yes) if it succeeds, and ...(no) if it fails.

Steven




reply via email to

[Prev in Thread] Current Thread [Next in Thread]