On Wednesday 24 December 2008 04:19:12 Masatake YAMATO wrote:
> +AC_CHECK_HEADERS(sys/eventfd.h)
> +
> +AC_CHECK_HEADERS(libaio.h)

AC_CHECK_HEADERS_ONCE() is preferred

> +AC_CHECK_LIB(aio,io_setup)
> +for x in $LIBS; do
> +    if test "$x" = -laio; then
> +      AIO_LIBS="$AIO_LIBS -laio"
> +    fi
> +done
> +AC_SUBST(AIO_LIBS)

this is pretty hackish.  just do:
AC_CHECK_LIB(aio, io_setup, AIO_LIBS="-laio", AIO_LIBS="")
AC_SUBST(AIO_LIBS)
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to