include (LibAddMacros)

if (DEPENDENCY_PHASE)
	include(CheckIncludeFile)
	check_include_file(fts.h HAVE_FTS_H)

	if (NOT HAVE_FTS_H)
		remove_plugin (multifile "header file “fts.h” was not found")
	endif (NOT HAVE_FTS_H)
endif (DEPENDENCY_PHASE)

add_plugin (multifile
	SOURCES
		multifile.h
		multifile.c
	LINK_ELEKTRA
		elektra-kdb
		elektra-invoke
	)
