2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([hirshfeld],[0.3.0],[http://code.google.com/p/hirshfeld/issues/entry])
6 AC_CONFIG_SRCDIR([src/atom.cpp])
7 AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2])
9 AM_CONFIG_HEADER(config.h)
11 # Checks for programs.
17 # Checks for libraries.
19 AC_CHECK_LIB([m], [pow, sqrt], [], [AC_MSG_ERROR(libm not found)])
21 # Checks for header files.
22 AC_CHECK_HEADERS([libgen.h])
23 AC_CHECK_HEADERS([boost/noncopyable.hpp],
25 [AC_MSG_ERROR([cannot find boost/noncopyable.hpp])])
26 AC_CHECK_HEADERS([string.h strings.h], break)
28 # Checks for typedefs, structures, and compiler characteristics.
30 # Checks for library functions.
31 AC_CHECK_FUNCS([strstr], [], [AC_MSG_ERROR(strstr not found)])
32 AC_CHECK_FUNCS([strrchr])
34 AC_CONFIG_FILES([Makefile