Debian Codegraph @

deps/libneon/macros/neon-test.m4

raw
1 # Copyright (C) 2001-2006 Joe Orton <[email protected]> -*- autoconf -*-
2 #
3 # This file is free software; you may copy and/or distribute it with
4 # or without modifications, as long as this notice is preserved.
5 # This software is distributed in the hope that it will be useful, but
6 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even
7 # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 # PURPOSE.
9
10 # The above license applies to THIS FILE ONLY, the neon library code
11 # itself may be copied and distributed under the terms of the GNU
12 # LGPL, see COPYING.LIB for more details
13
14 # This file is part of the neon HTTP/WebDAV client library.
15 # See http://www.webdav.org/neon/ for the latest version.
16 # Please send any feedback to <[email protected]>
17
18 # Tests needed for the neon-test common test code.
19
20 AC_DEFUN([NE_FORMAT_TIMET], [
21 NEON_FORMAT(time_t, [
22 #ifdef HAVE_SYS_TIME_H
23 #include <sys/time.h>
24 #endif])
25 ])
26
27 AC_DEFUN([NEON_TEST], [
28
29 AC_REQUIRE([NEON_COMMON_CHECKS])
30 AC_REQUIRE([NE_FORMAT_TIMET])
31
32 AC_REQUIRE([AC_TYPE_PID_T])
33 AC_REQUIRE([AC_HEADER_TIME])
34
35 dnl NEON_XML_PARSER may add things (e.g. -I/usr/local/include) to
36 dnl CPPFLAGS which make "gcc -Werror" fail in NEON_FORMAT; suggest
37 dnl this macro is used first.
38 AC_BEFORE([$0], [NEON_XML_PARSER])
39
40 AC_CHECK_HEADERS(sys/time.h stdint.h locale.h signal.h)
41
42 AC_CHECK_FUNCS(pipe isatty usleep shutdown setlocale gethostname)
43
44 AC_REQUIRE([NE_FIND_AR])
45
46 ])