dnl AM_PATH_DTS([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl test for libdts dnl defines DTS_CFLAGS and DTS_LIBS AC_DEFUN([AM_PATH_DTS], [ dnl dts.h needs stdint.h/inttypes.h for plain compile! AC_AVM_CHECK_LIB(dts, [for dts_init in -ldts], [where DTS is installed], [-ldts -lm], [ #if HAVE_INTTYPES_H # include #endif #if HAVE_STDINT_H # include #endif #include ], [dts_state_t* d = dts_init(0)], [$1], [$2]) ])