2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([libcontrac], [0.01], [david@flypig.co.uk])
6 AC_CONFIG_AUX_DIR([config])
7 AM_INIT_AUTOMAKE([-Wall -Werror])
8 AC_CONFIG_SRCDIR([src])
9 AC_CONFIG_HEADERS([config.h])
10 AC_CONFIG_MACRO_DIRS([m4])
13 # Checks for programs.
18 AC_CHECK_PROG([DOXYGEN], [doxygen], [doxygen])
20 if test "$DOXYGEN" = doxygen; then
21 echo Use \"make doxygen\" to generate library documentation.
23 echo ===================================================================
24 echo Install doxygen to allow the library documentation to be generated.
25 echo ===================================================================
28 # Checks for libraries.
29 PKG_CHECK_MODULES([LIBCONTRAC], [libcrypto])
30 PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
32 # Checks for header files.
34 AC_CHECK_HEADERS([stdio.h stddef.h stdlib.h string.h, stdbool.h])
36 # Checks for compiler characteristics
39 # Checks for typedefs, structures, and compiler characteristics.
45 # Checks for library functions.
48 AC_CONFIG_FILES([Makefile