AC_PREREQ(2.59) AC_INIT(fswatch, 0.02.01beta, dominik@karczmarski.com) AC_CONFIG_SRCDIR(src/fswbuild.c) AC_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE AC_PROG_CC AC_PROG_MAKE_SET AC_HEADER_STDC AC_CHECK_HEADER(sys/types.h,, exit) AC_CHECK_HEADER(sys/stat.h,, exit) AC_CHECK_HEADER(string.h,, exit) AC_CHECK_HEADER(limits.h,, exit) AC_CHECK_HEADER(stdio.h,, exit) AC_CHECK_HEADER(errno.h,, exit) AC_CHECK_HEADER(fcntl.h,, exit) AC_CHECK_HEADER(stdlib.h,, exit) AC_CHECK_HEADER(stdint.h,,) AC_CHECK_HEADER(inttypes.h,,) AC_CHECK_HEADER(time.h,, exit) AC_CHECK_HEADER(dirent.h,, exit) AC_CHECK_HEADER(unistd.h,, exit) AC_ARG_ENABLE(stflags, [ --enable-stflags[=yes] enable flags checking ], [ if test "x$enableval" = "xyes"; then AC_DEFINE(ENABLE_STFLAGS, 1, [ enable flags checking ]) fi ]) AC_ARG_ENABLE(regex, [ --enable-regex[=yes] enable regular expression ], [ if test "x$enableval" = "xyes"; then AC_CHECK_HEADER(regex.h,, exit) AC_DEFINE(ENABLE_REGEX, 1, [ enable regular expression ]) fi ]) AC_C_CONST AC_C_BIGENDIAN AC_CONFIG_FILES( [ Makefile examples/Makefile man/Makefile man/man1/Makefile man/man5/Makefile man/man7/Makefile src/Makefile ]) AC_OUTPUT