allowed extra includes for AX_ASSERT_LIB

pull/1/head
Heiko Hund 2009-02-02 17:18:53 +00:00
parent 4003caca8a
commit 3c6d7423ff
1 changed files with 3 additions and 2 deletions

View File

@ -1,9 +1,10 @@
AC_DEFUN([AX_ASSERT_LIB], [
AC_CHECK_HEADER([$2], , [AC_MSG_FAILURE([$1 library headers could not be found.])])
AC_CHECK_HEADER([$2], , [AC_MSG_FAILURE([$1 library headers could not be found.])], [$5])
AC_MSG_CHECKING([if $1 library is available])
LIBS="-l$1 $LIBS"
AC_TRY_LINK(
[#include <$2>], [$3], [AC_MSG_RESULT([yes])],
[$5
#include <$2>], [$3], [AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no]); AC_MSG_FAILURE([$4])]
)
])