build: make autotools put its m4 files into m4/ instead of common/m4/
[glsdk/gstreamer0-10.git] / m4 / check-checks.m4
1 dnl Check for things that check needs/wants and that we don't check for already
2 dnl AM_GST_CHECK_CHECKS()
4 AC_DEFUN([AG_GST_CHECK_CHECKS],
5 [
6 AC_MSG_NOTICE([Running check unit test framework checks now...])
8 CHECK_MAJOR_VERSION=0
9 CHECK_MINOR_VERSION=9
10 CHECK_MICRO_VERSION=8
11 CHECK_VERSION=$CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION
13 AC_SUBST(CHECK_MAJOR_VERSION)
14 AC_SUBST(CHECK_MINOR_VERSION)
15 AC_SUBST(CHECK_MICRO_VERSION)
16 AC_SUBST(CHECK_VERSION)
18 dnl Checks for header files and declarations
19 AC_CHECK_HEADERS([unistd.h sys/wait.h sys/time.h])
21 AC_CHECK_FUNCS([localtime_r])
24 dnl Create _stdint.h in the top-level directory
25 AX_CREATE_STDINT_H
27 dnl Disable subunit support for the time being
28 enable_subunit=false
30 if test xfalse = x"$enable_subunit"; then
31 ENABLE_SUBUNIT="0"
32 else
33 ENABLE_SUBUNIT="1"
34 fi
35 AC_SUBST(ENABLE_SUBUNIT)
36 AC_DEFINE_UNQUOTED(ENABLE_SUBUNIT, $ENABLE_SUBUNIT, [Subunit protocol result output])
38 AM_CONDITIONAL(SUBUNIT, test x"$enable_subunit" != "xfalse")
40 ])