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 _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf