FIND_PATH(SPANDSP_INCLUDE_DIR spandsp.h)
FIND_LIBRARY(SPANDSP_LIBRARIES NAMES spandsp)

IF(SPANDSP_INCLUDE_DIR AND SPANDSP_LIBRARIES)
	SET(SPANDSP_FOUND TRUE)
ENDIF(SPANDSP_INCLUDE_DIR AND SPANDSP_LIBRARIES)

IF(SPANDSP_FOUND)
	IF (NOT Spandsp_FIND_QUIETLY)
		MESSAGE(STATUS "Found spandsp includes:	${SPANDSP_INCLUDE_DIR}/spandsp.h")
		MESSAGE(STATUS "Found spandsp library: ${SPANDSP_LIBRARIES}")
	ENDIF (NOT Spandsp_FIND_QUIETLY)
ELSE(SPANDSP_FOUND)
	IF (Spandsp_FIND_REQUIRED)
		MESSAGE(FATAL_ERROR "Could NOT find spandsp development files")
	ENDIF (Spandsp_FIND_REQUIRED)
ENDIF(SPANDSP_FOUND)
