--- a/configure.ac	2016-05-28 10:35:31.000000000 +0100
+++ b/configure.ac	2017-02-25 23:34:22.309684397 +0100
@@ -65,6 +65,8 @@
     AC_DEFINE([HAVE___PROGNAME], [1], [Define if libc defines __progname])
 fi
 
+AC_SEARCH_LIBS(fts_open, fts)
+
 AC_CACHE_CHECK([whether we are building for a Win32 host], [ac_cv_win32_host],
 	       AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#ifdef _WIN32
  choke me
