2019-01-11 00:51:02 +03:00
|
|
|
# Input file for autoconf to generate the configure script.
|
|
|
|
|
|
|
|
# See https://www.gnu.org/software/autoconf/manual/autoconf.html for help on
|
|
|
|
# the macros used in this file.
|
|
|
|
|
2020-04-20 14:12:00 +03:00
|
|
|
AC_INIT([streamly], [0.7.2], [streamly@composewell.com], [streamly])
|
2019-01-11 00:51:02 +03:00
|
|
|
|
|
|
|
# To suppress "WARNING: unrecognized options: --with-compiler"
|
|
|
|
AC_ARG_WITH([compiler], [GHC])
|
|
|
|
|
2020-08-17 01:41:17 +03:00
|
|
|
# XXX Do this only for linux
|
|
|
|
AC_CHECK_DECLS([IN_MASK_CREATE],[],[],[#include <sys/inotify.h>])
|
|
|
|
AC_CHECK_DECLS([IN_EXCL_UNLINK],[],[],[#include <sys/inotify.h>])
|
|
|
|
|
2020-08-20 03:57:40 +03:00
|
|
|
# XXX Do this only for macOS
|
|
|
|
AC_CHECK_DECLS([kFSEventStreamCreateFlagFileEvents],[],[],[#include <CoreServices/CoreServices.h>])
|
|
|
|
AC_CHECK_DECLS([kFSEventStreamCreateFlagFullHistory],[],[],[#include <CoreServices/CoreServices.h>])
|
|
|
|
AC_CHECK_DECLS([kFSEventStreamEventFlagItemCloned],[],[],[#include <CoreServices/CoreServices.h>])
|
|
|
|
AC_CHECK_DECLS([kFSEventStreamEventFlagItemIsHardlink],[],[],[#include <CoreServices/CoreServices.h>])
|
|
|
|
|
2019-01-11 00:51:02 +03:00
|
|
|
# Check headers and functions required
|
|
|
|
AC_CHECK_HEADERS([time.h])
|
|
|
|
AC_CHECK_FUNCS([clock_gettime])
|
|
|
|
|
|
|
|
# Output
|
2020-08-17 01:41:17 +03:00
|
|
|
AC_CONFIG_HEADERS([src/config.h])
|
2019-01-11 00:51:02 +03:00
|
|
|
AC_OUTPUT
|