Use internal count for tests
[libcontrac.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.61)
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])
11 PKG_INSTALLDIR
12
13 # Checks for programs.
14 AC_PROG_CC
15 AM_PROG_CC_C_O
16 AM_PROG_AR
17 LT_INIT
18 AC_CHECK_PROG([DOXYGEN], [doxygen], [doxygen])
19
20 if test "$DOXYGEN" = doxygen; then
21 echo Use \"make doxygen\" to generate library documentation.
22 else
23 echo ===================================================================
24 echo Install doxygen to allow the library documentation to be generated.
25 echo ===================================================================
26 fi
27
28 # Checks for libraries.
29 PKG_CHECK_MODULES([LIBCONTRAC], [libcrypto])
30 PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
31
32 # Checks for header files.
33 AC_HEADER_STDC
34 AC_CHECK_HEADERS([stdio.h stddef.h stdlib.h string.h, stdbool.h])
35
36 # Checks for compiler characteristics
37 AC_C_BIGENDIAN
38
39 # Checks for typedefs, structures, and compiler characteristics.
40 AC_HEADER_STDBOOL
41 AC_C_CONST
42 AC_C_INLINE
43 AC_TYPE_SIZE_T
44
45 # Checks for library functions.
46 AC_FUNC_MALLOC
47
48 AC_CONFIG_FILES([Makefile
49                  src/Makefile
50                  libcontrac-0.pc
51                  tests/Makefile
52                  doxyfile])
53
54 AC_OUTPUT