Fruit's git repositories flatline / master configure.ac
master

Tree @master (Download .tar.gz)

configure.ac @masterraw · history · blame

AC_PREREQ(2.59)
AC_INIT(flatline, 7, wsl@fruit.je)
AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip])

AC_CONFIG_SRCDIR([flatline.c])
AC_CONFIG_MACRO_DIR([m4])

AX_APPEND_FLAG([-std=c99 -pipe])

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL

AC_DEFINE(_GNU_SOURCE,1,[to get various semi-standard constants])
AC_DEFINE(_FILE_OFFSET_BITS,64,[gnu libc has clumsy defaults])

# Checks for header files.
AC_CHECK_HEADERS([inttypes.h stdbool.h stdio.h string.h errno.h stdarg.h stdlib.h unistd.h fcntl.h time.h syslog.h getopt.h sysexits.h signal.h poll.h sched.h sys/types.h sys/wait.h sys/socket.h sys/epoll.h sys/timerfd.h sys/signalfd.h netdb.h],,[
	AC_MSG_FAILURE([Required system header files not found.])
	exit 1
])

AC_SEARCH_LIBS([clock_gettime],[rt])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

AX_APPEND_FLAG([-Wall -Werror -Wstrict-aliasing -include config.h])

AC_CONFIG_FILES([Makefile])
AC_CONFIG_HEADERS([config.h])
AC_OUTPUT