3dabdf343198ed8ed64aab8b7251a625c0b36acb
[wakeup.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.69])
5 AC_INIT([wakeup], [0.1], [arjen@andromeda.nl])
6 AC_CONFIG_SRCDIR([src/sunrise.cpp])
7 AC_CONFIG_HEADERS([config.h])
8 AM_INIT_AUTOMAKE([foreign])
9
10 # Checks for programs.
11 AC_PROG_CXX
12 AC_PROG_CC
13
14 # Checks for libraries.
15 # FIXME: Replace `main' with a function in `-lACL':
16 AC_CHECK_LIB([ACL], [Now])
17 # FIXME: Replace `main' with a function in `-lTachyon':
18 AC_CHECK_LIB([Tachyon], [main])
19 # FIXME: Replace `main' with a function in `-lrt':
20 AC_CHECK_LIB([rt], [main])
21
22 # Checks for header files.
23 AC_CHECK_HEADERS([fcntl.h stdlib.h unistd.h])
24
25 # Checks for typedefs, structures, and compiler characteristics.
26 AC_CHECK_HEADER_STDBOOL
27 AC_TYPE_SSIZE_T
28
29 # Checks for library functions.
30 AC_FUNC_MMAP
31
32 AC_CONFIG_FILES([Makefile
33                  doc/Makefile
34                  src/Makefile
35                  test/Makefile])
36 AC_OUTPUT