python: pass xfail outcomes to TestResult.addExpectedFailure, when it is defined.
[third_party/subunit] / configure.ac
1 AC_DEFUN([SUBUNIT_MAJOR_VERSION], [0])
2 AC_DEFUN([SUBUNIT_MINOR_VERSION], [0])
3 AC_DEFUN([SUBUNIT_MICRO_VERSION], [2])
4 AC_DEFUN([SUBUNIT_VERSION],
5 [SUBUNIT_MAJOR_VERSION.SUBUNIT_MINOR_VERSION.SUBUNIT_MICRO_VERSION])
6 AC_PREREQ([2.59])
7 AC_INIT([subunit], [SUBUNIT_VERSION], [subunit-dev@lists.launchpad.net])
8 AC_CONFIG_SRCDIR([c/lib/child.c])
9 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
10 AC_CONFIG_MACRO_DIR([m4])
11 [SUBUNIT_MAJOR_VERSION]=SUBUNIT_MAJOR_VERSION
12 [SUBUNIT_MINOR_VERSION]=SUBUNIT_MINOR_VERSION
13 [SUBUNIT_MICRO_VERSION]=SUBUNIT_MICRO_VERSION
14 [SUBUNIT_VERSION]=SUBUNIT_VERSION
15 AC_SUBST([SUBUNIT_MAJOR_VERSION])
16 AC_SUBST([SUBUNIT_MINOR_VERSION])
17 AC_SUBST([SUBUNIT_MICRO_VERSION])
18 AC_SUBST([SUBUNIT_VERSION])
19 AC_USE_SYSTEM_EXTENSIONS
20 AC_PROG_CC
21 AM_PROG_CC_C_O
22 AC_PROG_INSTALL
23 AC_PROG_LN_S
24 AC_PROG_LIBTOOL
25 AM_PATH_PYTHON
26 # Checks for libraries.
27
28 # Checks for header files.
29 AC_CHECK_HEADERS([stdlib.h])
30
31 # Checks for typedefs, structures, and compiler characteristics.
32 AC_C_CONST
33 AC_TYPE_PID_T
34 AC_TYPE_SIZE_T
35 AC_HEADER_TIME
36 AC_STRUCT_TM
37
38 AC_CHECK_SIZEOF(int, 4)
39 AC_CHECK_SIZEOF(short, 2)
40 AC_CHECK_SIZEOF(long, 4)
41
42 # Checks for library functions.
43 AC_FUNC_MALLOC
44 AC_FUNC_REALLOC
45
46 # Easier memory management.
47 # C unit testing.
48 PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
49
50 # Output files
51 AC_CONFIG_HEADERS([config.h])
52
53 AC_CONFIG_FILES([libsubunit.pc
54                  Makefile
55                  ])
56 AC_OUTPUT