# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([wakeup], [0.1], [arjen@andromeda.nl]) AC_CONFIG_SRCDIR([src/sunrise.cpp]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign]) AC_LANG(C++) # Checks for programs. AC_PROG_CXX AC_PROG_CC # Checks for libraries. # FIXME: Replace `main' with a function in `-lACL': AC_CHECK_LIB([ACL], [Now]) # FIXME: Replace `main' with a function in `-lTachyon': AC_CHECK_LIB([Tachyon], [main]) # FIXME: Replace `main' with a function in `-lrt': AC_CHECK_LIB([rt], [main]) # FIXME: Replace `main' with a function in `-lpthread': AC_CHECK_LIB([pthread], [main]) AC_PATH_PROG(XML_CONFIG,xml2-config,no) if test $XML_CONFIG = "no" then echo "XML library not found (see http://xmlsoft.org/)." exit 1; fi XML_CFLAGS=`$XML_CONFIG --cflags` XML_LFLAGS=`$XML_CONFIG --libs` AC_CHECK_LIB(xml2, xmlParseFile) CXXFLAGS="$CXXFLAGS $XML_CFLAGS -Wall" LDFLAGS="$LDFLAGS $XML_LFLAGS" # Checks for header files. AC_CHECK_HEADERS([fcntl.h stdlib.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_CHECK_HEADER_STDBOOL AC_TYPE_SSIZE_T # Checks for library functions. AC_FUNC_MMAP AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile test/Makefile]) AC_OUTPUT