dnl Process this file with autoconf to produce a configure script. AC_INIT(cave, 1.0b, [Ben Kibbey ]) AC_CONFIG_AUX_DIR(build) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE([foreign]) AC_PROG_MAKE_SET AC_CONFIG_SRCDIR([src/cave.c]) AM_CONFIG_HEADER([config.h]) case "$target_os" in darwin*) LDFLAGS="$LDFLAGS -flat_namespace -L/sw/lib" CPPFLAGS="$CPPFLAGS -I/sw/include -L/sw/lib" ;; *) ;; esac dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL dnl Checks for library functions. AC_CHECK_LIB(z, gzopen) AC_CHECK_LIB(curses, initscr) AC_CHECK_LIB(panel, new_panel) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(zlib.h limits.h sys/time.h unistd.h stdlib.h string.h) AC_CHECK_HEADERS(curses.h panel.h getopt.h regex.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T AC_HEADER_TIME dnl Checks for library functions. AC_FUNC_MALLOC AC_TYPE_SIGNAL AC_FUNC_STAT AC_CHECK_FUNCS([bzero regcomp select strdup strerror strrchr vasprintf]) AC_DEFINE_UNQUOTED([DEF_REGEX], ["^[[0-9]]+[[[:space:]]]*$"], [Default regular expression for the frame deliminator.]) AC_DEFINE([DEF_FPS], 15, [Default frames-per-second.]) AC_DEFINE([DEF_CUE], 7, [Default frame cue.]) AC_DEFINE([DEF_TIMEOUT], 30, [Default screensaver timeout for multiple files.]) AC_DEFINE([MAXFPS], 60, [Maximum frames-per-second.]) AM_WITH_DMALLOC AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile]) AC_OUTPUT