[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatic rebuilds, LIBS, and autoheader
From: |
Stepan Kasal |
Subject: |
Re: Automatic rebuilds, LIBS, and autoheader |
Date: |
Thu, 8 Jun 2006 21:01:38 +0200 |
User-agent: |
Mutt/1.4.2.1i |
Hello,
On Tue, Jun 06, 2006 at 08:23:26PM -0700, Micah J. Cowan wrote:
> AC_CHECK_LIB(readline, readline,
> [AC_DEFINE(HAVE_LIBREADLINE, 1,
> [Define to 1 if you have the `readline' library (libreadline).])],
> [AC_MSG_WARN([Won't build pitchcalc])])
well, I wouldn't hesitate to use the above.
But if you don't like it, you can separate the declaration from
AC_DEFINE, using AH_TEMPLATE:
AH_TEMPLATE([HAVE_LIBREADLINE], [Define to 1 if you have the
`readline' library (libreadline).]
...
Or you can use undocumented macro AH_CHECK_LIB:
AH_CHECK_LIB([readline])
AH_CHECK_LIB([check])
AH_CHECK_LIB([m])
Or, if you want to make in in one go for all three:
m4_foreach([A_LIB], [readline, check, m], [AH_CHECK_LIB(A_LIB)])
Hope this will help,
Stepan Kasal